123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <?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>
- <paycalc/>
- </main>
- <send>
- <paycalc>
- <instcd/>
- <idflag>I</idflag>
- <payym/>
- </paycalc>
- </send>
- <init>
- <radio1>
- <label>생성</label>
- <value>I</value>
- <label>삭제</label>
- <value>D</value>
- </radio1>
- </init>
- <temp>
- <errormsg/>
- </temp>
- </root>
- </instance>
- <submission id="TXRPD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paycalc" resultref="/root/temp"/>
- </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/stringHelper.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[
- fSetPreMonth();
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_payym.value+getCurrentDate().substr(6, 2),"","N");
-
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- model.setValue("/root/send/paycalc/instcd", getUserInfo("dutplceinstcd"));
- cmb_instcd.refresh();
-
- fSetControlAuth();
- btn_save.disabled = !(checkAuth("X"));
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSetPreMonth()
- {
- /*
- var dt = new Date(getCurrentDate().substr(0, 4), getCurrentDate().substr(4, 2), 0);
- dt.setMonth(dt.getMonth() - 1);
- var sYear = dt.getYear().toString();
- var sMonth = ((dt.getMonth() + 1).toString().length == 1) ? "0" + (dt.getMonth() + 1).toString() : (dt.getMonth() + 1).toString();
- var sYm = sYear + sMonth;
- */
- //var sYm = getCurrentDate().substr(0,6);
- var sYm = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD").substr(0, 6);
-
- ipt_payym.value = sYm;
- }
-
- function fSetControlAuth()
- {
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- }
- else if(getUserInfo("dutplceinstcd") != "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:305px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:220px; height:8px; ">월근태집계</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12px; width:305px; height:107px; ">
- <line id="line204" class="line_2" style="x1:0px; y1:76px; x2:280px; y2:76px; "/>
- <line id="line203" class="line_1" style="x1:0px; y1:25px; x2:280px; y2:25px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:104px; x2:280px; y2:104px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:10px; width:157px; height:13px; ">월근태집계</caption>
- <input id="ipt_payym" ref="/root/send/paycalc/payym" class="input_default" inputtype="date" format="yyyy-mm" style="left:89px; top:81px; width:185px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_payym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/paycalc/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_payym.value+"31","","Y");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="cap_payym" class="cell_1" style="left:0px; top:78px; width:87px; height:26px; vertical-align:middle; ">근무년월</caption>
- <select1 id="rdo_idflag" ref="/root/send/paycalc/idflag" overflow="visible" appearance="full" cellspacing="0" cols="2" style="left:89px; top:55px; width:95px; height:19px; border-style:none; ">
- <choices>
- <itemset nodeset="root/init/radio1">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_idflag" class="cell_1" style="left:0px; top:54px; width:87px; height:23px; vertical-align:middle; ">작업구분</caption>
- <input id="ipt_errormsg" ref="/root/temp/errormsg" visibility="hidden" style="left:45px; top:55px; width:215px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/paycalc/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:89px; top:32px; width:191px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:0px; top:30px; width:87px; height:23px; vertical-align:middle; ">근무기관</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:120px; width:306px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:250px; top:3px; width:56px; height:22px; ">
- <caption>작업</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(DUTY_PART_YN != "Y")
- {
- messageBox("인사 담당자만 작업할 수 있습니다.", "I999");
- return;
- }
-
- var dlgRslt;
- if(model.getValue("/root/send/paycalc/idflag") == "D")
- {
- dlgRslt = messageBox("근태 집계를", "Q001");
-
- if(dlgRslt != 6) return;
-
- dlgRslt = messageBox("계속", "Q003");
-
- if(dlgRslt != 6) return;
- }
-
- if(!isRequiredControls("rdo_idflag", "ipt_payym")) return;
-
- submit("TXRPD01501");
-
- if(ipt_errormsg.value !="")
- {
- messageBox(ipt_errormsg.value, "I999");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:306px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|