123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- <?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>
- <contstdyempl>
- <contstdyempllist/>
- </contstdyempl>
- <excel>
- <excellist/>
- </excel>
- </main>
- <send>
- <contstdyempl>
- <emplno/>
- <emplnm/>
- <flag>Y</flag>
- <workym/>
- <stdemplno/>
- <stdemplnm/>
- </contstdyempl>
- <save>
- <contstdyempllist/>
- </save>
- <attach>
- <file/>
- <workym/>
- </attach>
- </send>
- <temp/>
- <init/>
- </root>
- </instance>
- <submission id="TRRPB15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/contstdyempl" resultref="/root/main/contstdyempl"/>
- <submission id="TXRPB15001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRPB15002" 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/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_contstdyempllist.nodeset);
- model.refresh();
- misfMsterDetailSet(grd_contstdyempllist, null, "TRRPB15001", "Y");
- var nowdate = getCurrentDate();
- var yymm = nowdate.substring(0,6);
-
- ipt_workym.value = yymm;
- 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/workym",ipt_workym.value);
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRPB15002");
- 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:36px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:162px; height:14px; ">계약 연구원 리스트</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:69px; "/>
- <caption id="cap_emplno" class="search_name" style="left:240px; top:20px; width:86px; height:17px; ">사원번호 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:17px; 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:14px; x2:1110px; y2:42px; 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_contstdyempllist" nodeset="/root/main/contstdyempl/contstdyempllist" caption="사원번호^사원번호^성명^계약기간^계약기간^책임연구원^책임연구원^책임연구원^연구지원기관^연구과제명^월급여액^총계약금액^급여지급여부^보험적용여부^재정지원기관^작업월^순번|사원번호^사원번호^성명^시작월^종료월^사번^사번^성명^연구지원기관^연구과제명^월급여액^총계약금액^급여지급여부^보험적용여부^재정지원기관^작업월^순번" colsep="^" colwidth="67, 19, 78, 74, 72, 70, 20, 91, 124, 166, 83, 79, 46, 47, 113, 26, 30" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:662px; ">
- <col ref="emplno" type="output"/>
- <col ref="pop1" type="inputbutton"/>
- <col ref="emplnm"/>
- <col ref="fromym" type="inputdate" format="yyyy-mm"/>
- <col ref="toym" type="inputdate" format="yyyy-mm"/>
- <col ref="stdemplno" type="output"/>
- <col ref="pop2" type="inputbutton"/>
- <col ref="stdemplnm"/>
- <col ref="appinstnm" type="input"/>
- <col ref="stdsubjnm" type="input"/>
- <col ref="payamt" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="paytotamt" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="payappyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="insurappyn" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="payappinst" type="input"/>
- <col ref="workym" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_contstdyempllist.col == grd_contstdyempllist.colRef("pop1")) {
- rpbfOpenPopUpList("SPRPB00101", grd_contstdyempllist, "emplno,emplnm","","","","emplno,emplnm");
- model.refresh();
- }
- else if (grd_contstdyempllist.col == grd_contstdyempllist.colRef("pop2")) {
- rpbfOpenPopUpList("SPRPB00101", grd_contstdyempllist, "stdemplno,stdemplnm","","","","emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_emplno" ref="/root/send/contstdyempl/emplno" class="input_search" disabled="false" style="left:328px; top:19px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_emplhelp" class="icon_search" disabled="false" style="left:397px; top:21px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/contstdyempl/emplnm" class="input_search" disabled="false" style="left:417px; top:19px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplnm.value == ipt_emplnm.currentText) return;
- ipt_emplnm.value = ipt_emplnm.currentText;
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stdemplno" class="icon_search" disabled="false" style="left:812px; top:19px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_stdemplno, "stdemplno,stdemplnm","","","","emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="search_name" style="left:622px; top:20px; width:120px; height:17px; ">책임연구원사번:</caption>
- <input id="ipt_stdemplnm" ref="/root/send/contstdyempl/stdemplnm" class="input_search" disabled="false" style="left:832px; top:19px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_stdemplnm.value == ipt_stdemplnm.currentText) return;
- ipt_stdemplnm.value = ipt_stdemplnm.currentText;
- rpbfValidationCheck("EMPLNM", "stdemplno,stdemplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNM", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_stdemplno" ref="/root/send/contstdyempl/stdemplno" class="input_search" disabled="false" style="left:743px; top:19px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_stdemplno.value == ipt_stdemplno.currentText) return;
- ipt_stdemplno.value = ipt_stdemplno.currentText;
- rpbfValidationCheck("EMPLNO", "stdemplno,stdemplnm");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_workym" class="search_name" style="left:10px; top:20px; width:71px; height:17px; ">작업월:</caption>
- <input id="ipt_workym" ref="/root/send/contstdyempl/workym" class="input_search" disabled="false" inputtype="date" format="yyyy-mm" style="left:80px; top:19px; width:110px; height:19px; "/>
- <button id="btn_addgrdcontstdyempllist" class="btn2_letter3" style="left:1083px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_contstdyempllist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_delgrdcontstdyempllist" class="btn2_letter3" style="left:1139px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_contstdyempllist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_upload" class="btn5_letter5" style="left:975px; top:48px; 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>
- <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; "/>
- </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; ">
- <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("TXRPB15001");
- ]]>
- </script>
- </button>
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|