SMRWP07000_급여지급대장출력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. <payamtlist/>
  11. </main>
  12. <init/>
  13. <send>
  14. <payym/>
  15. <instcd/>
  16. <instcdnm/>
  17. <deptcd/>
  18. <deptnm/>
  19. <emplno/>
  20. <emplnm/>
  21. <prfshipflag/>
  22. <saldfrayflag/>
  23. <paytoym/>
  24. <holyordflag/>
  25. <jobkindcd/>
  26. </send>
  27. <send1>
  28. <payamtlist/>
  29. </send1>
  30. <send2>
  31. <payamtlist/>
  32. </send2>
  33. <hidden/>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. misfComboInstCdListMulti("cmb_payinst",getCurrentDate(),"","N");
  39. misfComboComCdListMulti("R0061,R0066,R0112", "cmb_jobkindcd,cmb_holyordflag,cmb_SalDfrayFlag");
  40. addComboItem("cmb_jobkindcd","--전체--","","above");
  41. addComboItem("cmb_holyordflag","--전체--","","above");
  42. makeReportPreview(0,110,1195,650);
  43. //rszfComboAppendBlankChild("cmb_holyordflag");
  44. model.setValue(cmb_holyordflag.attribute("ref") , "1");
  45. var today = getCurrentDate();
  46. var cur_yymm = parseInt(today.substring(0, 6));
  47. model.setValue("/root/send/payym", cur_yymm);
  48. model.setValue("/root/send/paytoym", cur_yymm);
  49. model.setValue("/root/send/saldfrayflag", "1");
  50. ipt_payym.refresh();
  51. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  52. misfGetUserAuth();
  53. if (DUTY_PAY_YN == "Y" ) {
  54. cmb_payinst.disabled = false;
  55. }
  56. else {
  57. cmb_payinst.disabled = true;
  58. }
  59. model.refresh();
  60. ]]>
  61. </script>
  62. <submission id="TRRWP07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/payamtlist"/>
  63. <submission id="TXRWP07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2/payamtlist"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  71. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  72. </xhtml:head>
  73. <xhtml:body style="margin-left:8; margin-right:8; ">
  74. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  75. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">급여 지급대장 출력</caption>
  76. </group>
  77. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  78. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:60; background-color:#fffbf2; border-color:#ffd799; "/>
  79. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:28; width:56px; height:22px; ">
  80. <caption>조회</caption>
  81. <script type="javascript" ev:event="DOMActivate">
  82. <![CDATA[
  83. submit("TRRWP07001");
  84. ipt_payinstnm.value = cmb_payinst.label;
  85. if (model.getValue("/root/send/saldfrayflag") == "1" || model.getValue("/root/send/saldfrayflag") == "8" || model.getValue("/root/send/saldfrayflag") == "E" || model.getValue("/root/send/saldfrayflag") == "A"){
  86. //if (model.getValue("/root/send/holyordflag") == "1"){
  87. exeReportPreview("RPRWP07000", "XMLSTR");//, "/root/main/payamt");
  88. //}else{
  89. //exeReportPreview("RPRWP07002", "XMLSTR");//, "/root/main/payamt");
  90. //}
  91. }else{
  92. exeReportPreview("RPRWP07003", "XMLSTR");//, "/root/main/payamt");
  93. }
  94. ]]>
  95. </script>
  96. </button>
  97. <line id="line13" class="line_4" style="x1:1120px; y1:14; x2:1120px; y2:64; "/>
  98. <caption id="cap_payinst" class="search_name" style="left:310px; top:19px; width:86px; height:17px; ">급여기관:</caption>
  99. <select1 id="cmb_payinst" ref="/root/send/instcd" class="combo_s_essential" navindex="3" appearance="minimal" style="left:391px; top:18px; width:179px; height:19px; ">
  100. <choices>
  101. <itemset>
  102. <label/>
  103. <value/>
  104. </itemset>
  105. </choices>
  106. </select1>
  107. <caption id="caption22" class="search_name" style="left:10px; top:19px; width:85px; height:17px; ">지급월:</caption>
  108. <input id="ipt_payym" ref="/root/send/payym" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:79px; top:18px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
  109. <caption id="caption28" class="tit_2" style="left:5px; top:75; width:144px; height:14px; ">급여 지급대장</caption>
  110. <line id="line193" class="line_1" style="x1:2px; y1:90; x2:1192px; y2:90; "/>
  111. <input id="ipt_payinstnm" ref="/root/send/instcdnm" visibility="hidden" style="left:105px; top:70px; width:100px; height:19px; "/>
  112. <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_default" style="left:185px; top:44px; width:94px; height:19px; ">
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. misfValidationCheck("02", "", "deptcd,deptnm" );
  116. model.refresh();
  117. ]]>
  118. </script>
  119. </input>
  120. <button id="btn_deptcd" class="icon_search" navindex="6" style="left:167px; top:45px; width:16px; height:16px; ">
  121. <caption/>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. var recv_list = "deptcd,deptnm";
  125. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
  126. model.refresh();
  127. ]]>
  128. </script>
  129. </button>
  130. <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_default" style="left:80px; top:44px; width:85px; height:19px; ">
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. misfValidationCheck("02", "", "deptcd,deptnm" );
  134. model.refresh();
  135. ]]>
  136. </script>
  137. </input>
  138. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_default" style="left:470px; top:44px; width:99px; height:19px; ">
  139. <script type="javascript" ev:event="onkeyup">
  140. <![CDATA[
  141. if (ipt_emplnm.currentText != null && ipt_emplnm.currentText != "" ) {
  142. inputEnterKey("ipt_emplnm", "xforms-value-changed");
  143. inputEnterKey("btn_search", "DOMActivate");
  144. }
  145. ]]>
  146. </script>
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. var recv_list = "emplno,emplnm" ;
  150. rpbfValidationCheck("EMPLNM", recv_list);
  151. model.refresh();
  152. ]]>
  153. </script>
  154. </input>
  155. <button id="btn_emplno" class="icon_search" navindex="7" style="left:451px; top:45px; width:16px; height:16px; ">
  156. <caption/>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var recv_list = "emplno,emplnm" ;
  160. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  161. model.refresh();
  162. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  163. btn_search.dispatch("DOMActivate");
  164. }
  165. ]]>
  166. </script>
  167. </button>
  168. <input id="ipt_emplno" ref="/root/send/emplno" class="input_default" style="left:391px; top:44px; width:55px; height:19px; ">
  169. <script type="javascript" ev:event="onkeyup">
  170. <![CDATA[
  171. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  172. inputEnterKey("ipt_emplno", "xforms-value-changed");
  173. inputEnterKey("btn_search", "DOMActivate");
  174. }
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. var recv_list = "emplno,emplnm" ;
  180. rpbfValidationCheck("EMPLNO", recv_list);
  181. model.refresh();
  182. ]]>
  183. </script>
  184. </input>
  185. <caption id="caption1" class="search_name" style="left:610px; top:46px; width:86px; height:17px; ">직 종:</caption>
  186. <caption id="caption2" class="search_name" style="left:10; top:45; width:86px; height:17px; ">부 서:</caption>
  187. <caption id="caption3" class="search_name" style="left:310px; top:45px; width:86px; height:17px; ">사 번:</caption>
  188. <select1 id="cmb_jobkindcd" ref="/root/send/jobkindcd" class="combo_s_essential" navindex="8" appearance="minimal" style="left:691px; top:44px; width:125px; height:19px; ">
  189. <choices>
  190. <itemset>
  191. <label/>
  192. <value/>
  193. </itemset>
  194. </choices>
  195. </select1>
  196. <caption id="caption21" class="search_name" style="left:610px; top:19px; width:86px; height:17px; ">급여종류:</caption>
  197. <select1 id="cmb_SalDfrayFlag" ref="/root/send/saldfrayflag" class="combo_s_essential" navindex="4" appearance="minimal" style="left:691px; top:18px; width:125px; height:19px; ">
  198. <choices>
  199. <itemset>
  200. <label/>
  201. <value/>
  202. </itemset>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. /*
  207. if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
  208. cmb_payinst.disabled = false;
  209. }
  210. else {
  211. cmb_payinst.disabled = true;
  212. model.setValue(cmb_payinst.attribute("ref") , getUserInfo("dutplceinstcd"));
  213. }
  214. if (cmb_SalDfrayFlag.value == "2") {
  215. misfComboComCdListMulti("Z0007,R0058,R0066,R0112", "cmb_payinst,cmb_prfshipflag,cmb_holyordflag,cmb_SalDfrayFlag");
  216. }
  217. else {
  218. misfComboInstCdListMulti("cmb_payinst",getCurrentDate(),"","N");
  219. misfComboComCdListMulti("R0058,R0066,R0112", "cmb_prfshipflag,cmb_holyordflag,cmb_SalDfrayFlag");
  220. //rszfComboAppendBlankChild("cmb_holyordflag");
  221. model.setValue(cmb_holyordflag.attribute("ref") , "1");
  222. }
  223. model.refresh();
  224. */
  225. ]]>
  226. </script>
  227. </select1>
  228. <input id="ipt_paytoym" ref="/root/send/paytoym" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:185px; top:18px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
  229. <caption id="caption4" style="left:175px; top:18px; width:10px; height:20px; ">-</caption>
  230. <caption id="caption5" class="search_name" visibility="hidden" style="left:858px; top:19px; width:87px; height:17px; ">직원구분 :</caption>
  231. <select1 id="cmb_holyordflag" ref="/root/send/holyordflag" class="combo_s_essential" navindex="5" visibility="hidden" appearance="minimal" style="left:945px; top:18px; width:100px; height:19px; ">
  232. <choices>
  233. <itemset>
  234. <label/>
  235. <value/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. </group>
  240. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  241. <button id="button51" class="btn2_letter4" visibility="hidden" style="left:860px; top:85px; width:64px; height:19px; ">
  242. <caption>메일전송</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. /*
  246. var cnt = model.instances(0).selectNodes("/root/main/payamtlist").length;
  247. for (var i = cnt; i > 2; i--)
  248. {
  249. model.removenode("/root/main/payamtlist[" + i + "]");
  250. }
  251. model.refresh();
  252. cnt = model.instances(0).selectNodes("/root/main/payamtlist").length;
  253. cnt = cnt + 1;
  254. */
  255. /*
  256. for (var i = 1; i < cnt; i++)
  257. {
  258. //model.setValue("/root/main/payamtlist[" + i + "]/email", "hicuky@gmail.com");
  259. model.setValue("/root/main/payamtlist[" + i + "]/email", "rjj6703@korea.com");
  260. //model.setValue("/root/main/payamtlist[" + i + "]/email", "koodoh@korea.com");
  261. //model.setValue("/root/main/payamtlist[" + i + "]/email", "nayj76@sejongh.co.kr");
  262. }
  263. model.refresh();
  264. */
  265. //model.setValue("/root/main/payamtlist/email", "rjj6703@korea.com");
  266. //alert(getNodesetCount("/root/main/payamtlist"));
  267. if( getNodesetCount("/root/main/payamtlist") > 0 ){
  268. var irow = parseInt(getNodesetCount("/root/main/payamtlist")) + 1;
  269. //alert(irow);
  270. for (var i = 1; i < irow; i++){
  271. //model.copyNode("/root/send2/payamtlist", "/root/main/payamtlist[" + i +"]");
  272. copyNodesetType("/root/send2/payamtlist", "/root/main/payamtlist[" + i +"]", "replace", model, model);
  273. //alert(irow + "==" + i);
  274. //model.refresh();
  275. submit("TXRWP07001");
  276. }
  277. }
  278. messageBox("정상적으로 전송되었습니다.", "E999", "");
  279. ]]>
  280. </script>
  281. </button>
  282. </xhtml:body>
  283. </xhtml:html>