123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>SAT평가등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <satexampsn>
- <satexampsnlist/>
- </satexampsn>
- <examscor>
- <examscorlist/>
- </examscor>
- <excel>
- <excellist/>
- </excel>
- </main>
- <send>
- <satexampsn>
- <valuyy/>
- <instcd/>
- <deptcd/>
- <emplno/>
- <deptnm/>
- <emplnm/>
- </satexampsn>
- <examscor>
- <valuyy/>
- <emplno/>
- </examscor>
- <attach>
- <file/>
- <valuyy/>
- </attach>
- <examcnfmyn>
- <instcd/>
- <valuyy/>
- <cnfmyn/>
- </examcnfmyn>
- </send>
- <save>
- <examscorlist/>
- </save>
- <temp/>
- <hidden>
- <temp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /* Grid 초기화 */
- misfGridInit(grd_satexampsnlist);
- misfGridInit(grd_examscorlist);
-
- misfMsterDetailSet(grd_satexampsnlist,null, "TRRPV02301" ,"N");
- misfMsterDetailSet(grd_examscorlist,grd_satexampsnlist, "TRRPV02302" ,"Y");
-
- var curdate = getCurrentDate();
- model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- rpvfComboInstCdList("cmb_instcd");
- rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")),"SATEXAM","grd_examscorlist.examcd");
-
- addComboItem( "cmb_instcd", "[-- 전체 --]", "", "above");
- model.setValue(cmb_instcd.attribute("ref"), "");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRRPV02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/satexampsn" resultref="/root/main/satexampsn"/>
- <submission id="TRRPV02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/examscor" resultref="/root/main/examscor"/>
- <submission id="TXRPV02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" resultref="/root/hidden/temp"/>
- <submission id="TXRPV02302" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
- <submission id="TXRPV02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/examcnfmyn" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- var fso=new ActiveXObject("Scripting.FileSystemObject");
- function fExcelUpload() {
- var maxsize = upload1.attribute("filesize");
- var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var filelist = filename.split("|");
- model.removeNodeset("/root/main/list/filelist");
- model.removeNodeset("/root/send/attach");
- //타이틀을 획득한다.
- var s = new String(filelist[filelist.length-1]);
- var ss = s.split("\\");
- if(filename !=""){
- //작업 전 row를 추가 >파일명 유/무에 따른 분기>
- for(var i = 0 ; i < filelist.length ; i++ ){
- grd_attach.addRow(false);
-
- if(filelist[i] == ""){
- //alert(grd_attach.rows - 1);
- grd_attach.removeRow(false);
- grd_attach.refresh();
- }else{
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- //파일크기('tfHelper.checkFileSize' 참조)
- var fileCnt = upload1.getFileCount();
- var lastIndex = fileCnt - 1;
- var fileSize = upload1.getFileSize(lastIndex);
- grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- }
- model.makeValue("/root/send/attach/valuyy",ipt_valuyy.value);
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRPV02302");
- closeLoadingBar();
- btn_search.dispatch("DOMActivate");
- }
- }
- /**
- * @group : lvString 확장
- * @ver : 2004.07.29 (KUHDEV-0002)
- * @by : LeeHJ.
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 파라미터 값의 Byte 크기를 리턴
- * @param : N/A
- * @return : 파라미터 값의 Byte 크기
- * @---------------------------------------------------
- */
- function lvGetByteSize(strData)
- {
- var tcount = 0;
- var tmpStr = new String(strData);
- var temp = tmpStr.length;
-
- var onechar;
- for ( k=0; k<temp; k++ )
- {
- onechar = tmpStr.charAt(k);
- if (escape(onechar).length > 4)
- {
- tcount += 2;
- }
- else
- {
- tcount += 1;
- }
- }
- return tcount;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">SAT평가 등록</caption>
- </group>
- <group id="group3" style="left:0px; top:38px; width:1195px; height:744px; ">
- <!--<datagrid id="datagrid1" nodeset="/root/example" class="datagrid2" caption="구분^확정^목표^시작일자^종료일자^가중치" colsep="^" colwidth="48, 16, 80, 40, 50, 20" dataheight="23" defaultrows="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:317px; top:110px; width:876px; height:481px; ">-->
- <button id="btn_addgrdexamscorlist" class="btn2_letter3" style="left:1082px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_examscorlist, "A");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:845px; top:56px; width:165px; height:13px; ">SAT평가 점수</caption>
- <button id="btn_delgrdexamscorlist" class="btn2_letter3" style="left:1137px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_examscorlist, "D");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:845px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:56px; width:165px; height:13px; ">SAT 피평가자 리스트</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:70px; x2:844px; y2:70px; "/>
- <datagrid id="grd_satexampsnlist" nodeset="/root/main/satexampsn/satexampsnlist" caption="사원번호^성명^기관^부서^직군^직종^직위^점수^합격여부^평가년도" colsep="^" colwidth="77, 74, 120, 126, 100, 90, 100, 58, 58, 35" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:844px; height:659px; ">
- <col ref="emplno"/>
- <col ref="emplnm"/>
- <col ref="instnm" type="output"/>
- <col ref="deptnm" type="output"/>
- <col ref="grupjoblnnm"/>
- <col ref="jobkindnm"/>
- <col ref="jobposnm"/>
- <col ref="examscor" format="#,###.#"/>
- <col ref="passflag"/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="cnfmyn" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_examscorlist" nodeset="/root/main/examscor/examscorlist" caption="시험과목^점수^평가년도^사원번호^확정여부" colsep="^" colwidth="235, 77, 35, 26, 25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:845px; top:75px; width:350px; height:659px; ">
- <col class="gridcombo" ref="examcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="examscor" type="input" style="text-align:right; "/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="cnfmyn" visibility="hidden"/>
- </datagrid>
- <group id="group5" style="left:0px; top:10px; width:1195px; height:37px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:37px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_valuyy") ) {
- return false;
- }
-
- misfMsterDetailRetrieve();
- if (grd_satexampsnlist.rows - grd_satexampsnlist.fixedRows > 0) {
- if (grd_satexampsnlist.valueMatrix(grd_satexampsnlist.fixedRows, grd_satexampsnlist.colRef("cnfmyn")) == "Y") {
- btn_cnfm.disabled = true;
- btn_save.disabled = true;
- btn_cnfmcan.disabled = false;
- }
- else {
- btn_cnfm.disabled = false;
- btn_save.disabled = false;
- btn_cnfmcan.disabled = true;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_deptcd" class="icon_search" style="left:673px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("cmb_instcd") ) {
- return false;
- }
- var recv_list = "deptcd,deptnm";
- var instcd = cmb_instcd.value;
- rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, instcd, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_valuyy" class="search_name" style="left:5px; top:9px; width:86px; height:17px; font-weight:bold; ">평가년도 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/satexampsn/instcd" class="combo_search" appearance="minimal" style="left:285px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:441px; top:9px; width:86px; height:17px; font-weight:bold; vertical-align:middle; ">부서코드 :</caption>
- <caption id="caption4" class="search_name" style="left:705px; top:9px; width:86px; height:17px; font-weight:bold; ">사원번호:</caption>
- <caption id="cap_instcd" class="search_name" style="left:200px; top:9px; width:86px; height:17px; font-weight:bold; ">기관코드 :</caption>
- <input id="ipt_deptcd" ref="/root/send/satexampsn/deptcd" class="input_search" visibility="hidden" style="left:526px; top:8px; width:79px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1104px; y1:6px; x2:1104px; y2:28px; "/>
- <input id="ipt_valuyy" ref="/root/send/satexampsn/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:100px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
- addComboItem( "cmb_instcd", "[-- 전체 --]", "", "above");
- cmb_instcd.value = instcd;
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:875px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"1","N");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/satexampsn/emplno" class="input_default" editable="true" style="left:785px; top:8px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_emplnm" ref="/root/send/satexampsn/emplnm" class="input_default" editable="false" style="left:895px; top:8px; width:119px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
- model.refresh();
- if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/satexampsn/deptnm" class="input_search" style="left:526px; top:8px; width:145px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
-
- if (ipt_deptnm.label == "") {
- ipt_deptcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:933px; top:50px; width:25px; height:20px; "/>
- <button id="btn_upload" class="btn2_letter5" style="left:1004px; top:49px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcelUpload();
- ]]>
- </script>
- </button>
- <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:670px; top:535px; width:505px; height:69px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter5" style="left:766px; top:49px; width:75px; height:19px; ">
- <caption>Excel저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_satexampsnlist.saveExcel(fileName);
- window.exec(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <!--<line id="line3" class="line_1" style="x1:0px; y1:67px; x2:1195px; y2:67px; "/>-->
- <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_cnfm" class="btn4_letter2" style="left:932px; top:3px; width:56px; height:22px; ">
- <caption>확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/examcnfmyn/valuyy", ipt_valuyy.value);
- model.setValue("/root/send/examcnfmyn/instcd", cmb_instcd.value);
- model.setValue("/root/send/examcnfmyn/cnfmyn", "Y");
-
- submit("TXRPV02303");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter3" style="left:1070px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRPV02301");
- ]]>
- </script>
- </button>
- <button id="btn_cnfmcan" class="btn4_letter4" disabled="true" style="left:989px; top:3px; width:80px; height:22px; ">
- <caption>확정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/examcnfmyn/valuyy", ipt_valuyy.value);
- model.setValue("/root/send/examcnfmyn/instcd", cmb_instcd.value);
- model.setValue("/root/send/examcnfmyn/cnfmyn", "N");
-
- submit("TXRPV02303");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|