123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?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>
- <list>
- <annualequation/>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <yearno/>
- <dutunitcd/>
- <dutunitnm/>
- </retrparams>
- </send>
- <init/>
- <temp/>
- <hidden>
- <rptparm/>
- </hidden>
- </root>
- </instance>
- <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/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <submission id="TRRPD02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removenode("/root/main/list/annualequation");
- misfMsterDetailSet(grd_annualequation, null, "TRRPD02701", "Y");
-
- model.setValue("/root/send/retrparams/yearno", getCurrentDate().substr(0, 4));
- misfComboInstCdListMulti("cmb_instcd",ipt_yearno.value+getCurrentDate().substr(4, 4),"","N");
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfComboCdList(cmb_dutplce);
- rpdfSetDutUnitCombo();
-
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
-
- model.refresh();
-
- if(DUTY_PART_YN == "Y" && getUserInfo("dutplceinstcd") == "001")
- {
- cmb_instcd.disabled = false;
- cmb_dutplce.visible = false;
- }
- else if(DUTY_PART_YN == "Y" && getUserInfo("dutplceinstcd") != "001")
- {
- cmb_dutplce.visible = false;
- }
- }
-
- function fsearch()
- {
- misfMsterDetailRetrieve();
- if(grd_annualequation.rows != grd_annualequation.fixedRows)
- {
- var grdrows = grd_annualequation.rows - grd_annualequation.fixedRows;
-
- for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
- {
- if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))))
- {
- grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))), 10);
- }
- }
-
- for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
- {
- if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))))
- {
- grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))), 10);
- }
- }
-
- for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
- {
- if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))))
- {
- grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))), 10);
- }
- }
-
- for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
- {
- if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))))
- {
- grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))), 10);
- }
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:197px; height:14px; ">연차산출현황출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:265px; top:9px; width:92px; height:17px; ">연차년도 :</caption>
- <line id="line13" class="line_4" style="top:7; x1:1110px; y1:7px; x2:1110px; y2:29px; border-left-style:solid; "/>
- <input id="ipt_yearno" ref="/root/send/retrparams/yearno" class="input_s_essential" inputtype="date" format="yyyy" style="left:353px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_yearno.value) == "4" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_yearno.value+"1231","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">근무기관 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="3" style="left:650px; top:8px; width:115px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_dutdept" class="icon_search" style="left:632px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:552px; top:8px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:464px; top:9px; width:99px; height:17px; ">소속부서 :</caption>
- <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutunitcd" class="combo_search" appearance="minimal" style="left:552px; top:8px; width:213px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fsearch();
-
- ]]>
- </script>
- </select1>
- </group>
- <line id="line7" class="line_1" style="left:0; x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <caption id="caption25" class="tit_2" style="left:5px; top:55px; width:151px; height:13px; ">연차자료개별등록</caption>
- <datagrid id="grd_annualequation" nodeset="/root/main/list/annualequation" caption="기관코드^기관명^사원번호^성명^소속부서^소속부서^년 차^년 차^년 차^보 호 휴 가|기관코드^기관명^사원번호^성명^부서코드^부서명^발 생^1년↓ 가용휴가수^잔 여^발 생" colsep="^" colwidth="0, 102, 150, 120, 100, 140, 140, 140, 140, 140" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1195px; height:659px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="instnm" visibility="visible"/>
- <col ref="emplno" style="text-align:center; "/>
- <col ref="emplnm"/>
- <col ref="dutplcedeptcd" maxlength="10" style="text-align:center; "/>
- <col ref="deptnm" maxlength="10" style="text-align:center; "/>
- <col ref="genryearno" style="text-align:right; padding-right:10; "/>
- <col ref="olmtspreyearno" style="text-align:right; padding-right:10; "/>
- <col ref="spreyearno" style="text-align:right; padding-right:10; "/>
- <col ref="genrhealholi" style="text-align:right; padding-right:10; "/>
- </datagrid>
- </group>
- <group id="group4" 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_print" class="btn6_letter2" style="left:0px; top:2px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_annualequation.rows == grd_annualequation.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
-
- model.makeValue("/root/hidden/rptparm/instnm", cmb_instcd.label);
- exeReportPreview("RPRPD02701", "XMLSTR", "/root/hidden/rptparm");
- model.removenode("/root/hidden/prntlist/"); // 출력 후 데이터 삭제
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|