SMRAD04100_거래처원장.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <grnt>
  11. <grntlist1>
  12. <gubun/>
  13. <month/>
  14. <defrayreqdd/>
  15. <acntcd/>
  16. <acntnm/>
  17. <custnm/>
  18. <cdbojo1/>
  19. <slipcmt/>
  20. <drcrflag/>
  21. <sanctslipdd/>
  22. <sanctslipno/>
  23. <balacntcd/>
  24. <balacntnm/>
  25. <dramt/>
  26. <cramt/>
  27. <miamt/>
  28. <title/>
  29. </grntlist1>
  30. </grnt>
  31. </main>
  32. <init/>
  33. <send>
  34. <fromdd/>
  35. <todd/>
  36. <instcd/>
  37. <acntcd/>
  38. <fromacntcd/>
  39. <toacntcd/>
  40. <fromcustcode/>
  41. <tocustcode/>
  42. <fromcustnm/>
  43. <tocustnm/>
  44. <custcode/>
  45. </send>
  46. <custinfo>
  47. <custlist>
  48. <aactno/>
  49. <bankcd/>
  50. <depor/>
  51. <custnm/>
  52. </custlist>
  53. </custinfo>
  54. <init>
  55. <combo3>
  56. <acntcmb>
  57. <acntcd/>
  58. <acntnm/>
  59. </acntcmb>
  60. </combo3>
  61. </init>
  62. <hidden/>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  68. makeReportPreview(0,110,1195,650);
  69. var today = getCurrentDate();
  70. var cur_yymm = parseInt(today.substring(0, 6));
  71. model.setValue("/root/send/fromdd", today);
  72. model.setValue("/root/send/todd", today);
  73. //ipt_payym.refresh();
  74. //submit("TRRAD01504");
  75. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  76. model.refresh();
  77. model.setFocus("ipt_payym");
  78. ]]>
  79. </script>
  80. <submission id="TRRAD04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grnt"/>
  81. <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
  82. <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/custinfo"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  88. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  89. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  90. </xhtml:head>
  91. <xhtml:body style="margin-left:8; margin-right:8; ">
  92. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  93. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">거래처원장</caption>
  94. </group>
  95. <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  96. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  97. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:17px; width:56px; height:22px; ">
  98. <caption>조회</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. submit("TRRAD04101");
  102. exeReportPreview("RPRAD04101", "XMLSTR");//, "/root/main/payamt");
  103. ]]>
  104. </script>
  105. </button>
  106. <line id="line13" class="line_4" style="x1:1120px; y1:10px; x2:1120px; y2:44px; "/>
  107. <caption id="cap_payinst" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">소속기관:</caption>
  108. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:96px; top:18px; width:125px; height:19px; ">
  109. <choices>
  110. <itemset>
  111. <label/>
  112. <value/>
  113. </itemset>
  114. </choices>
  115. </select1>
  116. <caption id="caption22" class="search_name" style="left:231px; top:18px; width:81px; height:17px; ">기준일자:</caption>
  117. <input id="ipt_payym" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:315px; top:18px; width:105px; height:19px; text-align:center; vertical-align:middle; "/>
  118. <caption id="caption28" class="tit_2" style="left:5px; top:53px; width:209px; height:14px; ">거래처거래내역</caption>
  119. <line id="line193" class="line_1" style="x1:2px; y1:66px; x2:1192px; y2:66px; "/>
  120. <caption id="caption2" class="search_name" style="left:540px; top:18px; width:94px; height:17px; ">계정과목:</caption>
  121. <select1 id="combo1" ref="/root/send/acntcd" navindex="3" appearance="minimal" style="left:625px; top:18px; width:100px; height:19px; ">
  122. <choices>
  123. <item>
  124. <label>외상매입금</label>
  125. <value>21110100</value>
  126. </item>
  127. <item>
  128. <label>미지급금</label>
  129. <value>21130000</value>
  130. </item>
  131. <item>
  132. <label>전체</label>
  133. <value/>
  134. </item>
  135. </choices>
  136. </select1>
  137. <caption id="caption1" class="search_name" style="left:730px; top:18px; width:74px; height:17px; ">거래처:</caption>
  138. <input id="ipt_custnm" ref="/root/send/fromcustnm" class="input_essential" disabled="true" navindex="5" imemode="hangul" style="left:865px; top:18px; width:85px; height:19px; ">
  139. <script type="javascript" ev:event="xforms-value-changed">
  140. <![CDATA[
  141. var custflag = model.getValue("/root/main/unsl_one/custflag");
  142. switch (custflag) {
  143. case "1": //거래처
  144. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  145. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  146. break;
  147. // case "2": //은행
  148. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  149. // break;
  150. case "3": //부서
  151. fValidationCheck("02", "custcd,custnm", "", "");
  152. break;
  153. case "4": //교직원
  154. // fValidationCheck("01-2", "custcd,custnm", "", "");
  155. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  156. ipt_emplnm.dispatch("xforms-value-changed");
  157. break;
  158. case "5": //개인
  159. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  160. break;
  161. default :
  162. return;
  163. }
  164. ]]>
  165. </script>
  166. <script type="javascript" ev:event="onkeypress">
  167. <![CDATA[
  168. if (event.keyCode == "13") {
  169. model.setFocus("ipt_amt");
  170. }
  171. ]]>
  172. </script>
  173. </input>
  174. <input id="ipt_custcd" ref="/root/send/fromcustcode" class="input_essential" navindex="4" style="left:800px; top:18px; width:41px; height:19px; ">
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. if (model.getValue("/root/send/fromcustcode") != ""){
  178. model.setValue("/root/send/custcode", model.getValue("/root/send/fromcustcode"));
  179. if (submit("TRRAD01502")){
  180. model.setValue("/root/send/fromcustnm", model.getValue("/root/custinfo/custlist/custnm"));
  181. model.refresh();
  182. }
  183. }else{
  184. model.setValue("/root/send/fromcustnm", "");
  185. }
  186. model.refresh();
  187. //btn_search.dispatch("DOMActivate");
  188. ]]>
  189. </script>
  190. </input>
  191. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:845px; top:19px; width:16px; height:16px; ">
  192. <caption/>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. fOpenPopupHelp("14", ipt_custcd, "fromcustcode,fromcustnm", "", "");
  196. //btn_search.dispatch("DOMActivate");
  197. ]]>
  198. </script>
  199. </button>
  200. <input id="input8" ref="/root/send/tocustnm" class="input_essential" disabled="true" navindex="7" imemode="hangul" style="left:1030px; top:18px; width:85px; height:19px; ">
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. var custflag = model.getValue("/root/main/unsl_one/custflag");
  204. switch (custflag) {
  205. case "1": //거래처
  206. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  207. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  208. break;
  209. // case "2": //은행
  210. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  211. // break;
  212. case "3": //부서
  213. fValidationCheck("02", "custcd,custnm", "", "");
  214. break;
  215. case "4": //교직원
  216. // fValidationCheck("01-2", "custcd,custnm", "", "");
  217. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  218. ipt_emplnm.dispatch("xforms-value-changed");
  219. break;
  220. case "5": //개인
  221. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  222. break;
  223. default :
  224. return;
  225. }
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onkeypress">
  229. <![CDATA[
  230. if (event.keyCode == "13") {
  231. model.setFocus("ipt_amt");
  232. }
  233. ]]>
  234. </script>
  235. </input>
  236. <input id="input9" ref="/root/send/tocustcode" class="input_essential" navindex="6" style="left:965px; top:18px; width:41px; height:19px; ">
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. if (model.getValue("/root/send/tocustcode") != ""){
  240. model.setValue("/root/send/custcode", model.getValue("/root/send/tocustcode"));
  241. if (submit("TRRAD01502")){
  242. model.setValue("/root/send/tocustnm", model.getValue("/root/custinfo/custlist/custnm"));
  243. model.refresh();
  244. }
  245. }else{
  246. model.setValue("/root/send/tocustnm", "");
  247. }
  248. model.refresh();
  249. //btn_search.dispatch("DOMActivate");
  250. ]]>
  251. </script>
  252. </input>
  253. <button id="button2" class="icon_search" navindex="-1" style="left:1010px; top:20px; width:16px; height:16px; ">
  254. <caption/>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. fOpenPopupHelp("14", input9, "tocustcode,tocustnm", "", "");
  258. //btn_search.dispatch("DOMActivate");
  259. ]]>
  260. </script>
  261. </button>
  262. <caption id="caption3" style="left:950px; top:19px; width:15px; height:20px; text-align:center; ">~</caption>
  263. <input id="input1" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:435px; top:18px; width:105px; height:19px; text-align:center; vertical-align:middle; "/>
  264. <caption id="caption4" style="left:420px; top:20px; width:15px; height:20px; text-align:center; ">~</caption>
  265. <datagrid id="datagrid1" nodeset="/root/main/grnt/grntlist1" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:40px; top:125px; width:615px; height:70px; ">
  266. <col ref="gubun"/>
  267. <col ref="month"/>
  268. <col ref="defrayreqdd"/>
  269. <col ref="acntcd"/>
  270. <col ref="acntnm"/>
  271. <col ref="custnm"/>
  272. <col ref="cdbojo1"/>
  273. <col ref="slipcmt"/>
  274. <col ref="drcrflag"/>
  275. <col ref="sanctslipdd"/>
  276. <col ref="sanctslipno"/>
  277. <col ref="balacntcd"/>
  278. <col ref="balacntnm"/>
  279. <col ref="dramt"/>
  280. <col ref="cramt"/>
  281. <col ref="miamt"/>
  282. <col ref="title"/>
  283. </datagrid>
  284. <button id="button3" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; text-align:left; ">
  285. <caption>엑셀출력</caption>
  286. <script type="javascript" ev:event="onclick">
  287. <![CDATA[
  288. //radfSaveExcel(ipt_detailist);
  289. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  290. datagrid1.saveExcel(fileName,"SheetName:sheet1");
  291. ]]>
  292. </script>
  293. </button>
  294. </group>
  295. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
  296. </xhtml:body>
  297. </xhtml:html>