SPRAC01200_전자세금계산서HELP.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  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>전자세금계산서 LIST</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <ebilllist/>
  12. </list>
  13. </main>
  14. <send>
  15. <condition>
  16. <instcd/>
  17. <mappingyn>N</mappingyn>
  18. <taxbillkind/>
  19. <taxbillflag>1</taxbillflag>
  20. <deptcd/>
  21. <depthngnm/>
  22. <emplno/>
  23. <emplnm/>
  24. <entrregno/>
  25. <custnm/>
  26. <fromdd/>
  27. <todd/>
  28. <proc_flag/>
  29. <isscust>01</isscust>
  30. </condition>
  31. <acntdept>
  32. <instcd/>
  33. <mngtcd>acntdept</mngtcd>
  34. </acntdept>
  35. <regcust>
  36. <instcd/>
  37. <inv_no/>
  38. </regcust>
  39. </send>
  40. <init>
  41. <init_taxbillkind>
  42. <item>
  43. <label>세금계산서</label>
  44. <value>4</value>
  45. </item>
  46. <item>
  47. <label>계산서</label>
  48. <value>5</value>
  49. </item>
  50. </init_taxbillkind>
  51. <init_taxbillflag>
  52. <item>
  53. <label>매입</label>
  54. <value>1</value>
  55. </item>
  56. <item>
  57. <label>매출</label>
  58. <value>2</value>
  59. </item>
  60. </init_taxbillflag>
  61. <code>
  62. <codelist/>
  63. </code>
  64. </init>
  65. <target/>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. fInit();
  71. ]]>
  72. </script>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fInit()
  76. {
  77. var entrregno = model.getValue("/root/target/condition/entrregno");
  78. var custnm = model.getValue("/root/target/condition/custnm");
  79. var taxbillflag = model.getValue("/root/target/condition/taxbillflag");
  80. var taxbillkind = model.getValue("/root/target/condition/taxbillkind");
  81. var isscust = model.getValue("/root/target/condition/isscust");
  82. model.setValue(ipt_entrregno.attribute("ref"), entrregno);
  83. model.setValue(ipt_custnm.attribute("ref"), custnm);
  84. model.setValue(rdo_billflag.attribute("ref"), taxbillflag);
  85. model.setValue(rdo_billkind.attribute("ref"), taxbillkind);
  86. model.setValue(cmb_isscust.attribute("ref"), isscust);
  87. model.removeNode("/root/main/list/ebilllist");
  88. if(instance1.selectNodes("/root/target/validation/custlist").length == 0)
  89. {
  90. btn_search.dispatch("DOMActivate");
  91. }
  92. else
  93. {
  94. model.copyNode("/root/main/list","/root/target/validation");
  95. model.refresh();
  96. }
  97. model.setValue("/root/send/acntdept/instcd", getUserInfo("dutplceinstcd"));
  98. submit("TRRAZ00001");
  99. if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd"))
  100. {
  101. model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  102. model.setValue(ipt_depthngnm.attribute("ref"), getUserInfo("dutplcenm"));
  103. ipt_deptcd.disabled = true;
  104. ipt_depthngnm.disabled = true;
  105. }
  106. model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
  107. // model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  108. // model.setValue(ipt_depthngnm.attribute("ref"), getUserInfo("dutplcenm"));
  109. model.setValue(ipt_fromdd.attribute("ref"), "20091201");
  110. // model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate().toString().substr(0, 6) + "01");
  111. model.setValue(ipt_todd.attribute("ref"), getCurrentDate().toString());
  112. misfComboComCdList("R0364", cmb_proc_flag, "Y");
  113. misfGridComboComCdList("R0364", grd_ebilllist, "proc_flag", "");
  114. model.refresh();
  115. btn_search.dispatch("DOMActivate");
  116. }
  117. //========================================================================================
  118. // 부서코드 조회
  119. //========================================================================================
  120. function fOpenPopupDeptHelp(pControl, pInstance)
  121. {
  122. misfOpenPopUpList("02", pControl, "", pInstance);
  123. model.refresh();
  124. }
  125. //========================================================================================
  126. // 사번 조회
  127. //========================================================================================
  128. function fOpenPopupUserHelp(pCtrl, pInstance)
  129. {
  130. misfOpenPopUpList("01", pCtrl, "", pInstance);
  131. model.refresh();
  132. }
  133. //========================================================================================
  134. //코드 Validation Check
  135. //========================================================================================
  136. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  137. {
  138. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  139. {
  140. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  141. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  142. model.refresh();
  143. if (pNextIndex != "") {
  144. model.setFocus(pNextIndex);
  145. }
  146. }
  147. }
  148. function fncLogin()
  149. {
  150. // alert(FormValidation(document.loginForm));
  151. // if(FormValidation(document.loginForm) != false)
  152. // {
  153. document.loginForm.action="http://222.106.233.111:8081/docubill-dti-web/login.do?method=process1";
  154. document.loginForm.submit();
  155. // }
  156. }
  157. ]]>
  158. </script>
  159. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acntdept" resultref="/root/init/code"/>
  160. <submission id="TRRAC91301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  161. </model>
  162. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  163. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  165. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  167. </xhtml:head>
  168. <xhtml:body pagewidth="1200" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  169. <group id="group3" scroll="auto" style="left:8px; top:0px; width:1177px; height:525px; ">
  170. <group id="group2" style="left:0px; top:5px; width:1175px; height:85px; ">
  171. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1175px; height:85px; "/>
  172. <button id="btn_search" class="btn1_letter2" style="left:1089px; top:32px; width:56px; height:22px; ">
  173. <caption>조회</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. submit("TRRAC91301");
  177. ]]>
  178. </script>
  179. </button>
  180. <line id="line13" class="line_4" style="x1:1069px; y1:20px; x2:1069px; y2:69px; border-color:#ffe4bb; border-left-style:solid; "/>
  181. <input id="ipt_custnm" ref="/root/send/condition/custnm" navindex="6" imemode="hangul" style="left:540px; top:59px; width:171px; height:19px; ">
  182. <script type="javascript" ev:event="onkeypress">
  183. <![CDATA[
  184. if(event.keyCode == 13)
  185. {
  186. racfCustValidCheck("entrregno,custnm", "name");
  187. }
  188. ]]>
  189. </script>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. racfCustValidCheck("entrregno,custnm", "name");
  193. ]]>
  194. </script>
  195. </input>
  196. <button id="btn_entregnohelp" class="icon_search" style="left:520px; top:61px; width:16px; height:16px; ">
  197. <caption/>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. misfOpenPopUpList("14", ipt_entrregno, "", "entrregno,custnm");
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </button>
  205. <caption id="caption7" class="search_name" style="left:305px; top:60px; width:100px; height:17px; ">거 래 처 :</caption>
  206. <input id="ipt_entrregno" ref="/root/send/condition/entrregno" navindex="5" format="999-99-99999" style="left:406px; top:59px; width:109px; height:19px; text-align:center; ">
  207. <script type="javascript" ev:event="onkeypress">
  208. <![CDATA[
  209. if(event.keyCode == 13)
  210. {
  211. racfCustValidCheck("entrregno,custnm", "code");
  212. }
  213. ]]>
  214. </script>
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. racfCustValidCheck("entrregno,custnm", "code");
  218. ]]>
  219. </script>
  220. </input>
  221. <select1 id="rdo_billflag" ref="/root/send/condition/taxbillflag" class="radio_search" disabled="true" navindex="4" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:120px; top:36px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  222. <choices>
  223. <itemset nodeset="/root/init/init_taxbillflag/item">
  224. <label ref="label"/>
  225. <value ref="value"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <caption id="caption5" class="search_name" style="left:15px; top:10px; width:99px; height:17px; ">계산서종류 :</caption>
  230. <caption id="caption6" class="search_name" style="left:15px; top:36px; width:109px; height:17px; ">계산서구분 :</caption>
  231. <select1 id="rdo_billkind" ref="/root/send/condition/taxbillkind" class="radio_search" disabled="true" navindex="3" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:120px; top:10px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  232. <choices>
  233. <itemset nodeset="/root/init/init_taxbillkind/item">
  234. <label ref="label"/>
  235. <value ref="value"/>
  236. </itemset>
  237. </choices>
  238. </select1>
  239. <button id="btn_slipdepthelp" class="icon_search" navindex="-1" style="left:520px; top:9px; width:16px; height:16px; ">
  240. <caption/>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm"); //전체부서
  244. ]]>
  245. </script>
  246. </button>
  247. <input id="ipt_deptcd" ref="/root/send/condition/deptcd" class="input_essential" navindex="-1" maxlength="11" style="left:406px; top:8px; width:109px; height:19px; ">
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. racfDeptValidCheck("deptcd,depthngnm"); // 전체부서
  251. ]]>
  252. </script>
  253. <script type="javascript" ev:event="onkeypress">
  254. <![CDATA[
  255. if(event.keyCode == 13)
  256. {
  257. model.setFocus("btn_search");
  258. }
  259. ]]>
  260. </script>
  261. </input>
  262. <caption id="caption11" class="search_name" style="left:305px; top:10px; width:100px; height:17px; ">부 서 :</caption>
  263. <input id="ipt_depthngnm" ref="/root/send/condition/depthngnm" class="input_essential" style="left:540px; top:8px; width:171px; height:19px; ">
  264. <script type="javascript" ev:event="xforms-value-changed">
  265. <![CDATA[
  266. racfDeptValidCheck("deptcd,depthngnm"); // 전체부서
  267. ]]>
  268. </script>
  269. <script type="javascript" ev:event="onkeypress">
  270. <![CDATA[
  271. if(event.keyCode == 13)
  272. {
  273. model.setFocus("btn_search");
  274. }
  275. ]]>
  276. </script>
  277. </input>
  278. <caption id="caption10" class="search_name" style="left:305px; top:35px; width:100px; height:17px; ">사 번 :</caption>
  279. <input id="ipt_emplnm" ref="/root/send/condition/emplnm" class="input_s_essential" navindex="2" editable="true" style="left:540px; top:34px; width:171px; height:19px; ">
  280. <script type="javascript" ev:event="onkeypress">
  281. <![CDATA[
  282. if(event.keyCode == 13)
  283. {
  284. model.setFocus("btn_search");
  285. }
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. fValidationCheck("12", "emplno,emplnm", "", "btn_search");
  291. ]]>
  292. </script>
  293. </input>
  294. <button id="btn_emplno" class="icon_search" style="left:520px; top:36px; width:16px; height:16px; ">
  295. <caption/>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. fOpenPopupUserHelp(ipt_emplno, "emplno,emplnm");
  299. model.refresh();
  300. ]]>
  301. </script>
  302. </button>
  303. <input id="ipt_emplno" ref="/root/send/condition/emplno" class="input_s_essential" navindex="1" maxlength="8" style="left:406px; top:34px; width:109px; height:19px; text-align:center; ">
  304. <script type="javascript" ev:event="onkeypress">
  305. <![CDATA[
  306. if(event.keyCode == 13)
  307. {
  308. model.setFocus("btn_search");
  309. }
  310. ]]>
  311. </script>
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. fValidationCheck("12", "emplno,emplnm", "", "btn_search");
  315. ]]>
  316. </script>
  317. </input>
  318. <caption id="caption2" class="search_name" style="left:740px; top:36px; width:140px; height:17px; ">mapping 계산서 :</caption>
  319. <caption id="caption3" class="search_name" style="left:740px; top:10px; width:90px; height:17px; ">일 자 :</caption>
  320. <input id="ipt_todd" ref="/root/send/condition/todd" class="input_s_essential" inputtype="date" style="left:947px; top:10px; width:90px; height:19px; "/>
  321. <caption id="caption4" style="left:930px; top:10px; width:20px; height:20px; ">~</caption>
  322. <input id="ipt_fromdd" ref="/root/send/condition/fromdd" class="input_s_essential" inputtype="date" style="left:835px; top:10px; width:90px; height:19px; "/>
  323. <select1 id="radio1" ref="/root/send/condition/mappingyn" class="radio_search" navindex="3" overflow="visible" appearance="full" cellspacing="50" cols="4" style="left:880px; top:36px; width:155px; height:20px; vertical-align:middle; border-style:none; ">
  324. <choices>
  325. <item>
  326. <label>포함</label>
  327. <value/>
  328. </item>
  329. <item>
  330. <label>제외</label>
  331. <value>N</value>
  332. </item>
  333. </choices>
  334. </select1>
  335. <select1 id="cmb_proc_flag" ref="/root/send/condition/proc_flag" class="combo_default" visibility="visible" appearance="minimal" style="left:120px; top:59px; width:165px; height:19px; ">
  336. <choices>
  337. <itemset>
  338. <label/>
  339. <value/>
  340. </itemset>
  341. </choices>
  342. </select1>
  343. <caption id="caption8" class="search_name" style="left:15px; top:60px; width:109px; height:17px; ">처리 상태 :</caption>
  344. <select1 id="cmb_isscust" ref="/root/send/condition/isscust" class="combo_default" disabled="true" visibility="visible" appearance="minimal" style="left:845px; top:60px; width:195px; height:19px; ">
  345. <choices>
  346. <item>
  347. <label>매출자발행</label>
  348. <value>01</value>
  349. </item>
  350. <item>
  351. <label>매입자발행</label>
  352. <value>02</value>
  353. </item>
  354. </choices>
  355. </select1>
  356. <caption id="cap_isscust" class="search_name" style="left:740px; top:61px; width:109px; height:17px; ">발행 구분 :</caption>
  357. </group>
  358. <caption id="caption1" class="tit_2" style="left:5px; top:97px; width:145px; height:13px; ">전자세금계산서 LIST</caption>
  359. <line id="line1" class="line_1" style="x1:0px; y1:112px; x2:1175px; y2:112px; "/>
  360. <datagrid id="grd_ebilllist" nodeset="/root/main/list/ebilllist" class="grd_custlist" caption="기관코드^계산서종류^계산서구분^발행구분^처리상태^등록^사업자등록번호^거래처명^주소^대표자명^업태^종목^일자^공급가액^세액^합계액^비고^확인^세금계산서발행처^과세유형^거래처담당자^거래처E-mail^세금계산서번호^부서^담당자명^담당자E-mail^일련번호^미결전표일^미결전표번호^미결전표일련번호^전표정보^맵핑여부" colsep="^" colwidth="0, 0, 0, 0, 80, 30, 120, 100, 0, 80, 0, 0, 80, 80, 80, 80, 200, 30, 120, 120, 80, 80, 150, 120, 80, 150, 0, 0, 0, 0, 150, 0" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:117px; width:1175px; height:408px; ">
  361. <col ref="instcd"/>
  362. <col ref="taxbillkind"/>
  363. <col ref="taxbillflag"/>
  364. <col ref="isscust"/>
  365. <col ref="proc_flag" type="combo">
  366. <choices>
  367. <itemset>
  368. <label/>
  369. <value/>
  370. </itemset>
  371. </choices>
  372. </col>
  373. <col disabled="true" ref="reg_cust" type="checkbox"/>
  374. <col ref="entrregno" format="999-99-99999"/>
  375. <col ref="custnm"/>
  376. <col ref="supaddr"/>
  377. <col ref="prsdnm"/>
  378. <col ref="bizcont"/>
  379. <col ref="item"/>
  380. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  381. <col ref="suplamt" format="(-)#,###" style="text-align:right; "/>
  382. <col ref="valaddtax" format="(-)#,###" style="text-align:right; "/>
  383. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  384. <col ref="cmt"/>
  385. <col ref="ebillcheck" type="radio"/>
  386. <col ref="isscust"/>
  387. <col ref="taxkind"/>
  388. <col ref="custdtieacntchrgnm"/>
  389. <col ref="custdtiemailaddr"/>
  390. <col ref="inv_no"/>
  391. <col ref="deptnm"/>
  392. <col ref="name"/>
  393. <col ref="dtiemail"/>
  394. <col ref="seqno"/>
  395. <col ref="unsldd"/>
  396. <col ref="unslno"/>
  397. <col ref="unslseqno"/>
  398. <col ref="unslinfo"/>
  399. <col ref="mappingyn"/>
  400. <script type="javascript" ev:event="ondblclick">
  401. <![CDATA[
  402. if( grd_ebilllist.isCell(event.target) && grd_ebilllist.row >= grd_ebilllist.fixedRows )
  403. {
  404. btn_confirm.dispatch("DOMActivate");
  405. }
  406. ]]>
  407. </script>
  408. <script type="javascript" ev:event="onclick">
  409. <![CDATA[
  410. if(grd_ebilllist.isCell(event.target) && grd_ebilllist.col == grd_ebilllist.colRef("ebillcheck"))
  411. {
  412. var dtitaxbillflag = "";
  413. if(grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("taxbillflag")) == "1")
  414. {
  415. dtitaxbillflag = "2";
  416. }
  417. else
  418. {
  419. dtitaxbillflag = "1";
  420. }
  421. var sLink = "http://222.106.233.111:8081/view.do?method=process3&invNo=" + grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("inv_no")) + "&invType=" + dtitaxbillflag;
  422. window.load(sLink, "html");
  423. }
  424. ]]>
  425. </script>
  426. </datagrid>
  427. <button id="btn_openpsn" class="btn2_letter5" style="left:1100px; top:92px; width:75px; height:19px; ">
  428. <caption>거래처등록</caption>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. modal("SPRAC00600","","","","","/root/source", "/root/target" );
  432. ]]>
  433. </script>
  434. </button>
  435. <button id="button1" class="btn2_letter5" style="left:1020px; top:92px; width:75px; height:19px; ">
  436. <caption>E-mail등록</caption>
  437. <script type="javascript" ev:event="DOMActivate">
  438. <![CDATA[
  439. modal("SMRAC01200","","","","","/root/source", "/root/target" );
  440. ]]>
  441. </script>
  442. </button>
  443. </group>
  444. <group id="group1" scroll="auto" style="left:8px; top:524px; width:1177px; height:27px; ">
  445. <button id="btn_confirm" class="btn4_letter2" style="left:1062px; top:5px; width:56px; height:22px; ">
  446. <caption>확인</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. // NotNullCheck
  450. //------------------------------------------------------------------------------------------------------------------------------------------------
  451. var vNullYN = "N"
  452. if(grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custnm")) == "") { messageBox("등록되지 않은 거래처 입니다.", "I000"); vNullYN = "Y" }
  453. if(grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("name")) == "") { messageBox("등록되지 않은 E-mail 입니다.", "I000"); vNullYN = "Y" }
  454. if(grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("mappingyn")) == "Y") { messageBox("이미 mapping 된 자료 입니다.", "I000"); vNullYN = "Y" }
  455. if(vNullYN == "Y") return false;
  456. //------------------------------------------------------------------------------------------------------------------------------------------------
  457. if (checkOpener())
  458. {
  459. var mainViewer = getMainViewer();
  460. var receiveref = model.getValue("/root/target/receiveref");
  461. opener.model.setValue(receiveref + "/inv_no", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("inv_no")));
  462. opener.model.setValue(receiveref + "/entrregno", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("entrregno")));
  463. opener.model.setValue(receiveref + "/custnm", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custnm")));
  464. opener.model.setValue(receiveref + "/isscust", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("isscust")));
  465. opener.model.setValue(receiveref + "/dtiemail", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("dtiemail")));
  466. opener.model.setValue(receiveref + "/custdtiemailaddr", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custdtiemailaddr")));
  467. if(opener.javascript.getScreenID() == "SPRAT00101")
  468. {
  469. // if (messageBox("전자세금계산서 내용으로 덥어쓰시겠습니까?", "Q000") == "6")
  470. // {
  471. opener.model.setValue(receiveref + "/genrdd", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("genrdd")));
  472. opener.model.setValue(receiveref + "/custaddr", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custaddr")));
  473. opener.model.setValue(receiveref + "/custprsd", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custprsd")));
  474. opener.model.setValue(receiveref + "/custbizcond", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custbizcond")));
  475. opener.model.setValue(receiveref + "/custitem", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("custitem")));
  476. opener.model.setValue(receiveref + "/cmt", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("cmt")));
  477. opener.model.setValue(receiveref + "/suplamt", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("suplamt")));
  478. opener.model.setValue(receiveref + "/valaddtax", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("valaddtax")));
  479. opener.model.setValue(receiveref + "/amt", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("amt")));
  480. // }
  481. }
  482. else if(opener.javascript.getScreenID() == "SMRAT00100")
  483. {
  484. opener.model.setValue(receiveref + "/name", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("name")));
  485. opener.model.setValue(receiveref + "/suplamt", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("suplamt")));
  486. opener.model.setValue(receiveref + "/valaddtax", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("valaddtax")));
  487. opener.model.setValue(receiveref + "/amt", grd_ebilllist.valueMatrix(grd_ebilllist.row, grd_ebilllist.colRef("amt")));
  488. }
  489. window.close();
  490. }
  491. else
  492. {
  493. messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  494. }
  495. ]]>
  496. </script>
  497. </button>
  498. <button id="btn_cancel" class="btn4_letter2" style="left:1119px; top:5px; width:56px; height:22px; ">
  499. <caption>취소</caption>
  500. <script type="javascript" ev:event="DOMActivate">
  501. <![CDATA[
  502. window.close();
  503. ]]>
  504. </script>
  505. </button>
  506. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
  507. </group>
  508. </xhtml:body>
  509. </xhtml:html>