SMRPA08500_개인별납부내역조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. <healthempr>
  11. <healthempllist>
  12. <notiym/>
  13. <instnm/>
  14. <emplnm/>
  15. <rrgstno/>
  16. <deptnm/>
  17. </healthempllist>
  18. </healthempr>
  19. <healthinsur>
  20. <healthinsulist>
  21. <month/>
  22. <reductresnnm/>
  23. <calcresnnm/>
  24. <remunrmmamt/>
  25. <calcamt/>
  26. <notiamt/>
  27. <notiymamt/>
  28. <yyendcalc/>
  29. <adjtamt/>
  30. <notiympayamt/>
  31. <rrgstno/>
  32. <notiym/>
  33. </healthinsulist>
  34. </healthinsur>
  35. <spclmentfact_txt/>
  36. </main>
  37. <send>
  38. <healthsend>
  39. <notiym/>
  40. <rrgstno1/>
  41. <rrgstno2/>
  42. <emplnm/>
  43. <instcd/>
  44. <emplno/>
  45. </healthsend>
  46. <healthempr>
  47. <notiym/>
  48. <rrgstno/>
  49. </healthempr>
  50. </send>
  51. <init>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/insurancemngtweb/js/RPA001.js"/>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. fInitialize();
  63. misfGridInit(grd_healthempllist);
  64. misfGridInit(grd_healthinsulist);
  65. misfMsterDetailSet(grd_healthempllist, null, "TRRPA08501" ,"N");
  66. submit("TRRPA07902");
  67. ]]>
  68. </script>
  69. <submission id="TRRPA08501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/healthsend" resultref="/root/main/healthempr"/>
  70. <submission id="TRRPA07902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/healthempr" resultref="/root/main/healthinsur"/>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  75. function fInitialize() {
  76. model.removeNodeset("/root/main/healthempr/healthempllist");
  77. model.removeNodeset("/root/main/healthinsur/healthinsulist");
  78. model.resetInstanceNode("/root/send");
  79. model.refresh();
  80. var curDate = getCurrentDate().toDate();
  81. model.setValue("/root/send/healthsend/notiym", curDate.getDateFormat('YYYY'));
  82. model.setValue("/root/send/healthsend/emplnm", getUserInfo("usernm"));
  83. model.setValue("/root/send/healthsend/emplno", getUserInfo("userid"));
  84. model.refresh();
  85. }
  86. function fTotalSum() {
  87. grd_healthinsulist.addRow();
  88. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mm")) = "합계";
  89. var calcamt = 0;
  90. var notiamt = 0;
  91. var yyendcalc = 0;
  92. var adjtamt = 0;
  93. var notiympayamt = 0;
  94. var mtrtcalcamt = 0;
  95. var mtrtnotiamt = 0;
  96. var mtrtyyendcalc = 0;
  97. var mtrtadjtamt = 0;
  98. var mtrtlndchrgamt = 0;
  99. var totalamt = 0;
  100. for( var idx = grd_healthinsulist.fixedRows; idx < grd_healthinsulist.rows - 1; idx++ ) { // 마지막 row는 합계이므로 -1해서 제외시킨다.
  101. calcamt = parseInt(calcamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("calcamt")));
  102. notiamt = parseInt(notiamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("notiamt")));
  103. yyendcalc = parseInt(yyendcalc) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("yyendcalc")));
  104. adjtamt = parseInt(adjtamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("adjtamt")));
  105. notiympayamt = parseInt(notiympayamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("notiympayamt")));
  106. mtrtcalcamt = parseInt(mtrtcalcamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("mtrtcalcamt")));
  107. mtrtnotiamt = parseInt(mtrtnotiamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("mtrtnotiamt")));
  108. mtrtyyendcalc = parseInt(mtrtyyendcalc) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("mtrtyyendcalc")));
  109. mtrtadjtamt = parseInt(mtrtadjtamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("mtrtadjtamt")));
  110. mtrtlndchrgamt = parseInt(mtrtlndchrgamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("mtrtlndchrgamt")));
  111. totalamt = parseInt(totalamt) + parseInt(grd_healthinsulist.valueMatrix(idx,grd_healthinsulist.colRef("totalamt")));
  112. }
  113. grd_healthinsulist.rowStyle(grd_healthinsulist.row,"data","background-color") = "#CCFFCC";
  114. grd_healthinsulist.rowStyle(grd_healthinsulist.row,"data","font-weight") = "bold";
  115. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("calcresnnm")) = "건강보험료"; // 건강정산사유
  116. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("calcamt")) = calcamt; // 건강정산금액
  117. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("notiamt")) = notiamt; // 건강고지금액
  118. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("yyendcalc")) = yyendcalc; // 건강연말정산
  119. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("adjtamt")) = adjtamt; // 건강조정금액
  120. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("notiympayamt")) = notiympayamt; // 건강당월납부액
  121. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtcalcresn")) = "장기요양보험료"; // 요양정산사유
  122. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtcalcamt")) = mtrtcalcamt; // 요양정산금액
  123. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtnotiamt")) = mtrtnotiamt; // 요양고지금액
  124. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtyyendcalc")) = mtrtyyendcalc; // 요양연말정산
  125. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtadjtamt")) = mtrtadjtamt; // 요양조정금액
  126. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("mtrtlndchrgamt")) = mtrtlndchrgamt; // 요양당월납부액
  127. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("totalamt")) = totalamt; // 당월납부액계
  128. grd_healthinsulist.valueMatrix(grd_healthinsulist.row, grd_healthinsulist.colRef("spclmentfact"))
  129. = grd_healthinsulist.valueMatrix(grd_healthinsulist.row-1, grd_healthinsulist.colRef("spclmentfact")) ; // 특이사항
  130. grd_healthinsulist.dispatch("onrowchanged");
  131. }
  132. ]]>
  133. </script>
  134. </xhtml:head>
  135. <xhtml:body style="margin-left:8; margin-right:8; ">
  136. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  137. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별 월별 건강보험료 납부 내역</caption>
  138. </group>
  139. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  140. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  141. <caption id="cap_notiym" class="search_name" style="left:35px; top:18px; width:86px; height:17px; ">기준년도:</caption>
  142. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  143. <caption>조회</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. misfGridInit(grd_healthempllist);
  147. misfGridInit(grd_healthinsulist);
  148. if(!isRequiredControls("ipt_notiym")) return;
  149. misfMsterDetailRetrieve();
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </button>
  154. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  155. <input id="ipt_notiym" ref="/root/send/healthsend/notiym" class="input_s_essential" inputtype="date" format="yyyy" style="left:120px; top:18px; width:80px; height:19px; text-align:center; "/>
  156. <line id="line207" class="line_1" style="x1:0; y1:69; x2:395; y2:69px; "/>
  157. <caption id="caption9" class="tit_2" style="left:10px; top:55px; width:219px; height:13px; ">사원 리스트</caption>
  158. <input id="ipt_emplnm" ref="/root/send/healthsend/emplnm" class="input_search" disabled="true" imemode="hangul" style="left:360px; top:18px; width:100px; height:19px; text-align:center; ">
  159. <script type="javascript" ev:event="onkeyup">
  160. <![CDATA[
  161. inputEnterKey("btn_search", "DOMActivate");
  162. ]]>
  163. </script>
  164. </input>
  165. <caption id="caption37" class="search_name" style="left:300px; top:18px; width:60px; height:17px; ">성명:</caption>
  166. <button id="btn_exceldetail" class="btn2_letter4" style="left:1127px; top:183px; width:64px; height:19px; ">
  167. <caption>엑셀저장</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  171. if (fileName != "")
  172. {
  173. grd_healthinsulist.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <datagrid id="grd_healthempllist" nodeset="/root/main/healthempr/healthempllist" caption="고지년월^기관^성명^주민등록번호^취득일^상실일" colwidth="11, 125, 65, 100, 80, 80" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:500px; height:111px; text-align:center; ">
  179. <col ref="notiym" visibility="hidden" format="yyyy-mm"/>
  180. <col ref="instnm" style="text-align:center; "/>
  181. <col ref="emplnm" type="input" style="text-align:center; "/>
  182. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  183. <col ref="acqtdd" format="yyyy-mm-dd"/>
  184. <col ref="lossdd" format="yyyy-mm-dd"/>
  185. <script type="javascript" ev:event="onrowchanged">
  186. <![CDATA[
  187. grd_healthinsulist.rebuildStyle();
  188. misfMsterDetailRetrieve();
  189. model.setValue("/root/send/healthempr/notiym",ipt_notiym.value);
  190. model.setValue("/root/send/healthempr/rrgstno",grd_healthempllist.valueMatrix(grd_healthempllist.row, grd_healthempllist.colRef("rrgstno")));
  191. submit("TRRPA07902");
  192. model.refresh();
  193. fTotalSum();
  194. ]]>
  195. </script>
  196. </datagrid>
  197. <caption id="caption1" class="tit_2" style="left:10px; top:191px; width:219px; height:13px; ">월별 건강보험료 납부 내역</caption>
  198. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:500px; y2:69px; "/>
  199. <line id="line2" class="line_1" style="x1:0px; y1:205px; x2:1192px; y2:205px; "/>
  200. <multilinegrid id="grd_healthinsulist" nodeset="/root/main/healthinsur/healthinsulist" caption="고지월^주민번호^월^청구기관^감면사유^직종코드^보수월액^건강산출보험료^건강 정산사유^건강 정산금액^건강 고지금액^건강 연말정산^건강 조정금액^건강 당월납부액^당월납부액계^특기사항|^성명^월^청구기관^감면사유^직종코드^보수월액^요양산출보험료^요양 정산사유^요양 정산금액^요양 고지금액^요양 연말정산^요양 조정금액^요양 당월납부액^당월납부액계^특기사항" colsep="^" colwidth="50, 100, 40, 120, 80, 80, 80, 95, 105, 95, 95, 95, 96, 95, 85, 100" extendlastcol="scroll" rowheader="seq" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:210px; width:1192px; height:515px; ">
  201. <row>
  202. <col ref="notiym" rowspan="2" visibility="hidden"/>
  203. <col ref="rrgstno" visibility="hidden"/>
  204. <col ref="mm" rowspan="2" style="text-align:center; "/>
  205. <col ref="instnm" rowspan="2"/>
  206. <col ref="reductresnnm" rowspan="2"/>
  207. <col ref="jobkindcd" rowspan="2" style="text-align:center; "/>
  208. <col ref="remunrmmamt" rowspan="2" format="#,###" style="text-align:right; "/>
  209. <col ref="calcinsuamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  210. <col ref="calcresnnm" style="text-align:center; "/>
  211. <col ref="calcamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  212. <col ref="notiamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  213. <col ref="yyendcalc" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  214. <col ref="adjtamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  215. <col ref="notiympayamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  216. <col ref="totalamt" rowspan="2" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  217. <col ref="spclmentfact" rowspan="2" visibility="hidden"/>
  218. </row>
  219. <row>
  220. <col ref="emplnm" visibility="hidden"/>
  221. <col ref="mtrtcalcinsuamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  222. <col ref="mtrtcalcresn" style="text-align:center; "/>
  223. <col ref="mtrtcalcamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  224. <col ref="mtrtnotiamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  225. <col ref="mtrtyyendcalc" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  226. <col ref="mtrtadjtamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  227. <col ref="mtrtlndchrgamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  228. </row>
  229. <script type="javascript" ev:event="onrowchanged">
  230. <![CDATA[
  231. model.setValue("/root/main/spclmentfact_txt",grd_healthinsulist.valueMatrix(grd_healthinsulist.row,grd_healthinsulist.colRef("spclmentfact")));
  232. model.refresh();
  233. ]]>
  234. </script>
  235. </multilinegrid>
  236. <input id="ipt_emplno" ref="/root/send/healthsend/emplno" class="input_search" disabled="true" imemode="hangul" style="left:468px; top:18px; width:100px; height:19px; text-align:center; ">
  237. <script type="javascript" ev:event="onkeyup">
  238. <![CDATA[
  239. inputEnterKey("btn_search", "DOMActivate");
  240. ]]>
  241. </script>
  242. </input>
  243. </group>
  244. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  245. <button id="btn_init" class="btn4_letter3" style="left:1122px; top:3px; width:68px; height:22px; ">
  246. <caption>초기화</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. fInitialize();
  250. ]]>
  251. </script>
  252. </button>
  253. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  254. </group>
  255. </xhtml:body>
  256. </xhtml:html>