SMRWP21800_개인별소급금액조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. <payspecdata>
  11. <payamtlist/>
  12. <paytitlelist/>
  13. <payitemmap/>
  14. </payspecdata>
  15. <payspecexcel>
  16. <payamtexcellist/>
  17. </payspecexcel>
  18. </main>
  19. <init>
  20. <temp/>
  21. </init>
  22. <send>
  23. <payspec>
  24. <emplno/>
  25. <emplnm/>
  26. <saldfrayflag>3</saldfrayflag>
  27. <payfromym/>
  28. <dutdeptcd/>
  29. <instcd/>
  30. <payclsprfshipflag/>
  31. <chkyn/>
  32. <teamflag>1</teamflag>
  33. <paytotexceptyn/>
  34. <holyordflag/>
  35. </payspec>
  36. <prtdata>
  37. <instnm/>
  38. <prtuser/>
  39. <payym/>
  40. </prtdata>
  41. <payamtlist/>
  42. <payitlist/>
  43. </send>
  44. <hidden/>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. var curdate = getCurrentDate().substring(0,4);
  50. model.setValue(ipt_payfromym.attribute("ref") , curdate);
  51. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  52. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  53. misfGetUserAuth();
  54. ]]>
  55. </script>
  56. <submission id="TRRWP21801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payspecdata"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  63. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  64. </xhtml:head>
  65. <xhtml:body style="margin-left:8; margin-right:8; ">
  66. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  67. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별급여소급내역조회</caption>
  68. </group>
  69. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  70. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  71. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:17px; width:56px; height:22px; ">
  72. <caption>조회</caption>
  73. <script type="javascript" ev:event="DOMActivate">
  74. <![CDATA[
  75. if (ipt_emplnms.currentText == "" ) {
  76. messageBox("사번은 필수 입력 사항","I009");
  77. return false;
  78. }
  79. if (grd_payamtlist.nodeset.length> 0) {
  80. model.removeNodeset("/root/main/payspecdata/payamtlist");
  81. model.removeNodeset("/root/main/griddata/payspecdata/payamtlist");
  82. grd_payamtlist.nodeset = "/root/init/temp";
  83. for (var i = grd_payamtlist.cols - 1; i >= 1 ; i--) {
  84. grd_payamtlist.removeColumn(false);
  85. }
  86. grd_payamtlist.caption = "";
  87. model.refresh();
  88. grd_payamtlist.rebuild();
  89. }
  90. submit("TRRWP21801");
  91. var node = instance1.selectNodes("/root/main/payspecdata/payamtlist[1]/*");
  92. var payitemmapnode = instance1.selectNodes("/root/main/payspecdata/payitemmap[*]/payitemmap");
  93. var payitemcnt = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt") ;
  94. var payitemcnt2 = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt2") ;
  95. var primykeycnt = 6; //필수컬럼수
  96. //필수컬럼 생성
  97. if (node.length > 0 ) {
  98. for(i=0;i<primykeycnt;i++) {
  99. if (node.item(i).nodeName == 'saldfrayflag') {
  100. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; visibility:hidden; ", false);
  101. } else if (node.item(i).nodeName == 'payym' ) {
  102. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm;" + " style:" + "text-align:center; ", false);
  103. } else if (node.item(i).nodeName == 'paydd') {
  104. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm-dd;" + " style:" + "text-align:center; ", false);
  105. } else {
  106. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; ", false);
  107. }
  108. }
  109. }
  110. grd_payamtlist.colwidth(1) = 55;
  111. grd_payamtlist.colwidth(2) = 50;
  112. grd_payamtlist.colwidth(3) = 100;
  113. grd_payamtlist.colwidth(5) = 55;
  114. grd_payamtlist.colwidth(6) = 70;
  115. //급여출력마스터순서로 컬럼생성
  116. if (payitemmapnode.length > 0 ) {
  117. for(i=0;i<payitemmapnode.length;i++) {
  118. grd_payamtlist.addColumn("ref:" + payitemmapnode.item(i).value + "; type:output;" + " format:" + "(-)#,###;" + "savetype:" + "digit;" + " style:" + "text-align:right; ", false);
  119. grd_payamtlist.colwidth(i + (primykeycnt + 1)) = 80;
  120. }
  121. }
  122. grd_payamtlist.caption = model.getValue("/root/main/payspecdata/paytitlelist/paytitle") + "|" + model.getValue("/root/main/payspecdata/paytitlelist/paytitle");
  123. grd_payamtlist.nodeset = "/root/main/payspecdata/payamtlist";
  124. grd_payamtlist.frozenCols = 6;
  125. grd_payamtlist.rebuild();
  126. ]]>
  127. </script>
  128. </button>
  129. <line id="line13" class="line_4" style="x1:1120px; y1:10px; x2:1120px; y2:44px; "/>
  130. <button id="btn_emplno" class="icon_search" navindex="6" style="left:501px; top:20px; width:16px; height:16px; ">
  131. <caption/>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. var recv_list = "emplno,emplnm" ;
  135. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  136. model.refresh();
  137. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  138. btn_search.dispatch("DOMActivate");
  139. }
  140. ]]>
  141. </script>
  142. </button>
  143. <caption id="caption1" class="search_name" style="left:363px; top:20px; width:63px; height:17px; ">사번 :</caption>
  144. <input id="ipt_emplnos" ref="/root/send/payspec/emplno" class="input_default" style="left:424px; top:20px; width:72px; height:19px; ">
  145. <script type="javascript" ev:event="onkeyup">
  146. <![CDATA[
  147. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  148. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  149. }
  150. ]]>
  151. </script>
  152. <script type="javascript" ev:event="xforms-value-changed">
  153. <![CDATA[
  154. var recv_list = "emplno,emplnm" ;
  155. rpbfValidationCheck("EMPLNO", recv_list);
  156. model.refresh();
  157. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  158. btn_search.dispatch("DOMActivate");
  159. }
  160. ]]>
  161. </script>
  162. </input>
  163. <input id="ipt_emplnms" ref="/root/send/payspec/emplnm" class="input_default" style="left:520px; top:20px; width:66px; height:19px; ">
  164. <script type="javascript" ev:event="onkeyup">
  165. <![CDATA[
  166. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  167. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  168. }
  169. ]]>
  170. </script>
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. var recv_list = "emplno,emplnm" ;
  174. rpbfValidationCheck("EMPLNM", recv_list);
  175. model.refresh();
  176. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  177. btn_search.dispatch("DOMActivate");
  178. }
  179. ]]>
  180. </script>
  181. </input>
  182. <line id="line9" class="line_1" style="x1:2px; y1:69px; x2:1192px; y2:69px; "/>
  183. <caption id="caption34" class="tit_2" style="left:3px; top:54px; width:202px; height:13px; ">개인별급여소급내역조회 List</caption>
  184. <caption id="caption22" class="search_name" style="left:190px; top:20px; width:81px; height:17px; ">지급년:</caption>
  185. <input id="ipt_payfromym" ref="/root/send/payspec/payfromym" class="input_default" navindex="3" inputtype="date" format="yyyy" style="left:270px; top:20px; width:80px; height:19px; text-align:center; vertical-align:middle; "/>
  186. <datagrid id="grd_payamtlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:70px; width:1190px; height:660px; "/>
  187. <button id="btn_saveexcel" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  188. <caption>엑셀저장</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  192. if (fileName != "")
  193. {
  194. grd_payamtlist.saveExcel(fileName, "SheetName:sheet1");
  195. }
  196. ]]>
  197. </script>
  198. </button>
  199. <select1 id="cmb_instcd" ref="/root/send/payspec/instcd" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:75px; top:20px; width:105px; height:19px; ">
  200. <choices>
  201. <itemset>
  202. <label/>
  203. <value/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <caption id="caption3" class="search_name" style="left:16px; top:20px; width:61px; height:17px; ">기관:</caption>
  208. <caption id="caption5" class="search_name" style="left:363px; top:20px; width:63px; height:17px; ">사번 :</caption>
  209. <button id="button2" class="icon_search" navindex="6" style="left:501px; top:20px; width:16px; height:16px; ">
  210. <caption/>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. var recv_list = "emplno,emplnm" ;
  214. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  215. model.refresh();
  216. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  217. btn_search.dispatch("DOMActivate");
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <input id="input1" ref="/root/send/payspec/emplno" class="input_default" navindex="4" style="left:424px; top:20px; width:72px; height:19px; ">
  223. <script type="javascript" ev:event="onkeyup">
  224. <![CDATA[
  225. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  226. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  227. }
  228. ]]>
  229. </script>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. var recv_list = "emplno,emplnm" ;
  233. rpbfValidationCheck("EMPLNO", recv_list);
  234. model.refresh();
  235. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  236. btn_search.dispatch("DOMActivate");
  237. }
  238. ]]>
  239. </script>
  240. </input>
  241. <input id="input2" ref="/root/send/payspec/emplnm" class="input_default" style="left:520px; top:20px; width:66px; height:19px; ">
  242. <script type="javascript" ev:event="onkeyup">
  243. <![CDATA[
  244. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  245. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  246. }
  247. ]]>
  248. </script>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. var recv_list = "emplno,emplnm" ;
  252. rpbfValidationCheck("EMPLNM", recv_list);
  253. model.refresh();
  254. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  255. btn_search.dispatch("DOMActivate");
  256. }
  257. ]]>
  258. </script>
  259. </input>
  260. </group>
  261. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  262. </xhtml:body>
  263. </xhtml:html>