SMRWP03100_기간별급여내역조회.xrw 13 KB

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