SMRWP10300_소급분조회.xrw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. <emplno/>
  21. <emplnm/>
  22. <saldfrayflag>1</saldfrayflag>
  23. <payfromym/>
  24. <instcd/>
  25. <chkyn/>
  26. <teamflag>3</teamflag>
  27. </payspec>
  28. <prtdata>
  29. <instnm/>
  30. <prtuser/>
  31. <payym/>
  32. </prtdata>
  33. </send>
  34. <hidden/>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. /* Combo Data Setting
  40. misfComboComCdListMulti(공통코드군, Combo) */
  41. var curdate = getCurrentDate();
  42. model.setValue(ipt_payfromym.attribute("ref") , curdate.substr(0,6));
  43. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  44. misfComboComCdListMulti("Z0007","cmb_instcd");
  45. misfGetUserAuth();
  46. if (DUTY_PAY_YN == "Y" ) {
  47. cmb_instcd.disabled = false;
  48. }
  49. else {
  50. cmb_instcd.disabled = true;
  51. }
  52. model.setFocus("cmb_instcd");
  53. ]]>
  54. </script>
  55. <submission id="TRRWP10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payspec" resultref="/root/main/payspecdata"/>
  56. </model>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  62. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  63. </xhtml:head>
  64. <xhtml:body style="margin-left:8; margin-right:8; ">
  65. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  66. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">소급분 조회</caption>
  67. </group>
  68. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  69. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  70. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:17px; width:56px; height:22px; ">
  71. <caption>조회</caption>
  72. <script type="javascript" ev:event="DOMActivate">
  73. <![CDATA[
  74. if (grd_payamtlist.nodeset.length> 0) {
  75. model.removeNodeset("/root/main/payspecdata/payamtlist");
  76. grd_payamtlist.nodeset = "/root/init/temp";
  77. //for (var i = grd_payamtlist.cols; i >= grd_payamtlist.fixedCols ; i--) {
  78. for (var i = grd_payamtlist.cols - 1; i >= 1 ; i--) {
  79. grd_payamtlist.removeColumn(false);
  80. }
  81. grd_payamtlist.caption = "";
  82. model.refresh();
  83. grd_payamtlist.rebuild();
  84. }
  85. submit("TRRWP10301");
  86. var node = instance1.selectNodes("/root/main/payspecdata/payamtlist[1]/*");
  87. var payitemcnt = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt") ;
  88. var payitemcnt2 = model.getValue("/root/main/payspecdata/paytitlelist/payitemcnt2") ;
  89. if (node.length > 0 ) {
  90. for(i=0;i<payitemcnt;i++) {
  91. if (i < 18 ) {
  92. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" , false);
  93. }
  94. else {
  95. if ( i > payitemcnt2 ){
  96. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; ", false);
  97. }
  98. else{
  99. grd_payamtlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "(-)#,###;" + " style:" + "text-align:right; ", false);
  100. }
  101. }
  102. }
  103. var saldfrayflag = model.getValue("/root/send/payspec/saldfrayflag");
  104. grd_payamtlist.colwidth(19) = 0;
  105. grd_payamtlist.colwidth(20) = 0;
  106. grd_payamtlist.colwidth(21) = 0;
  107. grd_payamtlist.colwidth(22) = 0;
  108. grd_payamtlist.colwidth(23) = 0;
  109. grd_payamtlist.frozenCols = 3;
  110. }
  111. grd_payamtlist.caption = model.getValue("/root/main/payspecdata/paytitlelist/paytitle") + "|" + model.getValue("/root/main/payspecdata/paytitlelist/paytitle");
  112. grd_payamtlist.nodeset = "/root/main/payspecdata/payamtlist";
  113. grd_payamtlist.rebuild();
  114. ]]>
  115. </script>
  116. </button>
  117. <line id="line13" class="line_4" style="x1:1120px; y1:10px; x2:1120px; y2:44px; "/>
  118. <button id="btn_emplno" class="icon_search" style="left:747px; top:19px; width:16px; height:16px; ">
  119. <caption/>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. var recv_list = "emplno,emplnm" ;
  123. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  124. model.refresh();
  125. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  126. btn_search.dispatch("DOMActivate");
  127. }
  128. ]]>
  129. </script>
  130. </button>
  131. <caption id="caption1" class="search_name" style="left:569px; top:18px; width:63px; height:17px; ">사번 :</caption>
  132. <input id="ipt_emplnos" ref="/root/send/payspec/emplno" class="input_default" style="left:630px; top:18px; width:115px; height:19px; ">
  133. <script type="javascript" ev:event="onkeyup">
  134. <![CDATA[
  135. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  136. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  137. }
  138. ]]>
  139. </script>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. var recv_list = "emplno,emplnm" ;
  143. rpbfValidationCheck("EMPLNO", recv_list);
  144. model.refresh();
  145. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  146. btn_search.dispatch("DOMActivate");
  147. }
  148. ]]>
  149. </script>
  150. </input>
  151. <input id="ipt_emplnms" ref="/root/send/payspec/emplnm" class="input_default" style="left:766px; top:18px; width:131px; height:19px; ">
  152. <script type="javascript" ev:event="onkeyup">
  153. <![CDATA[
  154. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  155. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  156. }
  157. ]]>
  158. </script>
  159. <script type="javascript" ev:event="xforms-value-changed">
  160. <![CDATA[
  161. var recv_list = "emplno,emplnm" ;
  162. rpbfValidationCheck("EMPLNM", recv_list);
  163. model.refresh();
  164. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  165. btn_search.dispatch("DOMActivate");
  166. }
  167. ]]>
  168. </script>
  169. </input>
  170. <line id="line9" class="line_1" style="x1:2px; y1:69px; x2:1192px; y2:69px; "/>
  171. <caption id="caption34" class="tit_2" style="left:3px; top:54px; width:144px; height:14px; ">소급분 내역</caption>
  172. <caption id="caption22" class="search_name" style="left:330px; top:18px; width:85px; height:17px; ">지급년월:</caption>
  173. <input id="ipt_payfromym" ref="/root/send/payspec/payfromym" class="input_default" inputtype="date" format="yyyy-mm" style="left:414px; top:18px; width:101px; height:19px; text-align:center; vertical-align:middle; "/>
  174. <datagrid id="grd_payamtlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:75px; width:1190px; height:660px; "/>
  175. <button id="btn_saveexcel" class="btn2_letter4" style="left:1126px; top:49px; width:64px; height:19px; ">
  176. <caption>엑셀저장</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  180. if (fileName != "")
  181. {
  182. grd_payamtlist.saveExcel(fileName, "sheetname:sheet1");
  183. }
  184. ]]>
  185. </script>
  186. </button>
  187. <select1 id="cmb_instcd" ref="/root/send/payspec/instcd" class="combo_s_essential" appearance="minimal" style="left:85px; top:18px; width:195px; height:19px; ">
  188. <choices>
  189. <itemset>
  190. <label/>
  191. <value/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. <caption id="caption3" class="search_name" style="left:26px; top:18px; width:61px; height:17px; ">기관:</caption>
  196. </group>
  197. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  198. </xhtml:body>
  199. </xhtml:html>