SPRAT00101_세금계산서계산서등록관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  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. <taxbill>
  12. <instcd/>
  13. <seqno/>
  14. <taxbillkind>4</taxbillkind>
  15. <taxbillflag>1</taxbillflag>
  16. <reptkind>1</reptkind>
  17. <flagcd>1</flagcd>
  18. <suplamt/>
  19. <valaddtax/>
  20. <amt/>
  21. <genrdd/>
  22. <profcheckyn/>
  23. <entrregno/>
  24. <custnm/>
  25. <custaddr/>
  26. <custprsd/>
  27. <custbizcond/>
  28. <custitem/>
  29. <closyn>1</closyn>
  30. <fixasetflag>00</fixasetflag>
  31. <deduyn>00</deduyn>
  32. <cmt/>
  33. <unsldd/>
  34. <unslno/>
  35. <undeciseqno/>
  36. <sanctslipdd/>
  37. <sanctslipno/>
  38. <sanctseqno/>
  39. <status/>
  40. <dummy1/>
  41. <dummy2/>
  42. <isskind>01</isskind>
  43. <isscust>01</isscust>
  44. <taxkind>01</taxkind>
  45. <custdtiemailaddr/>
  46. <dtibillyn/>
  47. <ebillflag/>
  48. <inv_no/>
  49. <dtiemail/>
  50. <custdtieacntchrgnm/>
  51. </taxbill>
  52. <dtimail>
  53. <instcd/>
  54. <deptcd/>
  55. <depthngnm/>
  56. <emplno/>
  57. <emplnm/>
  58. <duplcedeptnm/>
  59. <jobrespnm/>
  60. <email/>
  61. </dtimail>
  62. </list>
  63. </main>
  64. <send>
  65. <data1>
  66. <instcd/>
  67. <seqno/>
  68. <taxbillkind/>
  69. </data1>
  70. <data2>
  71. <instcd/>
  72. <mngtcd>acntdept</mngtcd>
  73. </data2>
  74. <taxbill/>
  75. </send>
  76. <hidden>
  77. <taxbill/>
  78. <custemaillist/>
  79. <custdtiemaillist>
  80. <chrgnm/>
  81. <chrgemailaddr/>
  82. </custdtiemaillist>
  83. </hidden>
  84. <init>
  85. <init_flagcd>
  86. <item>
  87. <label>정규</label>
  88. <value>1</value>
  89. </item>
  90. <item>
  91. <label>예정신고누락분</label>
  92. <value>2</value>
  93. </item>
  94. </init_flagcd>
  95. <code/>
  96. </init>
  97. <temp>
  98. <seqno/>
  99. </temp>
  100. <target/>
  101. </root>
  102. </instance>
  103. <submission id="TRRAT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list"/>
  104. <submission id="TXRAT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/taxbill" resultref="/root/temp"/>
  105. <submission id="TRRAZ00001" ref="/root/send/data2" resultref="/root/init/code"/>
  106. </model>
  107. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  109. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  110. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  111. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. fInitialize();
  115. ]]>
  116. </script>
  117. <script type="javascript">
  118. <![CDATA[
  119. //========================================================================================
  120. //초기화
  121. //========================================================================================
  122. function fInitialize() {
  123. var instcd = model.getValue("/root/target/slipinfo/instcd");
  124. var seqno = model.getValue("/root/target/slipinfo/seqno");
  125. var taxbillkind = model.getValue("/root/target/slipinfo/taxbillkind");
  126. var taxbillflag = model.getValue("/root/target/slipinfo/taxbillflag");
  127. var reptkind = model.getValue("/root/target/slipinfo/reptkind");
  128. var flagcd = model.getValue("/root/target/slipinfo/flagcd");
  129. var custcd = model.getValue("/root/target/slipinfo/custcd");
  130. var unsldd = model.getValue("/root/target/slipinfo/unsldd");
  131. var unslno = model.getValue("/root/target/slipinfo/unslno");
  132. var unslseqno = model.getValue("/root/target/slipinfo/unslseqno");
  133. var etcnotefact = model.getValue("/root/target/slipinfo/etcnotefact");
  134. var slipkind = model.getValue("/root/target/slipinfo/slipkind");
  135. var readonly = model.getValue("/root/target/slipinfo/readonly");
  136. var acntdept = model.getValue("/root/target/slipinfo/acntdept");
  137. if (taxbillkind == "4")
  138. {
  139. ipt_valaddtax.disabled = false;
  140. caption6.attribute("text") = "세금계산서 등록 관리";
  141. document.title = "세금계산서 등록 관리";
  142. }
  143. else
  144. {
  145. ipt_valaddtax.disabled = true;
  146. caption6.attribute("text") = "계산서 등록 관리";
  147. document.title = "계산서 등록 관리";
  148. }
  149. if(readonly == 'Y')
  150. {
  151. btn_delete.disabled = true;
  152. if(acntdept == 'Y')
  153. {
  154. ipt_suplamt.disabled = true;
  155. ipt_valaddtax.disabled = true;
  156. ipt_amt.disabled = true;
  157. }
  158. else
  159. {
  160. btn_save.disabled = true;
  161. }
  162. }
  163. if(instance1.selectNodes("/root/target/slipinfo").length != 0)
  164. {
  165. model.setValue("/root/main/list/taxbill/instcd", instcd);
  166. model.setValue("/root/main/list/taxbill/seqno", seqno);
  167. model.setValue("/root/main/list/taxbill/taxbillflag", taxbillflag);
  168. model.setValue("/root/main/list/taxbill/taxbillkind", taxbillkind);
  169. model.setValue("/root/main/list/taxbill/reptkind", reptkind);
  170. model.setValue("/root/main/list/taxbill/flagcd", flagcd);
  171. model.setValue("/root/main/list/taxbill/unsldd", unsldd);
  172. model.setValue("/root/main/list/taxbill/unslno", unslno);
  173. model.setValue("/root/main/list/taxbill/undeciseqno", unslseqno);
  174. model.setValue("/root/main/list/taxbill/cmt", etcnotefact);
  175. //model.setValue("/root/main/list/taxbill/genrdd", unsldd);
  176. model.setValue("/root/main/list/taxbill/fixasetflag", "00");
  177. model.setValue("/root/send/data1/instcd", instcd);
  178. model.setValue("/root/send/data1/seqno", seqno);
  179. model.setValue("/root/send/data1/taxbillkind", taxbillkind);
  180. model.copyNode("/root/hidden/taxbill", "/root/main/list/taxbill");
  181. model.refresh();
  182. if (seqno != "") {
  183. submit("TRRAT00101");
  184. model.makeNode("/root/main/list/taxbill/dummy1");
  185. model.makeNode("/root/main/list/taxbill/dummy2");
  186. if (model.getValue("/root/main/list/taxbill/instcd") == "") {
  187. model.makeNode("/root/main/list/taxbill");
  188. model.copyNode("/root/main/list/taxbill", "/root/hidden/taxbill");
  189. model.setValue("/root/main/list/taxbill/status","i");
  190. model.refresh();
  191. } else {
  192. model.setValue("/root/main/list/taxbill/status","u");
  193. model.refresh();
  194. }
  195. } else {
  196. model.setValue("/root/main/list/taxbill/status","i");
  197. if(slipkind == "1")
  198. {
  199. rdo_taxbillflag.value = "1";
  200. }
  201. else if(slipkind == "2")
  202. {
  203. rdo_taxbillflag.value = "2";
  204. }
  205. else if(slipkind == "3")
  206. {
  207. rdo_taxbillflag.value = "1";
  208. }
  209. model.refresh();
  210. }
  211. if (custcd != "" && model.getValue("/root/main/list/taxbill/status") == "i") {
  212. model.setValue("/root/main/list/taxbill/entrregno",custcd);
  213. model.refresh();
  214. ipt_entrregno.dispatch("xforms-value-changed");
  215. }
  216. }
  217. model.setValue("/root/send/data2/instcd", instcd);
  218. submit("TRRAZ00001");
  219. if(model.getValue("/root/init/code/codelist/cdid") == getUserInfo("dutplcecd"))
  220. {
  221. chk_profcheckyn.visible = true;
  222. }
  223. rdo_taxbillflag.dispatch("xforms-value-changed");
  224. cmb_ebillflag.dispatch("xforms-value-changed");
  225. fEbillcontrolexception();
  226. model.setFocus("ipt_genrdd");
  227. }
  228. //========================================================================================
  229. //저장 click
  230. //========================================================================================
  231. function fSaveClick()
  232. {
  233. if(model.getValue("/root/main/list/taxbill/taxbillflag") == "")
  234. {
  235. messageBox("구분을", "C002");
  236. return;
  237. }
  238. model.resetInstanceNode("/root/send/taxbill");
  239. model.copyNode("/root/send/taxbill", "/root/main/list/taxbill");
  240. if (submit("TXRAT00102"))
  241. {
  242. model.setValue("/root/main/list/taxbill/status","u");
  243. model.refresh();
  244. }
  245. var receiveref = model.getValue("/root/target/receiveref");
  246. if ( checkOpener() )
  247. {
  248. opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
  249. // opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno"));
  250. opener.model.setValue(receiveref + "/amt", model.getValue("/root/main/list/taxbill/amt"));
  251. opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/main/list/taxbill/cmt"));
  252. }
  253. else
  254. {
  255. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  256. }
  257. }
  258. //========================================================================================
  259. // Not Null Check
  260. //========================================================================================
  261. function fNotNullCheck()
  262. {
  263. if(model.getValue("/root/main/list/taxbill/entrregno").length== 0)
  264. {
  265. messageBox("사업자등록번호는" ,"I003");
  266. model.setFocus("ipt_entrregno");
  267. return false;
  268. }
  269. if(model.getValue("/root/main/list/taxbill/isscust").length== 0)
  270. {
  271. messageBox("발행자구분은" ,"I003");
  272. model.setFocus("cmb_isscust");
  273. return false;
  274. }
  275. if(model.getValue("/root/main/list/taxbill/suplamt").length== 0)
  276. {
  277. messageBox("공급가액은" ,"I003");
  278. model.setFocus("ipt_suplamt");
  279. return false;
  280. }
  281. if(model.getValue("/root/main/list/taxbill/valaddtax").length== 0)
  282. {
  283. messageBox("새액은" ,"I003");
  284. model.setFocus("ipt_valaddtax");
  285. return false;
  286. }
  287. if(model.getValue("/root/main/list/taxbill/amt").length== 0)
  288. {
  289. messageBox("합계금액은" ,"I003");
  290. model.setFocus("ipt_amt");
  291. return false;
  292. }
  293. if(model.getValue("/root/main/list/taxbill/taxkind").length== 0)
  294. {
  295. messageBox("세금유형은" ,"I003");
  296. model.setFocus("cmb_taxkind");
  297. return false;
  298. }
  299. if(model.getValue("/root/main/list/taxbill/genrdd").length== 0)
  300. {
  301. messageBox("작성일자는" ,"I003");
  302. model.setFocus("ipt_genrdd");
  303. return false;
  304. }
  305. else if(model.getValue("/root/main/list/taxbill/genrdd").length != 8)
  306. {
  307. messageBox("잘못된 날짜 형식입니다." ,"I000");
  308. model.setFocus("ipt_genrdd");
  309. return false;
  310. }
  311. else if(model.getValue("/root/main/list/taxbill/ebillflag").length == 0)
  312. {
  313. messageBox("전자세금계산서 종류는" ,"I003");
  314. model.setFocus("ipt_genrdd");
  315. return false;
  316. }
  317. return true;
  318. }
  319. function fEbillcontrolexception()
  320. {
  321. if(model.getValue(chk_dtibillyn.attribute("ref")) == "Y")
  322. {
  323. if( (model.getValue(cmb_isscust.attribute("ref")) == "01" && model.getValue(rdo_taxbillflag.attribute("ref")) == "1")
  324. || (model.getValue(cmb_isscust.attribute("ref")) == "02" && model.getValue(rdo_taxbillflag.attribute("ref")) == "2") )
  325. {
  326. chk_dtibillyn.disabled = false;
  327. ipt_inv_no.disabled = false;
  328. btn_ebill.disabled = false;
  329. //ipt_custdtiemailaddr.disabled = true;
  330. //model.setValue(ipt_dtiemail.attribute("ref"), "");
  331. ipt_dtiemail.disabled = true;
  332. btn_dtiemail.disabled = true;
  333. }
  334. else if( (model.getValue(cmb_isscust.attribute("ref")) == "01" && model.getValue(rdo_taxbillflag.attribute("ref")) == "2")
  335. || (model.getValue(cmb_isscust.attribute("ref")) == "02" && model.getValue(rdo_taxbillflag.attribute("ref")) == "1"))
  336. {
  337. model.setValue(chk_dtibillyn.attribute("ref"), "Y");
  338. chk_dtibillyn.disabled = true;
  339. //model.setValue(ipt_inv_no.attribute("ref"), "");
  340. ipt_inv_no.disabled = true;
  341. btn_ebill.disabled = true;
  342. //ipt_custdtiemailaddr.disabled = false;
  343. ipt_dtiemail.disabled = false;
  344. btn_dtiemail.disabled = false;
  345. }
  346. model.setValue(cmb_ebillflag.attribute("ref"), "01");
  347. }
  348. else
  349. {
  350. model.setValue(ipt_inv_no.attribute("ref"), "");
  351. ipt_inv_no.disabled = true;
  352. btn_ebill.disabled = true;
  353. ipt_custdtiemailaddr.disabled = true;
  354. model.setValue(ipt_dtiemail.attribute("ref"), "");
  355. ipt_dtiemail.disabled = true;
  356. btn_dtiemail.disabled = true;
  357. model.refresh();
  358. }
  359. model.refresh();
  360. }
  361. // function fGetCustEmailList()
  362. // {
  363. // model.setValue(ipt_custdtiemailaddr.attribute("ref"), "");
  364. // var vNodeset = "/root/hidden/custemaillist";
  365. // model.removeNodeset(vNodeset);
  366. //
  367. // radfGetCustEmailList(getUserInfo("dutplceinstcd"), model.getValue(ipt_entrregno.attribute("ref")), vNodeset);
  368. // cmb_custdtiemailaddr.choices.itemset.attribute("nodeset") = vNodeset;
  369. //
  370. // cmb_custdtiemailaddr.choices.itemset.label.attribute("ref") = "label";
  371. // cmb_custdtiemailaddr.choices.itemset.value.attribute("ref") = "value";
  372. //
  373. // model.refresh();
  374. // }
  375. ]]>
  376. </script>
  377. </xhtml:head>
  378. <xhtml:body pagewidth="565" pageheight="450" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  379. <group id="group1" style="left:0px; top:0px; width:544; height:13px; ">
  380. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">세금계산서 등록 관리</caption>
  381. </group>
  382. <group id="grp_btn" scroll="auto" style="left:0px; top:421px; width:544px; height:27px; ">
  383. <button id="btn_17" class="btn4_letter2" style="left:488px; top:2; width:56px; height:22px; ">
  384. <caption>닫기</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. window.close();
  388. ]]>
  389. </script>
  390. </button>
  391. <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
  392. <button id="btn_delete" class="btn4_letter2" style="left:430px; top:2; width:56px; height:22px; ">
  393. <caption>삭제</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. model.setValue("/root/main/list/taxbill/status", "d");
  397. fSaveClick();
  398. model.removenode("/root/main/list/taxbill");
  399. model.makeNode("/root/main/list/taxbill");
  400. model.copyNode("/root/main/list/taxbill","/root/hidden/taxbill")
  401. model.setValue("/root/main/list/taxbill/status","i");
  402. model.refresh();
  403. ]]>
  404. </script>
  405. </button>
  406. <button id="btn_save" class="btn4_letter2" style="left:372px; top:2; width:56px; height:22px; ">
  407. <caption>저장</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. if(!fNotNullCheck())
  411. {
  412. return;
  413. }
  414. // if(model.getValue(rdo_taxbillflag.attribute("ref")) == "1" && model.getValue(chk_dtibillyn.attribute("ref")) == "Y" && model.getValue(ipt_inv_no.attribute("ref")) == "")
  415. // {
  416. // if (messageBox("DTI 세금계산서를 선택하지 않았습니다.", "Q003") != "6")
  417. // {
  418. // return false;
  419. // }
  420. // }
  421. fSaveClick();
  422. model.setValue("/root/main/list/taxbill/seqno", model.getValue("/root/temp/seqno/seqno"));
  423. ]]>
  424. </script>
  425. </button>
  426. </group>
  427. <group id="group3" style="left:0px; top:17px; width:543px; height:398px; ">
  428. <input id="input1" ref="/root/main/list/taxbill/custitem" class="input_essential" style="left:103px; top:136px; width:440px; height:19px; "/>
  429. <line id="line16" class="line_2" style="x1:0px; y1:132px; x2:543px; y2:132px; "/>
  430. <line id="line17" class="line_2" style="x1:0px; y1:108px; x2:543px; y2:108px; "/>
  431. <line id="line18" class="line_2" style="x1:0px; y1:84px; x2:543px; y2:84px; "/>
  432. <line id="line19" class="line_2" style="x1:0px; y1:60px; x2:543px; y2:60px; "/>
  433. <line id="line21" class="line_2" style="x1:0px; y1:36px; x2:543px; y2:36px; "/>
  434. <line id="line22" class="line_2" style="x1:0px; y1:324px; x2:543px; y2:324px; "/>
  435. <line id="line23" class="line_2" style="x1:0px; y1:300px; x2:543px; y2:300px; "/>
  436. <line id="line24" class="line_2" style="x1:0px; y1:276px; x2:543px; y2:276px; "/>
  437. <line id="line25" class="line_2" style="x1:0px; y1:252px; x2:543px; y2:252px; "/>
  438. <line id="line26" class="line_3" style="x1:0px; y1:396px; x2:543px; y2:396px; "/>
  439. <line id="line27" class="line_2" style="x1:0px; y1:228px; x2:543px; y2:228px; "/>
  440. <line id="line28" class="line_2" style="x1:0px; y1:156px; x2:543px; y2:156px; "/>
  441. <input id="input2" class="input_search" visibility="hidden" style="left:430px; top:40px; width:37px; height:19px; "/>
  442. <line id="line29" class="line_1" style="x1:0px; y1:9px; x2:543px; y2:9px; "/>
  443. <caption id="caption19" class="cell_1" style="left:330px; top:278px; width:100px; height:23px; vertical-align:middle; ">작성일자</caption>
  444. <caption id="caption20" class="cell_1" style="left:30px; top:62px; width:70px; height:23px; vertical-align:middle; ">대표자명</caption>
  445. <caption id="caption21" class="cell_1" style="left:30px; top:110px; width:70px; height:23px; vertical-align:middle; ">업태</caption>
  446. <caption id="caption22" class="cell_1" style="left:30px; top:134px; width:70px; height:23px; vertical-align:middle; ">종목</caption>
  447. <caption id="caption23" class="cell_1" style="left:0px; top:14px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
  448. <caption id="caption24" class="cell_1" style="left:0px; top:302px; width:100px; height:23px; vertical-align:middle; ">공급가액</caption>
  449. <caption id="caption25" class="cell_1" style="left:30px; top:86px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
  450. <caption id="caption26" class="cell_1" style="left:0px; top:326px; width:100px; height:23px; vertical-align:middle; ">세액</caption>
  451. <caption id="caption27" class="cell_1" style="left:0px; top:350px; width:100px; height:23px; vertical-align:middle; ">합계금액</caption>
  452. <caption id="caption28" class="cell_1" style="left:0px; top:374px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
  453. <button id="button1" class="icon_search" style="left:207px; top:18px; width:16px; height:16px; ">
  454. <caption/>
  455. <script type="javascript" ev:event="DOMActivate">
  456. <![CDATA[
  457. misfOpenPopUpList("14", ipt_entrregno, "", "entrregno,custnm,custprsd,dummy1,custaddr,custbizcond,custitem");
  458. model.refresh();
  459. ]]>
  460. </script>
  461. </button>
  462. <select1 id="radio1" ref="/root/main/list/taxbill/taxbillkind" visibility="hidden" overflow="visible" appearance="full" style="left:355px; top:302px; width:27px; height:20px; border-style:none; ">
  463. <choices>
  464. <item>
  465. <label>세금계산서</label>
  466. <value>4</value>
  467. </item>
  468. <item>
  469. <label>계 산 서</label>
  470. <value>5</value>
  471. </item>
  472. </choices>
  473. <script type="javascript" ev:event="xforms-value-changed">
  474. <![CDATA[
  475. var taxbillkind = model.getValue("/root/main/list/taxbill/taxbillkind");
  476. if (taxbillkind == "4") {
  477. ipt_valaddtax.disabled = false;
  478. } else {
  479. ipt_valaddtax.disabled = true;
  480. }
  481. ]]>
  482. </script>
  483. </select1>
  484. <select1 id="rdo_taxbillflag" ref="/root/main/list/taxbill/taxbillflag" visibility="visible" overflow="visible" appearance="full" cellspacing="30" cols="2" style="left:105px; top:181px; width:140px; height:20px; border-style:none; ">
  485. <choices>
  486. <item>
  487. <label>매입</label>
  488. <value>1</value>
  489. </item>
  490. <item>
  491. <label>매출</label>
  492. <value>2</value>
  493. </item>
  494. </choices>
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. fEbillcontrolexception();
  498. ]]>
  499. </script>
  500. </select1>
  501. <select1 id="radio3" ref="/root/main/list/taxbill/reptkind" visibility="hidden" overflow="visible" appearance="full" style="left:385px; top:302px; width:27px; height:20px; border-style:none; ">
  502. <choices>
  503. <item>
  504. <label>1 기 예 정</label>
  505. <value>1</value>
  506. </item>
  507. <item>
  508. <label>1 기 확 정</label>
  509. <value>2</value>
  510. </item>
  511. <item>
  512. <label>2 기 예 정</label>
  513. <value>3</value>
  514. </item>
  515. <item>
  516. <label>2 기 확 정</label>
  517. <value>4</value>
  518. </item>
  519. </choices>
  520. </select1>
  521. <input id="input3" ref="/root/main/list/taxbill/genrdd" class="input_essential" inputtype="date" style="left:432px; top:279px; width:105px; height:19px; "/>
  522. <select1 id="combo1" ref="/root/main/list/taxbill/flagcd" class="combo_essential" visibility="hidden" appearance="minimal" style="left:470px; top:40px; width:70px; height:19px; ">
  523. <choices>
  524. <itemset nodeset="/root/init/init_flagcd/item">
  525. <label ref="label"/>
  526. <value ref="value"/>
  527. </itemset>
  528. </choices>
  529. </select1>
  530. <input id="ipt_entrregno" ref="/root/main/list/taxbill/entrregno" class="input_essential" style="left:103px; top:15px; width:100px; height:19px; ">
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. if(ipt_entrregno.currentText.length >= 2 || ipt_entrregno.currentText == '-')
  534. {
  535. racfCustValidCheck("entrregno,custnm,custprsd,dummy1,custaddr,custbizcond,custitem", "code");
  536. }
  537. else
  538. {
  539. messageBox("2자 이상 입력하세요.", "");
  540. }
  541. ]]>
  542. </script>
  543. </input>
  544. <input id="ipt_custnm" ref="/root/main/list/taxbill/custnm" class="input_essential" style="left:103px; top:39px; width:327px; height:19px; ">
  545. <script type="javascript" ev:event="onkeypress">
  546. <![CDATA[
  547. if(event.keyCode == 13)
  548. {
  549. racfCustValidCheck("entrregno,custnm,custprsd,dummy1,custaddr,custbizcond,custitem", "name");
  550. }
  551. ]]>
  552. </script>
  553. <script type="javascript" ev:event="xforms-value-changed">
  554. <![CDATA[
  555. racfCustValidCheck("entrregno,custnm,custprsd,dummy1,custaddr,custbizcond,custitem", "name");
  556. ]]>
  557. </script>
  558. </input>
  559. <input id="ipt_custprsd" ref="/root/main/list/taxbill/custprsd" class="input_essential" style="left:103px; top:64px; width:440px; height:19px; "/>
  560. <input id="ipt_custbizcond" ref="/root/main/list/taxbill/custbizcond" class="input_essential" style="left:103px; top:112px; width:440px; height:19px; "/>
  561. <input id="ipt_suplamt" ref="/root/main/list/taxbill/suplamt" class="input_essential" format="(-)#,###" style="left:103px; top:303px; width:224px; height:19px; text-align:right; ">
  562. <script type="javascript" ev:event="xforms-value-changed">
  563. <![CDATA[
  564. var taxbillkind = model.getValue("/root/main/list/taxbill/taxbillkind");
  565. var suplamt = parseInt(model.getValue("/root/main/list/taxbill/suplamt"));
  566. if (taxbillkind == "4") {
  567. var taxrate ;
  568. var taxchk = model.getValue("/root/main/list/taxbill/taxkind");
  569. if ( taxchk == '02') {
  570. taxrate = 0 ;
  571. }
  572. else
  573. {
  574. taxrate = 0.1 ;
  575. }
  576. var valaddtax = parseInt(suplamt * taxrate);
  577. model.setValue("/root/main/list/taxbill/valaddtax", valaddtax);
  578. model.setValue("/root/main/list/taxbill/amt", suplamt + valaddtax);
  579. } else {
  580. model.setValue("/root/main/list/taxbill/valaddtax", 0);
  581. model.setValue("/root/main/list/taxbill/amt", suplamt)
  582. }
  583. model.refresh();
  584. ]]>
  585. </script>
  586. <script type="javascript" ev:event="onkeypress">
  587. <![CDATA[
  588. if (event.keyCode == "13") {
  589. model.setFocus("ipt_cmt");
  590. }
  591. ]]>
  592. </script>
  593. </input>
  594. <input id="ipt_valaddtax" ref="/root/main/list/taxbill/valaddtax" class="input_essential" format="(-)#,###" style="left:103px; top:327px; width:224px; height:19px; text-align:right; ">
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. var suplamt = parseInt(model.getValue("/root/main/list/taxbill/suplamt"));
  598. var valaddtax = parseInt(model.getValue("/root/main/list/taxbill/valaddtax"));
  599. model.setValue("/root/main/list/taxbill/amt", suplamt + valaddtax);
  600. model.refresh();
  601. ]]>
  602. </script>
  603. </input>
  604. <input id="ipt_amt" ref="/root/main/list/taxbill/amt" class="input_essential" format="(-)#,###" style="left:103px; top:351px; width:224px; height:19px; text-align:right; "/>
  605. <input id="ipt_cmt" ref="/root/main/list/taxbill/cmt" class="input_essential" style="left:103px; top:374px; width:440px; height:19px; "/>
  606. <input id="ipt_custaddr" ref="/root/main/list/taxbill/custaddr" class="input_essential" style="left:103px; top:88px; width:440px; height:19px; "/>
  607. <select1 id="combo3" ref="/root/main/list/taxbill/closyn" class="combo_default" visibility="hidden" appearance="minimal" style="left:425px; top:302px; width:37px; height:19px; ">
  608. <choices>
  609. <item>
  610. <label>마감전</label>
  611. <value>1</value>
  612. </item>
  613. <item>
  614. <label>마감</label>
  615. <value>2</value>
  616. </item>
  617. </choices>
  618. </select1>
  619. <select1 id="cmb_fixasetflag" ref="/root/main/list/taxbill/fixasetflag" class="combo_default" visibility="visible" appearance="minimal" style="left:103px; top:279px; width:224px; height:19px; ">
  620. <choices>
  621. <item>
  622. <label>해당사항없음</label>
  623. <value>00</value>
  624. </item>
  625. <item>
  626. <label>건,구축물</label>
  627. <value>01</value>
  628. </item>
  629. <item>
  630. <label>기계장치</label>
  631. <value>02</value>
  632. </item>
  633. <item>
  634. <label>차량운반구</label>
  635. <value>03</value>
  636. </item>
  637. <item>
  638. <label>기타감가상각물</label>
  639. <value>04</value>
  640. </item>
  641. </choices>
  642. </select1>
  643. <select1 id="combo5" ref="/root/main/list/taxbill/deduyn" class="combo_default" visibility="hidden" appearance="minimal" style="left:467px; top:303px; width:37px; height:19px; ">
  644. <choices>
  645. <item>
  646. <label>공제</label>
  647. <value>Y</value>
  648. </item>
  649. <item>
  650. <label>불공제</label>
  651. <value>N</value>
  652. </item>
  653. </choices>
  654. </select1>
  655. <output id="output3" ref="/root/main/list/taxbill/unsldd" class="output_fix" visibility="hidden" format="yyyy-mm-dd" style="left:415px; top:327px; width:37px; height:19px; text-align:center; "/>
  656. <output id="output4" ref="/root/main/list/taxbill/unslno" class="output_fix" visibility="hidden" style="left:455px; top:327px; width:37px; height:19px; text-align:center; "/>
  657. <output id="output5" ref="/root/main/list/taxbill/undeciseqno" class="output_fix" visibility="hidden" style="left:495px; top:327px; width:37px; height:19px; text-align:center; "/>
  658. <output id="output6" ref="/root/main/list/taxbill/sanctslipdd" class="output_fix" visibility="hidden" style="left:415px; top:351px; width:37px; height:19px; text-align:center; "/>
  659. <output id="output7" ref="/root/main/list/taxbill/sanctslipno" class="output_fix" visibility="hidden" style="left:455px; top:351px; width:37px; height:19px; text-align:center; "/>
  660. <output id="output8" ref="/root/main/list/taxbill/sanctseqno" class="output_fix" visibility="hidden" style="left:495px; top:351px; width:37px; height:19px; text-align:center; "/>
  661. <caption id="caption29" class="cell_1" style="left:30px; top:38px; width:70px; height:23px; vertical-align:middle; ">상호</caption>
  662. <caption id="caption30" class="cell_1" style="left:0px; top:38px; width:29px; height:142px; text-align:left; vertical-align:middle; ">상대처</caption>
  663. <line id="line30" class="line_2" style="x1:0px; y1:180px; x2:543px; y2:180px; "/>
  664. <line id="line31" class="line_2" style="x1:0px; y1:204px; x2:543px; y2:204px; "/>
  665. <caption id="caption31" class="cell_1" style="left:0px; top:278px; width:100px; height:23px; vertical-align:middle; ">고정자산매입</caption>
  666. <caption id="caption32" class="cell_1" style="left:0px; top:181px; width:100px; height:23px; vertical-align:middle; ">구분</caption>
  667. <caption id="caption33" class="cell_1" style="left:330px; top:14px; width:100px; height:23px; vertical-align:middle; ">등록번호구분</caption>
  668. <select1 id="cmb_isskind" ref="/root/main/list/taxbill/isskind" class="combo_default" visibility="visible" appearance="minimal" style="left:430px; top:15px; width:110px; height:19px; ">
  669. <choices>
  670. <item>
  671. <label>사업자등록번호발행</label>
  672. <value>01</value>
  673. </item>
  674. <item>
  675. <label>주민번호발행</label>
  676. <value>02</value>
  677. </item>
  678. </choices>
  679. </select1>
  680. <caption id="caption34" class="cell_1" style="left:330px; top:254px; width:100px; height:23px; vertical-align:middle; ">세금유형</caption>
  681. <select1 id="combo7" ref="/root/main/list/taxbill/taxkind" class="combo_default" visibility="visible" appearance="minimal" style="left:432px; top:254px; width:105px; height:19px; ">
  682. <choices>
  683. <item>
  684. <label>과세</label>
  685. <value>01</value>
  686. </item>
  687. <item>
  688. <label>영세율</label>
  689. <value>02</value>
  690. </item>
  691. <item>
  692. <label>대손세액가감</label>
  693. <value>03</value>
  694. </item>
  695. <item>
  696. <label>비과세</label>
  697. <value>04</value>
  698. </item>
  699. <item>
  700. <label>면세</label>
  701. <value>05</value>
  702. </item>
  703. </choices>
  704. <script type="javascript" ev:event="xforms-value-changed">
  705. <![CDATA[
  706. var taxbillkind = model.getValue("/root/main/list/taxbill/taxbillkind");
  707. var suplamt = parseInt(model.getValue("/root/main/list/taxbill/suplamt"));
  708. if (taxbillkind == "4") {
  709. var taxrate ;
  710. var taxchk = model.getValue("/root/main/list/taxbill/taxkind");
  711. if ( taxchk == '02') {
  712. taxrate = 0 ;
  713. }
  714. else
  715. {
  716. taxrate = 0.1 ;
  717. }
  718. var valaddtax = parseInt(suplamt * taxrate);
  719. model.setValue("/root/main/list/taxbill/valaddtax", valaddtax);
  720. model.setValue("/root/main/list/taxbill/amt", suplamt + valaddtax);
  721. } else {
  722. model.setValue("/root/main/list/taxbill/valaddtax", 0);
  723. model.setValue("/root/main/list/taxbill/amt", suplamt)
  724. }
  725. model.refresh();
  726. ]]>
  727. </script>
  728. </select1>
  729. <select1 id="cmb_isscust" ref="/root/main/list/taxbill/isscust" class="combo_default" disabled="false" visibility="visible" appearance="minimal" style="left:103px; top:255px; width:224px; height:19px; ">
  730. <choices>
  731. <item>
  732. <label>매출자발행</label>
  733. <value>01</value>
  734. </item>
  735. <item>
  736. <label>매입자발행</label>
  737. <value>02</value>
  738. </item>
  739. </choices>
  740. <script type="javascript" ev:event="xforms-value-changed">
  741. <![CDATA[
  742. fEbillcontrolexception();
  743. ]]>
  744. </script>
  745. </select1>
  746. <caption id="caption35" class="cell_1" style="left:0px; top:254px; width:100px; height:23px; vertical-align:middle; ">발행자구분</caption>
  747. <select id="chk_profcheckyn" ref="/root/main/list/taxbill/profcheckyn" visibility="hidden" overflow="visible" appearance="full" style="left:330px; top:353px; width:75px; height:20px; text-align:left; vertical-align:middle; border-style:none; ">
  748. <choices>
  749. <item>
  750. <label>증빙확인</label>
  751. <value>Y</value>
  752. </item>
  753. </choices>
  754. <script type="javascript" ev:event="xforms-select">
  755. <![CDATA[
  756. model.setValue("/root/main/list/taxbill/profcheckyn", 'Y');
  757. ]]>
  758. </script>
  759. </select>
  760. <line id="line32" class="line_2" style="x1:0px; y1:349px; x2:543px; y2:349px; "/>
  761. <caption id="caption36" class="cell_1" style="left:0px; top:206px; width:100px; height:23px; vertical-align:middle; ">전자세금계산서</caption>
  762. <caption id="caption37" class="cell_1" style="left:1px; top:230px; width:100px; height:23px; vertical-align:middle; ">사용자 E-mail</caption>
  763. <input id="ipt_inv_no" ref="/root/main/list/taxbill/inv_no" class="input_essential" disabled="true" editable="false" style="left:432px; top:207px; width:111px; height:19px; text-align:right; "/>
  764. <button id="btn_ebill" class="btn2_letter7" style="left:330px; top:207px; width:97px; height:19px; ">
  765. <caption>DTI 계산서 번호</caption>
  766. <script type="javascript" ev:event="DOMActivate">
  767. <![CDATA[
  768. model.makeValue("/root/source/condition/entrregno", model.getValue(ipt_entrregno.attribute("ref")));
  769. model.makeValue("/root/source/condition/custnm", model.getValue(ipt_custnm.attribute("ref")));
  770. model.makeValue("/root/source/condition/taxbillkind", model.getValue("/root/main/list/taxbill/taxbillkind"));
  771. model.makeValue("/root/source/condition/taxbillflag", model.getValue(rdo_taxbillflag.attribute("ref")));
  772. model.makeValue("/root/source/condition/isscust", model.getValue(cmb_isscust.attribute("ref")));
  773. model.makeValue("/root/source/receiveref", "/root/main/list/taxbill");
  774. modal("SPRAC01200","","","","","/root/source", "/root/target" );
  775. var vCustdtiemailaddr = model.getValue(ipt_custdtiemailaddr.attribute("ref"));
  776. //
  777. // model.setValue(cmb_custdtiemailaddr.attribute("ref"), vCustdtiemailaddr);
  778. //
  779. ipt_custdtiemailaddr.refresh();
  780. //
  781. model.refresh();
  782. ]]>
  783. </script>
  784. </button>
  785. <caption id="cap_emailaddr" class="cell_1" style="left:30px; top:157px; width:70px; height:23px; vertical-align:middle; ">E-mail</caption>
  786. <input id="ipt_email" ref="/root/main/list/dtimail/email" class="input_essential" visibility="hidden" editable="false" style="left:421px; top:230px; width:122px; height:19px; text-align:right; "/>
  787. <button id="btn_dtiemail" class="btn2_letter6" style="left:330px; top:230px; width:85px; height:19px; ">
  788. <caption>E-mail 선택</caption>
  789. <script type="javascript" ev:event="DOMActivate">
  790. <![CDATA[
  791. misfOpenPopUpList("53", ipt_email, "", "instcd,deptcd,depthngnm,emplno,emplnm,duplcedeptnm,jobrespnm,email");
  792. model.setValue(ipt_dtiemail.attribute("ref"), model.getValue(ipt_email.attribute("ref")));
  793. ipt_dtiemail.refresh();
  794. ]]>
  795. </script>
  796. </button>
  797. <input id="ipt_dtiemail" ref="/root/main/list/taxbill/dtiemail" class="input_essential" editable="false" style="left:103px; top:231px; width:224px; height:19px; text-align:right; "/>
  798. <input id="ipt_custdtiemailaddr" ref="/root/main/list/taxbill/custdtiemailaddr" class="input_essential" style="left:105px; top:159px; width:403px; height:19px; "/>
  799. <button id="button2" class="icon_search" style="left:510px; top:160px; width:16px; height:16px; ">
  800. <caption/>
  801. <script type="javascript" ev:event="DOMActivate">
  802. <![CDATA[
  803. model.makeValue("/root/source/condition/entrregno", model.getValue(ipt_entrregno.attribute("ref")));
  804. model.makeValue("/root/source/condition/custnm", model.getValue(ipt_custnm.attribute("ref")));
  805. model.makeValue("/root/source/receiveref", "/root/hidden/custdtiemaillist");
  806. modal("SPRAC01300","","","","","/root/source", "/root/target" );
  807. // = model.getValue("/root/hidden/custdtiemaillist/chrgnm");
  808. model.setValue(ipt_custdtiemailaddr.attribute("ref"), model.getValue("/root/hidden/custdtiemaillist/chrgemailaddr"));
  809. model.refresh();
  810. ]]>
  811. </script>
  812. </button>
  813. <select id="chk_dtibillyn" ref="/root/main/list/taxbill/dtibillyn" visibility="visible" overflow="visible" appearance="full" style="left:260px; top:210px; width:65px; height:20px; text-align:left; vertical-align:middle; border-style:none; ">
  814. <choices>
  815. <item>
  816. <label>DTI연동</label>
  817. <value>Y</value>
  818. </item>
  819. </choices>
  820. <script type="javascript" ev:event="xforms-value-changed">
  821. <![CDATA[
  822. fEbillcontrolexception();
  823. ]]>
  824. </script>
  825. </select>
  826. <select1 id="cmb_ebillflag" ref="/root/main/list/taxbill/ebillflag" class="combo_default" visibility="visible" appearance="minimal" style="left:103px; top:208px; width:147px; height:19px; ">
  827. <choices>
  828. <item>
  829. <label>일반세금계산서</label>
  830. <value>00</value>
  831. </item>
  832. <item>
  833. <label>전자세금계산서</label>
  834. <value>01</value>
  835. </item>
  836. </choices>
  837. <script type="javascript" ev:event="xforms-value-changed">
  838. <![CDATA[
  839. if(model.getValue(cmb_ebillflag.attribute("ref")) == "01")
  840. {
  841. model.setValue(chk_dtibillyn.attribute("ref"), "Y");
  842. }
  843. else
  844. {
  845. model.setValue(chk_dtibillyn.attribute("ref"), "");
  846. }
  847. chk_dtibillyn.refresh();
  848. fEbillcontrolexception();
  849. ]]>
  850. </script>
  851. </select1>
  852. </group>
  853. </xhtml:body>
  854. </xhtml:html>