SMRWP02200_부서별급여내역조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. </main>
  15. <init>
  16. <temp/>
  17. </init>
  18. <send>
  19. <payspec>
  20. <saldfrayflag/>
  21. <payfromym/>
  22. <paytoym/>
  23. <dutdeptcd/>
  24. <instcd/>
  25. <payclsprfshipflag/>
  26. <holyordflag/>
  27. </payspec>
  28. </send>
  29. <hidden/>
  30. </root>
  31. </instance>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. /* Combo Data Setting
  35. misfComboComCdListMulti(공통코드군, Combo) */
  36. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  37. misfComboComCdListMulti("R0112,R0066,R0097","cmb_SalDfrayFlag,cmb_holyordflag,cmb_payclsprfshipflag");
  38. var curdate = getCurrentDate();
  39. var cvtdate = curdate.toDate("YYYYMM");
  40. //model.setValue(ipt_payfromym.attribute("ref") , cvtdate.getAddDate(-1,"M").getDateFormat("YYYYMM"));
  41. model.setValue(ipt_payfromym.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM"));
  42. model.setValue(ipt_paytoym.attribute("ref") , model.getValue(ipt_payfromym.attribute("ref")));
  43. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  44. model.setValue(cmb_SalDfrayFlag.attribute("ref") , "1");
  45. rszfComboAppendBlankChild("cmb_payclsprfshipflag");
  46. rszfComboAppendBlankChild("cmb_holyordflag");
  47. model.setValue(cmb_payclsprfshipflag.attribute("ref") , "");
  48. model.setValue(cmb_holyordflag.attribute("ref") , "");
  49. misfGetUserAuth();
  50. if (DUTY_PAY_YN == "Y" ) {
  51. cmb_instcd.disabled = false;
  52. }
  53. else {
  54. cmb_instcd.disabled = true;
  55. }
  56. model.refresh();
  57. model.setFocus("cmb_instcd");
  58. ]]>
  59. </script>
  60. <submission id="TRRWP02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payspecdata"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  68. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  69. </xhtml:head>
  70. <xhtml:body style="margin-left:8; margin-right:8; ">
  71. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부서별 급여 내역 조회</caption>
  73. </group>
  74. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  75. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  76. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1130px; top:17px; width:56px; height:22px; ">
  77. <caption>조회</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. if (grd_payamtlist.nodeset.length> 0) {
  81. model.removeNodeset("/root/main/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("TRRWP02201");
  91. var node = instance1.selectNodes("/root/main/payspecdata/payamtlist[1]/*");
  92. var payitemcnt = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt") ;
  93. for(i=0;i<payitemcnt;i++) {
  94. if (i == 0) {
  95. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:left; ", false);
  96. }
  97. else {
  98. //grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "(-)#,###;" + " style:" + "text-align:right; ", false);
  99. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "(-)#,###;" + "savetype:" + "digit;" + " style:" + "text-align:right; ", false);
  100. }
  101. }
  102. if(grd_payamtlist.cols > 3)
  103. {
  104. grd_payamtlist.colwidth(1) = 150;
  105. grd_payamtlist.colwidth(2) = 50;
  106. grd_payamtlist.frozenCols = 2;
  107. }
  108. grd_payamtlist.caption = model.getValue("/root/main/payspecdata/paytitlelist/paytitle") + "|" + model.getValue("/root/main/payspecdata/paytitlelist/paytitle");
  109. grd_payamtlist.nodeset = "/root/main/payspecdata/payamtlist";
  110. grd_payamtlist.rebuild();
  111. grd_payamtlist.subtotalposition = "below";
  112. if (node.length > 0 ) {
  113. for(i=0;i<payitemcnt;i++) {
  114. if (i >= 1) {
  115. grd_payamtlist.subtotal("sum",-1 , grd_payamtlist.colRef(node.item(i).nodeName), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  116. }
  117. }
  118. }
  119. // model.refresh();
  120. // grd_payamtlist.refresh();
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" class="line_4" style="x1:1120px; y1:10px; x2:1120px; y2:44px; "/>
  125. <line id="line9" class="line_1" style="x1:2px; y1:69px; x2:1192px; y2:69px; "/>
  126. <caption id="caption34" class="tit_2" style="left:3px; top:54px; width:157px; height:13px; ">부서별 급여 내역 List</caption>
  127. <caption id="caption21" class="search_name" style="left:205px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  128. <select1 id="cmb_SalDfrayFlag" ref="/root/send/payspec/saldfrayflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:286px; top:16px; width:125px; height:19px; ">
  129. <choices>
  130. <itemset>
  131. <label/>
  132. <value/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
  138. cmb_instcd.disabled = false;
  139. }
  140. else {
  141. cmb_instcd.disabled = true;
  142. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  143. }
  144. if (cmb_SalDfrayFlag.value == "2") {
  145. misfComboComCdListMulti("R0112,R0097,R0066,Z0007","cmb_SalDfrayFlag,cmb_payclsprfshipflag,cmb_holyordflag,cmb_instcd");
  146. addComboItem( "cmb_instcd", "[-- 전체 --]", " ", "above");
  147. addComboItem( "cmb_payclsprfshipflag", "[-- 전체 --]", " ", "above");
  148. rszfComboAppendBlankChild("cmb_holyordflag");
  149. model.setValue(cmb_instcd.attribute("ref"), " ");
  150. }
  151. else {
  152. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  153. misfComboComCdListMulti("R0112,R0066,R0097","cmb_SalDfrayFlag,cmb_holyordflag,cmb_payclsprfshipflag");
  154. addComboItem( "cmb_payclsprfshipflag", "[-- 전체 --]", " ", "above");
  155. rszfComboAppendBlankChild("cmb_holyordflag");
  156. model.setValue(cmb_payclsprfshipflag.attribute("ref"), " ");
  157. model.setValue(cmb_holyordflag.attribute("ref"), "");
  158. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  159. }
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </select1>
  164. <caption id="caption22" class="search_name" style="left:420px; top:18px; width:85px; height:17px; ">지급월:</caption>
  165. <input id="ipt_payfromym" ref="/root/send/payspec/payfromym" class="input_default" navindex="3" inputtype="date" format="yyyy-mm" style="left:489px; top:16px; width:106px; height:19px; text-align:center; vertical-align:middle; "/>
  166. <datagrid id="grd_payamtlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:75px; width:1190px; height:660px; "/>
  167. <button id="btn_saveexcel" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  168. <caption>엑셀저장</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  172. if (fileName != "")
  173. {
  174. //grd_payamtlist.saveExcel(fileName);
  175. grd_payamtlist.saveExcel(fileName, "SheetName:sheet1");
  176. }
  177. ]]>
  178. </script>
  179. </button>
  180. <select1 id="cmb_instcd" ref="/root/send/payspec/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:69px; top:17px; width:125px; height:19px; ">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <caption id="caption3" class="search_name" style="left:10px; top:18px; width:61px; height:17px; ">기관:</caption>
  189. <select1 id="cmb_holyordflag" ref="/root/send/payspec/holyordflag" class="combo_s_essential" navindex="5" appearance="minimal" style="left:805px; top:16px; width:100px; height:19px; ">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <caption id="caption4" class="search_name" style="left:718px; top:18px; width:87px; height:17px; ">직원구분 :</caption>
  198. <input id="ipt_paytoym" ref="/root/send/payspec/paytoym" class="input_default" navindex="4" visibility="visible" inputtype="date" format="yyyy-mm" style="left:597px; top:16px; width:106px; height:19px; text-align:center; vertical-align:middle; "/>
  199. <select1 id="cmb_payclsprfshipflag" ref="/root/send/payspec/payclsprfshipflag" class="combo_s_essential" navindex="6" appearance="minimal" style="left:1005px; top:16px; width:100px; height:19px; ">
  200. <choices>
  201. <itemset>
  202. <label/>
  203. <value/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <caption id="caption1" class="search_name" style="left:918px; top:18px; width:87px; height:17px; ">호봉구분 :</caption>
  208. </group>
  209. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  210. </xhtml:body>
  211. </xhtml:html>