SMRAD04700_급여자료일괄기표.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <grnt>
  11. <grntlist1/>
  12. </grnt>
  13. <grnt1>
  14. <grntlist1>
  15. <count1/>
  16. <count2/>
  17. </grntlist1>
  18. </grnt1>
  19. <grnt2>
  20. <grntlist1>
  21. <instcd/>
  22. <sanctslipdd/>
  23. <sanctslipno/>
  24. </grntlist1>
  25. </grnt2>
  26. </main>
  27. <send>
  28. <paymonth>
  29. <paydd/>
  30. <sanctslipdd/>
  31. <instcd/>
  32. </paymonth>
  33. <paydedu>
  34. <instcd/>
  35. <sanctslipdd/>
  36. <sanctslipno/>
  37. </paydedu>
  38. </send>
  39. <init/>
  40. <hidden/>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. var curdate = getCurrentDate();
  46. //model.setValue(ipt_payym.attribute("ref") , curdate.substr(0,6));
  47. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  48. //model.setValue(ipt_paydd.attribute("ref") , curdate.substr(0,6) + "25" );
  49. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  50. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  51. //addComboItem("cmb_instcd","--전체--","","above");
  52. //misfComboComCdListMulti("R0112","cmb_saldfrayflag");
  53. //opt_message.text = "작업 왕료여부는 결과보기를 클릭해서 조회 하십시요.";
  54. model.setValue("/root/send/paymonth/paydd", getCurrentDate());
  55. model.setValue("/root/send/paymonth/sanctslipdd", getCurrentDate());
  56. model.refresh();
  57. fProcessChk();
  58. model.setFocus("input1");
  59. ]]>
  60. </script>
  61. <submission id="TRRAD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/main/grnt1"/>
  62. <submission id="TRRAD04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/main/grnt2"/>
  63. <submission id="TRRAD03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  64. <submission id="TXRAD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/hidden/temp"/>
  65. <submission id="TXRAD04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paymonth" resultref="/root/hidden/temp"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fProcessChk(){
  76. model.resetInstanceNode("/root/main/grnt1/grntlist1");
  77. if (submit("TRRAD04701")){
  78. var cnt = model.getValue("/root/main/grnt1/grntlist1/count1");
  79. if (cnt == "" || cnt == "0"){
  80. btn_save.disabled = false;
  81. btn_cncl.disabled = true;
  82. }else{
  83. btn_save.disabled = true;
  84. btn_cncl.disabled = false;
  85. }
  86. model.refresh();
  87. }
  88. }
  89. ]]>
  90. </script>
  91. </xhtml:head>
  92. <xhtml:body guideline="2,10;">
  93. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">급여자료일괄기표</caption>
  95. </group>
  96. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:694px; ">
  97. <select1 id="cmb_instcd" ref="/root/send/paymonth/instcd" class="combo_default" navindex="1" appearance="minimal" style="left:89px; top:31px; width:175px; height:19px; ">
  98. <choices>
  99. <itemset>
  100. <label/>
  101. <value/>
  102. </itemset>
  103. </choices>
  104. <script type="javascript" ev:event="xforms-value-changed">
  105. <![CDATA[
  106. fProcessChk();
  107. ]]>
  108. </script>
  109. </select1>
  110. <caption id="caption12" class="cell_1" style="left:0px; top:30px; width:87px; height:21px; vertical-align:middle; ">기관</caption>
  111. <caption id="caption13" class="cell_1" style="left:0px; top:118px; width:87px; height:21px; vertical-align:middle; ">기표일자</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:264px; y2:25px; "/>
  113. <caption id="caption5" class="cell_1" style="left:0px; top:73px; width:87px; height:21px; vertical-align:middle; ">급여통계일자</caption>
  114. <input id="ipt_payym" ref="/root/send/paymonth/sanctslipdd" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:119px; width:175px; height:19px; text-align:center; ">
  115. <script type="javascript" ev:event="xforms-value-changed">
  116. <![CDATA[
  117. fProcessChk();
  118. ]]>
  119. </script>
  120. </input>
  121. <button id="btn_save" class="btn4_letter2" navindex="4" style="left:150px; top:170px; width:56px; height:22px; ">
  122. <caption>실행</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. var cnt = model.getValue("/root/main/grnt1/grntlist1/count2");
  126. if (cnt == "" || cnt == "0"){
  127. messageBox("처리할 건수가 없습니다.", "E999", "");
  128. return;
  129. }
  130. var cnt1 = model.getValue("/root/main/grnt1/grntlist1/count1");
  131. if (parseInt(cnt1) > 0){
  132. messageBox("이미 처리된 자료입니다.", "E999", "");
  133. return;
  134. }
  135. if (submit("TXRAD04701")){
  136. messageBox("정상적으로 처리되었습니다.", "E999", "");
  137. fProcessChk();
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <input id="input1" ref="/root/send/paymonth/paydd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:73px; width:175px; height:19px; text-align:center; ">
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. fProcessChk();
  146. ]]>
  147. </script>
  148. </input>
  149. <button id="btn_cncl" class="btn4_letter2" navindex="4" style="left:210px; top:170px; width:56px; height:22px; ">
  150. <caption>취소</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. if (submit("TXRAD04702")){
  154. messageBox("정상적으로 취소 처리되었습니다.", "E999", "");
  155. fProcessChk();
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button1" class="btn4_letter2" navindex="4" style="left:270px; top:170px; width:56px; height:22px; ">
  161. <caption>출력</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. submit("TRRAD04702");
  165. if (datagrid1.rows < 2){
  166. messageBox("출력할 자료가 없습니다.", "E999", "");
  167. return;
  168. }
  169. for (var i = 1; i < datagrid1.rows; i++){
  170. model.setValue("/root/send/paydedu/instcd", model.getValue("/root/main/grnt2/grntlist1[" + i + "]/instcd"));
  171. model.setValue("/root/send/paydedu/sanctslipdd", model.getValue("/root/main/grnt2/grntlist1[" + i + "]/sanctslipdd"));
  172. model.setValue("/root/send/paydedu/sanctslipno", model.getValue("/root/main/grnt2/grntlist1[" + i + "]/sanctslipno"));
  173. submit("TRRAD03801");
  174. exeReportPreview("RPRAD03801", "XMLSTR" , "" , "" , "false" , "", "", "", "", "true","","","","","","","","false");
  175. }
  176. ]]>
  177. </script>
  178. </button>
  179. <datagrid id="datagrid1" nodeset="/root/main/grnt2/grntlist1" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:580px; top:85px; width:350px; height:150px; ">
  180. <col ref="instcd"/>
  181. <col ref="sanctslipdd"/>
  182. <col ref="sanctslipno"/>
  183. </datagrid>
  184. </group>
  185. </xhtml:body>
  186. </xhtml:html>