SMRWY02200_항목별정산내역조회.xrw 12 KB

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