SMRAT00500_비과세근로소득관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  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. <priprofprntlist/>
  13. </list>
  14. <printlist>
  15. <fstpage/>
  16. <secpage/>
  17. </printlist>
  18. </main>
  19. <send>
  20. <retrparams>
  21. <instcd/>
  22. <payinst/>
  23. <frdd/>
  24. <todd/>
  25. <rrgstno/>
  26. <name/>
  27. <emplno/>
  28. <emplnm/>
  29. <profflag>B</profflag>
  30. </retrparams>
  31. <printparams>
  32. <payTotAmt/>
  33. <incmTax/>
  34. <resdnTax/>
  35. <isumAmt/>
  36. </printparams>
  37. <rertparams2>
  38. <instcd/>
  39. <name/>
  40. <rrgstno/>
  41. <retrflag/>
  42. </rertparams2>
  43. </send>
  44. <init/>
  45. <temp/>
  46. <hidden>
  47. <incmpsn>
  48. <name/>
  49. <rrgstno/>
  50. <entrregno/>
  51. <custnm/>
  52. <zipcd/>
  53. <zipcd1/>
  54. <zipcd2/>
  55. <zipcdseqno/>
  56. <supaddr/>
  57. <infaddr/>
  58. <cntctel/>
  59. <emailaddr/>
  60. <cmt/>
  61. <ionatiflag/>
  62. <incmflag/>
  63. </incmpsn>
  64. <prntlist>
  65. <priprofprntlist/>
  66. </prntlist>
  67. <zipcd>
  68. <zipcd1/>
  69. <zipcd2/>
  70. <supaddr/>
  71. <zipcdseqno/>
  72. </zipcd>
  73. <incmpsntemp>
  74. <name/>
  75. <rrgstno/>
  76. <entrregno/>
  77. <custnm/>
  78. <zipcd/>
  79. <zipcd1/>
  80. <zipcd2/>
  81. <zipcdseqno/>
  82. <supaddr/>
  83. <infaddr/>
  84. <cntctel/>
  85. <emailaddr/>
  86. <cmt/>
  87. <ionatiflag/>
  88. <induflag/>
  89. <incmflag/>
  90. </incmpsntemp>
  91. <checkedcnt/>
  92. </hidden>
  93. </root>
  94. </instance>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  100. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  101. <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
  102. <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/orchlist/incmtax)"/>
  103. <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/orchlist/resdntax)"/>
  104. <submission id="TRRAC00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rertparams2" resultref="/root/hidden/incmpsn"/>
  105. <submission id="TXRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/orchlist" resultref="/root/temp"/>
  106. <submission id="TRRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. fInitialize();
  110. ]]>
  111. </script>
  112. <script type="javascript">
  113. <![CDATA[
  114. function fInitialize()
  115. {
  116. model.removenode("/root/main/list/orchlist");
  117. misfMsterDetailSet(grd_orchlist, null, "TRRAT00601", "Y");
  118. // misfComboComCdListMulti("Z0007,R0278", "cmb_instcd,grd_orchlist.induflag");
  119. misfComboComCdListMulti("Z0007,", "cmb_instcd");
  120. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  121. model.setValue("/root/send/retrparams/frdd", getCurrentDate());
  122. model.setValue("/root/send/retrparams/todd", getCurrentDate());
  123. model.setValue("/root/send/rertparams2/instcd", getUserInfo("dutplceinstcd"));
  124. model.refresh();
  125. grd_orchlist.rowHeight(0) = 30;
  126. //fRetrieve();
  127. }
  128. function fRetrieve()
  129. {
  130. submit("TRRAT00601");
  131. for(var i=1; i<grd_orchlist.rows; i++)
  132. {
  133. if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/slipyn") == "Y")
  134. {
  135. grd_orchlist.rowStyle(i, "all", "background-color") = "#EAEAEA";
  136. misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", true, i);
  137. }
  138. else
  139. {
  140. grd_orchlist.rowStyle(i, "all", "background-color") = "#ffffff";
  141. misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear", true, i);
  142. misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", false, i);
  143. }
  144. }
  145. fSetPrintNodeList();
  146. model.recalculate();
  147. }
  148. function fSave()
  149. {
  150. for(var i=1; i<grd_orchlist.rows; i++)
  151. {
  152. var sRrgstno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno"));
  153. var sPosDD = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("posdd"));
  154. var sCmt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("cmt"));
  155. var sPaytotamt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytotamt"));
  156. if(sRrgstno == "") { messageBox("소득자를", "C001"); return; }
  157. if(!isValidDateTime(sPosDD, "YYYYMMDD"))
  158. { messageBox("귀속 일자가 유효하지 않습니다.", "I000"); return; }
  159. if(sCmt == "") { messageBox("적요를", "C001"); return; }
  160. if(sPaytotamt == "") { messageBox("지급액을", "C001"); return; }
  161. }
  162. misfSave("TXRAT00601");
  163. fRetrieve();
  164. }
  165. function fPrint()
  166. {
  167. var iCheckedCnt = parseInt(model.getValue("/root/hidden/checkedcnt"), 10);
  168. var dlgRslt = 0;
  169. if(iCheckedCnt > 0)
  170. {
  171. dlgRslt = messageBox("선택된 소득만 출력하시겠습니까\n\nYes(선택자료) / No(전체)", "Q000");
  172. }
  173. if(dlgRslt == 6)
  174. {
  175. var iCnt = 0;
  176. var sYn = "";
  177. model.removenode("/root/hidden/prntlist");
  178. model.makeNode("/root/hidden/prntlist");
  179. for(var i=1; i<grd_orchlist.rows; i++)
  180. {
  181. sYn = model.getValue(grd_orchlist.nodeset + "[" + i + "]/chk");
  182. if(sYn == "Y")
  183. {
  184. iCnt = instance1.selectNodes("/root/hidden/prntlist/priprofprntlist").length;
  185. model.makeNode("/root/hidden/prntlist/priprofprntlist[" + (iCnt + 1) + "]");
  186. model.copyNode("/root/hidden/prntlist/priprofprntlist[" + (iCnt + 1) + "]", "/root/main/list/orchlist[" + i + "]");
  187. }
  188. }
  189. }
  190. else
  191. {
  192. var iLength = instance1.selectNodes("/root/main/list/orchlist").length;
  193. model.removenode("/root/hidden/prntlist");
  194. model.makeNode("/root/hidden/prntlist");
  195. for(var i=1; i<=iLength; i++)
  196. {
  197. model.makeNode("/root/hidden/prntlist/priprofprntlist[" + i + "]");
  198. model.copyNode("/root/hidden/prntlist/priprofprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
  199. }
  200. }
  201. exeReportPreview("RPRAD00203", "XMLSTR");
  202. }
  203. function fSetPrintNodeList()
  204. {
  205. var iLength = instance1.selectNodes("/root/main/list/orchlist").length;
  206. model.removenode("/root/hidden/prntlist");
  207. model.makeNode("/root/hidden/prntlist");
  208. for(var i=1; i<=iLength; i++)
  209. {
  210. model.makeNode("/root/hidden/prntlist/priprofprntlist[" + i + "]");
  211. model.copyNode("/root/hidden/prntlist/priprofprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
  212. }
  213. }
  214. function fPayCalc()
  215. {
  216. var iPayTotAmt = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/paytotamt"), 10);
  217. var iIncmTax = parseInt((iPayTotAmt * 0.03) / 10,10) * 10;
  218. var iResdnTax = parseInt((iIncmTax * 0.1) / 10,10) * 10;
  219. if (iIncmTax < 1000)
  220. {
  221. iIncmTax = 0;
  222. iResdnTax = 0;
  223. }
  224. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax", iIncmTax);
  225. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax", iResdnTax);
  226. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
  227. model.recalculate();
  228. model.refresh();
  229. }
  230. ]]>
  231. </script>
  232. <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/orchlist[chk = 'Y']/chk)"/>
  233. <bind id="bindSumAmt" ref="/root/send/printparams/isumAmt" calculate="sum(/root/main/list/orchlist/sumamt)"/>
  234. </model>
  235. </xhtml:head>
  236. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  237. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  238. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">사업소득 조회/수정</caption>
  239. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  240. </group>
  241. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  242. <group id="grp_sea" style="left:0px; top:35px; width:1195px; height:35px; vertical-align:top; ">
  243. <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; "/>
  244. <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  245. <caption id="caption1" class="search_name" style="left:310px; top:9px; width:90px; height:17px; ">지급년월 :</caption>
  246. <input id="ipt_frym" ref="/root/send/retrparams/frdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:400px; top:8px; width:100px; height:19px; text-align:center; ">
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. //fRetrieve();
  250. ]]>
  251. </script>
  252. </input>
  253. <caption id="caption2" style="left:502px; top:11px; width:15px; height:20px; ">~</caption>
  254. <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:176px; height:19px; ">
  255. <choices>
  256. <itemset>
  257. <label/>
  258. <value/>
  259. </itemset>
  260. </choices>
  261. <script type="javascript" ev:event="xforms-value-changed">
  262. <![CDATA[
  263. model.setValue("/root/send/rertparams2/instcd", "/root/send/retrparams/instcd");
  264. fRetrieve();
  265. ]]>
  266. </script>
  267. </select1>
  268. <caption id="caption3" class="search_name" style="left:9px; top:9px; width:90px; height:17px; ">기관구분 :</caption>
  269. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; text-align:left; ">
  270. <caption>조회</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. fRetrieve();
  274. ]]>
  275. </script>
  276. </button>
  277. <input id="ipt_toym" ref="/root/send/retrparams/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:515px; top:8px; width:100px; height:19px; text-align:center; ">
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. //fRetrieve();
  281. ]]>
  282. </script>
  283. </input>
  284. <caption id="caption8" class="search_name" style="left:650px; top:9px; width:90px; height:17px; ">소 득 자 :</caption>
  285. <button id="btn_entregnohelp" class="icon_search" style="left:844px; top:9px; width:16px; height:16px; ">
  286. <caption/>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. misfOpenPopUpList("31", ipt_rrgstno, "", "rrgstno,name");
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </button>
  294. <input id="ipt_rrgstno" ref="/root/send/retrparams/rrgstno" class="input_search" navindex="5" format="999999-9999999" style="left:740px; top:8px; width:100px; height:19px; text-align:center; ">
  295. <script type="javascript" ev:event="onkeypress">
  296. <![CDATA[
  297. if(event.keyCode == 13)
  298. {
  299. model.setFocus("ipt_name");
  300. }
  301. ]]>
  302. </script>
  303. <script type="javascript" ev:event="xforms-value-changed">
  304. <![CDATA[
  305. if(ipt_rrgstno.currentText == "")
  306. {
  307. model.setValue("/root/send/retrparams/rrgstno", "");
  308. model.setValue("/root/send/retrparams/name", "");
  309. ipt_rrgstno.refresh();
  310. ipt_name.refresh();
  311. return;
  312. }
  313. model.setValue("/root/send/rertparams2/name", "");
  314. model.setValue("/root/send/rertparams2/rrgstno", model.getValue("/root/send/retrparams/rrgstno"));
  315. model.setValue("/root/send/rertparams2/retrflag", "code");
  316. if (submit("TRRAC00611"))
  317. {
  318. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  319. {
  320. model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
  321. model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  322. }
  323. else
  324. {
  325. model.setValue("/root/send/retrparams/name", "");
  326. model.setValue("/root/send/retrparams/rrgstno", "");
  327. }
  328. }
  329. model.refresh();
  330. fRetrieve();
  331. ]]>
  332. </script>
  333. </input>
  334. <input id="ipt_name" ref="/root/send/retrparams/name" class="input_search" navindex="6" imemode="hangul" style="left:864px; top:8px; width:126px; height:19px; ">
  335. <script type="javascript" ev:event="onkeypress">
  336. <![CDATA[
  337. if(event.keyCode == 13)
  338. {
  339. model.setFocus("btn_search");
  340. }
  341. ]]>
  342. </script>
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. if(ipt_name.currentText == "")
  346. {
  347. model.setValue("/root/send/retrparams/rrgstno", "");
  348. model.setValue("/root/send/retrparams/name", "");
  349. ipt_rrgstno.refresh();
  350. ipt_name.refresh();
  351. return;
  352. }
  353. model.setValue("/root/send/rertparams2/name", model.getValue("/root/send/retrparams/name"));
  354. model.setValue("/root/send/rertparams2/rrgstno", "");
  355. model.setValue("/root/send/rertparams2/retrflag", "name");
  356. if (submit("TRRAC00611"))
  357. {
  358. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  359. {
  360. model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
  361. model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  362. }
  363. else
  364. {
  365. model.setValue("/root/send/retrparams/name", "");
  366. model.setValue("/root/send/retrparams/rrgstno", "");
  367. }
  368. }
  369. model.refresh();
  370. fRetrieve();
  371. ]]>
  372. </script>
  373. </input>
  374. </group>
  375. <line id="line3" class="line_1" style="x1:0px; y1:93px; x2:1195px; y2:93px; "/>
  376. <caption id="caption21" class="tit_2" style="left:5px; top:78px; width:139px; height:14px; ">사업소득자 목록</caption>
  377. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  378. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  379. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  380. <caption>저장</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fSave();
  384. ]]>
  385. </script>
  386. </button>
  387. <button id="btn_print" class="btn4_letter2" style="left:1080px; top:3px; width:56px; height:22px; ">
  388. <caption>출력</caption>
  389. <script type="javascript" ev:event="DOMActivate">
  390. <![CDATA[
  391. fPrint();
  392. ]]>
  393. </script>
  394. </button>
  395. </group>
  396. <button id="btn_addrow" class="btn2_letter3" style="left:1017px; top:73px; width:53px; height:19px; text-align:left; ">
  397. <caption>행추가</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. misfGridIUD(grd_orchlist, "A");
  401. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("chrgflag")) = "B";
  402. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("taxrate")) = "3";
  403. // misfSetReadOnlyCol(grd_orchlist, "ionatiflag", true, grd_orchlist.row);
  404. ]]>
  405. </script>
  406. </button>
  407. <button id="btn_delrow" class="btn2_letter3" style="left:1072px; top:73px; width:53px; height:19px; text-align:left; ">
  408. <caption>행삭제</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. var iLength = grd_orchlist.selectedCells.length;
  412. for(var i=0; i<iLength; i++)
  413. {
  414. var iRowIdx = grd_orchlist.selectedCells.item(i).row;
  415. if(model.getValue(grd_orchlist.nodeset + "[" + iRowIdx + "]/slipyn") != "Y")
  416. {
  417. if(grd_orchlist.rowStatus(iRowIdx) == 4)
  418. {
  419. grd_orchlist.rowStatus(iRowIdx) = 0;
  420. }
  421. else if(grd_orchlist.rowStatus(iRowIdx) == 1 && grd_orchlist.rowStatus(iRowIdx) == 3)
  422. {
  423. grd_orchlist.deleteRow(iRowIdx, false);
  424. }
  425. else
  426. {
  427. grd_orchlist.addStatus(iRowIdx, "delete");
  428. }
  429. }
  430. }
  431. ]]>
  432. </script>
  433. </button>
  434. <output id="opt_temp" ref="/root/hidden/incmpsn/name" visibility="hidden" style="left:914px; top:73px; width:20px; height:19px; "/>
  435. <caption id="caption10" style="left:180px; top:77px; width:15px; height:15px; background-color:#c0c0c0; "/>
  436. <caption id="caption11" style="left:198px; top:78px; width:202px; height:14px; ">전표 사업소득 삭제 및 수정 불가</caption>
  437. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:73px; width:64px; height:19px; text-align:left; ">
  438. <caption>엑셀저장</caption>
  439. <script type="javascript" ev:event="DOMActivate">
  440. <![CDATA[
  441. 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);
  442. misfSaveExcel(grd_excel, sTitle);
  443. ]]>
  444. </script>
  445. </button>
  446. <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" backcoloralternate="#ffffff" caption="v^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^귀속년도^귀속일자^사업자등록번호^상호^적 요^지급액^세율^소득세^주민세^계^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="25, 0, 0, 0, 0, 0, 99, 110, 70, 90, 0, 0, 340, 110, 40, 90, 80, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:142px; width:1193px; height:617px; ">
  447. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  448. <col ref="instcd" visibility="hidden"/>
  449. <col ref="seqno" visibility="hidden"/>
  450. <col ref="detlseqno" visibility="hidden"/>
  451. <col ref="chrgflag" visibility="hidden"/>
  452. <col ref="emplno" visibility="hidden"/>
  453. <col ref="name" type="inputbutton"/>
  454. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  455. <col ref="posyear" style="text-align:center; "/>
  456. <col ref="posdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  457. <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
  458. <col ref="custnm" visibility="hidden"/>
  459. <col ref="cmt" type="input" style="text-align:left; "/>
  460. <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  461. <col ref="taxrate" format="## %" style="text-align:right; padding-right:1; "/>
  462. <col ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  463. <col ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  464. <col ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  465. <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  466. <col ref="zipcd1" visibility="hidden"/>
  467. <col ref="zipcd2" visibility="hidden"/>
  468. <col ref="zipcdseqno" visibility="hidden"/>
  469. <col ref="address" visibility="hidden"/>
  470. <col ref="supaddr" type="input" visibility="hidden" style="text-align:left; "/>
  471. <col ref="infaddr" type="input" visibility="hidden" style="text-align:left; "/>
  472. <col ref="induflag" type="combo" visibility="hidden">
  473. <choices>
  474. <itemset nodeset="/root/init/R0278list/R0278">
  475. <label ref="cdnm"/>
  476. <value ref="cdid"/>
  477. </itemset>
  478. </choices>
  479. </col>
  480. <col ref="incmflag" type="combo" visibility="hidden">
  481. <choices>
  482. <itemset nodeset="/root/init/R0279list/R0279">
  483. <label ref="cdnm"/>
  484. <value ref="cdid"/>
  485. </itemset>
  486. </choices>
  487. </col>
  488. <script type="javascript" ev:event="onclick">
  489. <![CDATA[
  490. ]]>
  491. </script>
  492. <script type="javascript" ev:event="onbuttonclick">
  493. <![CDATA[
  494. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  495. {
  496. model.removenode("/root/hidden/incmpsn");
  497. model.makeNode("/root/hidden/incmpsn");
  498. model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
  499. misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
  500. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  501. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  502. // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
  503. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  504. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
  505. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  506. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  507. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  508. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  509. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  510. }
  511. else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
  512. {
  513. misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
  514. var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
  515. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
  516. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
  517. }
  518. model.refresh();
  519. ]]>
  520. </script>
  521. <script type="javascript" ev:event="xforms-value-changed">
  522. <![CDATA[
  523. if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  524. {
  525. model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  526. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  527. {
  528. model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
  529. model.setValue("/root/send/rertparams2/rrgstno", "");
  530. model.setValue("/root/send/rertparams2/retrflag", "name");
  531. }
  532. else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  533. {
  534. model.setValue("/root/send/rertparams2/name", "");
  535. model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
  536. model.setValue("/root/send/rertparams2/retrflag", "code");
  537. }
  538. if (submit("TRRAC00611"))
  539. {
  540. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  541. {
  542. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  543. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  544. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  545. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
  546. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  547. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  548. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  549. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  550. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  551. }
  552. }
  553. }
  554. else if(grd_orchlist.col == grd_orchlist.colRef("paytotamt"))
  555. {
  556. fPayCalc();
  557. }
  558. else if(grd_orchlist.col == grd_orchlist.colRef("incmtax") || grd_orchlist.col == grd_orchlist.colRef("resdntax"))
  559. {
  560. var iIncmTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax"), 10);
  561. var iResdnTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax"), 10);
  562. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
  563. }
  564. ]]>
  565. </script>
  566. </datagrid>
  567. <output id="output5" ref="/root/send/printparams/incmTax" format="(-)#,###" style="left:907px; top:122px; width:86px; height:19px; text-align:right; margin-right:1; "/>
  568. <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###" style="left:756px; top:122px; width:107px; height:19px; text-align:right; margin-right:1; "/>
  569. <line id="line11" class="line_3" style="x1:754px; y1:98px; x2:754px; y2:142px; "/>
  570. <line id="line13" class="line_3" style="x1:864px; y1:98px; x2:864px; y2:142px; "/>
  571. <caption id="cap_item" class="cell_1" style="left:996px; top:98px; width:77px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
  572. <caption id="caption15" class="cell_1" style="left:907px; top:98px; width:86px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
  573. <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###" style="left:996px; top:122px; width:77px; height:19px; text-align:right; margin-right:1; "/>
  574. <caption id="caption18" class="cell_1" style="left:756px; top:98px; width:107px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
  575. <line id="line6" class="line_3" style="x1:1074px; y1:98px; x2:1074px; y2:142px; "/>
  576. <caption id="caption19" class="cell_1" style="left:666px; top:120px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
  577. <line id="line7" class="line_3" style="x1:994px; y1:98px; x2:994px; y2:142px; "/>
  578. <output id="opt_zipcd" ref="/root/hidden/zipcd/zipcd1" navindex="-1" visibility="hidden" style="left:895px; top:73px; width:20px; height:19px; text-align:left; "/>
  579. <button id="btn_openpsn" class="btn2_letter5" style="left:938px; top:73px; width:75px; height:19px; ">
  580. <caption>소득자등록</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. model.makeValue("/root/source/receiveref", "/root/hidden/incmpsntemp");
  584. model.refresh();
  585. modal("SPRAC00611","","","","","/root/source", "/root/target" );
  586. model.refresh();
  587. ]]>
  588. </script>
  589. </button>
  590. <output id="output2" ref="/root/hidden/checkedcnt" visibility="hidden" style="left:105px; top:110px; width:25px; height:20px; "/>
  591. <datagrid id="grd_excel" nodeset="/root/main/list/orchlist" visibility="hidden" backcoloralternate="#ffffff" caption="성명^주민등록번호^귀속일자^적 요^지급일수^일급^지급액^세율^소득세^주민세^계^사업자등록번호^상호^우편번호^주소" colwidth="80, 100, 87, 375, 60, 100, 110, 70, 90, 90, 100, 100, 100, 90, 70" dataheight="25" ellipsis="true" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:1110px; top:675px; width:83px; height:74px; ">
  592. <col ref="name" type="inputbutton"/>
  593. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  594. <col ref="posyear" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  595. <col ref="cmt" type="input" style="text-align:left; "/>
  596. <col ref="dayno" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  597. <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  598. <col ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  599. <col ref="taxrate" visibility="hidden"/>
  600. <col ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  601. <col ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  602. <col ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  603. <col ref="entrregno"/>
  604. <col ref="custnm"/>
  605. <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  606. <col ref="address" visibility="hidden"/>
  607. <script type="javascript" ev:event="onclick">
  608. <![CDATA[
  609. ]]>
  610. </script>
  611. <script type="javascript" ev:event="onbuttonclick">
  612. <![CDATA[
  613. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  614. {
  615. model.removenode("/root/hidden/incmpsn");
  616. model.makeNode("/root/hidden/incmpsn");
  617. model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
  618. misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
  619. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  620. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  621. // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
  622. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  623. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
  624. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  625. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  626. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  627. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  628. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  629. }
  630. else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
  631. {
  632. misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
  633. var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
  634. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
  635. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
  636. }
  637. model.refresh();
  638. ]]>
  639. </script>
  640. <script type="javascript" ev:event="xforms-value-changed">
  641. <![CDATA[
  642. if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  643. {
  644. model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  645. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  646. {
  647. model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
  648. model.setValue("/root/send/rertparams2/rrgstno", "");
  649. model.setValue("/root/send/rertparams2/retrflag", "name");
  650. }
  651. else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  652. {
  653. model.setValue("/root/send/rertparams2/name", "");
  654. model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
  655. model.setValue("/root/send/rertparams2/retrflag", "code");
  656. }
  657. if (submit("TRRAC00611"))
  658. {
  659. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  660. {
  661. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  662. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  663. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  664. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", (model.getValue("/root/hidden/incmpsn/zipcd1") == "" ? "" : model.getValue("/root/hidden/incmpsn/zipcd1") + "-" + model.getValue("/root/hidden/incmpsn/zipcd1")));
  665. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  666. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  667. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  668. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  669. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  670. }
  671. }
  672. }
  673. else if(grd_orchlist.col == grd_orchlist.colRef("dayno") || grd_orchlist.col == grd_orchlist.colRef("dypay"))
  674. {
  675. fPayCalc();
  676. }
  677. ]]>
  678. </script>
  679. </datagrid>
  680. <line id="line2" class="line_3" style="x1:905px; y1:98px; x2:905px; y2:142px; "/>
  681. </group>
  682. <caption id="caption5" class="cell_1" style="left:1076px; top:111px; width:87px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  683. <output id="output3" ref="/root/send/printparams/isumAmt" format="(-)#,###" style="left:1076px; top:135px; width:87px; height:19px; text-align:right; margin-right:1; "/>
  684. <line id="line4" class="line_3" style="x1:1164px; y1:111px; x2:1164px; y2:155px; "/>
  685. </xhtml:body>
  686. </xhtml:html>