SMRWP03110_기간별급여합산조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. </payspecdata>
  14. <payamtexcel>
  15. <payamtexcellist/>
  16. </payamtexcel>
  17. </main>
  18. <init>
  19. <temp/>
  20. </init>
  21. <send>
  22. <payspec>
  23. <emplno/>
  24. <emplnm/>
  25. <saldfrayflag/>
  26. <payfromym/>
  27. <instcd/>
  28. <payclsprfshipflag/>
  29. <paytoym/>
  30. </payspec>
  31. <prtdata>
  32. <instnm/>
  33. <prtuser/>
  34. <payym/>
  35. </prtdata>
  36. </send>
  37. <hidden/>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. /* Combo Data Setting
  43. misfComboComCdListMulti(공통코드군, Combo) */
  44. var curdate = getCurrentDate();
  45. model.setValue(ipt_payfromym.attribute("ref") , curdate.substr(0,6));
  46. model.setValue(ipt_paytoym.attribute("ref") , curdate.substr(0,6));
  47. model.setValue(cmb_SalDfrayFlag.attribute("ref"), "1");
  48. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  49. misfComboComCdListMulti("R0112,R0097","cmb_SalDfrayFlag,cmb_payclsprfshipflag");
  50. addComboItem( "cmb_payclsprfshipflag", "[-- 전체 --]", "%", "above");
  51. addComboItem( "cmb_SalDfrayFlag", "[-- 전체 --]", "%", "above");
  52. //addComboItem( "cmb_SalDfrayFlag", "[-- 전체 --]", "%", "above");
  53. addComboItem("cmb_instcd","[-- 전체 --]","%","above");
  54. model.setValue(cmb_payclsprfshipflag.attribute("ref"), "%");
  55. cmb_payclsprfshipflag.refresh();
  56. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  57. misfGetUserAuth();
  58. if (DUTY_PAY_YN == "Y" ) {
  59. cmb_instcd.disabled = false;
  60. }
  61. else {
  62. cmb_instcd.disabled = true;
  63. }
  64. model.setFocus("cmb_instcd");
  65. ]]>
  66. </script>
  67. <submission id="TRRWP03111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payspecdata"/>
  68. <submission id="TRRWP03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payamtexcel"/>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  74. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  75. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  76. </xhtml:head>
  77. <xhtml:body style="margin-left:8; margin-right:8; ">
  78. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  79. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기간별급여합계내역조회</caption>
  80. </group>
  81. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  82. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  83. <button id="btn_search" class="btn1_letter2" navindex="9" style="left:1130px; top:17px; width:56px; height:22px; ">
  84. <caption>조회</caption>
  85. <script type="javascript" ev:event="DOMActivate">
  86. <![CDATA[
  87. if (grd_payamtlist.nodeset.length> 0) {
  88. //model.removeNodeset(grd_payamtlist.nodeset);
  89. model.removeNodeset(grd_payamtlist.nodeset);
  90. grd_payamtlist.nodeset = "/root/init/temp";
  91. //"/root/main/payspecdata/payamtlist"
  92. for (var i = grd_payamtlist.cols - 1; i >= 1 ; i--) {
  93. grd_payamtlist.removeColumn(false);
  94. }
  95. grd_payamtlist.caption = "";
  96. model.refresh();
  97. grd_payamtlist.rebuild();
  98. }
  99. submit("TRRWP03111");
  100. var node = instance1.selectNodes("/root/main/payspecdata/payamtlist[1]/*");
  101. var payitemcnt = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt") ;
  102. for(i=0;i<payitemcnt;i++) {
  103. if (i < 22 ) {
  104. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" , false);
  105. }
  106. else if (i == 138) {
  107. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" , false);
  108. }
  109. else {
  110. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "(-)#,###;" + " style:" + "text-align:right; ", false);
  111. }
  112. }
  113. grd_payamtlist.colAttribute(grd_payamtlist.colRef("payitem151"), "format") = "";
  114. var saldfrayflag = model.getValue("/root/send/payspec/saldfrayflag");
  115. if (saldfrayflag == "3") {
  116. grd_payamtlist.colwidth(18) = 60;
  117. grd_payamtlist.colwidth(19) = 60;
  118. grd_payamtlist.colwidth(20) = 100;
  119. grd_payamtlist.colwidth(21) = 100;
  120. grd_payamtlist.colwidth(22) = 100;
  121. }
  122. else {
  123. grd_payamtlist.colwidth(18) = 0;
  124. grd_payamtlist.colwidth(19) = 0;
  125. grd_payamtlist.colwidth(20) = 0;
  126. grd_payamtlist.colwidth(21) = 0;
  127. grd_payamtlist.colwidth(22) = 0;
  128. }
  129. grd_payamtlist.frozenCols = 2;
  130. grd_payamtlist.caption = model.getValue("/root/main/payspecdata/paytitlelist/paytitle") + "|" + model.getValue("/root/main/payspecdata/paytitlelist/paytitle");
  131. grd_payamtlist.nodeset = "/root/main/payspecdata/payamtlist";
  132. grd_payamtlist.rebuild();
  133. grd_payamtlist.subtotalposition = "below";
  134. for(i=0;i<payitemcnt;i++) {
  135. if (i >= 22 && i <= 142) {
  136. grd_payamtlist.subtotal("sum",-1 , grd_payamtlist.colRef(node.item(i).nodeName), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  137. }
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <line id="line13" class="line_4" style="x1:1120px; y1:10px; x2:1120px; y2:44px; "/>
  143. <button id="btn_emplno" class="icon_search" navindex="7" style="left:1011px; top:18px; width:16px; height:16px; ">
  144. <caption/>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. var recv_list = "emplno,emplnm" ;
  148. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  149. model.refresh();
  150. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  151. btn_search.dispatch("DOMActivate");
  152. }
  153. ]]>
  154. </script>
  155. </button>
  156. <caption id="caption1" class="search_name" style="left:890px; top:18px; width:63px; height:17px; ">사번 :</caption>
  157. <input id="ipt_emplnos" ref="/root/send/payspec/emplno" class="input_default" navindex="6" style="left:951px; top:18px; width:57px; height:19px; ">
  158. <script type="javascript" ev:event="onkeyup">
  159. <![CDATA[
  160. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  161. inputEnterKey("ipt_emplnos", "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("EMPLNO", 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. <input id="ipt_emplnms" ref="/root/send/payspec/emplnm" class="input_default" navindex="8" style="left:1030px; top:18px; width:71px; height:19px; ">
  177. <script type="javascript" ev:event="onkeyup">
  178. <![CDATA[
  179. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  180. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  181. }
  182. ]]>
  183. </script>
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. var recv_list = "emplno,emplnm" ;
  187. rpbfValidationCheck("EMPLNM", recv_list);
  188. model.refresh();
  189. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  190. btn_search.dispatch("DOMActivate");
  191. }
  192. ]]>
  193. </script>
  194. </input>
  195. <line id="line9" class="line_1" style="x1:2px; y1:69px; x2:1192px; y2:69px; "/>
  196. <caption id="caption34" class="tit_2" style="left:3px; top:54px; width:144px; height:14px; ">급여 합산 내역 List</caption>
  197. <caption id="caption21" class="search_name" style="left:205px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  198. <select1 id="cmb_SalDfrayFlag" ref="/root/send/payspec/saldfrayflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:286px; top:17px; width:95px; height:19px; ">
  199. <choices>
  200. <itemset>
  201. <label/>
  202. <value/>
  203. </itemset>
  204. </choices>
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. /*
  208. if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
  209. cmb_instcd.disabled = false;
  210. misfComboComCdListMulti("Z0007,R0112,R0097","cmb_instcd,cmb_SalDfrayFlag,cmb_payclsprfshipflag");
  211. }
  212. else {
  213. cmb_instcd.disabled = true;
  214. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  215. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  216. }
  217. model.refresh();
  218. */
  219. ]]>
  220. </script>
  221. </select1>
  222. <caption id="caption22" class="search_name" style="left:400px; top:18px; width:55px; height:17px; ">기간:</caption>
  223. <input id="ipt_payfromym" ref="/root/send/payspec/payfromym" class="input_default" navindex="3" inputtype="date" format="yyyy-mm" style="left:455px; top:17px; width:106px; height:19px; text-align:center; vertical-align:middle; "/>
  224. <datagrid id="grd_payamtlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:75px; width:1190px; height:660px; "/>
  225. <button id="btn_saveexcel" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  226. <caption>엑셀저장</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. /*
  230. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  231. if (fileName != "")
  232. {
  233. //grd_payamtlist.saveExcel(fileName, "sheetname:sheet1");
  234. var param = "&instcd=" + model.getValue("/root/send/payspec/instcd");
  235. param += "&saldfrayflag=" + model.getValue("/root/send/payspec/saldfrayflag");
  236. param += "&payfromym=" + model.getValue("/root/send/payspec/payfromym");
  237. param += "&emplno=" + model.getValue("/root/send/payspec/emplno");
  238. param += "&payclsprfshipflag=" + model.getValue("/root/send/payspec/payclsprfshipflag");
  239. param += "&paytoym=" + model.getValue("/root/send/payspec/paytoym");
  240. //model.download(getActionURL("TRRWP02102")+"&param=live",fileName);
  241. //alert(getActionURL("TRRWP02103") );
  242. model.download(getActionURL("TRRWP03102") + param, fileName, true);
  243. window.exec(fileName);
  244. //submit("TRRWP02102");
  245. }
  246. */
  247. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  248. if (fileName != "")
  249. {
  250. grd_payamtlist.saveExcel(fileName, "sheetname:savetype");
  251. }
  252. ]]>
  253. </script>
  254. </button>
  255. <select1 id="cmb_instcd" ref="/root/send/payspec/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:61px; top:17px; width:129px; height:19px; ">
  256. <choices>
  257. <itemset>
  258. <label/>
  259. <value/>
  260. </itemset>
  261. </choices>
  262. </select1>
  263. <caption id="caption3" class="search_name" style="left:5px; top:18px; width:56px; height:17px; ">기관:</caption>
  264. <select1 id="cmb_payclsprfshipflag" ref="/root/send/payspec/payclsprfshipflag" class="combo_s_essential" navindex="5" appearance="minimal" style="left:779px; top:18px; width:100px; height:19px; ">
  265. <choices>
  266. <itemset>
  267. <label/>
  268. <value/>
  269. </itemset>
  270. </choices>
  271. </select1>
  272. <caption id="caption4" class="search_name" style="left:692px; top:19px; width:92px; height:17px; ">호봉구분 :</caption>
  273. <input id="ipt_paytoym" ref="/root/send/payspec/paytoym" class="input_default" navindex="4" inputtype="date" format="yyyy-mm" style="left:580px; top:17px; width:106px; height:19px; text-align:center; vertical-align:middle; "/>
  274. <caption id="caption2" style="left:565px; top:17px; width:10px; height:20px; ">-</caption>
  275. </group>
  276. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  277. </xhtml:body>
  278. </xhtml:html>