SMRAT00100_세금계산서관리.xrw 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839
  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. <taxbilllist/>
  12. </list>
  13. <prntlist/>
  14. <ctrls>
  15. <total>
  16. <cnt/>
  17. <supamt/>
  18. <tax/>
  19. <sum/>
  20. </total>
  21. <mutualpossible>
  22. <cnt/>
  23. <supamt/>
  24. <tax/>
  25. <sum/>
  26. </mutualpossible>
  27. <mutualimpossible>
  28. <cnt/>
  29. <supamt/>
  30. <tax/>
  31. <sum/>
  32. </mutualimpossible>
  33. <fixproperty>
  34. <cnt/>
  35. <supamt/>
  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. <taxbillkind>4</taxbillkind>
  49. <taxbillflag>1</taxbillflag>
  50. <entrregno/>
  51. <custnm/>
  52. <prsdnm/>
  53. <addtaxpnt/>
  54. <profcheckyn/>
  55. <sanctflag>Y</sanctflag>
  56. <sendflag>Y</sendflag>
  57. <mngtiptflag>Y</mngtiptflag>
  58. <ntsappryn/>
  59. <ntsautoyn/>
  60. </retrparam>
  61. <date/>
  62. <prntretrparams>
  63. <seqno/>
  64. </prntretrparams>
  65. </send>
  66. <init>
  67. <init_taxbillkind>
  68. <item>
  69. <label>세금계산서</label>
  70. <value>4</value>
  71. </item>
  72. <item>
  73. <label>계산서</label>
  74. <value>5</value>
  75. </item>
  76. <item>
  77. <label>신용카드</label>
  78. <value>6</value>
  79. </item>
  80. <item>
  81. <label>기타</label>
  82. <value>7</value>
  83. </item>
  84. </init_taxbillkind>
  85. <init_taxbillflag>
  86. <item>
  87. <label>매입</label>
  88. <value>1</value>
  89. </item>
  90. <item>
  91. <label>매출</label>
  92. <value>2</value>
  93. </item>
  94. </init_taxbillflag>
  95. <init_reptkind>
  96. <item>
  97. <label>1기예정</label>
  98. <value>1</value>
  99. </item>
  100. <item>
  101. <label>1기확정</label>
  102. <value>2</value>
  103. </item>
  104. <item>
  105. <label>2기예정</label>
  106. <value>3</value>
  107. </item>
  108. <item>
  109. <label>2기확정</label>
  110. <value>4</value>
  111. </item>
  112. </init_reptkind>
  113. <init_flagcd>
  114. <item>
  115. <label>정규</label>
  116. <value>1</value>
  117. </item>
  118. <item>
  119. <label>예정신고누락분</label>
  120. <value>2</value>
  121. </item>
  122. </init_flagcd>
  123. <init_fixasetflag>
  124. <item>
  125. <label>일반 매입·출</label>
  126. <value>00</value>
  127. </item>
  128. <item>
  129. <label>건,구축물</label>
  130. <value>01</value>
  131. </item>
  132. <item>
  133. <label>기계장치</label>
  134. <value>02</value>
  135. </item>
  136. <item>
  137. <label>차량운반구</label>
  138. <value>03</value>
  139. </item>
  140. <item>
  141. <label>기타감가상각물</label>
  142. <value>04</value>
  143. </item>
  144. </init_fixasetflag>
  145. <all_chk/>
  146. </init>
  147. <source>
  148. <slipinfo>
  149. <instcd/>
  150. <slipdt/>
  151. <slipno/>
  152. </slipinfo>
  153. </source>
  154. <hidden>
  155. <allwork/>
  156. <dtiworkyn/>
  157. <dtiinfo>
  158. <dtiemail/>
  159. <inv_no/>
  160. <custdtiemailaddr/>
  161. <name/>
  162. <entrregno/>
  163. <isscust/>
  164. <custnm/>
  165. <suplamt/>
  166. <valaddtax/>
  167. <amt/>
  168. </dtiinfo>
  169. <dtimail>
  170. <instcd/>
  171. <deptcd/>
  172. <depthngnm/>
  173. <emplno/>
  174. <emplnm/>
  175. <duplcedeptnm/>
  176. <jobrespnm/>
  177. <email/>
  178. </dtimail>
  179. <custdtiemaillist>
  180. <chrgnm/>
  181. <chrgemailaddr/>
  182. </custdtiemaillist>
  183. </hidden>
  184. </root>
  185. </instance>
  186. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  187. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  189. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  190. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  191. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  192. <script type="javascript" ev:event="xforms-ready">
  193. <![CDATA[
  194. fResetForm();
  195. ]]>
  196. </script>
  197. <script type="javascript">
  198. <![CDATA[
  199. function fResetForm()
  200. {
  201. model.removeNodeset("/root/main/list/taxbilllist");
  202. misfMsterDetailSet(grd_taxbilllist, null, "TRRAT00102", "Y");
  203. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  204. model.setValue("/root/send/retrparam/yyyy", getCurrentDate().substr(0, 4));
  205. // 현재일자 세팅
  206. model.setValue("/root/send/retrparam/frdate", getCurrentDate());
  207. model.setValue("/root/send/retrparam/todate", getCurrentDate());
  208. grd_taxbilllist.rowheight(0) = 35;
  209. fSetReptKind();
  210. fSetDate();
  211. misfGridComboComCdList("R0364", grd_taxbilllist, "proc_flag", "");
  212. model.refresh();
  213. }
  214. function fRetrieve()
  215. {
  216. if(model.getValue("/root/send/retrparam/yyyy").length != 4)
  217. {
  218. messageBox("년도가 잘못되었습니다.", "I999");
  219. return;
  220. }
  221. model.setValue("/root/send/prntretrparams/seqno", "");
  222. model.setValue("/root/init/all_chk", "");
  223. model.removeNodeset("/root/main/list/taxbilllist");
  224. model.refresh();
  225. misfMsterDetailRetrieve();
  226. model.recalculate();
  227. //전표 입력 증빙은 수정하지 못하도록 예외처리
  228. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  229. {
  230. var gubn = model.getValue("/root/send/retrparam/taxbillflag");
  231. //if (gubn == "1"){
  232. // model.setValue("/root/main/list/taxbilllist["+ i +"]/deduyn", "00");
  233. //}else {
  234. // model.setValue("/root/main/list/taxbilllist["+ i +"]/deduyn", "08");
  235. //}
  236. var ReadOnlyValue = false;
  237. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("unsldd")) != "")
  238. {
  239. bReadOnlyValue = true;
  240. }
  241. else
  242. {
  243. bReadOnlyValue = false;
  244. }
  245. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("entrregno")) = bReadOnlyValue;
  246. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("suplamt")) = bReadOnlyValue;
  247. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("valaddtax")) = bReadOnlyValue;
  248. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("amt")) = bReadOnlyValue;
  249. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02")
  250. {
  251. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#ff9900";
  252. }
  253. else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("closyn")) == "Y")
  254. {
  255. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#99ccff";
  256. }
  257. else
  258. {
  259. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#ffffff";
  260. }
  261. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "")
  262. {
  263. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = true;
  264. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = true;
  265. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("isscust")) = true;
  266. }
  267. if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
  268. || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
  269. {
  270. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = false;
  271. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = true;
  272. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
  273. }
  274. if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2")
  275. || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1") )// 발신 일때
  276. {
  277. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "") // 이미 발신된 데이터
  278. {
  279. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = true;
  280. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = true;
  281. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = true;
  282. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = true;
  283. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
  284. }
  285. else // 미발송된 데이터
  286. {
  287. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("inv_no")) = false;
  288. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtiemail")) = false;
  289. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("dtibillyn")) = false;
  290. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("ebillflag")) = false;
  291. grd_taxbilllist.isReadOnly( i, grd_taxbilllist.colRef("custdtiemailaddr")) = false;
  292. }
  293. }
  294. }
  295. // DIT 관련 예외 처리
  296. //model.setValue(chk_dtiworkyn.attribute("ref"), "");
  297. btn_dtisend.disabled = true;
  298. btn_addrow.disabled = false;
  299. btn_delrow.disabled = false;
  300. ipt_allchk.disabled = false;
  301. ipt_cancelchk.disabled = false;
  302. btn_excelinput.disabled = false;
  303. btn_save.disabled = false;
  304. model.refresh();
  305. }
  306. function fSetReptKind()
  307. {
  308. var sMonth = getCurrentDate().substr(4, 2);
  309. if(sMonth == "01" || sMonth == "02" || sMonth == "03")
  310. {
  311. model.setValue("/root/send/retrparam/reptkind", "1");
  312. }
  313. else if(sMonth == "04" || sMonth == "05" || sMonth == "06")
  314. {
  315. model.setValue("/root/send/retrparam/reptkind", "2");
  316. }
  317. else if(sMonth == "07" || sMonth == "08" || sMonth == "09")
  318. {
  319. model.setValue("/root/send/retrparam/reptkind", "3");
  320. }
  321. else if(sMonth == "10" || sMonth == "11" || sMonth == "12")
  322. {
  323. model.setValue("/root/send/retrparam/reptkind", "4");
  324. }
  325. model.refresh();
  326. }
  327. function fSetDate()
  328. {
  329. if(model.getValue("/root/send/retrparam/yyyy").length != 4)
  330. {
  331. messageBox("년도가 잘못되었습니다.", "I999");
  332. return;
  333. }
  334. var sReptKind = model.getValue("/root/send/retrparam/reptkind");
  335. if(sReptKind == "1")
  336. {
  337. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0101");
  338. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0331");
  339. }
  340. else if(sReptKind == "2")
  341. {
  342. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0401");
  343. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0630");
  344. }
  345. else if(sReptKind == "3")
  346. {
  347. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "0701");
  348. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "0930");
  349. }
  350. else if(sReptKind == "4")
  351. {
  352. model.setValue("/root/send/retrparam/frdate", model.getValue("/root/send/retrparam/yyyy") + "1001");
  353. model.setValue("/root/send/retrparam/todate", model.getValue("/root/send/retrparam/yyyy") + "1231");
  354. }
  355. model.refresh();
  356. }
  357. function fAddDelRow(sStatus)
  358. {
  359. if(sStatus == "A")
  360. {
  361. misfGridIUD(grd_taxbilllist, sStatus);
  362. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  363. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("flagcd")) = "1";
  364. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("genrdd")) = getCurrentDate();
  365. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isskind")) = "01";
  366. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind")) = "05";
  367. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = "01";
  368. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("fixasetflag")) = "00";
  369. if(rdo_billkind.value == "5"){
  370. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "08";
  371. }else{
  372. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("deduyn")) = "00";
  373. }
  374. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("remintax")) = "00";
  375. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn")) = "N";
  376. fSetAddtaxterm(grd_taxbilllist.row);
  377. }
  378. else
  379. {
  380. if(sStatus == "D") {
  381. var vgrdstatus;
  382. vgrdstatus = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("slipstatus")) ;
  383. if(vgrdstatus == "미결" || vgrdstatus == "결재" ) {
  384. model.alert (" 전표 내용이 있어 삭제가 불가 합니다...");
  385. return;
  386. }
  387. }
  388. misfGridIUD(grd_taxbilllist, sStatus);
  389. }
  390. }
  391. function fSave()
  392. {
  393. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  394. {
  395. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("genrdd")) == "")
  396. {
  397. messageBox("작성일자는", "I003");
  398. return false;
  399. }
  400. else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("entrregno")) == "")
  401. {
  402. messageBox("사업자등록번호는", "I003");
  403. return false;
  404. }
  405. else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("suplamt")) == "" || grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("valaddtax")) == "" || grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("amt")) == "")
  406. {
  407. messageBox("금액은", "I003");
  408. return false;
  409. }
  410. /*else if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("ebillflag")) == "")
  411. {
  412. messageBox("전자세금계산서종류는", "I003");
  413. return false;
  414. } */
  415. }
  416. misfSave("TXRAT00101");
  417. }
  418. function fSetPrntRetrParams()
  419. {
  420. model.setValue("/root/send/prntretrparams/seqno", model.getValue("/root/main/list/taxbilllist[" + grd_taxbilllist.row + "]/seqno"));
  421. }
  422. function fPrintTaxBill()
  423. {
  424. submit("TRRAT00701");
  425. if(rdo_billkind.value == 4)
  426. {
  427. exeReportPreview("RPRAT00701", "XMLSTR");
  428. }
  429. else
  430. {
  431. exeReportPreview("RPRAT00702", "XMLSTR");
  432. }
  433. }
  434. function fAllCheck(strAllChk)
  435. {
  436. var grdTolCnt;
  437. grdTolCnt = grd_taxbilllist.rows;
  438. if(model.getValue(chk_dtiworkyn.attribute("ref")) != "Y")
  439. {
  440. if (strAllChk == "Y")
  441. {
  442. for(var i =1; i < grd_taxbilllist.rows; i++)
  443. {
  444. fSetAddtaxterm(i);
  445. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "Y";
  446. }
  447. }
  448. else
  449. {
  450. for(var i =1; i < grd_taxbilllist.rows; i++)
  451. {
  452. fSetCleartaxterm(i);
  453. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "N";
  454. }
  455. }
  456. }
  457. else if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
  458. {
  459. if (strAllChk == "Y")
  460. {
  461. for(var i =1; i < grd_taxbilllist.rows; i++)
  462. {
  463. if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
  464. || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
  465. {
  466. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "Y";
  467. }
  468. }
  469. }
  470. else
  471. {
  472. for(var i =1; i < grd_taxbilllist.rows; i++)
  473. {
  474. grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) = "N";
  475. }
  476. }
  477. }
  478. }
  479. /*
  480. 부가세 년도와 신고 유형을 셋팅
  481. */
  482. function fSetAddtaxterm(rowid)
  483. {
  484. var strAddtaxyy;
  485. var strAddtaxpnt;
  486. strAddtaxyy = model.getValue("/root/send/retrparam/yyyy");
  487. strAddtaxpnt = model.getValue("/root/send/retrparam/reptkind");
  488. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = strAddtaxyy;
  489. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = strAddtaxpnt;
  490. var tmpStatus;
  491. tmpStatus = grd_taxbilllist.rowStatus(rowid);
  492. if (tmpStatus == 0 )
  493. {
  494. grd_taxbilllist.rowStatus(rowid) = 2 ;
  495. }
  496. }
  497. /*
  498. 부가세 년도와 신고 유형 제거
  499. */
  500. function fSetCleartaxterm(rowid)
  501. {
  502. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxyy")) = "";
  503. grd_taxbilllist.valueMatrix(rowid, grd_taxbilllist.colRef("addtaxpnt")) = "";
  504. var tmpStatus;
  505. tmpStatus = grd_taxbilllist.rowStatus(rowid);
  506. if (tmpStatus == 0 )
  507. {
  508. grd_taxbilllist.rowStatus(rowid) = 2 ;
  509. }
  510. }
  511. function fSetcheck(chk, row) // 선택을 체크해서 Y이면 신고년도, 신고기간 입력, N이면 삭제
  512. {
  513. }
  514. function fInsertUpdateException()
  515. {
  516. if( (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1")
  517. || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 수신데이터 일때
  518. {
  519. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = false;
  520. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = true;
  521. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
  522. }
  523. if( (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
  524. || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1") )// 발신 일때
  525. {
  526. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")
  527. {
  528. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = true;
  529. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = true;
  530. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = true;
  531. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = true;
  532. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = true;
  533. }
  534. else
  535. {
  536. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = false;
  537. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = false;
  538. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = false;
  539. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = false;
  540. grd_taxbilllist.isReadOnly( grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = false;
  541. }
  542. }
  543. }
  544. function fDtibillynException()
  545. {
  546. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) == "N")
  547. {
  548. if( ((grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
  549. || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1"))
  550. && (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")) //이미 발송된 발신 데이터는 멥핑상태를 해제할 수 없다.
  551. {
  552. messageBox("발송된 자료는 mapping 을 해제 할 수 없습니다.", "I000");
  553. }
  554. else
  555. {
  556. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = "";
  557. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = "";
  558. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = "";
  559. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = "";
  560. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
  561. }
  562. }
  563. else
  564. {
  565. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = "01";
  566. }
  567. }
  568. ]]>
  569. </script>
  570. <submission id="TXRAT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/taxbilllist" resultref="/root/temp"/>
  571. <submission id="TRRAT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/list"/>
  572. <!-- 전체 -->
  573. <bind id="tot_cnt" ref="/root/main/ctrls/total/cnt" calculate="count(/root/main/list/taxbilllist/seqno)"/>
  574. <bind id="tot_supamt" ref="/root/main/ctrls/total/supamt" calculate="sum(/root/main/list/taxbilllist/suplamt)"/>
  575. <bind id="tot_tax" ref="/root/main/ctrls/total/tax" calculate="sum(/root/main/list/taxbilllist/valaddtax)"/>
  576. <bind id="tot_sum" ref="/root/main/ctrls/total/sum" calculate="sum(/root/main/list/taxbilllist/amt)"/>
  577. <!-- 공제 항목 : 공제 인건 공제와 Null 포함 -->
  578. <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)"/>
  579. <bind id="tot1_supamt" ref="/root/main/ctrls/mutualpossible/supamt" calculate="sum(/root/main/list/taxbilllist[deduyn='00']/suplamt) + sum(/root/main/list/taxbilllist[deduyn='']/suplamt)"/>
  580. <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)"/>
  581. <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)"/>
  582. <!-- 불공제 항목 : 전체에서 공제를 뺀 것 -->
  583. <bind id="tot2_cnt" ref="/root/main/ctrls/mutualimpossible/cnt" calculate="sum(/root/main/ctrls/total/cnt) - sum(/root/main/ctrls/mutualpossible/cnt)"/>
  584. <bind id="tot2_supamt" ref="/root/main/ctrls/mutualimpossible/supamt" calculate="sum(/root/main/ctrls/total/supamt) - sum(/root/main/ctrls/mutualpossible/supamt)"/>
  585. <bind id="tot2_tax" ref="/root/main/ctrls/mutualimpossible/tax" calculate="sum(/root/main/ctrls/total/tax) - sum(/root/main/ctrls/mutualpossible/tax)"/>
  586. <bind id="tot2_sum" ref="/root/main/ctrls/mutualimpossible/sum" calculate="sum(/root/main/ctrls/total/sum) - sum(/root/main/ctrls/mutualpossible/sum)"/>
  587. <!-- 고정자산 매입 : 전체에서 일반 매입과 Null을 뺀 것 -->
  588. <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)"/>
  589. <bind id="tot3_supamt" ref="/root/main/ctrls/fixproperty/supamt" calculate="sum(/root/main/ctrls/total/supamt) - sum(/root/main/list/taxbilllist[fixasetflag='00']/suplamt) - sum(/root/main/list/taxbilllist[fixasetflag='']/suplamt)"/>
  590. <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)"/>
  591. <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)"/>
  592. <submission id="TRRAT00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntretrparams" resultref="/root/main/prntlist"/>
  593. <submission id="TXRAT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/taxbilllist" resultref="/root/temp"/>
  594. </model>
  595. </xhtml:head>
  596. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  597. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  598. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">세금계산서 관리</caption>
  599. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  600. </group>
  601. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  602. <group id="group4" style="left:0px; top:0px; width:1195px; height:85px; vertical-align:top; ">
  603. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  604. <caption id="caption9" class="search_name" style="left:305px; top:9px; width:106px; height:17px; ">신고 유형 :</caption>
  605. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
  606. <caption id="caption8" style="left:961px; top:11px; width:15px; height:20px; ">~</caption>
  607. <caption id="caption10" class="search_name" style="left:760px; top:10px; width:100px; height:17px; ">작성 일자 :</caption>
  608. <caption id="caption1" class="search_name" style="left:760px; top:36px; width:104px; height:17px; ">사업자번호 :</caption>
  609. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:31px; width:56px; height:22px; text-align:left; ">
  610. <caption>조회</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
  614. {
  615. fRetrieve();
  616. chk_dtiworkyn.dispatch("xforms-value-changed");
  617. }
  618. else
  619. {
  620. fRetrieve();
  621. }
  622. ]]>
  623. </script>
  624. </button>
  625. <line id="line10" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:81px; "/>
  626. <caption id="caption3" class="search_name" style="left:10px; top:36px; width:99px; height:17px; ">계산서종류 :</caption>
  627. <caption id="caption5" class="search_name" style="left:10px; top:62px; width:109px; height:17px; ">계산서구분 :</caption>
  628. <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; ">
  629. <choices>
  630. <itemset nodeset="/root/init/init_reptkind/item">
  631. <label ref="label"/>
  632. <value ref="value"/>
  633. </itemset>
  634. </choices>
  635. <script type="javascript" ev:event="xforms-value-changed">
  636. <![CDATA[
  637. if(model.getValue(cmb_addtaxpnt.attribute("ref")) == "")
  638. {
  639. fSetDate();
  640. }
  641. ]]>
  642. </script>
  643. </select1>
  644. <input id="ipt_frdate" ref="/root/send/retrparam/frdate" class="input_s_essential" editable="false" inputtype="date" style="left:860px; top:9px; width:95px; height:19px; "/>
  645. <input id="ipt_todate" ref="/root/send/retrparam/todate" class="input_s_essential" editable="false" inputtype="date" style="left:977px; top:9px; width:95px; height:19px; "/>
  646. <select1 id="rdo_billflag" ref="/root/send/retrparam/taxbillflag" class="radio_search" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:115px; top:62px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  647. <choices>
  648. <itemset nodeset="/root/init/init_taxbillflag/item">
  649. <label ref="label"/>
  650. <value ref="value"/>
  651. </itemset>
  652. </choices>
  653. <script type="javascript" ev:event="xforms-value-changed">
  654. <![CDATA[
  655. btn_search.dispatch("DOMActivate");
  656. // if(model.getValue(rdo_billflag.attribute("ref")) == "1") // 매입 일때
  657. // {
  658. // chk_dtiworkyn.disabled = true;
  659. // }
  660. // else if(model.getValue(rdo_billflag.attribute("ref")) == "2") //매출 일때
  661. // {
  662. // chk_dtiworkyn.disabled = false;
  663. // }
  664. //
  665. // if(rdo_billflag.value == 1)
  666. // {
  667. // btn_print.visible = false;
  668. // }
  669. // else
  670. // {
  671. // btn_print.visible = true;
  672. // }
  673. ]]>
  674. </script>
  675. </select1>
  676. <button id="btn_entregnohelp" class="icon_search" style="left:959px; top:36px; width:16px; height:16px; ">
  677. <caption/>
  678. <script type="javascript" ev:event="DOMActivate">
  679. <![CDATA[
  680. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  681. model.refresh();
  682. ]]>
  683. </script>
  684. </button>
  685. <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; ">
  686. <script type="javascript" ev:event="onkeypress">
  687. <![CDATA[
  688. if(event.keyCode == 13)
  689. {
  690. racfCustValidCheck("entrregno,custnm", "code");
  691. }
  692. ]]>
  693. </script>
  694. <script type="javascript" ev:event="xforms-value-changed">
  695. <![CDATA[
  696. racfCustValidCheck("entrregno,custnm", "code");
  697. ]]>
  698. </script>
  699. </input>
  700. <input id="ipt_regnm" ref="/root/send/retrparam/custnm" navindex="6" imemode="hangul" style="left:977px; top:36px; width:123px; height:19px; ">
  701. <script type="javascript" ev:event="onkeypress">
  702. <![CDATA[
  703. if(event.keyCode == 13)
  704. {
  705. racfCustValidCheck("entrregno,custnm", "name");
  706. }
  707. ]]>
  708. </script>
  709. <script type="javascript" ev:event="xforms-value-changed">
  710. <![CDATA[
  711. racfCustValidCheck("entrregno,custnm", "name");
  712. ]]>
  713. </script>
  714. </input>
  715. <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; ">
  716. <script type="javascript" ev:event="xforms-value-changed">
  717. <![CDATA[
  718. rdo_reptkind.dispatch("xforms-value-changed");
  719. ]]>
  720. </script>
  721. </input>
  722. <select1 id="cmb_addtaxpnt" ref="/root/send/retrparam/addtaxpnt" class="combo_essential" navindex="4" appearance="minimal" style="left:410px; top:35px; width:130px; height:19px; ">
  723. <choices>
  724. <item>
  725. <label>전체</label>
  726. <value/>
  727. </item>
  728. <item>
  729. <label>1기예정</label>
  730. <value>1</value>
  731. </item>
  732. <item>
  733. <label>1기확정</label>
  734. <value>2</value>
  735. </item>
  736. <item>
  737. <label>2기예정</label>
  738. <value>3</value>
  739. </item>
  740. <item>
  741. <label>2기확정</label>
  742. <value>4</value>
  743. </item>
  744. </choices>
  745. <script type="javascript" ev:event="xforms-value-changed">
  746. <![CDATA[
  747. if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
  748. {
  749. model.setValue(ipt_frdate.attribute("ref"), "");
  750. model.setValue(ipt_todate.attribute("ref"), "");
  751. ipt_frdate.refresh();
  752. ipt_todate.refresh();
  753. ipt_frdate.disabled = true;
  754. ipt_todate.disabled = true;
  755. chk_sanctflag.value = "Y";
  756. chk_sendflag.value = "Y";
  757. chk_mngtiptflag.value = "Y";
  758. // chk_sanctflag.disabled = true;
  759. // chk_sendflag.disabled = true;
  760. // chk_mngtiptflag.disabled = true;
  761. }
  762. else
  763. {
  764. rdo_reptkind.disabled = false;
  765. ipt_frdate.disabled = false;
  766. ipt_todate.disabled = false;
  767. // chk_sanctflag.disabled = false;
  768. // chk_sendflag.disabled = false;
  769. // chk_mngtiptflag.disabled = false;
  770. fSetDate();
  771. }
  772. ]]>
  773. </script>
  774. </select1>
  775. <caption id="caption16" class="search_name" style="left:305px; top:35px; width:125px; height:17px; ">확정 기간 :</caption>
  776. <button id="btn_pre" class="icon_pre" navindex="-1" style="left:115px; top:10px; width:13px; height:15px; ">
  777. <caption/>
  778. <script type="javascript" ev:event="DOMActivate">
  779. <![CDATA[
  780. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  781. var vNum = parseInt(vYYYY, 10);
  782. if (vNum != 1)
  783. {
  784. vNum--;
  785. }
  786. else
  787. {
  788. return;
  789. }
  790. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  791. ipt_yyyy.refresh();
  792. rdo_reptkind.dispatch("xforms-value-changed");
  793. ]]>
  794. </script>
  795. </button>
  796. <button id="button1" class="icon_next" navindex="-1" style="left:200px; top:10px; width:13px; height:15px; ">
  797. <caption/>
  798. <script type="javascript" ev:event="DOMActivate">
  799. <![CDATA[
  800. var vYYYY = model.getValue(ipt_yyyy.attribute("ref"));
  801. var vNum = parseInt(vYYYY, 10);
  802. if (vNum != 1)
  803. {
  804. vNum++;
  805. }
  806. else
  807. {
  808. return;
  809. }
  810. model.setValue(ipt_yyyy.attribute("ref"), vNum);
  811. ipt_yyyy.refresh();
  812. rdo_reptkind.dispatch("xforms-value-changed");
  813. ]]>
  814. </script>
  815. </button>
  816. <caption id="caption17" class="search_name" style="left:305px; top:60px; width:100px; height:17px; ">확인 여부 :</caption>
  817. <select1 id="combo1" ref="/root/send/retrparam/profcheckyn" class="combo_essential" navindex="4" appearance="minimal" style="left:410px; top:60px; width:130px; height:19px; ">
  818. <choices>
  819. <item>
  820. <label>전체</label>
  821. <value/>
  822. </item>
  823. <item>
  824. <label>증빙확인</label>
  825. <value>Y</value>
  826. </item>
  827. <item>
  828. <label>증빙미확인</label>
  829. <value>N</value>
  830. </item>
  831. </choices>
  832. </select1>
  833. <select id="chk_sanctflag" ref="/root/send/retrparam/sanctflag" visibility="visible" overflow="visible" appearance="full" style="left:860px; top:60px; width:55px; height:20px; border-style:none; ">
  834. <choices>
  835. <item>
  836. <label>결제</label>
  837. <value>Y</value>
  838. </item>
  839. </choices>
  840. </select>
  841. <select id="chk_sendflag" ref="/root/send/retrparam/sendflag" visibility="visible" overflow="visible" appearance="full" style="left:915px; top:60px; width:50px; height:20px; border-style:none; ">
  842. <choices>
  843. <item>
  844. <label>미결</label>
  845. <value>Y</value>
  846. </item>
  847. </choices>
  848. </select>
  849. <select id="chk_mngtiptflag" ref="/root/send/retrparam/mngtiptflag" visibility="visible" overflow="visible" appearance="full" style="left:965px; top:60px; width:145px; height:20px; border-style:none; ">
  850. <choices>
  851. <item>
  852. <label>세금계산서 관리 입력</label>
  853. <value>Y</value>
  854. </item>
  855. </choices>
  856. </select>
  857. <caption id="caption18" class="search_name" visibility="visible" style="left:760px; top:60px; width:104px; height:17px; ">상 태 :</caption>
  858. <input id="ipt_email" ref="/root/hidden/dtimail/email" class="input_essential" visibility="hidden" editable="false" style="left:650px; top:10px; width:115px; height:19px; text-align:right; "/>
  859. <caption id="caption19" class="search_name" style="left:550px; top:35px; width:125px; height:17px; ">승인여부 :</caption>
  860. <select1 id="cmb_ntsappryn" ref="/root/send/retrparam/ntsappryn" class="combo_essential" navindex="4" appearance="minimal" style="left:640px; top:35px; width:110px; height:19px; ">
  861. <choices>
  862. <item>
  863. <label>전체</label>
  864. <value/>
  865. </item>
  866. <item>
  867. <label>국세청승인</label>
  868. <value>Y</value>
  869. </item>
  870. <item>
  871. <label>국세청미승인</label>
  872. <value>N</value>
  873. </item>
  874. </choices>
  875. <script type="javascript" ev:event="xforms-value-changed">
  876. <![CDATA[
  877. if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
  878. {
  879. model.setValue(ipt_frdate.attribute("ref"), "");
  880. model.setValue(ipt_todate.attribute("ref"), "");
  881. ipt_frdate.refresh();
  882. ipt_todate.refresh();
  883. ipt_frdate.disabled = true;
  884. ipt_todate.disabled = true;
  885. chk_sanctflag.value = "Y";
  886. chk_sendflag.value = "Y";
  887. chk_mngtiptflag.value = "Y";
  888. // chk_sanctflag.disabled = true;
  889. // chk_sendflag.disabled = true;
  890. // chk_mngtiptflag.disabled = true;
  891. }
  892. else
  893. {
  894. rdo_reptkind.disabled = false;
  895. ipt_frdate.disabled = false;
  896. ipt_todate.disabled = false;
  897. // chk_sanctflag.disabled = false;
  898. // chk_sendflag.disabled = false;
  899. // chk_mngtiptflag.disabled = false;
  900. fSetDate();
  901. }
  902. ]]>
  903. </script>
  904. </select1>
  905. <select1 id="cmb_ntsautoyn" ref="/root/send/retrparam/ntsautoyn" class="combo_essential" navindex="4" appearance="minimal" style="left:640px; top:60px; width:110px; height:19px; ">
  906. <choices>
  907. <item>
  908. <label>전체</label>
  909. <value/>
  910. </item>
  911. <item>
  912. <label>국세청 자동 생성</label>
  913. <value>1</value>
  914. </item>
  915. <item>
  916. <label>DTI 자동 생성</label>
  917. <value>2</value>
  918. </item>
  919. </choices>
  920. <script type="javascript" ev:event="xforms-value-changed">
  921. <![CDATA[
  922. if(model.getValue(cmb_addtaxpnt.attribute("ref")) != "")
  923. {
  924. model.setValue(ipt_frdate.attribute("ref"), "");
  925. model.setValue(ipt_todate.attribute("ref"), "");
  926. ipt_frdate.refresh();
  927. ipt_todate.refresh();
  928. ipt_frdate.disabled = true;
  929. ipt_todate.disabled = true;
  930. chk_sanctflag.value = "Y";
  931. chk_sendflag.value = "Y";
  932. chk_mngtiptflag.value = "Y";
  933. // chk_sanctflag.disabled = true;
  934. // chk_sendflag.disabled = true;
  935. // chk_mngtiptflag.disabled = true;
  936. }
  937. else
  938. {
  939. rdo_reptkind.disabled = false;
  940. ipt_frdate.disabled = false;
  941. ipt_todate.disabled = false;
  942. // chk_sanctflag.disabled = false;
  943. // chk_sendflag.disabled = false;
  944. // chk_mngtiptflag.disabled = false;
  945. fSetDate();
  946. }
  947. ]]>
  948. </script>
  949. </select1>
  950. <caption id="caption20" class="search_name" style="left:550px; top:60px; width:125px; height:17px; ">자동생성 :</caption>
  951. <select1 id="rdo_billkind" ref="/root/send/retrparam/taxbillkind" class="combo_essential" navindex="4" appearance="minimal" style="left:115px; top:35px; width:160px; height:19px; ">
  952. <choices>
  953. <itemset nodeset="/root/init/init_taxbillkind/item">
  954. <label ref="label"/>
  955. <value ref="value"/>
  956. </itemset>
  957. </choices>
  958. <script type="javascript" ev:event="xforms-value-changed">
  959. <![CDATA[
  960. btn_search.dispatch("DOMActivate");
  961. ]]>
  962. </script>
  963. </select1>
  964. </group>
  965. <datagrid id="grd_taxbilllist" nodeset="/root/main/list/taxbilllist" backcoloralternate="#ffffff" caption="선택^기관코드^일련번호^신고년도^신고기간^신고유형(사용않함)^계산서종류^계산서구분^작성일자^사업자등록번호^거래처명^공급가액^부가세^합계^대표자^담당자^거래처 E-mail^국세청승인번호^전자세금계산서&#xA;종류^DTI 연동^DTI 상태^DTI 번호^DTI E-mail^DTI 부서코드^DTI 부서명^DTI 사번^DTI 담당자명^업태^종목^주소^발행처^등록번호유헝^구분^증빙확인^발의정보^발의정보^발의정보^승인정보^승인정보^승인정보^전표상태^마감여부^과세유형^고정자산구분^세액공제사항^기타공제매입세액^면세공급가액^면세사업확정비율^기불공제매입세액^재계산경감율^증감면세공급가액비율^비고(품목)" colwidth="30, 35, 35, 55, 55, 35, 35, 35, 85, 100, 140, 100, 100, 100, 0, 66, 100, 100, 90, 60, 100, 100, 100, 0, 100, 0, 100, 80, 80, 0, 80, 80, 70, 55, 77, 37, 60, 58, 36, 70, 80, 70, 80, 110, 129, 120, 120, 120, 120, 120, 130, 120, 0" ellipsis="true" explorerbar="sortshow" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1193px; height:495px; ">
  966. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  967. <script type="javascript" ev:event="xforms-value-changed">
  968. <![CDATA[
  969. if(grd_taxbilllist.col == grd_taxbilllist.colRef("chk"))
  970. {
  971. if(model.getValue(chk_dtiworkyn.attribute("ref")) != "Y")
  972. {
  973. var row = grd_taxbilllist.row;
  974. var chk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("chk"));
  975. if (chk == "N")
  976. {
  977. model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxyy","");
  978. model.setValue("/root/main/list/taxbilllist["+ row +"]/addtaxpnt","");
  979. }
  980. if (chk == "Y")
  981. {
  982. fSetAddtaxterm(row);
  983. }
  984. }
  985. else if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
  986. {
  987. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
  988. grd_taxbilllist.refresh();
  989. }
  990. }
  991. else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("closyn"))
  992. {
  993. var closyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("closyn"));
  994. if (closyn == "")
  995. {
  996. closyn = "N";
  997. }
  998. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  999. {
  1000. model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/closyn", closyn);
  1001. grd_taxbilllist.addStatus(i, "update");
  1002. }
  1003. }
  1004. else if(chk_allwork.value == "Y" && grd_taxbilllist.col == grd_taxbilllist.colRef("profcheckyn"))
  1005. {
  1006. var profcheckyn = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("profcheckyn"));
  1007. if (profcheckyn == "")
  1008. {
  1009. profcheckyn = "N";
  1010. }
  1011. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  1012. {
  1013. model.setValue(grd_taxbilllist.nodeset + "[" + (i - grd_taxbilllist.fixedRows + 1) + "]/profcheckyn", profcheckyn);
  1014. grd_taxbilllist.addStatus(i, "update");
  1015. }
  1016. }
  1017. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("dtibillyn")) // DTI 예외처리
  1018. {
  1019. fDtibillynException();
  1020. }
  1021. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("isscust")) // DTI 예외처리
  1022. {
  1023. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = "";
  1024. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = "";
  1025. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = "";
  1026. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = "";
  1027. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
  1028. fInsertUpdateException();
  1029. }
  1030. model.refresh();
  1031. ]]>
  1032. </script>
  1033. <col ref="instcd" visibility="hidden"/>
  1034. <col ref="seqno" visibility="hidden" style="left:55px; top:23px; width:35px; height:23px; "/>
  1035. <col ref="addtaxyy" type="input" style="text-align:center; "/>
  1036. <col ref="addtaxpnt" type="combo" style="text-align:left; ">
  1037. <choices>
  1038. <item>
  1039. <label>1기예정</label>
  1040. <value>1</value>
  1041. </item>
  1042. <item>
  1043. <label>1기확정</label>
  1044. <value>2</value>
  1045. </item>
  1046. <item>
  1047. <label>2기예정</label>
  1048. <value>3</value>
  1049. </item>
  1050. <item>
  1051. <label>2기확정</label>
  1052. <value>4</value>
  1053. </item>
  1054. <item>
  1055. <label/>
  1056. <value/>
  1057. </item>
  1058. </choices>
  1059. </col>
  1060. <col ref="reptkind" type="combo" visibility="hidden">
  1061. <choices>
  1062. <itemset nodeset="/root/init/init_reptkind/item">
  1063. <label ref="label"/>
  1064. <value ref="value"/>
  1065. </itemset>
  1066. </choices>
  1067. </col>
  1068. <col ref="taxbillkind" type="combo" visibility="hidden">
  1069. <choices>
  1070. <itemset nodeset="/root/init/init_taxbillkind/item">
  1071. <label ref="label"/>
  1072. <value ref="value"/>
  1073. </itemset>
  1074. </choices>
  1075. </col>
  1076. <col ref="taxbillflag" type="combo" visibility="hidden">
  1077. <choices>
  1078. <itemset nodeset="/root/init/init_taxbillflag/item">
  1079. <label ref="label"/>
  1080. <value ref="value"/>
  1081. </itemset>
  1082. </choices>
  1083. </col>
  1084. <col ref="genrdd" type="inputdate" format="yyyy-mm-dd"/>
  1085. <col ref="entrregno" type="inputbutton" format="999-99-99999" style="text-align:center; "/>
  1086. <col ref="custnm" style="text-align:left; "/>
  1087. <col ref="suplamt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  1088. <col ref="valaddtax" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  1089. <col ref="amt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; "/>
  1090. <col ref="custprsd"/>
  1091. <col ref="custdtieacntchrgnm" visibility="hidden" style="left:767px; top:23px; width:79px; height:23px; text-align:left; "/>
  1092. <col ref="custdtiemailaddr" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
  1093. <col ref="ntsetaxno" visibility="hidden"/>
  1094. <col ref="ebillflag" type="combo">
  1095. <choices>
  1096. <item>
  1097. <label>일반세금계산서</label>
  1098. <value>00</value>
  1099. </item>
  1100. <item>
  1101. <label>전자세금계산서</label>
  1102. <value>01</value>
  1103. </item>
  1104. </choices>
  1105. </col>
  1106. <col checkvalue="Y,N" ref="dtibillyn" type="checkbox" visibility="hidden" style="border-left-width:1px; "/>
  1107. <col disabled="true" ref="proc_flag" type="combo" visibility="hidden">
  1108. <choices>
  1109. <itemset>
  1110. <label/>
  1111. <value/>
  1112. </itemset>
  1113. </choices>
  1114. </col>
  1115. <col disabled="false" ref="inv_no" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
  1116. <col disabled="false" ref="dtiemail" type="inputbutton" visibility="hidden" editable="false" style="text-align:left; "/>
  1117. <col ref="dtideptcd" style="text-align:left; "/>
  1118. <col ref="dtideptnm" visibility="hidden" style="text-align:left; "/>
  1119. <col ref="dtiemplno" style="text-align:left; "/>
  1120. <col ref="dtiname" visibility="hidden" style="text-align:left; "/>
  1121. <col ref="custbizcond" style="left:1044px; top:23px; width:80px; height:23px; text-align:left; "/>
  1122. <col ref="custitem" style="text-align:left; "/>
  1123. <col ref="custaddr" style="text-align:left; "/>
  1124. <col ref="isscust" type="combo" style="text-align:center; ">
  1125. <choices>
  1126. <item>
  1127. <label>매출자발행</label>
  1128. <value>01</value>
  1129. </item>
  1130. <item>
  1131. <label>매입자발행</label>
  1132. <value>02</value>
  1133. </item>
  1134. <item>
  1135. <label>기타</label>
  1136. <value>03</value>
  1137. </item>
  1138. </choices>
  1139. </col>
  1140. <col ref="isskind" type="combo" style="text-align:center; ">
  1141. <choices>
  1142. <item>
  1143. <label>사업자등록번호발행분</label>
  1144. <value>01</value>
  1145. </item>
  1146. <item>
  1147. <label>주민등록번호발행분</label>
  1148. <value>02</value>
  1149. </item>
  1150. </choices>
  1151. </col>
  1152. <col ref="flagcd" type="combo" style="text-align:center; ">
  1153. <choices>
  1154. <itemset nodeset="/root/init/init_flagcd/item">
  1155. <label ref="label"/>
  1156. <value ref="value"/>
  1157. </itemset>
  1158. </choices>
  1159. </col>
  1160. <col checkvalue="Y,N" ref="profcheckyn" type="checkbox"/>
  1161. <col ref="unsldd" format="yyyy-mm-dd" style="text-align:center; "/>
  1162. <col ref="unslno" style="text-align:center; "/>
  1163. <col ref="undeciseqno" style="text-align:center; "/>
  1164. <col ref="sanctslipdd"/>
  1165. <col ref="sanctslipno"/>
  1166. <col ref="sanctslipseqno"/>
  1167. <col ref="slipstatus" style="text-align:center; "/>
  1168. <col checkvalue="Y,N" ref="closyn" type="checkbox"/>
  1169. <col ref="taxkind" type="combo" style="text-align:center; ">
  1170. <choices>
  1171. <item>
  1172. <label>과세</label>
  1173. <value>01</value>
  1174. </item>
  1175. <item>
  1176. <label>영세율</label>
  1177. <value>02</value>
  1178. </item>
  1179. <item>
  1180. <label>대손세액가감</label>
  1181. <value>03</value>
  1182. </item>
  1183. <item>
  1184. <label>비과세</label>
  1185. <value>04</value>
  1186. </item>
  1187. <item>
  1188. <label>면세</label>
  1189. <value>05</value>
  1190. </item>
  1191. </choices>
  1192. </col>
  1193. <col ref="fixasetflag" type="combo">
  1194. <choices>
  1195. <itemset nodeset="/root/init/init_fixasetflag/item">
  1196. <label ref="label"/>
  1197. <value ref="value"/>
  1198. </itemset>
  1199. </choices>
  1200. </col>
  1201. <col ref="deduyn" type="combo">
  1202. <choices>
  1203. <item>
  1204. <label>불공제- 면세 사업</label>
  1205. <value>00</value>
  1206. </item>
  1207. <item>
  1208. <label>공제</label>
  1209. <value>01</value>
  1210. </item>
  1211. <item>
  1212. <label>불공제- 필요적 기재사항 누락</label>
  1213. <value>02</value>
  1214. </item>
  1215. <item>
  1216. <label>불공제- 사업과 관련 없음</label>
  1217. <value>03</value>
  1218. </item>
  1219. <item>
  1220. <label>불공제- 비영업용 소형승용차 구입 유지</label>
  1221. <value>04</value>
  1222. </item>
  1223. <item>
  1224. <label>불공제- 접대비 및 이와 유사한 비용 관련</label>
  1225. <value>05</value>
  1226. </item>
  1227. <item>
  1228. <label>불공제- 토지의 자본적 지출</label>
  1229. <value>06</value>
  1230. </item>
  1231. <item>
  1232. <label>불공제- 사업자등록 전 매입</label>
  1233. <value>07</value>
  1234. </item>
  1235. <item>
  1236. <label>해당없음</label>
  1237. <value>08</value>
  1238. </item>
  1239. </choices>
  1240. </col>
  1241. <col ref="remintax" type="combo" style="text-align:left; ">
  1242. <choices>
  1243. <item>
  1244. <label>해당없음</label>
  1245. <value>00</value>
  1246. </item>
  1247. <item>
  1248. <label>신용카드매출전표등수취명세서제출분</label>
  1249. <value>01</value>
  1250. </item>
  1251. <item>
  1252. <label>의제</label>
  1253. <value>02</value>
  1254. </item>
  1255. <item>
  1256. <label>재활용폐자원</label>
  1257. <value>03</value>
  1258. </item>
  1259. <item>
  1260. <label>과세사업전환</label>
  1261. <value>04</value>
  1262. </item>
  1263. <item>
  1264. <label>재고매입</label>
  1265. <value>05</value>
  1266. </item>
  1267. <item>
  1268. <label>변제대손</label>
  1269. <value>06</value>
  1270. </item>
  1271. </choices>
  1272. </col>
  1273. <col ref="exptsuplamt" type="input" style="text-align:left; "/>
  1274. <col ref="expttaxrate" type="input" style="text-align:left; "/>
  1275. <col ref="bfnontax" type="input" style="text-align:left; "/>
  1276. <col ref="lowrate" type="input" style="text-align:left; "/>
  1277. <col ref="elvtsubtrrate" type="input" style="text-align:left; "/>
  1278. <col ref="cmt" type="input" style="text-align:left; "/>
  1279. <col ref="dummy" visibility="hidden"/>
  1280. <script type="javascript" ev:event="onbuttonclick">
  1281. <![CDATA[
  1282. if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
  1283. {
  1284. var vEntrregno = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno"));
  1285. misfOpenPopUpList("14", grd_taxbilllist, "", "entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem");
  1286. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")) != vEntrregno)
  1287. {
  1288. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtieacntchrgnm")) = "";
  1289. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = "";
  1290. }
  1291. }
  1292. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("custdtiemailaddr"))
  1293. {
  1294. model.makeValue("/root/source/condition/entrregno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")));
  1295. model.makeValue("/root/source/condition/custnm", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")));
  1296. model.makeValue("/root/source/receiveref", "/root/hidden/custdtiemaillist");
  1297. modal("SPRAC01300","","","","","/root/source", "/root/target" );
  1298. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtieacntchrgnm")) = model.getValue("/root/hidden/custdtiemaillist/chrgnm");
  1299. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = model.getValue("/root/hidden/custdtiemaillist/chrgemailaddr");
  1300. }
  1301. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("inv_no"))
  1302. {
  1303. model.makeValue("/root/source/condition/entrregno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")));
  1304. model.makeValue("/root/source/condition/custnm", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")));
  1305. model.makeValue("/root/source/condition/taxbillkind", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")));
  1306. model.makeValue("/root/source/condition/taxbillflag", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")));
  1307. model.makeValue("/root/source/condition/isscust", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")));
  1308. model.makeValue("/root/source/receiveref", "/root/hidden/dtiinfo");
  1309. modal("SPRAC01200","","","","","/root/source", "/root/target" );
  1310. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) = model.getValue("/root/hidden/dtiinfo/inv_no");
  1311. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = model.getValue("/root/hidden/dtiinfo/dtiemail");
  1312. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custdtiemailaddr")) = model.getValue("/root/hidden/dtiinfo/custdtiemailaddr");
  1313. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = model.getValue("/root/hidden/dtiinfo/custnm");
  1314. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = model.getValue("/root/hidden/dtiinfo/name");
  1315. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) = model.getValue("/root/hidden/dtiinfo/isscust");
  1316. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != "")
  1317. {
  1318. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
  1319. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) = "01";
  1320. }
  1321. if(grd_taxbilllist.rowStatus(grd_taxbilllist.row) == 1 || grd_taxbilllist.rowStatus(grd_taxbilllist.row) == 3)
  1322. {
  1323. // alert(grd_taxbilllist.rowStatus(grd_taxbilllist.row));
  1324. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = model.getValue("/root/hidden/dtiinfo/suplamt");
  1325. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = model.getValue("/root/hidden/dtiinfo/valaddtax");
  1326. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = model.getValue("/root/hidden/dtiinfo/amt");
  1327. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("entrregno")) = model.getValue("/root/hidden/dtiinfo/entrregno");
  1328. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("custnm")) = model.getValue("/root/hidden/dtiinfo/custnm");
  1329. }
  1330. else
  1331. {
  1332. grd_taxbilllist.addStatus(grd_taxbilllist.row, "update");
  1333. }
  1334. }
  1335. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("dtiemail"))
  1336. {
  1337. alert(grd_taxbilllist.rowStatus(grd_taxbilllist.row));
  1338. misfOpenPopUpList("53", ipt_email, "", "instcd,deptcd,depthngnm,emplno,emplnm,duplcedeptnm,jobrespnm,email");
  1339. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) = model.getValue("/root/hidden/dtimail/email");
  1340. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtideptnm")) = model.getValue("/root/hidden/dtimail/depthngnm");
  1341. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiname")) = model.getValue("/root/hidden/dtimail/emplnm");
  1342. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtiemail")) != "")
  1343. {
  1344. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
  1345. }
  1346. grd_taxbilllist.addStatus(grd_taxbilllist.row, "update");
  1347. }
  1348. model.refresh();
  1349. ]]>
  1350. </script>
  1351. <script type="javascript" ev:event="onendedit">
  1352. <![CDATA[
  1353. if(grd_taxbilllist.col == grd_taxbilllist.colRef("entrregno"))
  1354. {
  1355. racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "code");
  1356. }
  1357. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("custnm"))
  1358. {
  1359. racfCustValidCheck("entrregno,custnm,custprsd,dummy,custaddr,custbizcond,custitem", "name");
  1360. }
  1361. ]]>
  1362. </script>
  1363. <script type="javascript" ev:event="onrowchanged">
  1364. <![CDATA[
  1365. fSetPrntRetrParams();
  1366. ]]>
  1367. </script>
  1368. <script type="javascript" ev:event="xforms-value-changed">
  1369. <![CDATA[
  1370. if(grd_taxbilllist.col == grd_taxbilllist.colRef("suplamt") || grd_taxbilllist.col == grd_taxbilllist.colRef("valaddtax"))
  1371. {
  1372. var iSuplAmt = 0;
  1373. var iValAddTax = 0;
  1374. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) == "")
  1375. {
  1376. iSuplAmt = 0;
  1377. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = 0;
  1378. }
  1379. else
  1380. {
  1381. iSuplAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt"));
  1382. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")) == "4" && grd_taxbilllist.col != grd_taxbilllist.colRef("valaddtax"))
  1383. {
  1384. var taxrate;
  1385. var taxchk = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxkind"));
  1386. if ( taxchk == "01") {
  1387. taxrate = 0.1;
  1388. } else
  1389. {
  1390. taxrate = 0 ;
  1391. }
  1392. var fValAddTax = parseInt(iSuplAmt * taxrate);
  1393. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = fValAddTax;
  1394. }
  1395. }
  1396. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) == "")
  1397. {
  1398. iValAddTax = 0;
  1399. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = 0;
  1400. }
  1401. else
  1402. {
  1403. iValAddTax = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax"));
  1404. }
  1405. var iSumAmt = parseFloat(iSuplAmt) + parseFloat(iValAddTax);
  1406. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt")) = iSumAmt;
  1407. }
  1408. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("amt") && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillkind")) == "4")
  1409. {
  1410. var sAmt = grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("amt"));
  1411. var iPayAmt = 0;
  1412. var iTax = 0;
  1413. if(sAmt != "")
  1414. {
  1415. iPayAmt = Math.round(parseInt(sAmt, 10) / 11.0 * 10);
  1416. iTax = Math.round(parseInt(sAmt, 10) / 11.0);
  1417. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("suplamt")) = iPayAmt;
  1418. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("valaddtax")) = iTax;
  1419. }
  1420. }
  1421. else if(grd_taxbilllist.col == grd_taxbilllist.colRef("ebillflag"))
  1422. {
  1423. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("ebillflag")) != "01")
  1424. {
  1425. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "N";
  1426. }
  1427. else
  1428. {
  1429. grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("dtibillyn")) = "Y";
  1430. }
  1431. fDtibillynException();
  1432. }
  1433. grd_taxbilllist.refresh();
  1434. ]]>
  1435. </script>
  1436. <script type="javascript" ev:event="onaftersort">
  1437. <![CDATA[
  1438. grd_taxbilllist.gridToInstance();
  1439. ]]>
  1440. </script>
  1441. <script type="javascript" ev:event="ondblclick">
  1442. <![CDATA[
  1443. if ( grd_taxbilllist.row > 0 && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) != "")
  1444. {
  1445. model.setValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
  1446. model.setValue("/root/source/slipinfo/slipdt", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")));
  1447. model.setValue("/root/source/slipinfo/slipno", grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unslno")));
  1448. model.refresh();
  1449. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  1450. }
  1451. ]]>
  1452. </script>
  1453. </datagrid>
  1454. <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:1195px; y2:110px; "/>
  1455. <caption id="caption26" class="tit_2" style="left:5px; top:92px; width:100px; height:13px; ">세금 계산서</caption>
  1456. <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; "/>
  1457. <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; "/>
  1458. <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; "/>
  1459. <caption id="caption7" class="cell_1" style="left:548px; top:643px; width:90px; height:23px; vertical-align:middle; ">총액</caption>
  1460. <caption id="caption45" class="cell_1" style="left:547px; top:718px; width:90px; height:23px; vertical-align:middle; ">고정자산매입</caption>
  1461. <caption id="caption46" class="cell_1" style="left:548px; top:693px; width:90px; height:23px; vertical-align:middle; ">공제가능</caption>
  1462. <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; "/>
  1463. <caption id="caption11" class="cell_1" style="left:548px; top:668px; width:90px; height:23px; vertical-align:middle; ">공제불능</caption>
  1464. <line id="line5" class="line_2" style="x1:544px; y1:643px; x2:1191px; y2:643px; "/>
  1465. <input id="input2" ref="/root/main/ctrls/total/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:645px; width:134px; height:19px; text-align:right; "/>
  1466. <input id="input5" ref="/root/main/ctrls/mutualimpossible/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:694px; width:134px; height:19px; text-align:right; "/>
  1467. <input id="input6" ref="/root/main/ctrls/fixproperty/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:719px; width:134px; height:19px; text-align:right; "/>
  1468. <input id="input7" ref="/root/main/ctrls/mutualpossible/supamt" class="input_default" editable="false" format="(-)#,###" style="left:780px; top:669px; width:134px; height:19px; text-align:right; "/>
  1469. <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; "/>
  1470. <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; "/>
  1471. <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; "/>
  1472. <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; "/>
  1473. <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; "/>
  1474. <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; "/>
  1475. <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; "/>
  1476. <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; "/>
  1477. <line id="line3" class="line_2" style="x1:545px; y1:666px; x2:1192px; y2:666px; "/>
  1478. <line id="line4" class="line_2" style="x1:545px; y1:691px; x2:1192px; y2:691px; "/>
  1479. <line id="line6" class="line_2" style="x1:545px; y1:716px; x2:1192px; y2:716px; "/>
  1480. <line id="line7" class="line_2" style="x1:545px; y1:741px; x2:1192px; y2:741px; "/>
  1481. <caption id="caption12" class="cell_1" style="left:641px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">건수</caption>
  1482. <caption id="caption13" class="cell_1" style="left:779px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">공급가액</caption>
  1483. <caption id="caption14" class="cell_1" style="left:918px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">부 가 세</caption>
  1484. <caption id="caption15" class="cell_1" style="left:1057px; top:618px; width:135px; height:23px; text-align:center; vertical-align:middle; ">합 계</caption>
  1485. <line id="line8" class="line_2" style="x1:1055px; y1:618px; x2:1055px; y2:742px; "/>
  1486. <line id="line9" class="line_2" style="x1:916px; y1:618px; x2:916px; y2:742px; "/>
  1487. <line id="line11" class="line_2" style="x1:777px; y1:618px; x2:777px; y2:742px; "/>
  1488. <line id="line12" class="line_2" style="x1:639px; y1:618px; x2:639px; y2:742px; "/>
  1489. <button id="btn_addrow" class="btn2_letter3" navindex="8" style="left:1083px; top:87px; width:53px; height:19px; text-align:left; ">
  1490. <caption>행추가</caption>
  1491. <script type="javascript" ev:event="DOMActivate">
  1492. <![CDATA[
  1493. fAddDelRow("A");
  1494. fInsertUpdateException();
  1495. ]]>
  1496. </script>
  1497. </button>
  1498. <button id="btn_delrow" class="btn2_letter3" disabled="false" navindex="9" visibility="visible" style="left:1137px; top:87px; width:53px; height:19px; text-align:left; ">
  1499. <caption>행삭제</caption>
  1500. <script type="javascript" ev:event="DOMActivate">
  1501. <![CDATA[
  1502. if( ((grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "2")
  1503. || (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("taxbillflag")) == "1"))
  1504. && (grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("inv_no")) != ""))// 발신 데이터 이면서 매핑자료일때는 지울수 없다.
  1505. {
  1506. return false;
  1507. }
  1508. if(grd_taxbilllist.valueMatrix(grd_taxbilllist.row, grd_taxbilllist.colRef("unsldd")) == "")
  1509. {
  1510. fAddDelRow("D");
  1511. }
  1512. ]]>
  1513. </script>
  1514. </button>
  1515. <button id="btn_excel" class="btn2_letter4" navindex="10" style="left:1006px; top:87px; width:64px; height:19px; text-align:left; ">
  1516. <caption>엑셀출력</caption>
  1517. <script type="javascript" ev:event="DOMActivate">
  1518. <![CDATA[
  1519. // misfSaveExcel(grd_taxbilllist);
  1520. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1521. grd_taxbilllist.saveExcel(fileName,"SheetName:sheet1");
  1522. ]]>
  1523. </script>
  1524. </button>
  1525. <button id="btn_excelinput" class="btn2_letter4" style="left:940px; top:87px; width:64px; height:19px; text-align:left; ">
  1526. <caption>엑셀입력</caption>
  1527. <script type="javascript" ev:event="DOMActivate">
  1528. <![CDATA[
  1529. modal("SPRAT00100");
  1530. ]]>
  1531. </script>
  1532. </button>
  1533. <button id="ipt_allchk" class="btn2_letter4" style="left:105px; top:87px; width:64px; height:19px; text-align:left; ">
  1534. <caption>전체선택</caption>
  1535. <script type="javascript" ev:event="DOMActivate">
  1536. <![CDATA[
  1537. fAllCheck("Y");
  1538. ]]>
  1539. </script>
  1540. </button>
  1541. <button id="ipt_cancelchk" class="btn2_letter4" style="left:175px; top:87px; width:64px; height:19px; text-align:left; ">
  1542. <caption>전체해제</caption>
  1543. <script type="javascript" ev:event="DOMActivate">
  1544. <![CDATA[
  1545. fAllCheck("N");
  1546. ]]>
  1547. </script>
  1548. </button>
  1549. <select id="chk_allwork" ref="/root/hidden/allwork" visibility="visible" overflow="visible" appearance="full" style="left:245px; top:89px; width:140px; height:20px; text-align:left; vertical-align:middle; border-style:none; ">
  1550. <choices>
  1551. <item>
  1552. <label>일괄작업</label>
  1553. <value>Y</value>
  1554. </item>
  1555. </choices>
  1556. <script type="javascript" ev:event="xforms-value-changed">
  1557. <![CDATA[
  1558. //alert(chk_allwork.value);
  1559. ]]>
  1560. </script>
  1561. </select>
  1562. </group>
  1563. <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  1564. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1565. <button id="button11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1566. <caption>출력</caption>
  1567. <script type="javascript" ev:event="DOMActivate">
  1568. <![CDATA[
  1569. exeReportPreview("RPRAT00100", "XMLSTR", "true", "true", "true", "true", "true", "true", "true", "");
  1570. ]]>
  1571. </script>
  1572. </button>
  1573. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  1574. <caption>저장</caption>
  1575. <script type="javascript" ev:event="DOMActivate">
  1576. <![CDATA[
  1577. fSave();
  1578. fRetrieve();
  1579. ]]>
  1580. </script>
  1581. </button>
  1582. <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:1080px; top:3px; width:56px; height:22px; ">
  1583. <caption>출력</caption>
  1584. <script type="javascript" ev:event="DOMActivate">
  1585. <![CDATA[
  1586. fPrintTaxBill();
  1587. ]]>
  1588. </script>
  1589. </button>
  1590. <button id="btn_dtisend" class="btn4_letter4" disabled="true" visibility="hidden" style="left:995px; top:3px; width:80px; height:22px; ">
  1591. <caption>DTI 전송</caption>
  1592. <script type="javascript" ev:event="DOMActivate">
  1593. <![CDATA[
  1594. if(grd_taxbilllist.rows > grd_taxbilllist.fixedRows && grd_taxbilllist.valueMatrix(1, grd_taxbilllist.colRef("taxbillflag")) == "2")
  1595. {
  1596. var chkexists = "N";
  1597. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  1598. {
  1599. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("chk")) == "Y")
  1600. {
  1601. chkexists = "Y";
  1602. }
  1603. }
  1604. if(chkexists == "N")
  1605. {
  1606. messageBox("선택된 자료가 없습니다.", "I999");
  1607. return;
  1608. }
  1609. misfSave("TXRAT00103");
  1610. }
  1611. ]]>
  1612. </script>
  1613. </button>
  1614. <select id="chk_dtiworkyn" ref="/root/hidden/dtiworkyn" visibility="hidden" overflow="visible" appearance="full" style="left:840px; top:5px; width:115px; height:15px; text-align:left; vertical-align:top; background-color:#99ccff; border-color:#008000; border-style:none; ">
  1615. <choices>
  1616. <item>
  1617. <label>DTI 전송 작업</label>
  1618. <value>Y</value>
  1619. </item>
  1620. </choices>
  1621. <script type="javascript" ev:event="xforms-value-changed">
  1622. <![CDATA[
  1623. if(model.getValue(chk_dtiworkyn.attribute("ref")) == "Y")
  1624. {
  1625. for(var i = grd_taxbilllist.fixedRows ; i < grd_taxbilllist.rows ; i++)
  1626. {
  1627. if(grd_taxbilllist.rowStatus(i) != 0)
  1628. {
  1629. messageBox("작업중인 데이터가 있습니다.", "I999");
  1630. model.setValue(chk_dtiworkyn.attribute("ref"), "");
  1631. chk_dtiworkyn.refresh();
  1632. return false;
  1633. }
  1634. if( (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "01" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "1")
  1635. || (grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("isscust")) == "02" && grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("taxbillflag")) == "2") )// 발신 일때
  1636. {
  1637. grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
  1638. grd_taxbilllist.rowStyle(i, "data", "background-color") = "#c0c0c0";
  1639. }
  1640. else
  1641. {
  1642. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("custdtiemailaddr")) == "")
  1643. {
  1644. grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
  1645. grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("emailaddr")) = "#ff0000";
  1646. }
  1647. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("dtibillyn")) == "")
  1648. {
  1649. grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
  1650. grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("dtibillyn")) = "#ff0000";
  1651. }
  1652. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("inv_no")) != "")
  1653. {
  1654. grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
  1655. grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("inv_no")) = "#ffff00";
  1656. }
  1657. if(grd_taxbilllist.valueMatrix(i, grd_taxbilllist.colRef("dtiemail")) == "")
  1658. {
  1659. grd_taxbilllist.isReadOnly(i, grd_taxbilllist.colRef("chk")) = true;
  1660. grd_taxbilllist.cellStyle("background-color", i, grd_taxbilllist.colRef("dtiemail")) = "#ffff00";
  1661. }
  1662. }
  1663. }
  1664. btn_dtisend.disabled = false;
  1665. btn_addrow.disabled = true;
  1666. btn_delrow.disabled = true;
  1667. ipt_allchk.disabled = true;
  1668. ipt_cancelchk.disabled = true;
  1669. btn_excelinput.disabled = true;
  1670. btn_save.disabled = true;
  1671. grd_taxbilllist.isReadOnly(1, 2, grd_taxbilllist.rows-grd_taxbilllist.fixedRows, grd_taxbilllist.cols-1) = true;
  1672. }
  1673. else
  1674. {
  1675. btn_dtisend.disabled = true;
  1676. grd_taxbilllist.rebuild();
  1677. fRetrieve();
  1678. }
  1679. ]]>
  1680. </script>
  1681. </select>
  1682. <button id="button2" class="btn4_letter4" disabled="false" visibility="hidden" style="left:750px; top:3px; width:80px; height:22px; ">
  1683. <caption>DTI 홈</caption>
  1684. <script type="javascript" ev:event="DOMActivate">
  1685. <![CDATA[
  1686. radfGetDTIPassword();
  1687. ]]>
  1688. </script>
  1689. </button>
  1690. </group>
  1691. </xhtml:body>
  1692. </xhtml:html>