SMRAD00310_반제장부화면조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>반제장부화면</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <paymentsheet/>
  11. <racmcust>
  12. <entrregno/>
  13. <custnm/>
  14. <prsdnm/>
  15. <bizcont/>
  16. <item/>
  17. <supaddr/>
  18. <infaddr/>
  19. <bankcd/>
  20. <depor/>
  21. <paycond/>
  22. <aactno/>
  23. <seizureyn/>
  24. <seizurecmt/>
  25. </racmcust>
  26. </main>
  27. <send>
  28. <condition>
  29. <instcd/>
  30. <ymdd/>
  31. <acntcd4/>
  32. <acntcd/>
  33. <entrregno/>
  34. <custnm/>
  35. </condition>
  36. <data>
  37. <instcd/>
  38. <mngtcd/>
  39. </data>
  40. <custinfo>
  41. <entrregno/>
  42. <todd/>
  43. </custinfo>
  44. <retrparams>
  45. <frdate/>
  46. <todate/>
  47. </retrparams>
  48. </send>
  49. <init>
  50. <code>
  51. <codelist/>
  52. </code>
  53. </init>
  54. <temp/>
  55. <hidden>
  56. </hidden>
  57. <source>
  58. <slipinfo/>
  59. </source>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
  70. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. fInitialize();
  75. ]]>
  76. </script>
  77. <script type="javascript">
  78. <![CDATA[
  79. function fInitialize()
  80. {
  81. model.removenode("/root/main/paymentsheet");
  82. var instcd = getUserInfo("dutplceinstcd");
  83. model.setValue("/root/send/condition/instcd", instcd);
  84. model.setValue(ipt_ymdd.attribute("ref"), getCurrentDate().toString());
  85. model.setValue("/root/send/data/instcd", instcd);
  86. model.setValue("/root/send/data/mngtcd", "%");
  87. submit("TRRAZ00001");
  88. model.makeNode("/root/init/code/code/acnt4");
  89. model.makeValue("/root/init/code/code/acnt4[1]/cdnm", "전 체");
  90. model.makeValue("/root/init/code/code/acnt4[1]/cdid", "");
  91. // model.makeValue("/root/init/code/code/acnt4[1]/cdgbn", "R0010");
  92. var seq = 1;
  93. for (i=1; i<= instance1.selectNodes("root/init/code/code/codelist").length; i++)
  94. {
  95. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  96. seq++;
  97. //alert(i + " " + cdgbn)
  98. if (cdgbn == "R0010")
  99. {
  100. //alert(i + " " + cdgbn + " " + seq)
  101. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  102. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdid", model.getValue("/root/init/code/code/codelist[" + i + "]/cdid"));
  103. model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
  104. model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdnm", model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm"));
  105. }
  106. }
  107. cmb_supacntcd4.dispatch("xforms-value-changed");
  108. cmb_supacntcd4.select(0);
  109. }
  110. function fCheckAuth()
  111. {
  112. btn_search.disabled = !checkAuth("R");
  113. }
  114. ]]>
  115. </script>
  116. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
  117. <submission id="TRRAC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/custinfo" resultref="/root/main/racmcust"/>
  118. <submission id="TRRAD00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/paymentsheet"/>
  119. </model>
  120. </xhtml:head>
  121. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
  123. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">반제장부화면</caption>
  124. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  125. </group>
  126. <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  127. <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  128. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  129. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  130. <caption>조회</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. radfRenewalBebtClos(getUserInfo("dutplceinstcd"), '', model.getValue(ipt_ymdd.attribute("ref")));
  134. submit("TRRAD00311");
  135. model.setValue("/root/send/custinfo/entrregno", model.getValue(ipt_regno.attribute("ref")));
  136. submit("TRRAC00602");
  137. for(var i = grd_paymentsheet.fixedRows ; i < grd_paymentsheet.rows ; i++)
  138. {
  139. if(grd_paymentsheet.valueMatrix(i, grd_paymentsheet.colRef("seq")) == "1")
  140. {
  141. grd_paymentsheet.rowStyle(i, "data", "background-color") = "#00ffff";
  142. }
  143. }
  144. ]]>
  145. </script>
  146. </button>
  147. <line id="lin_5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  148. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
  149. <caption id="caption1" class="search_name" style="left:705px; top:9px; width:104px; height:17px; ">사업자번호 :</caption>
  150. <input id="ipt_regnm" ref="/root/send/condition/custnm" navindex="6" imemode="hangul" style="left:922px; top:9px; width:158px; height:19px; ">
  151. <script type="javascript" ev:event="onkeypress">
  152. <![CDATA[
  153. if(event.keyCode == 13)
  154. {
  155. racfCustValidCheck("entrregno,custnm", "name");
  156. }
  157. ]]>
  158. </script>
  159. <script type="javascript" ev:event="xforms-value-changed">
  160. <![CDATA[
  161. racfCustValidCheck("entrregno,custnm", "name");
  162. ]]>
  163. </script>
  164. </input>
  165. <button id="btn_entregnohelp" class="icon_search" style="left:904px; top:9px; width:16px; height:16px; ">
  166. <caption/>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
  170. model.refresh();
  171. ]]>
  172. </script>
  173. </button>
  174. <input id="ipt_regno" ref="/root/send/condition/entrregno" navindex="5" format="999-99-99999" style="left:805px; top:9px; width:95px; height:19px; text-align:center; ">
  175. <script type="javascript" ev:event="onkeypress">
  176. <![CDATA[
  177. if(event.keyCode == 13)
  178. {
  179. racfCustValidCheck("entrregno,custnm", "code");
  180. }
  181. ]]>
  182. </script>
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. racfCustValidCheck("entrregno,custnm", "code");
  186. ]]>
  187. </script>
  188. </input>
  189. <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:465px; top:9px; width:192px; height:19px; ">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <select1 id="cmb_supacntcd4" ref="/root/send/condition/acntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:351px; top:9px; width:109px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/init/code/code/acnt4">
  200. <label ref="cdnm"/>
  201. <value ref="cdid"/>
  202. </itemset>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. racfGetSupAcntPrAcntListCombo(model.getValue("/root/send/condition/acntcd4"), cmb_acntcd, "Y");
  207. model.setValue(cmb_acntcd.choices.itemset.attribute("nodeset") + "[1]/acntnm", "전 체");
  208. cmb_acntcd.refresh();
  209. cmb_acntcd.select(0);
  210. ]]>
  211. </script>
  212. </select1>
  213. <caption id="caption37" class="search_name" style="left:250px; top:9px; width:100px; height:17px; ">계정과목 :</caption>
  214. <input id="ipt_ymdd" ref="/root/send/condition/ymdd" class="input_s_essential" inputtype="date" style="left:120px; top:9px; width:110px; height:19px; ">
  215. <script type="javascript" ev:event="xforms-value-changed">
  216. <![CDATA[
  217. ]]>
  218. </script>
  219. </input>
  220. </group>
  221. <datagrid id="grd_paymentsheet" nodeset="/root/main/paymentsheet" backcoloralternate="#ffffff" caption="순번^기관코드^전표일자^전표번호^전표일련번호^승인일^계정코드^계정과목^세금일자^사업자등록번호^거래처명^적 요^매입금액^지급금액^계산전잔액^잔액" colsep="^" colwidth="0, 0, 80, 65, 80, 80, 0, 130, 80, 0, 100, 250, 90, 90, 0, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:1px; top:150px; width:1193px; height:590px; font-size:10pt; ">
  222. <col ref="seq" visibility="hidden"/>
  223. <col ref="instcd" visibility="hidden"/>
  224. <col ref="unsldd" format="yyyy-mm-dd"/>
  225. <col ref="unslno"/>
  226. <col ref="unslseqno"/>
  227. <col ref="apsldd" format="yyyy-mm-dd"/>
  228. <col ref="acntcd"/>
  229. <col ref="acntnm"/>
  230. <col ref="taxdd" format="yyyy-mm-dd"/>
  231. <col ref="custcd"/>
  232. <col ref="custnm"/>
  233. <col ref="etcnotefact"/>
  234. <col ref="cramt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  235. <col ref="dramt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  236. <col ref="balamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  237. <col ref="calcamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  238. <script type="javascript" ev:event="ondblclick">
  239. <![CDATA[
  240. if (grd_paymentsheet.isCell(event.target) && grd_paymentsheet.row > 0 && grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unsldd")) != "") {
  241. model.makeValue("/root/source/slipinfo/instcd", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("instcd")));
  242. model.makeValue("/root/source/slipinfo/slipdt", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unsldd")));
  243. model.makeValue("/root/source/slipinfo/slipno", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unslno")));
  244. model.refresh();
  245. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  246. }
  247. ]]>
  248. </script>
  249. </datagrid>
  250. <input id="ipt_item" ref="/root/main/racmcust/item" class="input_default" navindex="24" style="left:142px; top:102px; width:148px; height:19px; "/>
  251. <input id="ipt_bizcont" ref="/root/main/racmcust/bizcont" class="input_default" navindex="23" style="left:142px; top:127px; width:148px; height:19px; "/>
  252. <input id="ipt_custnm2" ref="/root/main/racmcust/custnm" class="input_essential" navindex="15" style="left:432px; top:52px; width:315px; height:19px; "/>
  253. <caption id="cap_custnm" class="cell_1" style="left:295px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래처명</caption>
  254. <caption id="cap_prsdnm" class="cell_1" style="left:5px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">대표자명</caption>
  255. <caption id="cap_item" class="cell_1" style="left:5px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">종목</caption>
  256. <caption id="cap_bizcont" class="cell_1" style="left:5px; top:125px; width:135px; height:23px; text-align:left; vertical-align:middle; ">업태</caption>
  257. <input id="ipt_prsdnm" ref="/root/main/racmcust/prsdnm" class="input_default" navindex="19" style="left:142px; top:77px; width:148px; height:19px; "/>
  258. <input id="ipt_entrregno2" ref="/root/main/racmcust/entrregno" class="input_essential" navindex="14" format="999-99-99999" style="left:142px; top:52px; width:148px; height:19px; ">
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. if(radfcheckCustExist(getUserInfo("dutplceinstcd"), ipt_entrregno2.value, "Y") != "")
  262. {
  263. model.setValue("/root/send/custlist/entrregno", ipt_entrregno2.value);
  264. submit("TRRAC00602");
  265. model.setValue("/root/main/racmcust/statflag", "u");
  266. ipt_entrregno2.disabled = true;
  267. }
  268. ]]>
  269. </script>
  270. </input>
  271. <caption id="cap_entrregno" class="cell_1" style="left:5px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">사업자등록번호</caption>
  272. <caption id="cap_infaddr" class="cell_1" style="left:295px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">상세주소</caption>
  273. <input id="ipt_supaddr" ref="/root/main/racmcust/supaddr" class="input_default" navindex="34" style="left:432px; top:77px; width:315px; height:19px; "/>
  274. <caption id="cap_supaddr" class="cell_1" style="left:295px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">주소</caption>
  275. <input id="ipt_cntctel" ref="/root/main/racmcust/infaddr" class="input_default" navindex="35" style="left:432px; top:102px; width:315px; height:19px; "/>
  276. <caption id="cap_bankcd" class="cell_1" style="left:750px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">은행</caption>
  277. <caption id="cap_depor" class="cell_1" style="left:750px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">예금주</caption>
  278. <caption id="cap_aactno" class="cell_1" style="left:750px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">계좌번호</caption>
  279. <input id="ipt_aactno" ref="/root/main/racmcust/aactno" class="input_default" navindex="49" style="left:887px; top:102px; width:172px; height:19px; "/>
  280. <input id="ipt_depor" ref="/root/main/racmcust/depor" class="input_default" navindex="47" style="left:887px; top:77px; width:172px; height:19px; "/>
  281. <input id="ipt_paycond" ref="/root/main/racmcust/paycond" class="input_default" navindex="48" format="9" style="left:888px; top:127px; width:121px; height:19px; text-align:right; "/>
  282. <caption id="caption3" style="left:1003px; top:129px; width:40px; height:15px; text-align:center; ">개월</caption>
  283. <caption id="cap_paycond" class="cell_1" style="left:750px; top:125px; width:135px; height:23px; text-align:left; vertical-align:middle; ">지불조건</caption>
  284. <input id="ipt_seizurecmt" ref="/root/main/racmcust/seizurecmt" class="input_default" navindex="52" style="left:607px; top:125px; width:140px; height:19px; "/>
  285. <caption id="caption20" class="cell_1" style="left:519px; top:125px; width:85px; height:19px; text-align:left; vertical-align:middle; ">압류내용</caption>
  286. <caption id="caption19" class="cell_1" style="left:295px; top:125px; width:135px; height:19px; text-align:left; vertical-align:middle; ">압류</caption>
  287. <select1 id="cmb_bankcd" ref="/root/main/racmcust/bankcd" class="combo_search" navindex="1" appearance="minimal" showvalue="true" style="left:887px; top:52px; width:172px; height:19px; ">
  288. <choices>
  289. <itemset nodeset="/root/init/R0001list/R0001">
  290. <label ref="cdnm"/>
  291. <value ref="cdid"/>
  292. </itemset>
  293. </choices>
  294. <script type="javascript" ev:event="xforms-select">
  295. <![CDATA[
  296. if(cmb_bankcd.value == '01')
  297. {
  298. model.setValue("/root/main/valuelist/rcipntacntno", "지로납부");
  299. model.setValue("/root/main/valuelist/depor", "지로납부");
  300. ipt_rcipntacntno.refresh();
  301. ipt_depor.refresh();
  302. }
  303. else if(cmb_bankcd.value == '99')
  304. {
  305. model.setValue("/root/main/valuelist/rcipntacntno", "현금");
  306. model.setValue("/root/main/valuelist/depor", "현금");
  307. ipt_rcipntacntno.refresh();
  308. ipt_depor.refresh();
  309. }
  310. ]]>
  311. </script>
  312. </select1>
  313. <select1 id="cmb_seizureyn" ref="/root/main/racmcust/seizureyn" class="combo_search" navindex="1" appearance="minimal" style="left:432px; top:125px; width:81px; height:19px; ">
  314. <choices>
  315. <item>
  316. <label>정상</label>
  317. <value>N</value>
  318. </item>
  319. <item>
  320. <label>압류</label>
  321. <value>Y</value>
  322. </item>
  323. </choices>
  324. <script type="javascript" ev:event="xforms-select">
  325. <![CDATA[
  326. if(cmb_bankcd.value == '01')
  327. {
  328. model.setValue("/root/main/valuelist/rcipntacntno", "지로납부");
  329. model.setValue("/root/main/valuelist/depor", "지로납부");
  330. ipt_rcipntacntno.refresh();
  331. ipt_depor.refresh();
  332. }
  333. else if(cmb_bankcd.value == '99')
  334. {
  335. model.setValue("/root/main/valuelist/rcipntacntno", "현금");
  336. model.setValue("/root/main/valuelist/depor", "현금");
  337. ipt_rcipntacntno.refresh();
  338. ipt_depor.refresh();
  339. }
  340. ]]>
  341. </script>
  342. </select1>
  343. </group>
  344. <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  345. <line id="lin_2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  346. <button id="btn_11" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
  347. <caption>출력</caption>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. btn_search.dispatch("DOMActivate");
  351. if(grd_paymentsheet.rows == grd_paymentsheet.fixedRows)
  352. {
  353. messageBox("출력할 내용이" ,"I004");
  354. return;
  355. }
  356. radfgetAcntYY(getUserInfo("dutplceinstcd"), ipt_ymdd.value, "", "", "", "", "", "", "/root/send/retrparams/frdate", "")
  357. model.setValue("/root/send/retrparams/todate", ipt_ymdd.value);
  358. model.refresh();
  359. exeReportPreview("RPRAD00310", "XMLSTR", "/root/send/retrparams");
  360. ]]>
  361. </script>
  362. </button>
  363. </group>
  364. <button id="btn_9" class="btn2_letter4" style="left:1128px; top:170px; width:64px; height:19px; text-align:left; ">
  365. <caption>엑셀출력</caption>
  366. <script type="javascript" ev:event="DOMActivate">
  367. <![CDATA[
  368. radfSaveExcel(grd_paymentsheet);
  369. ]]>
  370. </script>
  371. </button>
  372. </xhtml:body>
  373. </xhtml:html>