SMRWY03100_항목별퇴직정산내역조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. <yyendcalcrslt>
  11. <yyendcalcrsltlist/>
  12. <yyendcalflaglist/>
  13. </yyendcalcrslt>
  14. </main>
  15. <send>
  16. <yyendcalcbase>
  17. <calcyy/>
  18. <calcinst/>
  19. <retireyn>Y</retireyn>
  20. <deptnm/>
  21. <emplnm/>
  22. <deptcd/>
  23. <emplno/>
  24. <workym/>
  25. <sortflag>A</sortflag>
  26. <fromym/>
  27. </yyendcalcbase>
  28. </send>
  29. <init>
  30. <temp/>
  31. </init>
  32. <hidden>
  33. <temp/>
  34. </hidden>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. misfComboInstCdListMulti("cmb_calcinst",getCurrentDate(),"","N");
  40. model.setValue(cmb_calcinst.attribute("ref"), getUserInfo("dutplceinstcd"));
  41. var curdate = getCurrentDate();
  42. var cvtdate = curdate.toDate("YYYY");
  43. //model.setValue(ipt_calcyy.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYY"));
  44. model.setValue(ipt_calcyy.attribute("ref") , curdate.substr(0,4));
  45. model.setValue(ipt_workym.attribute("ref") , curdate.substr(0,6)-1);
  46. model.setValue(ipt_fromym.attribute("ref") , curdate.substr(0,6)-1);
  47. misfGetUserAuth();
  48. if (DUTY_PAY_YN == "Y" ) {
  49. cmb_calcinst.disabled = false;
  50. }
  51. else {
  52. cmb_calcinst.disabled = true;
  53. }
  54. model.refresh();
  55. ]]>
  56. </script>
  57. <submission id="TRRWY02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yyendcalcbase" resultref="/root/main/yyendcalcrslt"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. </xhtml:head>
  65. <xhtml:body>
  66. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  67. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">중도퇴직정산내역조회</caption>
  68. </group>
  69. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  70. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  71. <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
  72. <caption id="caption3" class="search_name" style="left:8px; top:19px; width:57px; height:17px; ">년도:</caption>
  73. <input id="ipt_calcyy" ref="/root/send/yyendcalcbase/calcyy" class="input_s_essential" style="left:64px; top:18px; width:41px; height:19px; "/>
  74. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:16px; width:56px; height:22px; ">
  75. <caption>조회</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. if (grd_yyendcalcrsltlist.nodeset.length> 0) {
  79. model.removeNodeset("/root/main/yyendcalcrslt/yyendcalcrsltlist");
  80. grd_yyendcalcrsltlist.nodeset = "/root/init/temp";
  81. //for (var i = grd_payamtlist.cols; i >= grd_payamtlist.fixedCols ; i--) {
  82. for (var i = grd_yyendcalcrsltlist.cols - 1; i >= 1 ; i--) {
  83. grd_yyendcalcrsltlist.removeColumn(false);
  84. }
  85. grd_yyendcalcrsltlist.caption = "";
  86. model.refresh();
  87. grd_yyendcalcrsltlist.rebuild();
  88. }
  89. submit("TRRWY02201");
  90. var node = instance1.selectNodes("/root/main/yyendcalcrslt/yyendcalcrsltlist[1]/*");
  91. var calcflagcnt = model.getValue("/root/main/yyendcalcrslt/yyendcalflaglist/calcflagcnt") ;
  92. //calcflagcnt += 2;
  93. for(i=0;i<calcflagcnt;i++) {
  94. if (i < 9 ) {
  95. if( i == 2) {
  96. grd_yyendcalcrsltlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm;" + " style:" + "text-align:center; ", false);
  97. }
  98. else if (i == 7 || i == 8) {
  99. grd_yyendcalcrsltlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm-dd;" + " style:" + "text-align:center; ", false);
  100. }
  101. else {
  102. grd_yyendcalcrsltlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:center; ", false);
  103. }
  104. }
  105. else {
  106. if (i >= calcflagcnt - 4) {
  107. grd_yyendcalcrsltlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:left; ", false);
  108. }
  109. else{
  110. grd_yyendcalcrsltlist.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "(-)#,###;" + " style:" + "text-align:right; ", false);
  111. }
  112. }
  113. }
  114. grd_yyendcalcrsltlist.frozenCols = 4;
  115. grd_yyendcalcrsltlist.colWidth(3) = 60;
  116. grd_yyendcalcrsltlist.caption = model.getValue("/root/main/yyendcalcrslt/yyendcalflaglist/calcflag") + "|" + model.getValue("/root/main/yyendcalcrslt/yyendcalflaglist/calcflag");
  117. grd_yyendcalcrsltlist.nodeset = "/root/main/yyendcalcrslt/yyendcalcrsltlist";
  118. grd_yyendcalcrsltlist.rebuild();
  119. grd_yyendcalcrsltlist.subtotalPosition = "below";
  120. for(i=0;i<calcflagcnt - 2;i++) {
  121. if (i > 8 ) {
  122. grd_yyendcalcrsltlist.subtotal("sum",-1 , grd_yyendcalcrsltlist.colRef(node.item(i).nodeName), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  123. }
  124. }
  125. ]]>
  126. </script>
  127. </button>
  128. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:115px; height:14px; ">퇴직정산내역</caption>
  129. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1190px; y2:70px; "/>
  130. <datagrid id="grd_yyendcalcrsltlist" colsep="^" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1190px; height:665px; ">
  131. <script type="javascript" ev:event="onbeforesort">
  132. <![CDATA[
  133. grd_yyendcalcrsltlist.subtotal("clear", 0, 0);
  134. ]]>
  135. </script>
  136. <script type="javascript" ev:event="onaftersort">
  137. <![CDATA[
  138. var node = instance1.selectNodes("/root/main/yyendcalcrslt/yyendcalcrsltlist[1]/*");
  139. var calcflagcnt = model.getValue("/root/main/yyendcalcrslt/yyendcalflaglist/calcflagcnt") ;
  140. grd_yyendcalcrsltlist.subtotalPosition = "below";
  141. for(i=0;i<calcflagcnt;i++) {
  142. if (i > 2 ) {
  143. grd_yyendcalcrsltlist.subtotal("sum",-1 , grd_yyendcalcrsltlist.colRef(node.item(i).nodeName), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  144. }
  145. }
  146. ]]>
  147. </script>
  148. </datagrid>
  149. <select1 id="cmb_calcinst" ref="/root/send/yyendcalcbase/calcinst" class="combo_s_essential" appearance="minimal" style="left:435px; top:18px; width:155px; height:19px; ">
  150. <choices>
  151. <itemset>
  152. <label/>
  153. <value/>
  154. </itemset>
  155. </choices>
  156. </select1>
  157. <caption id="caption8" class="search_name" style="left:376px; top:19px; width:61px; height:17px; ">기관:</caption>
  158. <caption id="caption13" class="search_name" style="left:605px; top:19px; width:60px; height:17px; ">부서:</caption>
  159. <output id="opt_deptnm" ref="/root/send/yyendcalcbase/deptnm" class="output_fix" style="left:760px; top:18px; width:90px; height:19px; "/>
  160. <button id="btn_deptcd" class="icon_search" disabled="false" style="left:742px; top:18px; width:16px; height:16px; ">
  161. <caption/>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. var recv_list = "deptcd,deptnm";
  165. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <input id="ipt_deptcd" ref="/root/send/yyendcalcbase/deptcd" class="input_default" disabled="false" navindex="5" style="left:662px; top:18px; width:77px; height:19px; ">
  171. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. /* 부서코드,명 입력시 Validation Check
  174. misfValidationCheck(Validation 종류(부서코드, 공통코드, 우편번호...), 공통코드군, 자료를 받을 Instance Node(콤마로 분류해서 넘기면됨)) */
  175. misfValidationCheck("02", "", "deptcd,deptnm" );
  176. model.refresh();
  177. ]]>
  178. </script>
  179. </input>
  180. <output id="opt_emplnm" ref="/root/send/yyendcalcbase/emplnm" class="output_fix" style="left:1025px; top:18px; width:80px; height:19px; "/>
  181. <input id="ipt_emplno" ref="/root/send/yyendcalcbase/emplno" class="input_default" disabled="false" navindex="5" style="left:927px; top:18px; width:77px; height:19px; ">
  182. <script type="javascript" ev:event="onkeyup">
  183. <![CDATA[
  184. if (ipt_emplno.currentText != null && ipt_emplno.currentText != "" ) {
  185. inputEnterKey("ipt_emplno", "xforms-value-changed");
  186. inputEnterKey("btn_search", "DOMActivate");
  187. }
  188. ]]>
  189. </script>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. var recv_list = "emplno,emplnm" ;
  193. rpbfValidationCheck("EMPLNO", recv_list);
  194. model.refresh();
  195. ]]>
  196. </script>
  197. </input>
  198. <button id="btn_emplno" class="icon_search" disabled="false" style="left:1007px; top:18px; width:16px; height:16px; ">
  199. <caption/>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var recv_list = "emplno,emplnm" ;
  203. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  204. model.refresh();
  205. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  206. btn_search.dispatch("DOMActivate");
  207. }
  208. ]]>
  209. </script>
  210. </button>
  211. <caption id="caption2" class="search_name" style="left:865px; top:19px; width:60px; height:17px; ">사번:</caption>
  212. <select1 id="rdo_retireyn" ref="/root/send/yyendcalcbase/retireyn" class="radio_search" disabled="false" navindex="54" visibility="hidden" appearance="full" cols="2" itemheight="18" itemwidth="53" overflow="visible" style="left:1055px; top:15px; width:55px; height:19px; text-align:center; border-style:solid; ">
  213. <choices>
  214. <item>
  215. <label>중도퇴직</label>
  216. <value>Y</value>
  217. </item>
  218. <item>
  219. <label>연말</label>
  220. <value>N</value>
  221. </item>
  222. </choices>
  223. </select1>
  224. <button id="btn_saveexcel" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  225. <caption>엑셀저장</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  229. if (fileName != "")
  230. {
  231. grd_yyendcalcrsltlist.saveExcel(fileName, "sheetname:sheet1");
  232. }
  233. ]]>
  234. </script>
  235. </button>
  236. <input id="ipt_fromym" ref="/root/send/yyendcalcbase/fromym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:195px; top:18px; width:80px; height:19px; "/>
  237. <caption id="caption4" class="search_name" style="left:110px; top:19px; width:86px; height:17px; ">정산년월 :</caption>
  238. <input id="ipt_workym" ref="/root/send/yyendcalcbase/workym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:290px; top:18px; width:80px; height:19px; "/>
  239. <caption id="caption5" style="left:277px; top:20px; width:10px; height:20px; ">-</caption>
  240. </group>
  241. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  242. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  243. <button id="btn_clear" class="btn4_letter3" style="left:1124px; top:3px; width:68px; height:22px; ">
  244. <caption>초기화</caption>
  245. </button>
  246. </group>
  247. </xhtml:body>
  248. </xhtml:html>