123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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>용역인원등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <emplserventp>
- <emplserventplist/>
- </emplserventp>
- <infoserventp>
- <infoserventplist/>
- </infoserventp>
- <excel>
- <excellist/>
- </excel>
- </main>
- <send>
- <serventp>
- <instcd/>
- <srventrcd/>
- <contdg/>
- <contfromdd/>
- <conttodd/>
- </serventp>
- <save>
- <emplserventplist/>
- </save>
- <infoserventp>
- <instcd/>
- <srventrcd/>
- <contfromdd/>
- </infoserventp>
- <attach>
- <file/>
- <instcd/>
- <srventrcd/>
- <contfromdd/>
- </attach>
- </send>
- <temp/>
- <init>
- <serventp>
- <serventplist/>
- </serventp>
- <contserventp>
- <contserventplist/>
- </contserventp>
- </init>
- </root>
- </instance>
- <submission id="TRRPB18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/init/serventp"/>
- <submission id="TRRPB18002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/init/contserventp"/>
- <submission id="TRRPB18003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/infoserventp" resultref="/root/main/emplserventp"/>
- <submission id="TXRPB18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRPB18004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/main/infoserventp"/>
- <submission id="TXRPB18002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removenode(grd_infoserventplist.nodeset);
- model.removenode(grd_emplserventplist.nodeset);
-
- model.refresh();
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- model.refresh();
- misfMsterDetailSet(grd_infoserventplist, null, "TRRPB18004", "N");
- misfMsterDetailSet(grd_emplserventplist, grd_infoserventplist, "TRRPB18003", "Y");
-
- // grd_prtgvnoffcordlist.fixedcellcheckbox(1, 1) = true;
- var curdate = getCurrentDate();
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
- submit("TRRPB18001");
-
- addComboItem( "cmb_srventrcd", "[-- 전체 --]", "", "above");
- model.setValue(cmb_srventrcd.attribute("ref"), "");
-
- //model.refresh();
- }
-
- 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/instcd",cmb_instcd.value);
- model.makeValue("/root/send/attach/srventrcd",cmb_srventrcd.value);
- model.makeValue("/root/send/attach/contfromdd",ipt_fromdd.value);
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRPB18002");
- closeLoadingBar();
- //btn_search.dispatch("DOMActivate");
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:62px; width:162px; height:14px; ">용역직원 List</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:77px; x2:1193px; y2:76px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1110px; y1:12px; x2:1110px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_lbrunionjobrespnm" ref="/root/main/item/lbrunionjobrespnm" class="input_search" visibility="hidden"/>
- <input id="ipt_lbrunionjobresp" ref="/root/main/item/dutplceinst" visibility="hidden"/>
- <input id="ipt_emplno_m" ref="/root/main/imsiitem/emplno" visibility="hidden"/>
- <input id="ipt_lbrunionrgstyn_m" ref="/root/main/imsiitem/lbrunionrgstyn" visibility="hidden"/>
- <input id="ipt_lbrunionrgstdd_m" ref="/root/main/imsiitem/lbrunionrgstdd" visibility="hidden"/>
- <input id="ipt_lbrunionsecssdd_m" ref="/root/main/imsiitem/lbrunionsecssdd" visibility="hidden"/>
- <input id="ipt_lbrunionjobresp_m" ref="/root/main/imsiitem/lbrunionjobresp" visibility="hidden"/>
- <input id="ipt_lbrunionjobrespnm_m" ref="/root/main/imsiitem/lbrunionjobrespnm" visibility="hidden"/>
- <input id="ipt_asgnmpostndd_m" ref="/root/main/imsiitem/asgnmpostndd" visibility="hidden"/>
- <input id="ipt_todd_m" ref="/root/main/imsiitem/todd" visibility="hidden"/>
- <input id="ipt_cur_row" ref="/root/init/cur_row_m" class="input_search" visibility="hidden"/>
- <datagrid id="grd_emplserventplist" nodeset="/root/main/emplserventp/emplserventplist" caption="사번^성명^주민번호^계약기간^계약기간^내선번호^휴대폰^성별^결혼여부^비고^기관^업체코드old^계약시작일^계약시작일old^업체코드|사번^성명^주민번호^시작일^종료일^내선번호^휴대폰^성별^결혼여부^비고^기관^업체코드old^계약시작일^계약시작일old^업체코드" colsep="^" colwidth="67, 69, 97, 90, 84, 63, 90, 44, 44, 170, 37, 34, 36, 35, 33" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:335px; top:80px; width:858px; height:660px; ">
- <col ref="emplno"/>
- <col ref="name" type="input"/>
- <col ref="rregno" type="input" format="999999-9999999"/>
- <col ref="entcodd" type="inputdate"/>
- <col ref="retiredd" type="inputdate"/>
- <col ref="hosinseqno" type="input"/>
- <col ref="mpphonno" type="input"/>
- <col ref="gndr" type="combo">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="maryyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="oldsrventrcd" visibility="hidden"/>
- <col ref="contfromdd" visibility="hidden"/>
- <col ref="oldcontfromdd" visibility="hidden"/>
- <col ref="srventrcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_instcd" ref="/root/send/serventp/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:60px; top:20px; width:154px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:20px; width:60px; height:17px; ">기관:</caption>
- <input id="ipt_fromdd" ref="/root/send/serventp/contfromdd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:771px; top:20px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption22" class="search_name" style="left:690px; top:20px; width:85px; height:17px; ">계약기간:</caption>
- <input id="ipt_todd" ref="/root/send/serventp/conttodd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:878px; top:20px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption11" style="left:867px; top:19px; width:10px; height:19px; ">-</caption>
- <button id="btn_excelsave" class="btn2_letter4" style="left:1128px; top:54px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_emplserventplist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_srventrcd" ref="/root/send/serventp/srventrcd" class="combo_s_essential" appearance="minimal" style="left:295px; top:20px; width:154px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/serventp/serventplist">
- <label ref="srventrnm"/>
- <value ref="srventrcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (cmb_srventrcd.value == "") {
- cmb_contdg.disabled = true;
- }
- else {
- cmb_contdg.disabled = false;
- }
-
- submit("TRRPB18002");
-
- addComboItem( "cmb_contdg", "[-- 전체 --]", "", "above");
- model.setValue(cmb_contdg.attribute("ref"), "");
- cmb_contdg.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:240px; top:20px; width:60px; height:17px; ">업체:</caption>
- <caption id="caption2" class="search_name" style="left:480px; top:20px; width:60px; height:17px; ">차수:</caption>
- <select1 id="cmb_contdg" ref="/root/send/serventp/contdg" class="combo_s_essential" disabled="true" appearance="minimal" style="left:535px; top:20px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/contserventp/contserventplist">
- <label ref="contdgnm"/>
- <value ref="contdg"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/init/contserventp/contserventplist[" + (cmb_contdg.focusIndex + 1) + "]/contfromdd");
- var todd = model.getValue("/root/init/contserventp/contserventplist[" + (cmb_contdg.focusIndex + 1) + "]/conttodd");
- ipt_fromdd.value = fromdd;
- ipt_todd.value = todd;
-
- ]]>
- </script>
- </select1>
- <datagrid id="grd_infoserventplist" nodeset="/root/main/infoserventp/infoserventplist" caption="업체명^계약기간^계약기간^차수^기관^업체코드|업체명^시작일^종료일^차수^기관^업체코드" colsep="^" colwidth="123, 68, 68, 31, 37, 33" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:330px; height:660px; ">
- <col ref="srventrnm"/>
- <col ref="contfromdd" format="yyyy-mm-dd"/>
- <col ref="conttodd" format="yyyy-mm-dd"/>
- <col ref="contdg"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="srventrcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grdaddpayitemtitle" class="btn2_letter3" style="left:1018px; top:54px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_emplserventplist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddelpayitemtitle" class="btn2_letter3" style="left:1074px; top:54px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_emplserventplist, "D");
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:890px; top:50px; width:25px; height:20px; "/>
- <button id="btn_upload" class="btn5_letter5" style="left:910px; top:54px; 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:605px; top:430px; width:505px; height:69px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">용역직원등록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfSave("TXRPB18001");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error"){
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|