SMRAS10000_담소매출신고서관리.xrw 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  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. <taxbilllist/>
  12. </list>
  13. <prntlist/>
  14. <ctrls>
  15. <total>
  16. <cnt/>
  17. <useamt/>
  18. <tax/>
  19. <sum/>
  20. </total>
  21. <mutualpossible>
  22. <cnt/>
  23. <useamt/>
  24. <tax/>
  25. <sum/>
  26. </mutualpossible>
  27. <mutualimpossible>
  28. <cnt/>
  29. <useamt/>
  30. <tax/>
  31. <sum/>
  32. </mutualimpossible>
  33. <fixproperty>
  34. <cnt/>
  35. <useamt/>
  36. <tax/>
  37. <sum/>
  38. </fixproperty>
  39. </ctrls>
  40. </main>
  41. <send>
  42. <retrparam>
  43. <instcd/>
  44. <yyyy/>
  45. <reptkind/>
  46. <frdate/>
  47. <todate/>
  48. <useflag/>
  49. <entrregno/>
  50. <custnm/>
  51. <prsdnm/>
  52. <addtaxpnt/>
  53. <profcheckyn/>
  54. <sanctflag>Y</sanctflag>
  55. <sendflag>Y</sendflag>
  56. <mngtiptflag>Y</mngtiptflag>
  57. <taxform/>
  58. </retrparam>
  59. <date/>
  60. <prntretrparams>
  61. <seqno/>
  62. </prntretrparams>
  63. </send>
  64. <init>
  65. <init_useflag>
  66. <item>
  67. <label>카드</label>
  68. <value>4</value>
  69. </item>
  70. <item>
  71. <label>현금영수증</label>
  72. <value>5</value>
  73. </item>
  74. <item>
  75. <label>현금</label>
  76. <value>6</value>
  77. </item>
  78. </init_useflag>
  79. <init_taxbillflag>
  80. <item>
  81. <label>매입</label>
  82. <value>1</value>
  83. </item>
  84. <item>
  85. <label>매출</label>
  86. <value>2</value>
  87. </item>
  88. </init_taxbillflag>
  89. <init_reptkind>
  90. <item>
  91. <label>1기예정</label>
  92. <value>1</value>
  93. </item>
  94. <item>
  95. <label>1기확정</label>
  96. <value>2</value>
  97. </item>
  98. <item>
  99. <label>2기예정</label>
  100. <value>3</value>
  101. </item>
  102. <item>
  103. <label>2기확정</label>
  104. <value>4</value>
  105. </item>
  106. </init_reptkind>
  107. <init_flagcd>
  108. <item>
  109. <label>정규</label>
  110. <value>1</value>
  111. </item>
  112. <item>
  113. <label>예정신고누락분</label>
  114. <value>2</value>
  115. </item>
  116. </init_flagcd>
  117. <init_fixasetflag>
  118. <item>
  119. <label>일반 매입·출</label>
  120. <value>00</value>
  121. </item>
  122. <item>
  123. <label>건,구축물</label>
  124. <value>01</value>
  125. </item>
  126. <item>
  127. <label>기계장치</label>
  128. <value>02</value>
  129. </item>
  130. <item>
  131. <label>차량운반구</label>
  132. <value>03</value>
  133. </item>
  134. <item>
  135. <label>기타감가상각물</label>
  136. <value>04</value>
  137. </item>
  138. </init_fixasetflag>
  139. <all_chk/>
  140. </init>
  141. <source>
  142. <slipinfo>
  143. <instcd/>
  144. <slipdt/>
  145. <slipno/>
  146. </slipinfo>
  147. </source>
  148. <hidden>
  149. <allwork/>
  150. <item/>
  151. </hidden>
  152. </root>
  153. </instance>
  154. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  157. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  158. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  159. <script type="javascript" ev:event="xforms-ready">
  160. <![CDATA[
  161. fResetForm();
  162. ]]>
  163. </script>
  164. <script type="javascript">
  165. <![CDATA[
  166. function fResetForm()
  167. {
  168. model.removeNodeset("/root/main/list/taxbilllist");
  169. if(model.getValue("/root/send/retrparam/taxbillflag")=="0"){
  170. model.setValue("/root/send/retparam/taxbillkind" , "4");
  171. model.setValue("/root/send/retparam/taxbillkindsort" , "4");
  172. alert(model.setValue("/root/send/retparam/taxbillkind" , "4"));
  173. alert(model.setValue("/root/send/retparam/taxbillkindsort" , "4"));
  174. }
  175. misfMsterDetailSet(grd_taxbilllist, null, "TXRAS00140", "Y");
  176. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  177. model.setValue("/root/send/retrparam/yyyy", getCurrentDate().substr(0, 4));
  178. // 현재일자 세팅
  179. model.setValue("/root/send/retrparam/frdate", getCurrentDate());
  180. model.setValue("/root/send/retrparam/todate", getCurrentDate());
  181. grd_taxbilllist.rowheight(0) = 35;
  182. fSetReptKind();
  183. fSetDate();
  184. model.refresh();
  185. }
  186. function fRetrieve()
  187. {
  188. if(model.getValue("/root/send/retrparam/yyyy").length != 4)
  189. {
  190. messageBox("년도가 잘못되었습니다.", "I999");
  191. return;
  192. }
  193. model.setValue("/root/send/prntretrparams/seqno", "");
  194. model.setValue("/root/init/all_chk", "");
  195. model.removeNodeset("/root/main/list/taxbilllist");
  196. model.refresh();
  197. misfMsterDetailRetrieve();
  198. model.recalculate();
  199. }
  200. function fSetReptKind()
  201. {
  202. var sMonth = getCurrentDate().substr(4, 2);
  203. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  204. {
  205. model.setValue("/root/send/retrparam/reptkind", "1");
  206. }
  207. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  208. {
  209. model.setValue("/root/send/retrparam/reptkind", "2");
  210. }
  211. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  212. {
  213. model.setValue("/root/send/retrparam/reptkind", "3");
  214. }
  215. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  216. {
  217. model.setValue("/root/send/retrparam/reptkind", "4");
  218. }
  219. model.refresh();
  220. }
  221. function fSetDate()
  222. {
  223. if(model.getValue("/root/send/retrparam/yyyy").length != 4)
  224. {
  225. messageBox("년도가 잘못되었습니다.", "I999");
  226. return;
  227. }
  228. var sReptKind = model.getValue("/root/send/retrparam/reptkind");
  229. if(sReptKind == "1")
  230. {
  231. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0101");
  232. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0331");
  233. }
  234. else if(sReptKind == "2")
  235. {
  236. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0401");
  237. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0630");
  238. }
  239. else if(sReptKind == "3")
  240. {
  241. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0701");
  242. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0930");
  243. }
  244. else if(sReptKind == "4")
  245. {
  246. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "1001");
  247. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "1231");
  248. }
  249. model.refresh();
  250. }
  251. function fAddDelRow(sStatus)
  252. {
  253. if(sStatus == "A")
  254. {
  255. misfGridIUD(grd_taxbilllist, sStatus);
  256. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  257. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("flagcd")) = "1";
  258. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("genrdd")) = getCurrentDate();
  259. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isskind")) = "01";
  260. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind")) = "01";
  261. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = "01";
  262. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("fixasetflag")) = "01";
  263. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "00";
  264. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("remintax")) = "00";
  265. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn")) = "N";
  266. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")) = "";
  267. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")) = "";
  268. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useamt")) = "";
  269. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = "";
  270. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = "";
  271. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("mainrec")) = "";
  272. //fSetAddtaxterm(grd_taxbilllist.row);
  273. }
  274. else
  275. {
  276. if(sStatus == "D") {
  277. var vgrdstatus;
  278. vgrdstatus = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("slipstatus")) ;
  279. if(vgrdstatus == "미결" || vgrdstatus == "결재" ) {
  280. model.alert (" 전표 내용이 있어 삭제가 불가 합니다...");
  281. return;
  282. }
  283. }
  284. misfGridIUD(grd_taxbilllist, sStatus);
  285. }
  286. }
  287. function fSave() {
  288. misfSave("TXRAS00140");
  289. submit("TRRAS00140");
  290. }
  291. function fSetAmtSetting() {
  292. if(grd_taxbilllist.col == grd_taxbilllist.colRef("useamt") || grd_taxbilllist.col == grd_taxbilllist.colRef("valaddtax"))
  293. {
  294. var iSuplAmt = 0;
  295. var iValAddTax = 0;
  296. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useamt")) == "")
  297. {
  298. iSuplAmt = 0;
  299. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useamt")) = 0;
  300. }
  301. else
  302. {
  303. iSuplAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useamt"));
  304. if(grd_taxbilllist.col != grd_taxbilllist.colRef("valaddtax"))
  305. {
  306. var taxrate;
  307. var taxchk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind"));
  308. if (( taxchk == "04") || ( taxchk == "07") || ( taxchk == "09")){
  309. taxrate = 0.1;
  310. } else
  311. {
  312. taxrate = 0 ;
  313. }
  314. var fValAddTax = parseInt(iSuplAmt * taxrate);
  315. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = fValAddTax;
  316. }
  317. }
  318. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) == "")
  319. {
  320. iValAddTax = 0;
  321. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = 0;
  322. }
  323. else
  324. {
  325. iValAddTax = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax"));
  326. }
  327. var iSumAmt = parseFloat(iSuplAmt) + parseFloat(iValAddTax);
  328. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = iSumAmt;
  329. }
  330. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("amt") && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useflag")) == "4" || grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useflag")) == "5" || grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useflag")) == "6")
  331. {
  332. var sAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt"));
  333. var iPayAmt = 0;
  334. var iTax = 0;
  335. if(sAmt != "")
  336. {
  337. iPayAmt = Math.round(parseInt(sAmt, 10) / 11.0 * 10);
  338. iTax = Math.round(parseInt(sAmt, 10) / 11.0);
  339. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("useamt")) = iPayAmt;
  340. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = iTax;
  341. }
  342. }
  343. model.refresh();
  344. }
  345. function fSetPrntRetrParams()
  346. {
  347. model.setValue("/root/send/prntretrparams/seqno", model.getValue("/root/main/list/taxbilllist[" + grd_taxbilllist.row + "]/seqno"));
  348. }
  349. function fPrintTaxBill()
  350. {
  351. submit("TRRAS00140");
  352. if(rdo_billkind.value == 4)
  353. {
  354. exeReportPreview("RPRAT00701", "XMLSTR");
  355. }
  356. else
  357. {
  358. exeReportPreview("RPRAT00702", "XMLSTR");
  359. }
  360. }
  361. function fAllCheck(strAllChk)
  362. {
  363. var grdTolCnt;
  364. grdTolCnt = grd_taxbilllist.rows;
  365. if (strAllChk == "Y")
  366. {
  367. for(var i =1; i < grd_taxbilllist.rows; i++)
  368. {
  369. fSetAddtaxterm(i);
  370. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "Y";
  371. }
  372. }
  373. else
  374. {
  375. for(var i =1; i < grd_taxbilllist.rows; i++)
  376. {
  377. fSetCleartaxterm(i);
  378. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "N";
  379. }
  380. }
  381. }
  382. /*
  383. 부가세 년도와 신고 유형을 셋팅
  384. */
  385. function fSetAddtaxterm(rowid)
  386. {
  387. var strAddtaxyy;
  388. var strAddtaxpnt;
  389. strAddtaxyy = model.getValue("/root/send/retrparam/yyyy");
  390. strAddtaxpnt = model.getValue("/root/send/retrparam/reptkind");
  391. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = strAddtaxyy;
  392. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = strAddtaxpnt;
  393. var tmpStatus;
  394. tmpStatus = grd_taxbilllist.rowStatus(rowid);
  395. if (tmpStatus == 0 )
  396. {
  397. grd_taxbilllist.rowStatus(rowid) = 2 ;
  398. }
  399. }
  400. /*
  401. 부가세 년도와 신고 유형 제거
  402. */
  403. function fSetCleartaxterm(rowid)
  404. {
  405. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = "";
  406. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = "";
  407. var tmpStatus;
  408. tmpStatus = grd_taxbilllist.rowStatus(rowid);
  409. if (tmpStatus == 0 )
  410. {
  411. grd_taxbilllist.rowStatus(rowid) = 2 ;
  412. }
  413. }
  414. function fSetcheck(chk, row) // 선택을 체크해서 Y이면 신고년도, 신고기간 입력, N이면 삭제
  415. {
  416. }
  417. ]]>
  418. </script>
  419. <submission id="TXRAS00140" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/taxbilllist" resultref="/root/temp"/>
  420. <submission id="TRRAS00140" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
  421. <!-- 전체 -->
  422. <bind id="tot_cnt" ref="/root/main/ctrls/total/cnt" calculate="count(/root/main/list/taxbilllist/seqno)"/>
  423. <bind id="tot_useamt" ref="/root/main/ctrls/total/useamt" calculate="sum(/root/main/list/taxbilllist/useamt)"/>
  424. <bind id="tot_tax" ref="/root/main/ctrls/total/tax" calculate="sum(/root/main/list/taxbilllist/valaddtax)"/>
  425. <bind id="tot_sum" ref="/root/main/ctrls/total/sum" calculate="sum(/root/main/list/taxbilllist/amt)"/>
  426. <!-- 공제 항목 : 공제 인건 공제와 Null 포함 -->
  427. <bind id="tot1_cnt" ref="/root/main/ctrls/mutualpossible/cnt" calculate="count(/root/main/list/taxbilllist[deduyn='00']/seqno) + count(/root/main/list/taxbilllist[deduyn='']/seqno)"/>
  428. <bind id="tot1_useamt" ref="/root/main/ctrls/mutualpossible/useamt" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/useamt) + sum(/root/main/list/taxbilllist[deduyn='']/useamt)"/>
  429. <bind id="tot1_tax" ref="/root/main/ctrls/mutualpossible/tax" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/valaddtax) + sum(/root/main/list/taxbilllist[deduyn='']/valaddtax)"/>
  430. <bind id="tot1_sum" ref="/root/main/ctrls/mutualpossible/sum" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/amt) + sum(/root/main/list/taxbilllist[deduyn='']/amt)"/>
  431. <!-- 불공제 항목 : 전체에서 공제를 뺀 것 -->
  432. <bind id="tot2_cnt" ref="/root/main/ctrls/mutualimpossible/cnt" calculate="sum(/root/main/ctrls/total/cnt) - sum(/root/main/ctrls/mutualpossible/cnt)"/>
  433. <bind id="tot2_useamt" ref="/root/main/ctrls/mutualimpossible/useamt" calculate="sum(/root/main/ctrls/total/useamt) - sum(/root/main/ctrls/mutualpossible/useamt)"/>
  434. <bind id="tot2_tax" ref="/root/main/ctrls/mutualimpossible/tax" calculate="sum(/root/main/ctrls/total/tax) - sum(/root/main/ctrls/mutualpossible/tax)"/>
  435. <bind id="tot2_sum" ref="/root/main/ctrls/mutualimpossible/sum" calculate="sum(/root/main/ctrls/total/sum) - sum(/root/main/ctrls/mutualpossible/sum)"/>
  436. <!-- 고정자산 매입 : 전체에서 일반 매입과 Null을 뺀 것 -->
  437. <bind id="tot3_cnt" ref="/root/main/ctrls/fixproperty/cnt" calculate="sum(/root/main/ctrls/total/cnt) - count(/root/main/list/taxbilllist[fixasetflag='00']/seqno) - count(/root/main/list/taxbilllist[fixasetflag='']/seqno)"/>
  438. <bind id="tot3_useamt" ref="/root/main/ctrls/fixproperty/useamt" calculate="sum(/root/main/ctrls/total/useamt) - sum(/root/main/list/taxbilllist[fixasetflag='00']/useamt) - sum(/root/main/list/taxbilllist[fixasetflag='']/uselamt)"/>
  439. <bind id="tot3_tax" ref="/root/main/ctrls/fixproperty/tax" calculate="sum(/root/main/ctrls/total/tax) - sum(/root/main/list/taxbilllist[fixasetflag='00']/valaddtax) - sum(/root/main/list/taxbilllist[fixasetflag='']/valaddtax)"/>
  440. <bind id="tot3_sum" ref="/root/main/ctrls/fixproperty/sum" calculate="sum(/root/main/ctrls/total/sum) - sum(/root/main/list/taxbilllist[fixasetflag='00']/amt) - sum(/root/main/list/taxbilllist[fixasetflag='']/amt)"/>
  441. <submission id="TRRAS00150" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntretrparams" resultref="/root/main/prntlist"/>
  442. </model>
  443. </xhtml:head>
  444. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  445. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  446. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">담소매출 신고서 관리</caption>
  447. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  448. </group>
  449. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  450. <group id="group4" style="left:0px; top:0px; width:1195px; height:65px; vertical-align:top; ">
  451. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  452. <caption id="caption9" class="search_name" style="left:305px; top:9px; width:106px; height:17px; ">신고 유형 :</caption>
  453. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
  454. <caption id="caption8" style="left:961px; top:11px; width:15px; height:20px; ">~</caption>
  455. <caption id="caption10" class="search_name" style="left:760px; top:10px; width:100px; height:17px; ">작성 일자 :</caption>
  456. <caption id="caption1" class="search_name" style="left:760px; top:36px; width:104px; height:17px; ">사업자번호 :</caption>
  457. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:31px; width:56px; height:22px; text-align:left; ">
  458. <caption>조회</caption>
  459. <script type="javascript" ev:event="DOMActivate">
  460. <![CDATA[
  461. fRetrieve();
  462. //전표 입력 증빙은 수정하지 못하도록 예외처리
  463. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  464. {
  465. var ReadOnlyValue = false;
  466. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("unsldd")) != "")
  467. {
  468. bReadOnlyValue = true;
  469. }
  470. else
  471. {
  472. bReadOnlyValue = false;
  473. }
  474. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("entrregno")) = bReadOnlyValue;
  475. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("useamt")) = bReadOnlyValue;
  476. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("valaddtax")) = bReadOnlyValue;
  477. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("amt")) = bReadOnlyValue;
  478. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("closyn")) == "Y")
  479. {
  480. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#99ccff";
  481. }
  482. else
  483. {
  484. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#ffffff";
  485. }
  486. }
  487. submit("TRRAS00140");
  488. ]]>
  489. </script>
  490. </button>
  491. <line id="line10" class="line_4" style="x1:1107px; y1:6px; x2:1107px; y2:56px; "/>
  492. <caption id="caption3" class="search_name" style="left:10px; top:36px; width:99px; height:17px; ">계산서종류 :</caption>
  493. <select1 id="rdo_reptkind" ref="/root/send/retrparam/reptkind" class="radio_search" navindex="2" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:410px; top:9px; width:320px; height:20px; vertical-align:middle; border-style:none; ">
  494. <choices>
  495. <itemset nodeset="/root/init/init_reptkind/item">
  496. <label ref="label"/>
  497. <value ref="value"/>
  498. </itemset>
  499. </choices>
  500. <script type="javascript" ev:event="xforms-value-changed">
  501. <![CDATA[
  502. if(model.getValue(cmb_addtaxpnt.attribute("ref")) == "")
  503. {
  504. fSetDate();
  505. }
  506. ]]>
  507. </script>
  508. </select1>
  509. <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:860px; top:9px; width:95px; height:19px; text-align:center; "/>
  510. <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:977px; top:9px; width:95px; height:19px; "/>
  511. <select1 id="rdo_useflag" ref="/root/send/retrparam/useflag" class="radio_search" navindex="3" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:36px; width:245px; height:19px; vertical-align:middle; border-style:none; ">
  512. <choices>
  513. <itemset nodeset="/root/init/init_useflag/item">
  514. <label ref="label"/>
  515. <value ref="value"/>
  516. </itemset>
  517. </choices>
  518. </select1>
  519. <button id="btn_entregnohelp" class="icon_search" style="left:959px; top:36px; width:16px; height:16px; ">
  520. <caption/>
  521. <script type="javascript" ev:event="DOMActivate">
  522. <![CDATA[
  523. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  524. model.refresh();
  525. ]]>
  526. </script>
  527. </button>
  528. <input id="ipt_regno" ref="/root/send/retrparam/entrregno" navindex="5" format="999-99-99999" style="left:860px; top:36px; width:95px; height:19px; text-align:center; ">
  529. <script type="javascript" ev:event="onkeypress">
  530. <![CDATA[
  531. if(event.keyCode == 13)
  532. {
  533. racfCustValidCheck("entrregno,custnm", "code");
  534. }
  535. ]]>
  536. </script>
  537. <script type="javascript" ev:event="xforms-value-changed">
  538. <![CDATA[
  539. racfCustValidCheck("entrregno,custnm", "code");
  540. ]]>
  541. </script>
  542. </input>
  543. <input id="ipt_regnm" ref="/root/send/retrparam/custnm" navindex="6" imemode="hangul" style="left:977px; top:36px; width:123px; height:19px; ">
  544. <script type="javascript" ev:event="onkeypress">
  545. <![CDATA[
  546. if(event.keyCode == 13)
  547. {
  548. racfCustValidCheck("entrregno,custnm", "name");
  549. }
  550. ]]>
  551. </script>
  552. <script type="javascript" ev:event="xforms-value-changed">
  553. <![CDATA[
  554. racfCustValidCheck("entrregno,custnm", "name");
  555. ]]>
  556. </script>
  557. </input>
  558. <input id="ipt_yyyy" ref="/root/send/retrparam/yyyy" class="input_s_essential" navindex="1" maxlength="4" style="left:130px; top:9px; width:68px; height:19px; text-align:center; ">
  559. <script type="javascript" ev:event="xforms-value-changed">
  560. <![CDATA[
  561. rdo_reptkind.dispatch("xforms-value-changed");
  562. ]]>
  563. </script>
  564. </input>
  565. <select1 id="cmb_addtaxpnt" ref="/root/send/retrparam/addtaxpnt" class="combo_essential" navindex="4" visibility="hidden" appearance="minimal" style="left:641px; top:35px; width:90px; height:19px; ">
  566. <choices>
  567. <item>
  568. <label>전체</label>
  569. <value/>
  570. </item>
  571. <item>
  572. <label>1기예정</label>
  573. <value>1</value>
  574. </item>
  575. <item>
  576. <label>1기확정</label>
  577. <value>2</value>
  578. </item>
  579. <item>
  580. <label>2기예정</label>
  581. <value>3</value>
  582. </item>
  583. <item>
  584. <label>2기확정</label>
  585. <value>4</value>
  586. </item>
  587. </choices>
  588. <script type="javascript" ev:event="xforms-value-changed">
  589. <![CDATA[
  590. if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
  591. {
  592. model.setValue(ipt_frdate.attribute("ref"), "");
  593. model.setValue(ipt_todate.attribute("ref"), "");
  594. ipt_frdate.refresh();
  595. ipt_todate.refresh();
  596. ipt_frdate.disabled = true;
  597. ipt_todate.disabled = true;
  598. chk_sanctflag.value = "Y";
  599. chk_sendflag.value = "Y";
  600. chk_mngtiptflag.value = "Y";
  601. // chk_sanctflag.disabled = true;
  602. // chk_sendflag.disabled = true;
  603. // chk_mngtiptflag.disabled = true;
  604. }
  605. else
  606. {
  607. rdo_reptkind.disabled = false;
  608. ipt_frdate.disabled = false;
  609. ipt_todate.disabled = false;
  610. // chk_sanctflag.disabled = false;
  611. // chk_sendflag.disabled = false;
  612. // chk_mngtiptflag.disabled = false;
  613. fSetDate();
  614. }
  615. ]]>
  616. </script>
  617. </select1>
  618. <caption id="caption16" class="search_name" visibility="hidden" style="left:552px; top:35px; width:100px; height:17px; ">확정기간 :</caption>
  619. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:115px; top:10px; width:13px; height:15px; ">
  620. <caption/>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  624. var vNum = parseInt(vYYYY, 10);
  625. if (vNum != 1)
  626. {
  627. vNum--;
  628. }
  629. else
  630. {
  631. return;
  632. }
  633. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  634. ipt_yyyy.refresh();
  635. rdo_reptkind.dispatch("xforms-value-changed");
  636. ]]>
  637. </script>
  638. </button>
  639. <button id="button1" class="icon_next" navindex="-1" style="left:200px; top:10px; width:13px; height:15px; ">
  640. <caption/>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  644. var vNum = parseInt(vYYYY, 10);
  645. if (vNum != 1)
  646. {
  647. vNum++;
  648. }
  649. else
  650. {
  651. return;
  652. }
  653. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  654. ipt_yyyy.refresh();
  655. rdo_reptkind.dispatch("xforms-value-changed");
  656. ]]>
  657. </script>
  658. </button>
  659. <select1 id="combo2" ref="/root/send/retrparam/taxform" class="combo_essential" navindex="4" visibility="hidden" appearance="minimal" style="left:449px; top:35px; width:90px; height:19px; ">
  660. <choices>
  661. <item>
  662. <label>전체</label>
  663. <value/>
  664. </item>
  665. <item>
  666. <label>건별</label>
  667. <value>04</value>
  668. </item>
  669. <item>
  670. <label>카과</label>
  671. <value>07</value>
  672. </item>
  673. <item>
  674. <label>기타</label>
  675. <value>09</value>
  676. </item>
  677. </choices>
  678. </select1>
  679. <caption id="caption19" class="search_name" visibility="hidden" style="left:360px; top:35px; width:105px; height:17px; ">과세유형 :</caption>
  680. </group>
  681. <datagrid id="grd_taxbilllist" nodeset="/root/main/list/taxbilllist" backcoloralternate="#ffffff" caption="선택^기관코드^일련번호^신고년도^신고기간^계산서종류^작성일자^사업자등록번호^거래처명^공급가액^부가세^합계^과세유형^적요" colwidth="32, 35, 67, 120, 120, 120, 120, 140, 150, 100, 100, 100, 66, 136" ellipsis="true" explorerbar="sortshow" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:93px; width:1193px; height:492px; ">
  682. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  683. <script type="javascript" ev:event="xforms-value-changed">
  684. <![CDATA[
  685. if(grd_taxbilllist.col == grd_taxbilllist.colRef("chk"))
  686. {
  687. var row = grd_taxbilllist.row;
  688. var chk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("chk"));
  689. if (chk == "N")
  690. {
  691. //model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxyy","");
  692. //model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxpnt","");
  693. }
  694. if (chk == "Y")
  695. {
  696. fSetAddtaxterm(row);
  697. }
  698. }
  699. else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("closyn"))
  700. {
  701. var closyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn"));
  702. if (closyn == "")
  703. {
  704. closyn = "N";
  705. }
  706. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  707. {
  708. model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/closyn", closyn);
  709. grd_taxbilllist.addStatus(i, "update");
  710. }
  711. }
  712. else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("profcheckyn"))
  713. {
  714. var profcheckyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("profcheckyn"));
  715. if (profcheckyn == "")
  716. {
  717. profcheckyn = "N";
  718. }
  719. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  720. {
  721. model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/profcheckyn", profcheckyn);
  722. grd_taxbilllist.addStatus(i, "update");
  723. }
  724. }
  725. model.refresh();
  726. ]]>
  727. </script>
  728. <col ref="instcd" visibility="hidden"/>
  729. <col ref="seqno" type="input" visibility="hidden" style="left:55px; top:23px; width:35px; height:23px; "/>
  730. <col ref="addtaxyy" type="input" style="text-align:center; "/>
  731. <col ref="addtaxpnt" type="combo" style="text-align:left; ">
  732. <choices>
  733. <item>
  734. <label>1기예정</label>
  735. <value>1</value>
  736. </item>
  737. <item>
  738. <label>1기확정</label>
  739. <value>2</value>
  740. </item>
  741. <item>
  742. <label>2기예정</label>
  743. <value>3</value>
  744. </item>
  745. <item>
  746. <label>2기확정</label>
  747. <value>4</value>
  748. </item>
  749. <item>
  750. <label/>
  751. <value/>
  752. </item>
  753. </choices>
  754. </col>
  755. <col ref="useflag" type="combo">
  756. <choices>
  757. <itemset nodeset="/root/init/init_useflag/item">
  758. <label ref="label"/>
  759. <value ref="value"/>
  760. </itemset>
  761. </choices>
  762. </col>
  763. <col ref="usedd" type="inputdate" format="yyyy-mm-dd"/>
  764. <col ref="entrregno" type="inputbutton" format="999-99-99999" style="text-align:center; "/>
  765. <col ref="custnm" style="text-align:left; "/>
  766. <col ref="useamt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  767. <col ref="valaddtax" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  768. <col ref="amt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  769. <col ref="taxkind" type="combo" visibility="hidden" style="text-align:center; ">
  770. <choices>
  771. <item>
  772. <label>전체</label>
  773. <value/>
  774. </item>
  775. <item>
  776. <label>건별</label>
  777. <value>04</value>
  778. </item>
  779. <item>
  780. <label>카과</label>
  781. <value>07</value>
  782. </item>
  783. <item>
  784. <label>기타</label>
  785. <value>09</value>
  786. </item>
  787. </choices>
  788. </col>
  789. <col ref="mainrec" type="input" visibility="hidden" tyle="text-align:left;"/>
  790. <script type="javascript" ev:event="onbuttonclick">
  791. <![CDATA[
  792. if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
  793. {
  794. misfOpenPopUpList("14", grd_taxbilllist, "", "entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem");
  795. model.refresh();
  796. }
  797. ]]>
  798. </script>
  799. <script type="javascript" ev:event="onendedit">
  800. <![CDATA[
  801. if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
  802. {
  803. racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "code");
  804. }
  805. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("custnm"))
  806. {
  807. racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "name");
  808. }
  809. ]]>
  810. </script>
  811. <script type="javascript" ev:event="onrowchanged">
  812. <![CDATA[
  813. fSetPrntRetrParams();
  814. ]]>
  815. </script>
  816. <script type="javascript" ev:event="xforms-value-changed">
  817. <![CDATA[
  818. fSetAmtSetting();
  819. ]]>
  820. </script>
  821. <script type="javascript" ev:event="onaftersort">
  822. <![CDATA[
  823. grd_taxbilllist.gridToInstance();
  824. ]]>
  825. </script>
  826. <script type="javascript" ev:event="ondblclick">
  827. <![CDATA[
  828. if ( grd_taxbilllist.row > 0 && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) != "")
  829. {
  830. model.setValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
  831. model.setValue("/root/source/slipinfo/slipdt", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")));
  832. model.setValue("/root/source/slipinfo/slipno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unslno")));
  833. model.refresh();
  834. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  835. }
  836. ]]>
  837. </script>
  838. </datagrid>
  839. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:1195px; y2:89px; "/>
  840. <caption id="caption26" class="tit_2" style="left:5px; top:73px; width:100px; height:13px; ">세금 계산서</caption>
  841. <input id="input8" ref="/root/main/ctrls/total/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:645px; width:134px; height:19px; text-align:right; "/>
  842. <input id="input1" ref="/root/main/ctrls/mutualpossible/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:669px; width:134px; height:19px; text-align:right; "/>
  843. <input id="input10" ref="/root/main/ctrls/mutualimpossible/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:694px; width:134px; height:19px; text-align:right; "/>
  844. <caption id="caption7" class="cell_1" style="left:548px; top:643px; width:90px; height:23px; vertical-align:middle; ">총액</caption>
  845. <caption id="caption45" class="cell_1" style="left:547px; top:718px; width:90px; height:23px; vertical-align:middle; ">고정자산매입</caption>
  846. <caption id="caption46" class="cell_1" style="left:548px; top:693px; width:90px; height:23px; vertical-align:middle; ">공제불능</caption>
  847. <input id="input59" ref="/root/main/ctrls/fixproperty/cnt" class="input_default" editable="false" format="(-)#,###" style="left:641px; top:719px; width:134px; height:19px; text-align:right; "/>
  848. <caption id="caption11" class="cell_1" style="left:548px; top:668px; width:90px; height:23px; vertical-align:middle; ">공제가능</caption>
  849. <line id="line5" class="line_2" style="x1:544px; y1:643px; x2:1191px; y2:643px; "/>
  850. <input id="input2" ref="/root/main/ctrls/total/useamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:645px; width:134px; height:19px; text-align:right; "/>
  851. <input id="input5" ref="/root/main/ctrls/mutualimpossible/useamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:694px; width:134px; height:19px; text-align:right; "/>
  852. <input id="input6" ref="/root/main/ctrls/fixproperty/useamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:719px; width:134px; height:19px; text-align:right; "/>
  853. <input id="input7" ref="/root/main/ctrls/mutualpossible/useamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:669px; width:134px; height:19px; text-align:right; "/>
  854. <input id="input11" ref="/root/main/ctrls/mutualpossible/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:669px; width:134px; height:19px; text-align:right; "/>
  855. <input id="input12" ref="/root/main/ctrls/total/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:645px; width:134px; height:19px; text-align:right; "/>
  856. <input id="input13" ref="/root/main/ctrls/mutualimpossible/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:694px; width:134px; height:19px; text-align:right; "/>
  857. <input id="input14" ref="/root/main/ctrls/fixproperty/tax" class="input_default" editable="false" format="(-)#,###" style="left:919px; top:719px; width:134px; height:19px; text-align:right; "/>
  858. <input id="input15" ref="/root/main/ctrls/mutualpossible/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:669px; width:134px; height:19px; text-align:right; "/>
  859. <input id="input16" ref="/root/main/ctrls/total/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:645px; width:134px; height:19px; text-align:right; "/>
  860. <input id="input17" ref="/root/main/ctrls/mutualimpossible/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:694px; width:134px; height:19px; text-align:right; "/>
  861. <input id="input18" ref="/root/main/ctrls/fixproperty/sum" class="input_default" editable="false" format="(-)#,###" style="left:1058px; top:719px; width:134px; height:19px; text-align:right; "/>
  862. <line id="line3" class="line_2" style="x1:545px; y1:666px; x2:1192px; y2:666px; "/>
  863. <line id="line4" class="line_2" style="x1:545px; y1:691px; x2:1192px; y2:691px; "/>
  864. <line id="line6" class="line_2" style="x1:545px; y1:716px; x2:1192px; y2:716px; "/>
  865. <line id="line7" class="line_2" style="x1:545px; y1:741px; x2:1192px; y2:741px; "/>
  866. <caption id="caption12" class="cell_1" style="left:641px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">건수</caption>
  867. <caption id="caption13" class="cell_1" style="left:779px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">공급가액</caption>
  868. <caption id="caption14" class="cell_1" style="left:918px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">부 가 세</caption>
  869. <caption id="caption15" class="cell_1" style="left:1057px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">합 계</caption>
  870. <line id="line8" class="line_2" style="x1:1055px; y1:618px; x2:1055px; y2:742px; "/>
  871. <line id="line9" class="line_2" style="x1:916px; y1:618px; x2:916px; y2:742px; "/>
  872. <line id="line11" class="line_2" style="x1:777px; y1:618px; x2:777px; y2:742px; "/>
  873. <line id="line12" class="line_2" style="x1:639px; y1:618px; x2:639px; y2:742px; "/>
  874. <button id="btn_addrow" class="btn2_letter3" navindex="8" style="left:1083px; top:68px; width:53px; height:19px; text-align:left; ">
  875. <caption>행추가</caption>
  876. <script type="javascript" ev:event="DOMActivate">
  877. <![CDATA[
  878. //fAddDelRow("A");
  879. var grdidx = grd_taxbilllist.row;
  880. model.copyNode("/root/hidden/item", "/root/main/list/taxbilllist["+ grd_taxbilllist.row +"]");
  881. // grd_taxbilllist.insertItem(grdidx,"after");
  882. grd_taxbilllist.addRow();
  883. model.copyNode("/root/main/list/taxbilllist["+ grd_taxbilllist.row +"]", "/root/hidden/item");
  884. model.refresh();
  885. ]]>
  886. </script>
  887. </button>
  888. <button id="btn_delrow" class="btn2_letter3" disabled="false" navindex="9" visibility="visible" style="left:1137px; top:68px; width:53px; height:19px; text-align:left; ">
  889. <caption>행삭제</caption>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. if(grd_taxbilllist.col == grd_taxbilllist.colRef("chk"))
  893. {
  894. var row = grd_taxbilllist.row;
  895. var chk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("chk"));
  896. if (chk == "Y")
  897. {
  898. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) == "")
  899. {
  900. fAddDelRow("D");
  901. }
  902. }
  903. }
  904. ]]>
  905. </script>
  906. </button>
  907. <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1006px; top:68px; width:64px; height:19px; text-align:left; ">
  908. <caption>엑셀출력</caption>
  909. <script type="javascript" ev:event="DOMActivate">
  910. <![CDATA[
  911. // misfSaveExcel(grd_taxbilllist);
  912. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  913. grd_taxbilllist.saveExcel(fileName,"SheetName:sheet1");
  914. ]]>
  915. </script>
  916. </button>
  917. <button id="button2" class="btn2_letter4" style="left:940px; top:68px; width:64px; height:19px; text-align:left; ">
  918. <caption>엑셀입력</caption>
  919. <script type="javascript" ev:event="DOMActivate">
  920. <![CDATA[
  921. modal("SPRAT00100");
  922. ]]>
  923. </script>
  924. </button>
  925. <button id="button3" class="btn2_letter4" style="left:105px; top:68px; width:64px; height:19px; text-align:left; ">
  926. <caption>전체선택</caption>
  927. <script type="javascript" ev:event="DOMActivate">
  928. <![CDATA[
  929. fAllCheck("Y");
  930. ]]>
  931. </script>
  932. </button>
  933. <button id="button4" class="btn2_letter4" style="left:175px; top:68px; width:64px; height:19px; text-align:left; ">
  934. <caption>전체해제</caption>
  935. <script type="javascript" ev:event="DOMActivate">
  936. <![CDATA[
  937. fAllCheck("N");
  938. ]]>
  939. </script>
  940. </button>
  941. <select id="chk_allwork" ref="/root/hidden/allwork" visibility="visible" overflow="visible" appearance="full" style="left:245px; top:70px; width:140px; height:20px; text-align:left; vertical-align:middle; border-style:none; ">
  942. <choices>
  943. <item>
  944. <label>일괄작업</label>
  945. <value>Y</value>
  946. </item>
  947. </choices>
  948. <script type="javascript" ev:event="xforms-value-changed">
  949. <![CDATA[
  950. //alert(chk_allwork.value);
  951. ]]>
  952. </script>
  953. </select>
  954. </group>
  955. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  956. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  957. <button id="button11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  958. <caption>출력</caption>
  959. <script type="javascript" ev:event="DOMActivate">
  960. <![CDATA[
  961. exeReportPreview("RPRAT00100", "XMLSTR", "true", "true", "true", "true", "true", "true", "true", "");
  962. ]]>
  963. </script>
  964. </button>
  965. <button id="btn_save" class="btn4_letter2" style="left:1125px; top:3px; width:56px; height:22px; ">
  966. <caption>저장</caption>
  967. <script type="javascript" ev:event="DOMActivate">
  968. <![CDATA[
  969. fSave();
  970. ]]>
  971. </script>
  972. </button>
  973. <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:1068px; top:3px; width:56px; height:22px; ">
  974. <caption>출력</caption>
  975. <script type="javascript" ev:event="DOMActivate">
  976. <![CDATA[
  977. fPrintTaxBill();
  978. ]]>
  979. </script>
  980. </button>
  981. </group>
  982. </xhtml:body>
  983. </xhtml:html>