SMRWP21900_개인별소급합계금액조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  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>3</teamflag>
  33. <paytotexceptyn/>
  34. <holyordflag/>
  35. <payddtype>D</payddtype>
  36. </payspec>
  37. <prtdata>
  38. <instnm/>
  39. <prtuser/>
  40. <payym/>
  41. </prtdata>
  42. <payamtlist/>
  43. <payitlist/>
  44. </send>
  45. <hidden/>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. var curdate = getCurrentDate();
  51. model.setValue(ipt_payfromym.attribute("ref") , curdate);
  52. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  53. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  54. misfGetUserAuth();
  55. ]]>
  56. </script>
  57. <submission id="TRRWP21901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payspecdata"/>
  58. <submission id="TXRWP21901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/temp"/>
  59. <submission id="TXRWP21902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/temp"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  65. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  66. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  67. </xhtml:head>
  68. <xhtml:body style="margin-left:8; margin-right:8; ">
  69. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  70. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별급여소급합계금액조회</caption>
  71. </group>
  72. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  73. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  74. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:760px; top:17px; width:56px; height:22px; ">
  75. <caption>조회</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. if (grd_payamtlist.nodeset.length> 0) {
  79. model.removeNodeset("/root/main/payspecdata/payamtlist");
  80. model.removeNodeset("/root/main/griddata/payspecdata/payamtlist");
  81. grd_payamtlist.nodeset = "/root/init/temp";
  82. for (var i = grd_payamtlist.cols - 1; i >= 1 ; i--) {
  83. grd_payamtlist.removeColumn(false);
  84. }
  85. grd_payamtlist.caption = "";
  86. model.refresh();
  87. grd_payamtlist.rebuild();
  88. }
  89. submit("TRRWP21901");
  90. var node = instance1.selectNodes("/root/main/payspecdata/payamtlist[1]/*");
  91. var payitemmapnode = instance1.selectNodes("/root/main/payspecdata/payitemmap[*]/payitemmap");
  92. var payitemcnt = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt") ;
  93. var payitemcnt2 = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt2") ;
  94. var primykeycnt = 4; //필수컬럼수
  95. //필수컬럼 생성
  96. if (node.length > 0 ) {
  97. for(i=0;i<primykeycnt;i++) {
  98. if (node.item(i).nodeName == 'saldfrayflag' || node.item(i).nodeName == 'payfromym') {
  99. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; visibility:hidden; ", false);
  100. } else if (node.item(i).nodeName == 'payym' ) {
  101. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm;" + " style:" + "text-align:center; ", false);
  102. } else {
  103. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; ", false);
  104. }
  105. }
  106. }
  107. grd_payamtlist.colwidth(1) = 55;
  108. grd_payamtlist.colwidth(2) = 50;
  109. grd_payamtlist.colwidth(3) = 60;
  110. //급여출력마스터순서로 컬럼생성
  111. if (payitemmapnode.length > 0 ) {
  112. for(i=0;i<payitemmapnode.length;i++) {
  113. grd_payamtlist.addColumn("ref:" + payitemmapnode.item(i).value + "; type:output;" + " format:" + "(-)#,###;" + "savetype:" + "digit;" + " style:" + "text-align:right; ", false);
  114. grd_payamtlist.colwidth(i + (primykeycnt + 1)) = 80;
  115. }
  116. }
  117. grd_payamtlist.caption = model.getValue("/root/main/payspecdata/paytitlelist/paytitle") + "|" + model.getValue("/root/main/payspecdata/paytitlelist/paytitle");
  118. grd_payamtlist.nodeset = "/root/main/payspecdata/payamtlist";
  119. grd_payamtlist.frozenCols = 3;
  120. grd_payamtlist.rebuild();
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" class="line_4" style="x1:745px; y1:15px; x2:745px; y2:39px; "/>
  125. <button id="btn_emplno" class="icon_search" navindex="4" style="left:607px; top:18px; width:16px; height:16px; ">
  126. <caption/>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var recv_list = "emplno,emplnm" ;
  130. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  131. model.refresh();
  132. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  133. btn_search.dispatch("DOMActivate");
  134. }
  135. ]]>
  136. </script>
  137. </button>
  138. <input id="ipt_emplnos" ref="/root/send/payspec/emplno" class="input_default" navindex="3" style="left:530px; top:18px; width:72px; height:19px; ">
  139. <script type="javascript" ev:event="onkeyup">
  140. <![CDATA[
  141. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  142. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  143. }
  144. ]]>
  145. </script>
  146. <script type="javascript" ev:event="xforms-value-changed">
  147. <![CDATA[
  148. var recv_list = "emplno,emplnm" ;
  149. rpbfValidationCheck("EMPLNO", recv_list);
  150. model.refresh();
  151. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  152. btn_search.dispatch("DOMActivate");
  153. }
  154. ]]>
  155. </script>
  156. </input>
  157. <input id="ipt_emplnms" ref="/root/send/payspec/emplnm" class="input_default" style="left:626px; top:18px; width:74px; height:19px; ">
  158. <script type="javascript" ev:event="onkeyup">
  159. <![CDATA[
  160. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  161. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  162. }
  163. ]]>
  164. </script>
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. var recv_list = "emplno,emplnm" ;
  168. rpbfValidationCheck("EMPLNM", recv_list);
  169. model.refresh();
  170. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  171. btn_search.dispatch("DOMActivate");
  172. }
  173. ]]>
  174. </script>
  175. </input>
  176. <line id="line9" class="line_1" style="x1:0px; y1:74px; x2:1190px; y2:74px; "/>
  177. <caption id="caption34" class="tit_2" style="left:3px; top:59px; width:215px; height:13px; ">개인별급여소급합계금액 List</caption>
  178. <caption id="caption22" class="search_name" style="left:271px; top:19px; width:69px; height:17px; ">지급월</caption>
  179. <input id="ipt_payfromym" ref="/root/send/payspec/payfromym" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:340px; top:18px; width:100px; height:19px; text-align:center; vertical-align:middle; "/>
  180. <datagrid id="grd_payamtlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="6" style="left:0px; top:79px; width:1190px; height:640px; "/>
  181. <button id="btn_saveexcel" class="btn2_letter4" navindex="10" style="left:1125px; top:53px; width:64px; height:19px; ">
  182. <caption>엑셀저장</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  186. if (fileName != "")
  187. {
  188. grd_payamtlist.saveExcel(fileName, "SheetName:sheet1");
  189. }
  190. ]]>
  191. </script>
  192. </button>
  193. <select1 id="cmb_instcd" ref="/root/send/payspec/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:104px; top:18px; width:139px; height:19px; ">
  194. <choices>
  195. <itemset>
  196. <label/>
  197. <value/>
  198. </itemset>
  199. </choices>
  200. </select1>
  201. <caption id="caption3" class="search_name" style="left:47px; top:18px; width:61px; height:17px; ">기관</caption>
  202. <caption id="caption5" class="search_name" style="left:474px; top:18px; width:63px; height:17px; ">사번</caption>
  203. <select1 id="radio1" ref="/root/send/payspec/payddtype" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:445px; top:50px; width:145px; height:20px; text-align:center; border-style:none; ">
  204. <choices>
  205. <item>
  206. <label>년별</label>
  207. <value>Y</value>
  208. </item>
  209. <item>
  210. <label>월별</label>
  211. <value>M</value>
  212. </item>
  213. <item>
  214. <label>일자</label>
  215. <value>D</value>
  216. </item>
  217. </choices>
  218. </select1>
  219. <caption id="caption1" class="search_name" visibility="hidden" style="left:375px; top:50px; width:63px; height:17px; ">조건 :</caption>
  220. <button id="btn_inputexcel" class="btn2_letter4" navindex="9" style="left:1058px; top:53px; width:64px; height:19px; ">
  221. <caption>엑셀입력</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  225. grd_payamtlist.loadExcel(fileName, 1, true);
  226. // for (var i = 1; i < grd_payamtlist.rows; i ++){
  227. // grd_payamtlist.rowStatus(i) = 1;
  228. // model.setValue("/root/main/grnt/grntlist1[" + i + "]/foodgb", model.getValue("/root/send/paydedu/foodgb"));
  229. // model.setValue("/root/main/grnt/grntlist1[" + i + "]/payym", model.getValue("/root/send/paydedu/payym"));
  230. // }
  231. grd_payamtlist.refresh();
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="btn_grddelpaydedulist" class="btn2_letter3" navindex="8" style="left:1002px; top:53px; width:53px; height:19px; ">
  236. <caption>행삭제</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. //grd_dutsumlist.deleteRow(grd_dutsumlist.row);
  240. deleteSelectedRows(grd_payamtlist, true);
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="btn_grdaddpaydedulist" class="btn2_letter3" navindex="7" style="left:946px; top:53px; width:53px; height:19px; ">
  245. <caption>행추가</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. grd_payamtlist.addRow();
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </button>
  253. </group>
  254. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  255. <button id="button1" class="btn4_letter6" navindex="12" style="left:1090px; top:2px; width:104px; height:22px; ">
  256. <caption>급여차액계산</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. //grd_payamtlist.getUpdateDataAll('u');
  260. model.makeValue("/root/send/payamtlist",grd_payamtlist.getUpdateDataAll('u'));
  261. submit("TXRWP21901");
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="button2" class="btn4_letter8" navindex="11" style="left:960px; top:2px; width:128px; height:22px; ">
  266. <caption>급여차액총액계산</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. //grd_payamtlist.getUpdateDataAll('u');
  270. model.makeValue("/root/send/payamtlist",grd_payamtlist.getUpdateDataAll('u'));
  271. submit("TXRWP21902");
  272. ]]>
  273. </script>
  274. </button>
  275. <line id="line19" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>