PPRAC01300_회계거래처코드HELP.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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>거래처 관리 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <custlist/>
  12. </list>
  13. </main>
  14. <init>
  15. <refcond>
  16. <label>거래처명</label>
  17. <value>custname</value>
  18. <label>거래처코드</label>
  19. <value>custcode</value>
  20. <label>사업자번호</label>
  21. <value>custsaupno</value>
  22. </refcond>
  23. </init>
  24. <send>
  25. <retrnm/>
  26. <refcond/>
  27. <custgrade/>
  28. <instcd/>
  29. <flagpur/>
  30. <flaginsa/>
  31. </send>
  32. <target/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. fInit();
  38. ]]>
  39. </script>
  40. <script type="javascript">
  41. <![CDATA[
  42. function fInit()
  43. {
  44. cmb_refcond.select(0);
  45. model.removeNode("/root/main/list/custlist");
  46. if(instance1.selectNodes("/root/target/validation/custlist").length == 0)
  47. {
  48. btn_search.dispatch("DOMActivate");
  49. }
  50. else
  51. {
  52. model.copyNode("/root/main/list","/root/target/validation");
  53. model.refresh();
  54. }
  55. if(model.getValue("/root/target/defaultvalue/instcd") != "")
  56. {
  57. model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  58. }
  59. misfMsterDetailSet(grd_custlist, null, "TRRAC01301", "N");
  60. model.setFocus("ipt_refcond");
  61. var mainViewer = getMainViewer();
  62. if(mainViewer.javascript.getScreenID() == "SMRAC00600")
  63. {
  64. cmb_custstat.value = model.getValue("root/target/defaultvalue/custuseyn");
  65. cmb_custstat.refresh();
  66. }
  67. else
  68. {
  69. //cmb_custstat.value = 1;
  70. cmb_custstat.refresh();
  71. cmb_custstat.visible = false;
  72. caption4.visible = false;
  73. }
  74. var csv_custnm = opener.window.javascript.getParameter("PPRAC00600_custnm");
  75. if (csv_custnm != ""){
  76. model.resetInstanceNode("/root/main/custinfo/custnm");
  77. model.makeValue("/root/main/custinfo/custnm", csv_custnm);
  78. model.setValue("/root/send/refcond", "custnm");
  79. model.setValue("/root/send/retrnm", model.getValue("/root/main/custinfo/custnm"));
  80. model.setValue("/root/send/custstat", "1");
  81. misfMsterDetailRetrieve();
  82. }
  83. }
  84. ]]>
  85. </script>
  86. <submission id="TRRAC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  87. </model>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. </xhtml:head>
  92. <xhtml:body pagewidth="1000" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group3" scroll="auto" style="left:8px; top:0px; width:950px; height:525px; ">
  94. <group id="group2" style="left:0px; top:5px; width:950; height:59px; ">
  95. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:950; height:59px; "/>
  96. <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" style="left:395px; top:8px; width:148px; height:19px; ">
  97. <script type="javascript" ev:event="onkeypress">
  98. <![CDATA[
  99. if(event.keyCode == 13)
  100. {
  101. ipt_refcond.value = ipt_refcond.currentText;
  102. btn_search.dispatch("DOMActivate");
  103. }
  104. ]]>
  105. </script>
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. if(ipt_refcond.value != "")
  109. {
  110. btn_search.dispatch("DOMActivate");
  111. }
  112. ]]>
  113. </script>
  114. </input>
  115. <button id="btn_search" class="btn1_letter2" style="left:879px; top:17px; width:56px; height:22px; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. misfMsterDetailRetrieve();
  120. ]]>
  121. </script>
  122. </button>
  123. <line id="line13" class="line_4" style="x1:864px; y1:5px; x2:864px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. <caption id="caption2" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  125. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">조회조건 :</caption>
  126. <caption id="caption4" class="search_name" style="left:596px; top:9px; width:126px; height:17px; ">거래 상태 :</caption>
  127. <select1 id="cmb_custstat" ref="/root/send/custgrade" class="combo_s_essential" navindex="14" appearance="minimal" style="left:725px; top:8px; width:105px; height:19px; text-align:center; ">
  128. <choices>
  129. <item>
  130. <label>전체</label>
  131. <value/>
  132. </item>
  133. <item>
  134. <label>거래중</label>
  135. <value>1</value>
  136. </item>
  137. <item>
  138. <label>거래종료</label>
  139. <value>2</value>
  140. </item>
  141. </choices>
  142. </select1>
  143. <select1 id="combo1" ref="/root/send/flagpur" class="combo_s_essential" navindex="14" appearance="minimal" style="left:160px; top:33px; width:70px; height:19px; text-align:center; ">
  144. <choices>
  145. <item>
  146. <label>전체</label>
  147. <value/>
  148. </item>
  149. <item>
  150. <label>사용</label>
  151. <value>Y</value>
  152. </item>
  153. <item>
  154. <label>사용않함</label>
  155. <value>N</value>
  156. </item>
  157. </choices>
  158. </select1>
  159. <select1 id="combo3" ref="/root/send/flaginsa" class="combo_s_essential" navindex="14" appearance="minimal" style="left:290px; top:33px; width:70px; height:19px; text-align:center; ">
  160. <choices>
  161. <item>
  162. <label>전체</label>
  163. <value/>
  164. </item>
  165. <item>
  166. <label>사용</label>
  167. <value>Y</value>
  168. </item>
  169. <item>
  170. <label>사용않함</label>
  171. <value>N</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <caption id="caption15" class="search_name" style="left:15px; top:34px; width:134px; height:17px; ">업무구분 :</caption>
  176. <caption id="caption16" style="left:120px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">구매</caption>
  177. <caption id="caption17" style="left:249px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">인사</caption>
  178. <select1 id="cmb_refcond" ref="/root/send/refcond" class="combo_s_essential" navindex="14" appearance="minimal" style="left:110px; top:8px; width:105px; height:19px; text-align:center; ">
  179. <choices>
  180. <itemset nodeset="/root/init/refcond">
  181. <label ref="label"/>
  182. <value ref="value"/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. </group>
  187. <caption id="caption1" class="tit_2" style="left:5px; top:72px; width:145px; height:13px; ">거래처리스트</caption>
  188. <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:950px; y2:87px; "/>
  189. <datagrid id="grd_custlist" nodeset="/root/main/list/custlist" class="grd_custlist" caption="거래처코드^거래처^사업자번호^대표자명^전화번호^주소^업태^종목^적용일자" colsep="^" colwidth="78, 109, 111, 60, 88, 215, 100, 100, 80" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:93px; width:950px; height:427px; ">
  190. <col ref="custcode"/>
  191. <col ref="custname"/>
  192. <col ref="custsaupno" format="999-99-99999"/>
  193. <col ref="custorname"/>
  194. <col ref="tel"/>
  195. <col ref="address"/>
  196. <col ref="uptaename"/>
  197. <col ref="gmgubun"/>
  198. <col ref="jydate" format="yyyy-mm-dd" style="text-align:center; "/>
  199. <script type="javascript" ev:event="ondblclick">
  200. <![CDATA[
  201. if( grd_custlist.isCell(event.target) && grd_custlist.row >= grd_custlist.fixedRows )
  202. {
  203. btn_confirm.dispatch("DOMActivate");
  204. }
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <button id="btn_openpsn" class="btn2_letter5" visibility="hidden" style="left:875px; top:66px; width:75px; height:19px; ">
  209. <caption>거래처등록</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. window.visible = false;
  213. model.makeNode("/root/source");
  214. model.copyNode("/root/source","/root/target");
  215. modal("SPRAC00600","","","","","/root/source", "/root/target" );
  216. window.close();
  217. ]]>
  218. </script>
  219. </button>
  220. </group>
  221. <group id="group1" scroll="auto" style="left:8px; top:524px; width:950; height:27px; ">
  222. <button id="btn_confirm" class="btn4_letter2" style="left:837px; top:5px; width:56px; height:22px; ">
  223. <caption>확인</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. misfPopUpListReturn(grd_custlist);
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_cancel" class="btn4_letter2" style="left:894px; top:5px; width:56px; height:22px; ">
  231. <caption>취소</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. window.close();
  235. ]]>
  236. </script>
  237. </button>
  238. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>