123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <?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>선택진료수당등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <spclamt>
- <spclamtlist/>
- </spclamt>
- <excel>
- <excellist/>
- </excel>
- </main>
- <send>
- <spclamt>
- <instcd>014</instcd>
- <payappym/>
- <emplno/>
- <emplnm/>
- <deptcd/>
- <deptnm/>
- </spclamt>
- <save>
- <spclamtlist/>
- <payapplist>
- <instcd>014</instcd>
- <fromdd/>
- <todd/>
- <emplno/>
- <emplnm/>
- <payappym/>
- </payapplist>
- </save>
- <attach>
- <file/>
- <instcd/>
- </attach>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_spclamtlist);
-
- misfMsterDetailSet(grd_spclamtlist, null, "TRRWP10501" ,"Y");
-
- grd_spclamtlist.fixedcellcheckbox(1, 1) = true;
-
- var curdate = getCurrentDate();
- model.setValue(ipt_payappym.attribute("ref") , curdate.substr(0, 6));
-
- //misfComboComCdListMulti("Z0007,R0058","cmb_instcd,cmb_prfshipflag");
-
- //addComboItem( "cmb_prfshipflag", "[-- 전체 --]", "", "above");
-
-
- //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- //model.setValue(cmb_prfshipflag.attribute("ref") , "");
- model.refresh();
- model.setFocus("ipt_payappym");
- ]]>
- </script>
- <submission id="TRRWP10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/spclamt" resultref="/root/main/spclamt"/>
- <submission id="TXRWP10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <submission id="TXRWP10503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/spclamtlist" resultref="/root/hidden/temp"/>
- <submission id="TXRWP10502" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
- <submission id="TXRWP10504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/spclamt" 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/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.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/instcd",model.getValue("/root/send/spclamt/instcd") );
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRWP10502");
- closeLoadingBar();
- //btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <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="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
- <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:14px; ">선택 진료 수당 List</caption>
- <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_fromdd" class="search_name" style="left:10px; top:8px; width:81px; height:17px; ">지급년월:</caption>
- <input id="ipt_payappym" ref="/root/send/spclamt/payappym" class="input_default" inputtype="date" format="yyyy-mm" style="left:91px; top:7px; width:101px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption1" class="search_name" style="left:609px; top:8px; width:81px; height:17px; ">사원번호:</caption>
- <button id="btn_emplno" class="icon_search" style="left:784px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_emplnos" ref="/root/send/spclamt/emplno" class="input_default" style="left:692px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
- inputEnterKey("ipt_emplnos", "xforms-value-changed");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </input>
- <input id="ipt_emplnms" ref="/root/send/spclamt/emplnm" class="input_default" style="left:803px; top:8px; width:96px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
- inputEnterKey("ipt_emplnms", "xforms-value-changed");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- model.refresh();
-
- if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:250px; top:8px; width:61px; height:17px; ">부서:</caption>
- <input id="ipt_deptnm" ref="/root/send/spclamt/deptnm" class="input_default" style="left:411px; top:8px; width:139px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" style="left:390px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- var instcd = model.getValue("/root/send/spclamt/instcd");
- rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/send/spclamt/deptcd" class="input_default" style="left:306px; top:8px; width:79px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_spclamtlist" nodeset="/root/main/spclamt/spclamtlist" caption="확정^사번^성명^근무부서^근무부서^수당금액^소득세^주민세^실지급액^기관^사번OLD^근무부서old^급여반영월|^사번^성명^근무부서^근무부서^수당금액^소득세^주민세^실지급액^기관^사번OLD^근무부서old^급여반영월" colsep="^" colwidth="40, 91, 126, 288, 19, 173, 135, 134, 141, 23, 25, 30, 38" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1193px; height:665px; ">
- <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
- <col ref="emplno" type="inputbutton"/>
- <col ref="emplnm"/>
- <col ref="deptnm"/>
- <col ref="dutunitcd" type="inputbutton"/>
- <col ref="spclordamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="spclincmtax" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="spclresdntax" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="payamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="oldemplno" visibility="hidden"/>
- <col ref="olddutunitcd" visibility="hidden"/>
- <col ref="payappym" visibility="hidden"/>
- <col ref="oldcnfmyn" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_spclamtlist.col == grd_spclamtlist.colRef("emplno")) {
- rpbfOpenPopUpList("SPRPB00101", grd_spclamtlist, "emplno,emplnm","","","","emplno,emplnm");
- model.refresh();
- }
- else if (grd_spclamtlist.col == grd_spclamtlist.colRef("dutunitcd")) {
- var instcd = model.getValue("/root/send/spclamt/instcd");
- misfOpenPopUpList("02", grd_spclamtlist, "", "dutunitcd,deptnm", instcd, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recv_list = "";
- if (grd_spclamtlist.col == grd_spclamtlist.colRef("emplno")) {
- recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list,"","emplno,emplnm");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</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_spclamtlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_delgrdspclamtlist" class="btn2_letter3" style="left:1074px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_spclamtlist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_addgrdspclamtlist" class="btn2_letter3" visibility="visible" style="left:1018px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_spclamtlist, "A");
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:825px; top:45px; width:25px; height:20px; "/>
- <button id="btn_upload" class="btn5_letter5" style="left:935px; 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: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="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
- <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("TXRWP10501");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_payapply" class="btn4_letter4" style="left:1050px; top:3px; width:80px; height:22px; ">
- <caption>급여이체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var payappym = ipt_payappym.value;
-
- if (payappym == null || payappym == ""){
- messageBox("급여 반영월을 입력후 실행 하세요.","");
- return;
- }
-
- for (var i = grd_spclamtlist.fixedRows; i < grd_spclamtlist.rows; i++) {
- if (grd_spclamtlist.valueMatrix(i, grd_spclamtlist.colRef("cnfmyn")) != grd_spclamtlist.valueMatrix(i, grd_spclamtlist.colRef("oldcnfmyn"))) {
- grd_spclamtlist.rowStatus(i) = "2";
- }
- }
-
- misfSave("TXRWP10503");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_getHisData" class="btn4_letter4" style="left:905px; top:3px; width:92px; height:22px; ">
- <caption>자료생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_spclamtlist);
- if (updtdata != "" ) {
- messageBox("변경된 데이터가 존재 합니다. 저장후 실행 하세요.","");
- return;
- }
-
- submit("TXRWP10504");
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|