SMRPD01500_월근태집계.xrw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>월근태집계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <paycalc/>
  11. </main>
  12. <send>
  13. <paycalc>
  14. <instcd/>
  15. <idflag>I</idflag>
  16. <payym/>
  17. </paycalc>
  18. </send>
  19. <init>
  20. <radio1>
  21. <label>생성</label>
  22. <value>I</value>
  23. <label>삭제</label>
  24. <value>D</value>
  25. </radio1>
  26. </init>
  27. <temp>
  28. <errormsg/>
  29. </temp>
  30. </root>
  31. </instance>
  32. <submission id="TXRPD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paycalc" resultref="/root/temp"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  39. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. fSetPreMonth();
  43. // misfComboComCdListMulti("Z0007","cmb_instcd");
  44. misfComboInstCdListMulti("cmb_instcd",ipt_payym.value+getCurrentDate().substr(6, 2),"","N");
  45. misfGetAndSetUserInfo();
  46. misfGetUserAuth();
  47. model.setValue("/root/send/paycalc/instcd", getUserInfo("dutplceinstcd"));
  48. cmb_instcd.refresh();
  49. fSetControlAuth();
  50. btn_save.disabled = !(checkAuth("X"));
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fSetPreMonth()
  56. {
  57. /*
  58. var dt = new Date(getCurrentDate().substr(0, 4), getCurrentDate().substr(4, 2), 0);
  59. dt.setMonth(dt.getMonth() - 1);
  60. var sYear = dt.getYear().toString();
  61. var sMonth = ((dt.getMonth() + 1).toString().length == 1) ? "0" + (dt.getMonth() + 1).toString() : (dt.getMonth() + 1).toString();
  62. var sYm = sYear + sMonth;
  63. */
  64. //var sYm = getCurrentDate().substr(0,6);
  65. var sYm = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD").substr(0, 6);
  66. ipt_payym.value = sYm;
  67. }
  68. function fSetControlAuth()
  69. {
  70. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  71. {
  72. cmb_instcd.disabled = false;
  73. }
  74. else if(getUserInfo("dutplceinstcd") != "001" && DUTY_PART_YN == "Y")
  75. {
  76. cmb_instcd.disabled = true;
  77. }
  78. }
  79. ]]>
  80. </script>
  81. </xhtml:head>
  82. <xhtml:body>
  83. <group id="group1" style="left:0px; top:0px; width:305px; height:13px; ">
  84. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:220px; height:8px; ">월근태집계</caption>
  85. </group>
  86. <group id="group2" scroll="auto" style="left:0px; top:12px; width:305px; height:107px; ">
  87. <line id="line204" class="line_2" style="x1:0px; y1:76px; x2:280px; y2:76px; "/>
  88. <line id="line203" class="line_1" style="x1:0px; y1:25px; x2:280px; y2:25px; "/>
  89. <line id="line1" class="line_3" style="x1:0px; y1:104px; x2:280px; y2:104px; "/>
  90. <caption id="caption278" class="tit_2" style="left:5px; top:10px; width:157px; height:13px; ">월근태집계</caption>
  91. <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; ">
  92. <script type="javascript" ev:event="xforms-value-changed">
  93. <![CDATA[
  94. var instcd = cmb_instcd.value;
  95. if( getStringLength(ipt_payym.value) == "6" ) {
  96. model.removeNodeset(cmb_instcd.attribute("ref"));
  97. model.makeNode("/root/send/paycalc/instcd");
  98. misfComboInstCdListMulti("cmb_instcd",ipt_payym.value+"31","","Y");
  99. cmb_instcd.value = instcd;
  100. model.refresh();
  101. }
  102. ]]>
  103. </script>
  104. </input>
  105. <caption id="cap_payym" class="cell_1" style="left:0px; top:78px; width:87px; height:26px; vertical-align:middle; ">근무년월</caption>
  106. <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; ">
  107. <choices>
  108. <itemset nodeset="root/init/radio1">
  109. <label ref="label"/>
  110. <value ref="value"/>
  111. </itemset>
  112. </choices>
  113. </select1>
  114. <caption id="cap_idflag" class="cell_1" style="left:0px; top:54px; width:87px; height:23px; vertical-align:middle; ">작업구분</caption>
  115. <input id="ipt_errormsg" ref="/root/temp/errormsg" visibility="hidden" style="left:45px; top:55px; width:215px; height:19px; "/>
  116. <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; ">
  117. <choices>
  118. <itemset>
  119. <label/>
  120. <value/>
  121. </itemset>
  122. </choices>
  123. </select1>
  124. <caption id="caption1" class="cell_1" style="left:0px; top:30px; width:87px; height:23px; vertical-align:middle; ">근무기관</caption>
  125. </group>
  126. <group id="grp_btn" scroll="auto" style="left:0px; top:120px; width:306px; height:27px; ">
  127. <button id="btn_save" class="btn4_letter2" style="left:250px; top:3px; width:56px; height:22px; ">
  128. <caption>작업</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. if(DUTY_PART_YN != "Y")
  132. {
  133. messageBox("인사 담당자만 작업할 수 있습니다.", "I999");
  134. return;
  135. }
  136. var dlgRslt;
  137. if(model.getValue("/root/send/paycalc/idflag") == "D")
  138. {
  139. dlgRslt = messageBox("근태 집계를", "Q001");
  140. if(dlgRslt != 6) return;
  141. dlgRslt = messageBox("계속", "Q003");
  142. if(dlgRslt != 6) return;
  143. }
  144. if(!isRequiredControls("rdo_idflag", "ipt_payym")) return;
  145. submit("TXRPD01501");
  146. if(ipt_errormsg.value !="")
  147. {
  148. messageBox(ipt_errormsg.value, "I999");
  149. }
  150. ]]>
  151. </script>
  152. </button>
  153. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:306px; y2:0px; "/>
  154. </group>
  155. </xhtml:body>
  156. </xhtml:html>