SMRAT00600_일용근로소득조회및저장.xrw 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110
  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. <list>
  11. <orchlist/>
  12. <dayworkerprntlist/>
  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>A</profflag>
  30. <retrkind/>
  31. <dayflag/>
  32. <groupid/>
  33. </retrparams>
  34. <printparams>
  35. <payTotAmt/>
  36. <incmTax/>
  37. <resdnTax/>
  38. <isumAmt/>
  39. </printparams>
  40. <rertparams2>
  41. <instcd/>
  42. <name/>
  43. <rrgstno/>
  44. <retrflag/>
  45. </rertparams2>
  46. </send>
  47. <init/>
  48. <temp/>
  49. <hidden>
  50. <incmpsn>
  51. <name/>
  52. <rrgstno/>
  53. <entrregno/>
  54. <custnm/>
  55. <zipcd/>
  56. <zipcd1/>
  57. <zipcd2/>
  58. <zipcdseqno/>
  59. <supaddr/>
  60. <infaddr/>
  61. <cntctel/>
  62. <emailaddr/>
  63. <cmt/>
  64. <ionatiflag/>
  65. <incmflag/>
  66. </incmpsn>
  67. <prntlist>
  68. <dayworkerprntlist/>
  69. </prntlist>
  70. <zipcd>
  71. <zipcd1/>
  72. <zipcd2/>
  73. <supaddr/>
  74. <zipcdseqno/>
  75. </zipcd>
  76. <incmpsntemp>
  77. <name/>
  78. <rrgstno/>
  79. <entrregno/>
  80. <custnm/>
  81. <zipcd/>
  82. <zipcd1/>
  83. <zipcd2/>
  84. <zipcdseqno/>
  85. <supaddr/>
  86. <infaddr/>
  87. <cntctel/>
  88. <emailaddr/>
  89. <cmt/>
  90. <ionatiflag/>
  91. <induflag/>
  92. <incmflag/>
  93. </incmpsntemp>
  94. <checkedcnt/>
  95. </hidden>
  96. </root>
  97. </instance>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  102. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  103. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  104. <bind id="bindPayTotAmt" ref="/root/send/printparams/payTotAmt" calculate="sum(/root/main/list/orchlist/paytotamt)"/>
  105. <bind id="bindIncmTax" ref="/root/send/printparams/incmTax" calculate="sum(/root/main/list/orchlist/incmtax)"/>
  106. <bind id="bindResdnTax" ref="/root/send/printparams/resdnTax" calculate="sum(/root/main/list/orchlist/resdntax)"/>
  107. <submission id="TRRAC00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rertparams2" resultref="/root/hidden/incmpsn"/>
  108. <submission id="TXRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/orchlist" resultref="/root/temp"/>
  109. <submission id="TRRAT00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  110. <script type="javascript" ev:event="xforms-ready">
  111. <![CDATA[
  112. fInitialize();
  113. model.setValue("/root/send/retrparams/dayflag", "P");
  114. model.refresh();
  115. ]]>
  116. </script>
  117. <script type="javascript">
  118. <![CDATA[
  119. function fInitialize()
  120. {
  121. // 2011.09.26 cyw 해당실무자만이 메뉴접근 가능하도록 수정.
  122. misfComboComCdList("030R0018",cmb_gruptype);
  123. var cnt = getNodesetCount("/root/init/cmb_gruptype/comcodelist");
  124. var chk = 0;
  125. for(var i = 1; i <= cnt; i++ ){
  126. if( model.getValue("/root/init/cmb_gruptype/comcodelist[" + i + "]/cdid") == getUserId() ){
  127. chk++;
  128. }
  129. }
  130. if( chk > 0 ){
  131. group3.disabled = false;
  132. }else{
  133. group3.disabled = true;
  134. messageBox("해당 화면에 권한이 없습니다.", "C000");
  135. }
  136. model.removenode("/root/main/list/orchlist");
  137. misfMsterDetailSet(grd_orchlist, null, "TRRAT00601", "Y");
  138. // misfComboComCdListMulti("Z0007,R0278", "cmb_instcd,grd_orchlist.induflag");
  139. misfComboComCdListMulti("Z0007,", "cmb_instcd");
  140. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  141. model.setValue("/root/send/retrparams/frdd", getCurrentDate());
  142. model.setValue("/root/send/retrparams/todd", getCurrentDate());
  143. model.setValue("/root/send/rertparams2/instcd", getUserInfo("dutplceinstcd"));
  144. model.setValue("/root/send/retrparams/retrkind", "all");
  145. model.refresh();
  146. grd_orchlist.rowHeight(0) = 30;
  147. var payrow = grd_orchlist.colRef("paytotamt");
  148. grd_orchlist.colDisabled(payrow) = true;
  149. //fRetrieve();
  150. }
  151. function fRetrieve()
  152. {
  153. submit("TRRAT00601");
  154. for(var i=1; i<grd_orchlist.rows; i++)
  155. {
  156. if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/chkyn") == "Y")
  157. {
  158. model.setValue(grd_orchlist.nodeset + "[" + i + "]/chknm" , "확인");
  159. misfSetReadOnlyCol(grd_orchlist, "pumno,name,rrgstno,paydd,getdd,dayno,dypay", true, i);
  160. }else{
  161. misfSetReadOnlyCol(grd_orchlist, "pumno,name,rrgstno,paydd,getdd,dayno,dypay", false, i); //2011.10.11 cyw
  162. }
  163. // if(model.getValue(grd_orchlist.nodeset + "[" + i + "]/slipyn") == "Y")
  164. // {
  165. // grd_orchlist.rowStyle(i, "all", "background-color") = "#EAEAEA";
  166. // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", true, i);
  167. // }
  168. // else
  169. // {
  170. // grd_orchlist.rowStyle(i, "all", "background-color") = "#ffffff";
  171. // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear", true, i);
  172. // misfSetReadOnlyCol(grd_orchlist, "name,rrgstno,posyear,cmt,dayno,dypay,paytotamt,incmtax,resdntax,zipcd,supaddr,infaddr", false, i);
  173. // }
  174. }
  175. // var rows = grd_orchlist.rows - 1;
  176. // var st = grd_orchlist.colRef("paydd");
  177. // grd_orchlist.sort(1, st, rows, st) = "desc";
  178. // grd_orchlist.refresh();
  179. fSetPrintNodeList();
  180. model.recalculate();
  181. model.refresh();
  182. }
  183. function fSave()
  184. {
  185. for(var i=1; i<grd_orchlist.rows; i++)
  186. {
  187. var sRrgstno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("rrgstno"));
  188. // var sPosYear = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("posyear"));
  189. var sPosYear = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("getdd"));
  190. var sCmt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("cmt"));
  191. var sDayno = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("dayno"));
  192. var sDypay = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("dypay"));
  193. var sPaytotamt = grd_orchlist.valueMatrix(i, grd_orchlist.colRef("paytotamt"));
  194. if(sRrgstno == "") { messageBox("소득자를", "C001"); return; }
  195. if(!isValidDateTime(sPosYear, "YYYYMM"))
  196. { messageBox("귀속 일자가 유효하지 않습니다.", "I000"); return; }
  197. // if(sCmt == "") { messageBox("비고를", "C001"); return; }
  198. if(sDayno == "") { messageBox("지급일수를", "C001"); return; }
  199. if(sDypay == "") { messageBox("일급을", "C001"); return; }
  200. if(sPaytotamt == "") { messageBox("지급액을", "C001"); return; }
  201. }
  202. misfSave("TXRAT00601");
  203. fRetrieve();
  204. }
  205. function fPrint()
  206. {
  207. var iLength = instance1.selectNodes("/root/main/list/prtorchlist").length;
  208. model.removenode("/root/hidden/prntlist");
  209. model.makeNode("/root/hidden/prntlist");
  210. //2011.10.04 cyw 선택영역만 출력가능하게
  211. if(grd_orchlist.selectedRows >= 1 ){
  212. for( var a = 0 ; a < grd_orchlist.selectedRows ; a++ ){
  213. model.makeNode("/root/hidden/prntlist/dayworkerprntlist[" + (a+1) + "]");
  214. model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + (a+1) + "]", "/root/main/list/orchlist[" + grd_orchlist.selectedRow(a) + "]");
  215. }
  216. }else{
  217. for(var i=1; i<=iLength; i++)
  218. {
  219. model.makeNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]");
  220. model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]", "/root/main/list/prtorchlist[" + i + "]");
  221. }
  222. }
  223. model.makeValue("/root/hidden/prntlist/prtflag", "1");
  224. exeReportPreview("RPRAD00215", "XMLSTR");
  225. model.setValue("/root/hidden/prntlist/prtflag", "2");
  226. exeReportPreview("RPRAD00215", "XMLSTR");
  227. }
  228. function fSetPrintNodeList()
  229. {
  230. var iLength = instance1.selectNodes("/root/main/list/orchlist").length;
  231. model.removenode("/root/hidden/prntlist");
  232. model.makeNode("/root/hidden/prntlist");
  233. for(var i=1; i<=iLength; i++)
  234. {
  235. model.makeNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]");
  236. model.copyNode("/root/hidden/prntlist/dayworkerprntlist[" + i + "]", "/root/main/list/orchlist[" + i + "]");
  237. }
  238. }
  239. function fPayCalc()
  240. {
  241. var dayno = parseFloat(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/dayno"));
  242. var dypay = parseFloat(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/dypay"));
  243. var weight = 0;
  244. if(dypay >= 0)
  245. {
  246. weight = 100000;
  247. }
  248. else
  249. {
  250. weight = -100000;
  251. }
  252. if (dayno != 0 && dypay != 0)
  253. {
  254. // 과세표준
  255. var taxpay = (dypay > 100000 || dypay < -100000) ? parseFloat((dypay * dayno) - (weight * dayno)) : 0;
  256. // alert("taxpay(?)=" + " " + taxpay);
  257. // 소득공제
  258. var nontaxpay = parseFloat((dypay * dayno) - taxpay);
  259. // var caltax = parseFloat(taxpay * 0.08);
  260. // 산출세액
  261. var caltax = parseFloat(taxpay * 0.06);
  262. // alert(caltax);
  263. // 공제세액
  264. var taxgj = parseFloat(caltax * 0.55);
  265. // alert(taxgj);
  266. // 소득세액
  267. var incmtax = parseInt((caltax - taxgj) / 10, 10) * 10;
  268. // 주민세액
  269. var resdntax = parseInt((incmtax * 0.1) / 10, 10) * 10;
  270. // 실수령액
  271. var realpay = parseInt(dayno * dypay, 10) - ( incmtax + resdntax );
  272. // 소득세액이 1000 미만이면 소득세 주민세 0으로 셋팅
  273. if (incmtax < 1000 && incmtax > -1000) {
  274. incmtax = 0;
  275. resdntax = 0;
  276. }
  277. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/paytotamt", parseInt(dayno * dypay, 10));
  278. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax", parseInt(incmtax, 10));
  279. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax", parseInt(resdntax, 10));
  280. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/taxpay", parseInt(taxpay, 10));
  281. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/caltax", parseInt(caltax, 10));
  282. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/taxgj", parseInt(taxgj, 10));
  283. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/realpay", parseInt(realpay, 10));
  284. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/nontaxpay", parseInt(nontaxpay, 10));
  285. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", parseInt(incmtax + resdntax, 10));
  286. model.refresh();
  287. model.recalculate();
  288. }
  289. }
  290. ]]>
  291. </script>
  292. <bind id="bindChkCnt" ref="/root/hidden/checkedcnt" calculate="count(/root/main/list/orchlist[chk = 'Y']/chk)"/>
  293. <bind id="bindSumAmt" ref="/root/send/printparams/isumAmt" calculate="sum(/root/main/list/orchlist/sumamt)"/>
  294. </model>
  295. </xhtml:head>
  296. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  297. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  298. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">일용근로소득 조회/수정</caption>
  299. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  300. </group>
  301. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  302. <group id="grp_sea" style="left:0px; top:35px; width:1195px; height:35px; vertical-align:top; ">
  303. <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; "/>
  304. <line id="line5" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  305. <input id="ipt_frym" ref="/root/send/retrparams/frdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:485px; top:8px; width:100px; height:19px; text-align:center; ">
  306. <script type="javascript" ev:event="xforms-value-changed">
  307. <![CDATA[
  308. //fRetrieve();
  309. ]]>
  310. </script>
  311. </input>
  312. <caption id="caption2" style="left:587px; top:11px; width:15px; height:20px; ">~</caption>
  313. <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; ">
  314. <choices>
  315. <itemset>
  316. <label/>
  317. <value/>
  318. </itemset>
  319. </choices>
  320. <script type="javascript" ev:event="xforms-value-changed">
  321. <![CDATA[
  322. model.setValue("/root/send/rertparams2/instcd", "/root/send/retrparams/instcd");
  323. fRetrieve();
  324. ]]>
  325. </script>
  326. </select1>
  327. <caption id="caption3" class="search_name" style="left:9px; top:9px; width:90px; height:17px; ">기관구분 :</caption>
  328. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; text-align:left; ">
  329. <caption>조회</caption>
  330. <script type="javascript" ev:event="DOMActivate">
  331. <![CDATA[
  332. fRetrieve();
  333. ]]>
  334. </script>
  335. </button>
  336. <input id="ipt_toym" ref="/root/send/retrparams/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:600px; top:8px; width:100px; height:19px; text-align:center; ">
  337. <script type="javascript" ev:event="xforms-value-changed">
  338. <![CDATA[
  339. //fRetrieve();
  340. ]]>
  341. </script>
  342. </input>
  343. <caption id="caption8" class="search_name" style="left:730px; top:9px; width:90px; height:17px; ">소 득 자 :</caption>
  344. <button id="btn_entregnohelp" class="icon_search" style="left:924px; top:9px; width:16px; height:16px; ">
  345. <caption/>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. misfOpenPopUpList("31", ipt_rrgstno, "", "rrgstno,name");
  349. model.refresh();
  350. ]]>
  351. </script>
  352. </button>
  353. <input id="ipt_rrgstno" ref="/root/send/retrparams/rrgstno" class="input_search" navindex="5" format="999999-9999999" style="left:820px; top:8px; width:100px; height:19px; text-align:center; ">
  354. <script type="javascript" ev:event="onkeypress">
  355. <![CDATA[
  356. if(event.keyCode == 13)
  357. {
  358. model.setFocus("ipt_name");
  359. }
  360. ]]>
  361. </script>
  362. <script type="javascript" ev:event="xforms-value-changed">
  363. <![CDATA[
  364. if(ipt_rrgstno.currentText == "")
  365. {
  366. model.setValue("/root/send/retrparams/rrgstno", "");
  367. model.setValue("/root/send/retrparams/name", "");
  368. ipt_rrgstno.refresh();
  369. ipt_name.refresh();
  370. return;
  371. }
  372. model.setValue("/root/send/rertparams2/name", "");
  373. model.setValue("/root/send/rertparams2/rrgstno", model.getValue("/root/send/retrparams/rrgstno"));
  374. model.setValue("/root/send/rertparams2/retrflag", "code");
  375. if (submit("TRRAC00611"))
  376. {
  377. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  378. {
  379. model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
  380. model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  381. }
  382. else
  383. {
  384. model.setValue("/root/send/retrparams/name", "");
  385. model.setValue("/root/send/retrparams/rrgstno", "");
  386. }
  387. }
  388. model.refresh();
  389. fRetrieve();
  390. ]]>
  391. </script>
  392. </input>
  393. <input id="ipt_name" ref="/root/send/retrparams/name" class="input_search" navindex="6" imemode="hangul" style="left:944px; top:8px; width:101px; height:19px; ">
  394. <script type="javascript" ev:event="onkeypress">
  395. <![CDATA[
  396. if(event.keyCode == 13)
  397. {
  398. model.setFocus("btn_search");
  399. }
  400. ]]>
  401. </script>
  402. <script type="javascript" ev:event="xforms-value-changed">
  403. <![CDATA[
  404. if(ipt_name.currentText == "")
  405. {
  406. model.setValue("/root/send/retrparams/rrgstno", "");
  407. model.setValue("/root/send/retrparams/name", "");
  408. ipt_rrgstno.refresh();
  409. ipt_name.refresh();
  410. return;
  411. }
  412. model.setValue("/root/send/rertparams2/name", model.getValue("/root/send/retrparams/name"));
  413. model.setValue("/root/send/rertparams2/rrgstno", "");
  414. model.setValue("/root/send/rertparams2/retrflag", "name");
  415. if (submit("TRRAC00611"))
  416. {
  417. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  418. {
  419. model.setValue("/root/send/retrparams/name", model.getValue("/root/hidden/incmpsn/name"));
  420. model.setValue("/root/send/retrparams/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  421. }
  422. else
  423. {
  424. model.setValue("/root/send/retrparams/name", "");
  425. model.setValue("/root/send/retrparams/rrgstno", "");
  426. }
  427. }
  428. model.refresh();
  429. fRetrieve();
  430. ]]>
  431. </script>
  432. </input>
  433. <select1 id="rdo_retrkind" ref="/root/send/retrparams/retrkind" visibility="hidden" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:1001px; top:9px; width:90px; height:16px; border-style:none; ">
  434. <choices>
  435. <item>
  436. <label>전체</label>
  437. <value>all</value>
  438. </item>
  439. <item>
  440. <label>집합</label>
  441. <value>sum</value>
  442. </item>
  443. </choices>
  444. <script type="javascript" ev:event="xforms-value-changed">
  445. <![CDATA[
  446. //fRetrieve();
  447. //
  448. // fSetControlAttr();
  449. ]]>
  450. </script>
  451. </select1>
  452. <caption id="caption9" class="search_name" visibility="hidden" style="left:911px; top:9px; width:97px; height:17px; ">조회구분 :</caption>
  453. <caption id="caption1" class="search_name" style="left:280px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  454. <select1 id="cmb_day" ref="/root/send/retrparams/dayflag" class="combo_s_essential" navindex="-1" appearance="minimal" style="left:370px; top:8px; width:100px; height:19px; ">
  455. <choices>
  456. <item>
  457. <label>지급일자</label>
  458. <value>P</value>
  459. </item>
  460. <item>
  461. <label>귀속년월</label>
  462. <value>G</value>
  463. </item>
  464. </choices>
  465. <script type="javascript" ev:event="xforms-value-changed">
  466. <![CDATA[
  467. if ( cmb_day.value == "G" ) {
  468. ipt_frym.attribute("format") = "yyyy-mm";
  469. ipt_toym.attribute("format") = "yyyy-mm";
  470. model.refresh();
  471. }
  472. if ( cmb_day.value == "P" ) {
  473. ipt_frym.attribute("format") = "yyyy-mm-dd";
  474. ipt_toym.attribute("format") = "yyyy-mm-dd";
  475. model.refresh();
  476. }
  477. ]]>
  478. </script>
  479. </select1>
  480. </group>
  481. <line id="line3" class="line_1" style="x1:0px; y1:93px; x2:1195px; y2:93px; "/>
  482. <caption id="caption21" class="tit_2" style="left:5px; top:78px; width:139px; height:14px; ">일용근로소득자 목록</caption>
  483. <group id="group2" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  484. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  485. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  486. <caption>저장</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. fSave();
  490. ]]>
  491. </script>
  492. </button>
  493. <button id="btn_print" class="btn4_letter2" style="left:1080px; top:3px; width:56px; height:22px; ">
  494. <caption>출력</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. // 2011.08.08 CYW
  498. // * 조회기준이 소득자가 포함되어있는 경우에만 출력 가능함.
  499. var flag = true;
  500. var orchCnt = getNodesetCount("/root/main/list/orchlist");
  501. for( var i = 1 ; i <= orchCnt ; i++ ){
  502. if( model.getValue("/root/main/list/orchlist[1]/name") != model.getValue("/root/main/list/orchlist[" + i + "]/name") ){
  503. flag = false;
  504. }
  505. }
  506. if( flag == true ){
  507. fPrint();
  508. }else{
  509. messageBox("소득자 기준으로 조회해야 출력 가능합니다. 소득자를 조회해주십시오.", "E000", "");
  510. }
  511. model.refresh();
  512. ]]>
  513. </script>
  514. </button>
  515. </group>
  516. <button id="btn_addrow" class="btn2_letter3" style="left:1017px; top:73px; width:53px; height:19px; text-align:left; ">
  517. <caption>행추가</caption>
  518. <script type="javascript" ev:event="DOMActivate">
  519. <![CDATA[
  520. misfGridIUD(grd_orchlist, "A");
  521. var dayno = getCurrentDate();
  522. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("chrgflag")) = "A";
  523. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("taxrate")) = "6";
  524. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("paydd")) = dayno;
  525. grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("getdd")) = dayno.substr(0, 6);
  526. // misfSetReadOnlyCol(grd_orchlist, "ionatiflag", true, grd_orchlist.row);
  527. ]]>
  528. </script>
  529. </button>
  530. <button id="btn_delrow" class="btn2_letter3" style="left:1072px; top:73px; width:53px; height:19px; text-align:left; ">
  531. <caption>행삭제</caption>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. // var iLength = grd_orchlist.selectedCells.length;
  535. var iLength = grd_orchlist.selectedRows;
  536. for(var i=0; i<iLength; i++)
  537. {
  538. var iRowIdx = grd_orchlist.selectedCells.item(i).row;
  539. // alert(iRowIdx);
  540. if(model.getValue(grd_orchlist.nodeset + "[" + iRowIdx + "]/slipyn") != "Y")
  541. {
  542. // alert(grd_orchlist.rowStatus(iRowIdx));
  543. if(grd_orchlist.rowStatus(iRowIdx) == 4)
  544. {
  545. grd_orchlist.rowStatus(iRowIdx) = 0;
  546. }
  547. else if(grd_orchlist.rowStatus(iRowIdx) == 1 && grd_orchlist.rowStatus(iRowIdx) == 3)
  548. {
  549. grd_orchlist.deleteRow(iRowIdx, false);
  550. }
  551. else
  552. {
  553. grd_orchlist.addStatus(iRowIdx, "delete");
  554. }
  555. }
  556. }
  557. ]]>
  558. </script>
  559. </button>
  560. <output id="opt_temp" ref="/root/hidden/incmpsn/name" visibility="hidden" style="left:914px; top:73px; width:20px; height:19px; "/>
  561. <caption id="caption10" style="left:180px; top:77px; width:15px; height:15px; background-color:#c0c0c0; "/>
  562. <caption id="caption11" style="left:198px; top:78px; width:202px; height:14px; ">전표 일용근로소득 삭제 및 수정 불가</caption>
  563. <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:73px; width:64px; height:19px; text-align:left; ">
  564. <caption>엑셀저장</caption>
  565. <script type="javascript" ev:event="DOMActivate">
  566. <![CDATA[
  567. 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);
  568. misfSaveExcel(grd_excel, sTitle);
  569. ]]>
  570. </script>
  571. </button>
  572. <datagrid id="grd_orchlist" nodeset="/root/main/list/orchlist" backcoloralternate="#ffffff" caption="확인^품의번호^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^지급일자^귀속년월^승인일자^사업자등록번호^상호^적 요^지급일수^일급^지급액^세율^세율^소득공제^과세표준^산출세액^공제세액^소득세^주민세^계^실수령액^확인^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="40, 95, 0, 0, 0, 0, 0, 64, 100, 90, 76, 0, 0, 0, 0, 55, 55, 70, 0, 0, 70, 70, 60, 60, 60, 60, 70, 70, 45, 0, 0, 0, 0, 0, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:142px; width:1193px; height:617px; ">
  573. <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
  574. <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
  575. <col ref="instcd" visibility="hidden"/>
  576. <col ref="seqno" visibility="hidden"/>
  577. <col ref="detlseqno" visibility="hidden"/>
  578. <col ref="chrgflag" visibility="hidden"/>
  579. <col ref="emplno" visibility="hidden"/>
  580. <col ref="name" type="inputbutton"/>
  581. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  582. <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  583. <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  584. <col ref="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  585. <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
  586. <col ref="custnm" visibility="hidden"/>
  587. <col ref="cmt" type="input" visibility="hidden" style="text-align:left; "/>
  588. <col ref="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
  589. <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  590. <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  591. <col ref="taxrate" visibility="hidden"/>
  592. <col ref="taxrate" format="## %" visibillity="hidden" style="text-align:right; padding-right:1; "/>
  593. <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  594. <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  595. <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  596. <col disabled="true" ref="taxgj" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  597. <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  598. <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  599. <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  600. <col disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  601. <col checkvalue="Y,N" ref="chkyn" type="checkbox" visibility="hidden"/>
  602. <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  603. <col ref="zipcd1" visibility="hidden"/>
  604. <col ref="zipcd2" visibility="hidden"/>
  605. <col ref="zipcdseqno" visibility="hidden"/>
  606. <col ref="address" visibility="hidden"/>
  607. <col ref="supaddr" type="input" visibility="hidden" style="text-align:left; "/>
  608. <col ref="infaddr" type="input" visibility="hidden" style="text-align:left; "/>
  609. <col ref="induflag" type="combo" visibility="hidden">
  610. <choices>
  611. <itemset nodeset="/root/init/R0278list/R0278">
  612. <label ref="cdnm"/>
  613. <value ref="cdid"/>
  614. </itemset>
  615. </choices>
  616. </col>
  617. <col ref="incmflag" type="combo" visibility="hidden">
  618. <choices>
  619. <itemset nodeset="/root/init/R0279list/R0279">
  620. <label ref="cdnm"/>
  621. <value ref="cdid"/>
  622. </itemset>
  623. </choices>
  624. </col>
  625. <script type="javascript" ev:event="onclick">
  626. <![CDATA[
  627. ]]>
  628. </script>
  629. <script type="javascript" ev:event="onbuttonclick">
  630. <![CDATA[
  631. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  632. {
  633. model.removenode("/root/hidden/incmpsn");
  634. model.makeNode("/root/hidden/incmpsn");
  635. model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
  636. misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
  637. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  638. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  639. // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
  640. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  641. 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")));
  642. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  643. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  644. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  645. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  646. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  647. }
  648. else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
  649. {
  650. misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
  651. var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
  652. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
  653. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
  654. }
  655. model.refresh();
  656. ]]>
  657. </script>
  658. <script type="javascript" ev:event="xforms-value-changed">
  659. <![CDATA[
  660. if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  661. {
  662. model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  663. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  664. {
  665. model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
  666. model.setValue("/root/send/rertparams2/rrgstno", "");
  667. model.setValue("/root/send/rertparams2/retrflag", "name");
  668. }
  669. else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  670. {
  671. model.setValue("/root/send/rertparams2/name", "");
  672. model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
  673. model.setValue("/root/send/rertparams2/retrflag", "code");
  674. }
  675. if (submit("TRRAC00611"))
  676. {
  677. // 20110520_wify_경북대병원 소득자 조회시 조회대상이 없어도 기존정보 사라지도록 node값을 셋팅한다.
  678. // if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  679. // {
  680. if (instance1.selectNodes("/root/hidden/incmpsn").length < 1) {
  681. alert("등록된 소득자가 없습니다.");
  682. }
  683. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  684. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  685. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  686. 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")));
  687. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  688. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  689. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  690. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  691. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  692. // }
  693. }
  694. }
  695. else if(grd_orchlist.col == grd_orchlist.colRef("dayno") || grd_orchlist.col == grd_orchlist.colRef("dypay"))
  696. {
  697. fPayCalc();
  698. }
  699. else if(grd_orchlist.col == grd_orchlist.colRef("incmtax") || grd_orchlist.col == grd_orchlist.colRef("resdntax"))
  700. {
  701. var iIncmTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax"), 10);
  702. var iResdnTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax"), 10);
  703. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
  704. }
  705. ]]>
  706. </script>
  707. <script type="javascript" ev:event="onaftersort">
  708. <![CDATA[
  709. grd_orchlist.gridToInstance();
  710. ]]>
  711. </script>
  712. </datagrid>
  713. <output id="output5" ref="/root/send/printparams/incmTax" format="(-)#,###" style="left:930px; top:122px; width:60px; height:19px; text-align:right; margin-right:1; "/>
  714. <output id="output8" ref="/root/send/printparams/payTotAmt" format="(-)#,###" style="left:599px; top:122px; width:76px; height:19px; text-align:right; margin-right:1; "/>
  715. <line id="line11" class="line_3" style="x1:597px; y1:98px; x2:597px; y2:142px; "/>
  716. <line id="line13" class="line_3" style="x1:676px; y1:98px; x2:676px; y2:142px; "/>
  717. <caption id="cap_item" class="cell_1" style="left:990px; top:98px; width:60px; height:23px; text-align:center; vertical-align:middle; ">주민세</caption>
  718. <caption id="caption15" class="cell_1" style="left:930px; top:98px; width:60px; height:23px; text-align:center; vertical-align:middle; ">소득세</caption>
  719. <output id="output1" ref="/root/send/printparams/resdnTax" format="(-)#,###" style="left:991px; top:122px; width:58px; height:19px; text-align:right; margin-right:1; "/>
  720. <caption id="caption18" class="cell_1" style="left:599px; top:98px; width:76px; height:23px; text-align:center; vertical-align:middle; ">총지급액</caption>
  721. <line id="line6" class="line_3" style="x1:1049px; y1:98px; x2:1049px; y2:142px; "/>
  722. <caption id="caption19" class="cell_1" style="left:509px; top:120px; width:87px; height:21px; text-align:center; vertical-align:middle; ">계</caption>
  723. <line id="line7" class="line_3" style="x1:990px; y1:98px; x2:990px; y2:142px; "/>
  724. <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; "/>
  725. <button id="btn_openpsn" class="btn2_letter5" style="left:938px; top:73px; width:75px; height:19px; ">
  726. <caption>소득자등록</caption>
  727. <script type="javascript" ev:event="DOMActivate">
  728. <![CDATA[
  729. model.makeValue("/root/source/receiveref", "/root/hidden/incmpsntemp");
  730. model.refresh();
  731. modal("SPRAC00611","","","","","/root/source", "/root/target" );
  732. model.refresh();
  733. ]]>
  734. </script>
  735. </button>
  736. <output id="output2" ref="/root/hidden/checkedcnt" visibility="hidden" style="left:105px; top:110px; width:25px; height:20px; "/>
  737. <datagrid id="grd_excel" nodeset="/root/main/list/orchlist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^성명^주민등록번호^지급일자^귀속년월^지급일수^일급^지급액^소득공제^과세표준^산출세액^공제세액^소득세^주민세^계^실수령액" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:442px; width:593px; height:217px; ">
  738. <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
  739. <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
  740. <col ref="name" type="inputbutton"/>
  741. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  742. <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  743. <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  744. <col ref="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
  745. <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  746. <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  747. <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  748. <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  749. <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  750. <col disabled="true" ref="taxgj" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  751. <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  752. <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  753. <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  754. <col disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  755. <script type="javascript" ev:event="onbuttonclick">
  756. <![CDATA[
  757. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  758. {
  759. model.removenode("/root/hidden/incmpsn");
  760. model.makeNode("/root/hidden/incmpsn");
  761. model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
  762. misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
  763. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  764. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  765. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
  766. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  767. 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")));
  768. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  769. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  770. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  771. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  772. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  773. }
  774. else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
  775. {
  776. misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
  777. var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
  778. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
  779. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
  780. }
  781. model.refresh();
  782. ]]>
  783. </script>
  784. <script type="javascript" ev:event="xforms-value-changed">
  785. <![CDATA[
  786. if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  787. {
  788. model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  789. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  790. {
  791. model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
  792. model.setValue("/root/send/rertparams2/rrgstno", "");
  793. model.setValue("/root/send/rertparams2/retrflag", "name");
  794. }
  795. else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  796. {
  797. model.setValue("/root/send/rertparams2/name", "");
  798. model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
  799. model.setValue("/root/send/rertparams2/retrflag", "code");
  800. }
  801. if (submit("TRRAC00611"))
  802. {
  803. if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  804. {
  805. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  806. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  807. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/induflag", model.getValue("/root/hidden/incmpsn/induflag"));
  808. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  809. 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")));
  810. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  811. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  812. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  813. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  814. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  815. }
  816. }
  817. }
  818. else if(grd_orchlist.col == grd_orchlist.colRef("dayno") || grd_orchlist.col == grd_orchlist.colRef("dypay"))
  819. {
  820. fPayCalc();
  821. }
  822. ]]>
  823. </script>
  824. </datagrid>
  825. <output id="output3" ref="/root/send/printparams/isumAmt" format="(-)#,###" style="left:1051px; top:122px; width:69px; height:19px; text-align:right; margin-right:1; "/>
  826. <caption id="caption5" class="cell_1" style="left:1051px; top:98px; width:70px; height:23px; text-align:center; vertical-align:middle; ">계</caption>
  827. <line id="line2" class="line_3" style="x1:1122px; y1:98px; x2:1122px; y2:142px; "/>
  828. <line id="line4" class="line_3" style="x1:928px; y1:98px; x2:928px; y2:142px; "/>
  829. <datagrid id="datagrid1" nodeset="/root/main/list/prtorchlist" visibility="hidden" backcoloralternate="#ffffff" caption="확인^품의번호^기관코드^일련번호^세부일련번호^징수구분^사원번호^성명^주민등록번호^지급일자^귀속년월^승인일자^사업자등록번호^상호^적 요^지급일수^일급^지급액^세율^세율^소득공제^과세표준^산출세액^공제세액^소득세^주민세^계^실수령액^확인^우편번호^우편번호^우편번호^우편번호일련번호^주소^상위주소^상세주소^업종구분^소득구분" colwidth="40, 95, 0, 0, 0, 0, 0, 64, 100, 90, 76, 0, 0, 0, 0, 55, 55, 70, 0, 0, 70, 70, 60, 60, 60, 60, 70, 70, 45, 0, 0, 0, 0, 0, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:285px; width:500px; height:405px; ">
  830. <col disabled="true" ref="chknm" type="input" style="text-align:center; "/>
  831. <col ref="pumno" type="input" format="99999999-99999999" style="text-align:center; "/>
  832. <col ref="instcd" visibility="hidden"/>
  833. <col ref="seqno" visibility="hidden"/>
  834. <col ref="detlseqno" visibility="hidden"/>
  835. <col ref="chrgflag" visibility="hidden"/>
  836. <col ref="emplno" visibility="hidden"/>
  837. <col ref="name" type="inputbutton"/>
  838. <col ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
  839. <col ref="paydd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  840. <col ref="getdd" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  841. <col ref="posyear" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  842. <col ref="entrregno" visibility="hidden" format="999-99-99999"/>
  843. <col ref="custnm" visibility="hidden"/>
  844. <col ref="cmt" type="input" visibility="hidden" style="text-align:left; "/>
  845. <col ref="dayno" type="input" format="(-)#,###.9" style="text-align:right; padding-right:1; "/>
  846. <col ref="dypay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  847. <col disabled="true" ref="paytotamt" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  848. <col ref="taxrate" visibility="hidden"/>
  849. <col ref="taxrate" format="## %" visibillity="hidden" style="text-align:right; padding-right:1; "/>
  850. <col disabled="true" ref="nontaxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  851. <col disabled="true" ref="taxpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  852. <col disabled="true" ref="caltax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  853. <col disabled="true" ref="taxgj" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  854. <col disabled="true" ref="incmtax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  855. <col disabled="true" ref="resdntax" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  856. <col disabled="true" ref="sumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  857. <col disabled="true" ref="realpay" type="input" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  858. <col checkvalue="Y,N" ref="chkyn" type="checkbox" visibility="hidden"/>
  859. <col ref="zipcd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  860. <col ref="zipcd1" visibility="hidden"/>
  861. <col ref="zipcd2" visibility="hidden"/>
  862. <col ref="zipcdseqno" visibility="hidden"/>
  863. <col ref="address" visibility="hidden"/>
  864. <col ref="supaddr" type="input" visibility="hidden" style="text-align:left; "/>
  865. <col ref="infaddr" type="input" visibility="hidden" style="text-align:left; "/>
  866. <col ref="induflag" type="combo" visibility="hidden">
  867. <choices>
  868. <itemset nodeset="/root/init/R0278list/R0278">
  869. <label ref="cdnm"/>
  870. <value ref="cdid"/>
  871. </itemset>
  872. </choices>
  873. </col>
  874. <col ref="incmflag" type="combo" visibility="hidden">
  875. <choices>
  876. <itemset nodeset="/root/init/R0279list/R0279">
  877. <label ref="cdnm"/>
  878. <value ref="cdid"/>
  879. </itemset>
  880. </choices>
  881. </col>
  882. <script type="javascript" ev:event="onclick">
  883. <![CDATA[
  884. ]]>
  885. </script>
  886. <script type="javascript" ev:event="onbuttonclick">
  887. <![CDATA[
  888. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  889. {
  890. model.removenode("/root/hidden/incmpsn");
  891. model.makeNode("/root/hidden/incmpsn");
  892. model.copyNode("/root/hidden/incmpsn", "/root/hidden/incmpsntemp");
  893. misfOpenPopUpList("31", opt_temp, "", "rrgstno,name,entrregno,custnm,zipcd,zipcd1,zipcd2,zipcdseqno,supaddr,infaddr,cntctel,emailaddr,cmt,ionatiflag,incmflag", "");
  894. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  895. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  896. // model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/ionatiflag", model.getValue("/root/hidden/incmpsn/ionatiflag"));
  897. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  898. 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")));
  899. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  900. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  901. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  902. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  903. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  904. }
  905. else if(grd_orchlist.col == grd_orchlist.colRef("zipcd"))
  906. {
  907. misfOpenPopUpList("04", opt_zipcd, "", "zipcd1,zipcd2,supaddr,zipcdseqno");
  908. var sZipcd = model.getValue("/root/hidden/zipcd/zipcd1") + '-' + model.getValue("/root/hidden/zipcd/zipcd2");
  909. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd", sZipcd);
  910. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/zipcd/supaddr"));
  911. }
  912. model.refresh();
  913. ]]>
  914. </script>
  915. <script type="javascript" ev:event="xforms-value-changed">
  916. <![CDATA[
  917. if(grd_orchlist.col == grd_orchlist.colRef("name") || grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  918. {
  919. model.setValue("/root/send/rertparams2/instcd", model.getValue("/root/send/retrparams/instcd"));
  920. if(grd_orchlist.col == grd_orchlist.colRef("name"))
  921. {
  922. model.setValue("/root/send/rertparams2/name", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("name")));
  923. model.setValue("/root/send/rertparams2/rrgstno", "");
  924. model.setValue("/root/send/rertparams2/retrflag", "name");
  925. }
  926. else if(grd_orchlist.col == grd_orchlist.colRef("rrgstno"))
  927. {
  928. model.setValue("/root/send/rertparams2/name", "");
  929. model.setValue("/root/send/rertparams2/rrgstno", grd_orchlist.valueMatrix(grd_orchlist.row, grd_orchlist.colRef("rrgstno")));
  930. model.setValue("/root/send/rertparams2/retrflag", "code");
  931. }
  932. if (submit("TRRAC00611"))
  933. {
  934. // 20110520_wify_경북대병원 소득자 조회시 조회대상이 없어도 기존정보 사라지도록 node값을 셋팅한다.
  935. // if (instance1.selectNodes("/root/hidden/incmpsn").length > 0)
  936. // {
  937. if (instance1.selectNodes("/root/hidden/incmpsn").length < 1) {
  938. alert("등록된 소득자가 없습니다.");
  939. }
  940. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/name", model.getValue("/root/hidden/incmpsn/name"));
  941. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/rrgstno", model.getValue("/root/hidden/incmpsn/rrgstno"));
  942. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/posyear", getCurrentDate());
  943. 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")));
  944. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd1", model.getValue("/root/hidden/incmpsn/zipcd1"));
  945. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcd2", model.getValue("/root/hidden/incmpsn/zipcd2"));
  946. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/zipcdseqno", model.getValue("/root/hidden/incmpsn/zipcdseqno"));
  947. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/supaddr", model.getValue("/root/hidden/incmpsn/supaddr"));
  948. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/infaddr", model.getValue("/root/hidden/incmpsn/infaddr"));
  949. // }
  950. }
  951. }
  952. else if(grd_orchlist.col == grd_orchlist.colRef("dayno") || grd_orchlist.col == grd_orchlist.colRef("dypay"))
  953. {
  954. fPayCalc();
  955. }
  956. else if(grd_orchlist.col == grd_orchlist.colRef("incmtax") || grd_orchlist.col == grd_orchlist.colRef("resdntax"))
  957. {
  958. var iIncmTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/incmtax"), 10);
  959. var iResdnTax = parseInt(model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax") == "" ? 0 : model.getValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/resdntax"), 10);
  960. model.setValue(grd_orchlist.nodeset + "[" + grd_orchlist.row + "]/sumamt", iIncmTax + iResdnTax);
  961. }
  962. ]]>
  963. </script>
  964. </datagrid>
  965. <select1 id="cmb_gruptype" ref="/root/send/retrparams/groupid" class="combo_s_essential" navindex="-1" visibility="hidden" appearance="minimal" style="left:99px; top:8px; width:66px; height:19px; ">
  966. <choices>
  967. <itemset nodeset="/root/init/cmb_gruptype/comcodelist">
  968. <label ref="cdnm"/>
  969. <value ref="cdid"/>
  970. </itemset>
  971. </choices>
  972. </select1>
  973. </group>
  974. </xhtml:body>
  975. </xhtml:html>