SMRAT01000_퇴직소득조회및저장.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  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. <list>
  11. <orchlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <frdd/>
  18. <todd/>
  19. <emplno/>
  20. <name/>
  21. </retrparams>
  22. </send>
  23. <init/>
  24. <temp/>
  25. <hidden>
  26. <prntlist>
  27. <retrprofprntlist/>
  28. </prntlist>
  29. <list>
  30. <orchlist/>
  31. </list>
  32. <orchreturn/>
  33. <sumvalue>
  34. <retiresumamt/>
  35. <incmsumtax/>
  36. <resdnsumtax/>
  37. <paysumtax/>
  38. <paytotsumamt/>
  39. <totcount/>
  40. </sumvalue>
  41. </hidden>
  42. </root>
  43. </instance>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  50. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  51. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  52. <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fInitialize();
  56. ]]>
  57. </script>
  58. <script type="javascript">
  59. <![CDATA[
  60. function fInitialize()
  61. {
  62. model.removenode("/root/main/list/orchlist");
  63. misfComboComCdList("Z0007", cmb_instcd);
  64. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  65. model.setValue("/root/send/retrparams/frdd", getCurrentDate().substr(0, 8));
  66. model.setValue("/root/send/retrparams/todd", getCurrentDate().substr(0, 8));
  67. model.refresh();
  68. }
  69. function fRetrieve()
  70. {
  71. model.removeNodeset("/root/main/list/orchlist");
  72. grd_orchlist.refresh();
  73. submit("TRRAT01001");
  74. for(var i=1; i<grd_orchlist.rows; i++)
  75. {
  76. if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/slipyn") == "Y")
  77. {
  78. grd_orchlist.rowStyle(i, "all", "background-color") = "#EAEAEA";
  79. }
  80. else
  81. {
  82. grd_orchlist.rowStyle(i, "all", "background-color") = "#ffffff";
  83. }
  84. }
  85. model.recalculate();
  86. }
  87. function fPrint()
  88. {
  89. var iCheckedCnt = parseInt(model.getValue("/root/hidden/checkedcnt"), 10);
  90. var dlgRslt = 0;
  91. if(iCheckedCnt > 0)
  92. {
  93. dlgRslt = messageBox("선택된 소득만 출력하시겠습니까\n\nYes(선택자료) / No(전체)", "Q000");
  94. }
  95. if(dlgRslt == 6)
  96. {
  97. var iCnt = 0;
  98. var sYn = "";
  99. model.removenode("/root/hidden/prntlist");
  100. model.makeNode("/root/hidden/prntlist");
  101. for(var i=1; i<grd_orchlist.rows; i++)
  102. {
  103. sYn = model.getValue(grd_orchlist.nodeset + "[" + i + "]/chk");
  104. if(sYn == "Y")
  105. {
  106. iCnt = instance1.selectNodes("/root/hidden/prntlist/retrprofprntlist").length;
  107. model.makeNode("/root/hidden/prntlist/retrprofprntlist[" + (iCnt + 1) + "]");
  108. model.copyNode("/root/hidden/prntlist/retrprofprntlist[" + (iCnt + 1) + "]", "/root/main/list/orchlist[" + i + "]");
  109. }
  110. }
  111. }
  112. else
  113. {
  114. var iLength = instance1.selectNodes("/root/main/list/orchlist").length;
  115. model.removenode("/root/hidden/prntlist");
  116. model.makeNode("/root/hidden/prntlist");
  117. for(var i=1; i<=iLength; i++)
  118. {
  119. model.makeNode("/root/hidden/prntlist/retrprofprntlist[" + i + "]");
  120. model.copyNode("/root/hidden/prntlist/retrprofprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
  121. }
  122. }
  123. if(model.instance1.selectNodes("/root/hidden/prntlist/retrprofprntlist").length == 0) return false;
  124. exeReportPreview("RPRAD00301", "XMLSTR");
  125. }
  126. function fGridStatusCheck()
  127. {
  128. var grd_rows = grd_orchlist.rows;
  129. var grd_fixedRows = grd_orchlist.fixedRows;
  130. for(var i = grd_fixedRows ; i <= grd_rows ; i++)
  131. {
  132. if(grd_orchlist.rowStatus(i) != 0)
  133. {
  134. messageBox("작업중인 데이터가 있습니다. \n 작업완료 후 작업하세요", "");
  135. return false;
  136. }
  137. }
  138. return true;
  139. }
  140. //========================================================================================
  141. //엑셀입력(excel file을 그리드에 입력)
  142. //========================================================================================
  143. function fInputExcel(pGrid) {
  144. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  145. if(fileName != "") {
  146. pGrid.loadExcel(fileName, 1, true);
  147. pGrid.deleteRow(1);
  148. for(i = 1; i < pGrid.rows; i++) {
  149. pGrid.rowStatus(i) = 1;
  150. }
  151. //pGrid.rebuild();
  152. return true;
  153. }
  154. return false;
  155. }
  156. //========================================================================================
  157. // 그리드의 각 항목의 합계 계산
  158. //========================================================================================
  159. function fCalcsumvalue()
  160. {
  161. var vRetiresumamt = 0;
  162. var vIncmsumtax = 0;
  163. var vResdnsumtax = 0;
  164. var vPaysumtax = 0;
  165. var vPaytotsumamt = 0;
  166. var vTotcount = 0;
  167. for(i = grd_orchlist.fixedRows ; i < grd_orchlist.rows ; i++)
  168. {
  169. vTotcount ++;
  170. vRetiresumamt = vRetiresumamt + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("retireamt"))) + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("earlyretramt")));
  171. vIncmsumtax = vIncmsumtax + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("calcincmtax")));
  172. vResdnsumtax = vResdnsumtax + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("calcresdntax")));
  173. vPaysumtax = vPaysumtax + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytax")));
  174. vPaytotsumamt = vPaytotsumamt + parseFloat(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytotamt")));
  175. }
  176. model.setValue("/root/hidden/sumvalue/retiresumamt", vRetiresumamt);
  177. model.setValue("/root/hidden/sumvalue/incmsumtax", vIncmsumtax);
  178. model.setValue("/root/hidden/sumvalue/resdnsumtax", vResdnsumtax);
  179. model.setValue("/root/hidden/sumvalue/paysumtax", vPaysumtax);
  180. model.setValue("/root/hidden/sumvalue/paytotsumamt", vPaytotsumamt);
  181. model.setValue("/root/hidden/sumvalue/totcount", vTotcount);
  182. otp_totcount.refresh();
  183. otp_retiresumamt.refresh();
  184. otp_incmsumtax.refresh();
  185. otp_resdnsumtax.refresh();
  186. otp_paysumtax.refresh();
  187. otp_paytotsumamt.refresh();
  188. }
  189. ]]>
  190. </script>
  191. <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/orchlist[chk = 'Y']/chk)"/>
  192. <submission id="TRRAT01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  193. <submission id="TXRAT01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/list/orchlist" resultref="/root/temp"/>
  194. </model>
  195. </xhtml:head>
  196. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  197. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  198. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">퇴직소득 조회/수정</caption>
  199. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  200. </group>
  201. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  202. <group id="grp_sea" style="left:0px; top:35px; width:1195px; height:35px; vertical-align:top; ">
  203. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  204. <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  205. <caption id="caption1" class="search_name" style="left:270px; top:9px; width:90px; height:17px; ">지 급 일 :</caption>
  206. <input id="ipt_frdd" ref="/root/send/retrparams/frdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:360px; top:8px; width:95px; height:19px; text-align:center; "/>
  207. <caption id="caption2" style="left:457px; top:11px; width:15px; height:20px; ">~</caption>
  208. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_s_essential" disabled="true" navindex="-1" appearance="minimal" style="left:99px; top:8px; width:146px; height:19px; ">
  209. <choices>
  210. <itemset>
  211. <label/>
  212. <value/>
  213. </itemset>
  214. </choices>
  215. </select1>
  216. <caption id="caption3" class="search_name" style="left:9px; top:9px; width:91px; height:17px; ">기관구분 :</caption>
  217. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; text-align:left; ">
  218. <caption>조회</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. fRetrieve();
  222. fCalcsumvalue();
  223. ]]>
  224. </script>
  225. </button>
  226. <input id="ipt_todd" ref="/root/send/retrparams/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:470px; top:8px; width:95px; height:19px; text-align:center; "/>
  227. <caption id="caption8" class="search_name" style="left:599px; top:9px; width:90px; height:17px; ">소 득 자 :</caption>
  228. <button id="btn_userhelp" class="icon_search" navindex="-1" style="left:790px; top:9px; width:16px; height:16px; ">
  229. <caption/>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. misfOpenPopUpList("49", ipt_emplno, "", "emplno,name");
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <input id="ipt_name" ref="/root/send/retrparams/name" class="input_essential" navindex="1" style="left:810px; top:8px; width:225px; height:19px; ">
  238. <script type="javascript" ev:event="onkeypress">
  239. <![CDATA[
  240. if(event.keyCode == 13)
  241. {
  242. model.setFocus("btn_search");
  243. }
  244. ]]>
  245. </script>
  246. <script type="javascript" ev:event="xforms-value-changed">
  247. <![CDATA[
  248. misfValidationCheck("49", "", "emplno,name","","","name","");
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </input>
  253. <input id="ipt_emplno" ref="/root/send/retrparams/emplno" class="input_essential" style="left:688px; top:8px; width:97px; height:19px; ">
  254. <script type="javascript" ev:event="onkeypress">
  255. <![CDATA[
  256. if(event.keyCode == 13)
  257. {
  258. model.setFocus("btn_search");
  259. }
  260. ]]>
  261. </script>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. misfValidationCheck("49", "", "emplno,name", "", "", "code","");
  265. model.refresh();
  266. ]]>
  267. </script>
  268. </input>
  269. </group>
  270. <line id="line3" class="line_1" style="x1:0px; y1:93px; x2:1195px; y2:93px; "/>
  271. <caption id="caption21" class="tit_2" style="left:5px; top:78px; width:139px; height:14px; ">퇴직소득자 목록</caption>
  272. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  273. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  274. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  275. <caption>입력</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. model.makeValue("/root/source/slipinfo/openflag", "extra");
  279. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/send/retrparams/instcd"));
  280. model.makeValue("/root/source/slipinfo/seqno", "");
  281. model.makeValue("/root/source/slipinfo/profflag", "9");
  282. model.makeValue("/root/source/receiveref", "/root/hidden/orchreturn");
  283. modal("SPRAD00140","","","","","/root/source", "/root/target", "resize:false" );
  284. ]]>
  285. </script>
  286. </button>
  287. <button id="btn_print" class="btn4_letter2" style="left:5px; top:3px; width:56px; height:22px; ">
  288. <caption>출력</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. fPrint();
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="button3" class="btn4_letter4" style="left:995px; top:3px; width:80px; height:22px; ">
  296. <caption>파일생성</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. model.setValue(ipt_emplno.attribute("ref"), "");
  300. model.setValue(ipt_name.attribute("ref"), "");
  301. var instcd = model.getValue("/root/send/retrparams/instcd");
  302. model.makeValue("/root/source/reportfile/instcd", instcd);
  303. model.makeValue("/root/source/reportfile/frdd", ipt_frdd.value);
  304. model.makeValue("/root/source/reportfile/todd", ipt_todd.value);
  305. model.makeValue("/root/source/reportfile/jobflag", "retr");
  306. model.refresh();
  307. modal("SPRAT01000","","","","","/root/source", "/root/target" );
  308. model.refresh();
  309. ]]>
  310. </script>
  311. </button>
  312. <button id="button5" class="btn4_letter2" style="left:1078px; top:3px; width:56px; height:22px; ">
  313. <caption>저장</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. model.setValue("/root/hidden/list/orchlist", grd_orchlist.getUpdateData());
  317. submit("TXRAT01001");
  318. fRetrieve();
  319. ]]>
  320. </script>
  321. </button>
  322. </group>
  323. <caption id="caption10" style="left:180px; top:77px; width:15px; height:15px; background-color:#c0c0c0; "/>
  324. <caption id="caption11" style="left:198px; top:78px; width:202px; height:14px; ">퇴직근로소득 삭제 및 수정 불가</caption>
  325. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:73px; width:64px; height:19px; text-align:left; ">
  326. <caption>엑셀출력</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. if(fGridStatusCheck())
  330. {
  331. var sTitle = "퇴직소득 " + model.getValue("/root/send/retrparams/frdd").substr(2, 2) + "-" + model.getValue("/root/send/retrparams/frdd").substr(4, 2) + "-" + model.getValue("/root/send/retrparams/frdd").substr(6, 2) + " ~ " + model.getValue("/root/send/retrparams/todd").substr(2, 2) + "-" + model.getValue("/root/send/retrparams/todd").substr(4, 2) + "-" + model.getValue("/root/send/retrparams/todd").substr(6, 2);
  332. misfSaveExcel(grd_orchlist, sTitle);
  333. }
  334. ]]>
  335. </script>
  336. </button>
  337. <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" backcoloralternate="#ffffff" caption="v^기관코드^일련번호^세부일련번호^미결전표정보^지급일^징수구분^신고구분^사번^퇴직구분^주민등록번호^이름^시작일^종료일^결재전표정보^근속월수^근속년수^퇴직급여액^명예퇴직수당^퇴직소득공제^근속년수별공제^퇴직소득공제합^과세표준^연평균과세표준^연평균산출세액^산출세액^세액공제^결정세액^기납부세액^소득세(절사전)^주민세(절사전)^소득세^주민세^납부세액^총지급액^비고^기표여부" colwidth="25, 0, 0, 0, 150, 100, 100, 60, 100, 100, 100, 80, 80, 80, 80, 150, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:145px; width:1193px; height:617px; ">
  338. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  339. <col ref="instcd" visibility="hidden"/>
  340. <col ref="seqno" visibility="hidden"/>
  341. <col ref="detlseqno" visibility="hidden"/>
  342. <col ref="unslinfo" format="99999999-9999-999" style="text-align:center; "/>
  343. <col ref="paydd" format="yyyy-mm-dd" style="text-align:center; "/>
  344. <col ref="chrgflag" visibility="hidden"/>
  345. <col checkvalue="Y,N" ref="reptyn" type="checkbox"/>
  346. <col ref="emplno" style="text-align:center; "/>
  347. <col ref="retrflag" type="combo" style="text-align:center; ">
  348. <choices>
  349. <item>
  350. <label>정년퇴직</label>
  351. <value>1</value>
  352. </item>
  353. <item>
  354. <label>정리해고</label>
  355. <value>2</value>
  356. </item>
  357. <item>
  358. <label>자발적퇴직</label>
  359. <value>3</value>
  360. </item>
  361. <item>
  362. <label>임원퇴직</label>
  363. <value>4</value>
  364. </item>
  365. <item>
  366. <label>중간정산</label>
  367. <value>5</value>
  368. </item>
  369. <item>
  370. <label>기타</label>
  371. <value>6</value>
  372. </item>
  373. </choices>
  374. </col>
  375. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  376. <col ref="name" style="text-align:center; "/>
  377. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  378. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  379. <col ref="sanctinfo" visibility="hidden" format="99999999-9999-999" style="text-align:center; "/>
  380. <col ref="servedmonths" style="text-align:center; "/>
  381. <col ref="servedyears" style="text-align:center; "/>
  382. <col ref="retireamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  383. <col ref="earlyretramt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  384. <col ref="deductamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  385. <col ref="yearsdeductamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  386. <col ref="sumretrdeductamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  387. <col ref="taxstandard" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  388. <col ref="avetaxstandard" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  389. <col ref="avecalctax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  390. <col ref="calctax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  391. <col ref="taxdeduct" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  392. <col ref="determtax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  393. <col ref="paymenttax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  394. <col ref="incmtax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  395. <col ref="resdntax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  396. <col ref="calcincmtax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  397. <col ref="calcresdntax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  398. <col ref="paytax" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  399. <col ref="paytotamt" format="(-)#,###" style="text-align:right; padding-right:2; "/>
  400. <col ref="cmt"/>
  401. <col ref="slipyn" visibility="hidden"/>
  402. <col ref="deployeeentrregno" visibility="hidden"/>
  403. <col ref="deployeecustnm" visibility="hidden"/>
  404. <col ref="deployeeprsdnm" visibility="hidden"/>
  405. <col ref="supaddr" visibility="hidden"/>
  406. <col ref="infaddr" visibility="hidden"/>
  407. <col ref="deployeeaddress" visibility="hidden"/>
  408. <col ref="deployeerrgstno" visibility="hidden"/>
  409. <col ref="resdnrgstareazipcd" visibility="hidden"/>
  410. <col ref="residnczipcd" visibility="hidden"/>
  411. <col ref="residncaddr" visibility="hidden"/>
  412. <script type="javascript" ev:event="ondblclick">
  413. <![CDATA[
  414. if(grd_orchlist.isCell(event.target) && grd_orchlist.row >= grd_orchlist.fixedRows && grd_orchlist.rowStatus(grd_orchlist.row) == 0)
  415. {
  416. if(grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("unslinfo")) == "")
  417. {
  418. model.makeValue("/root/source/slipinfo/openflag", "modify");
  419. model.makeValue("/root/source/slipinfo/instcd", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("instcd")));
  420. model.makeValue("/root/source/slipinfo/seqno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("seqno")));
  421. model.makeValue("/root/source/slipinfo/profflag", "9");
  422. //model.makeValue("/root/source/receiveref", "/root/hidden/orchreturn");
  423. modal("SPRAD00140","","","","","/root/source", "/root/target", "resize:false" );
  424. }
  425. else
  426. {
  427. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/list/orchlist["+grd_orchlist.row+"]/instcd"));
  428. var unslinfo = model.getValue("/root/main/list/orchlist["+grd_orchlist.row+"]/unslinfo");
  429. model.makeValue("/root/source/slipinfo/slipdt", unslinfo.substr(0,8));
  430. model.makeValue("/root/source/slipinfo/slipno", unslinfo.substr(8,4));
  431. model.refresh();
  432. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  433. }
  434. fRetrieve();
  435. }
  436. ]]>
  437. </script>
  438. </datagrid>
  439. <output id="otp_paytotsumamt" ref="/root/hidden/sumvalue/paytotsumamt" format="(-)#,###" style="left:1065px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  440. <line id="line11" class="line_3" style="x1:1065px; y1:98px; x2:1065px; y2:142px; "/>
  441. <line id="line13" class="line_3" style="x1:1192px; y1:98px; x2:1192px; y2:142px; "/>
  442. <caption id="caption18" class="cell_1" style="left:1065px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
  443. <caption id="caption19" class="cell_1" style="left:325px; top:123px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
  444. <button id="button1" class="btn2_letter4" visibility="hidden" style="left:3px; top:121px; width:64px; height:19px; text-align:left; ">
  445. <caption>전체선택</caption>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. ]]>
  449. </script>
  450. </button>
  451. <button id="button2" class="btn2_letter4" visibility="hidden" style="left:70px; top:121px; width:64px; height:19px; text-align:left; ">
  452. <caption>전체해제</caption>
  453. <script type="javascript" ev:event="DOMActivate">
  454. <![CDATA[
  455. ]]>
  456. </script>
  457. </button>
  458. <button id="button4" class="btn2_letter4" style="left:1060px; top:73px; width:64px; height:19px; text-align:left; ">
  459. <caption>엑셀입력</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. model.removeNodeset(grd_orchlist.nodeset);
  463. grd_orchlist.refresh();
  464. if(fGridStatusCheck())
  465. {
  466. fInputExcel(grd_orchlist)
  467. }
  468. var bInsertValidFlag = true;
  469. var bEmplnoError = false;
  470. var bRrgstnoError = false;
  471. for(var i = grd_orchlist.fixedRows ; i < grd_orchlist.rows ; i++)
  472. {
  473. vEmplno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("emplno"));
  474. vRrgstno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno"));
  475. vInstCd = getUserInfo("dutplceinstcd");
  476. bInsertValidFlag = true;
  477. bEmplnoError = false;
  478. bRrgstnoError = false;
  479. if(vEmplno != "-" && radfcheckEmplExist(vEmplno) == "")
  480. {
  481. bEmplnoError = true;
  482. }
  483. if(vEmplno == "" && vRrgstno != "" && radfGetIcpncd(vInstCd, vRrgstno) == "")
  484. {
  485. bRrgstnoError = true;
  486. }
  487. if(bEmplnoError == true && vEmplno != "")
  488. {
  489. bInsertValidFalg = false;
  490. model.setValue(grd_orchlist.nodeset + "[" + i + "]/cmt", grd_orchlist.valueMatrix(i, grd_orchlist.colRef("emplno")) + " 는 없는 사번입니다.");
  491. messageBox(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("emplno")) + " 는 없는 사번입니다.", "I000");
  492. grd_orchlist.rowStyle(i, "data", "background-color") = "#ff99cc";
  493. }
  494. else if(bRrgstnoError == true && vEmplno == "" && vRrgstno != "")
  495. {
  496. bInsertValidFlag = false;
  497. model.setValue(grd_orchlist.nodeset + "[" + i + "]/cmt", grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno")) + " 는 없는 소득자입니다.");
  498. messageBox(grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno")) + " 는 없는 소득자입니다.", "I000");
  499. grd_orchlist.rowStyle(i, "data", "background-color") = "#ff99cc";
  500. }
  501. // if(vEmplno != "-" && vRrgstno != "")
  502. // {
  503. // bInsertValidFlag = false;
  504. // messageBox("사번과 주민등록번호를 함께 입력할 수 없습니다.", "I000");
  505. // }
  506. if((vEmplno == "-" && vRrgstno == "") || (vEmplno == "" && vRrgstno == ""))
  507. {
  508. bInsertValidFlag = false;
  509. messageBox("사번이나 주민등록번호를 입력하세요", "I000");
  510. }
  511. }
  512. if(bInsertValidFlag == false)
  513. {
  514. grd_orchlist.clearStatus();
  515. messageBox("사번 / 데이터 오류 입니다. 엑셀출력을 하여 확인하여 주십시요", "I000");
  516. }
  517. ]]>
  518. </script>
  519. </button>
  520. <output id="otp_paysumtax" ref="/root/hidden/sumvalue/paysumtax" format="(-)#,###" style="left:935px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  521. <caption id="caption5" class="cell_1" style="left:935px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">납부세액</caption>
  522. <caption id="caption7" class="cell_1" style="left:805px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
  523. <output id="otp_resdnsumtax" ref="/root/hidden/sumvalue/resdnsumtax" format="(-)#,###" style="left:805px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  524. <caption id="caption9" class="cell_1" style="left:675px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
  525. <output id="otp_incmsumtax" ref="/root/hidden/sumvalue/incmsumtax" format="(-)#,###" style="left:675px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  526. <caption id="caption12" class="cell_1" style="left:545px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">퇴직금여총액</caption>
  527. <output id="otp_retiresumamt" ref="/root/hidden/sumvalue/retiresumamt" format="(-)#,###" style="left:545px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  528. <output id="otp_totcount" ref="/root/hidden/sumvalue/totcount" format="(-)#,###" style="left:415px; top:123px; width:127px; height:19px; text-align:right; margin-right:1; "/>
  529. <caption id="caption13" class="cell_1" style="left:415px; top:99px; width:127px; height:23px; text-align:center; vertical-align:middle; ">총지급건수</caption>
  530. </group>
  531. </xhtml:body>
  532. </xhtml:html>