PPRAC00600_거래처코드HELP.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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>custnm</value>
  18. <label>사업자번호</label>
  19. <value>entrregno</value>
  20. </refcond>
  21. </init>
  22. <send>
  23. <retrnm/>
  24. <refcond/>
  25. <custstat>1</custstat>
  26. <instcd/>
  27. <purcuseyn/>
  28. <nutruseyn/>
  29. <pharmuseyn/>
  30. <ctmsuseyn/>
  31. </send>
  32. <target/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. fInit();
  38. ]]>
  39. </script>
  40. <submission id="TRRAC90601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  41. <script type="javascript">
  42. <![CDATA[
  43. function fInit()
  44. {
  45. rdo_refcond.select(0);
  46. model.removeNode("/root/main/list/custlist");
  47. if(instance1.selectNodes("/root/target/validation/custlist").length == 0)
  48. {
  49. btn_search.dispatch("DOMActivate");
  50. }
  51. else
  52. {
  53. model.copyNode("/root/main/list","/root/target/validation");
  54. model.refresh();
  55. }
  56. if(model.getValue("/root/target/defaultvalue/instcd") != "")
  57. {
  58. model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  59. }
  60. misfMsterDetailSet(grd_custlist, null, "TRRAC90601", "N");
  61. model.setFocus("ipt_refcond");
  62. var mainViewer = getMainViewer();
  63. /* 2013.03.12 박준범 : SMRAC00600(거래처 관리 프로그램) 에서는 본 popup을 호출하지 않기에 comment처리함
  64. if(mainViewer.javascript.getScreenID() == "SMRAC00600")
  65. {
  66. cmb_custstat.value = model.getValue("root/target/defaultvalue/custuseyn");
  67. cmb_custstat.refresh();
  68. }
  69. */
  70. //2013.03.12 박준범 - 전체거래처가 보일 수 있도록 조건 추가
  71. if(opener.javascript.getScreenID() == "SMRAD02500" ) { // SMRAD02500 : 대금지급상황조회(전체)
  72. cmb_custstat.value = "" ; //거래상태 : 전체
  73. }
  74. else
  75. {
  76. cmb_custstat.value = 1;
  77. cmb_custstat.refresh();
  78. cmb_custstat.visible = false;
  79. caption4.visible = false;
  80. }
  81. var csv_custnm = opener.window.javascript.getParameter("PPRAC00600_custnm");
  82. if (csv_custnm != ""){
  83. model.resetInstanceNode("/root/main/custinfo/custnm");
  84. model.makeValue("/root/main/custinfo/custnm", csv_custnm);
  85. model.setValue("/root/send/refcond", "custnm");
  86. model.setValue("/root/send/retrnm", model.getValue("/root/main/custinfo/custnm"));
  87. model.setValue("/root/send/custstat", "1");
  88. misfMsterDetailRetrieve();
  89. }
  90. }
  91. ]]>
  92. </script>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. </xhtml:head>
  98. <xhtml:body pagewidth="1000" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  99. <group id="group3" scroll="auto" style="left:8px; top:0px; width:950px; height:525px; ">
  100. <group id="group2" style="left:0px; top:5px; width:950; height:59px; ">
  101. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:950; height:59px; "/>
  102. <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" style="left:395px; top:8px; width:148px; height:19px; ">
  103. <script type="javascript" ev:event="onkeypress">
  104. <![CDATA[
  105. if(event.keyCode == 13)
  106. {
  107. ipt_refcond.value = ipt_refcond.currentText;
  108. btn_search.dispatch("DOMActivate");
  109. }
  110. ]]>
  111. </script>
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. if(ipt_refcond.value != "")
  115. {
  116. btn_search.dispatch("DOMActivate");
  117. }
  118. ]]>
  119. </script>
  120. </input>
  121. <button id="btn_search" class="btn1_letter2" style="left:879px; top:17px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. misfMsterDetailRetrieve();
  126. ]]>
  127. </script>
  128. </button>
  129. <line id="line13" class="line_4" style="x1:864px; y1:5px; x2:864px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
  130. <caption id="caption2" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  131. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">조회조건 :</caption>
  132. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:120px; top:8px; width:148px; height:20px; border-style:solid; ">
  133. <choices>
  134. <itemset nodeset="/root/init/refcond">
  135. <label ref="label"/>
  136. <value ref="value"/>
  137. </itemset>
  138. </choices>
  139. <script type="javascript" ev:event="xforms-select">
  140. <![CDATA[
  141. model.setFocus("ipt_refcond");
  142. ]]>
  143. </script>
  144. </select1>
  145. <caption id="caption4" class="search_name" style="left:596px; top:9px; width:94px; height:17px; ">거래 상태 :</caption>
  146. <select1 id="cmb_custstat" ref="/root/send/custstat" class="combo_s_essential" navindex="14" appearance="minimal" style="left:695px; top:8px; width:105px; height:19px; text-align:center; ">
  147. <choices>
  148. <item>
  149. <label>거래중</label>
  150. <value>1</value>
  151. </item>
  152. <item>
  153. <label>거래종료</label>
  154. <value>2</value>
  155. </item>
  156. <item>
  157. <label>전체</label>
  158. <value/>
  159. </item>
  160. </choices>
  161. </select1>
  162. <select1 id="combo1" ref="/root/send/purcuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:160px; top:33px; width:70px; height:19px; text-align:center; ">
  163. <choices>
  164. <item>
  165. <label>전체</label>
  166. <value/>
  167. </item>
  168. <item>
  169. <label>사용</label>
  170. <value>Y</value>
  171. </item>
  172. <item>
  173. <label>사용않함</label>
  174. <value>N</value>
  175. </item>
  176. </choices>
  177. </select1>
  178. <select1 id="combo2" ref="/root/send/pharmuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:420px; top:33px; width:70px; height:19px; text-align:center; ">
  179. <choices>
  180. <item>
  181. <label>전체</label>
  182. <value/>
  183. </item>
  184. <item>
  185. <label>사용</label>
  186. <value>Y</value>
  187. </item>
  188. <item>
  189. <label>사용않함</label>
  190. <value>N</value>
  191. </item>
  192. </choices>
  193. </select1>
  194. <select1 id="combo3" ref="/root/send/nutruseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:290px; top:33px; width:70px; height:19px; text-align:center; ">
  195. <choices>
  196. <item>
  197. <label>전체</label>
  198. <value/>
  199. </item>
  200. <item>
  201. <label>사용</label>
  202. <value>Y</value>
  203. </item>
  204. <item>
  205. <label>사용않함</label>
  206. <value>N</value>
  207. </item>
  208. </choices>
  209. </select1>
  210. <caption id="caption15" class="search_name" style="left:15px; top:34px; width:134px; height:17px; ">업무구분 :</caption>
  211. <caption id="caption16" style="left:120px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">구매</caption>
  212. <caption id="caption17" style="left:249px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">영양</caption>
  213. <caption id="caption18" style="left:378px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">약국</caption>
  214. <select1 id="combo4" ref="/root/send/ctmsuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:555px; top:33px; width:70px; height:19px; text-align:center; ">
  215. <choices>
  216. <item>
  217. <label>전체</label>
  218. <value/>
  219. </item>
  220. <item>
  221. <label>사용</label>
  222. <value>Y</value>
  223. </item>
  224. <item>
  225. <label>사용않함</label>
  226. <value>N</value>
  227. </item>
  228. </choices>
  229. </select1>
  230. <caption id="caption5" style="left:503px; top:35px; width:57px; height:15px; font-weight:bold; text-align:center; ">CTMS</caption>
  231. </group>
  232. <caption id="caption1" class="tit_2" style="left:5px; top:72px; width:145px; height:13px; ">거래처리스트</caption>
  233. <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:950px; y2:87px; "/>
  234. <datagrid id="grd_custlist" nodeset="/root/main/list/custlist" class="grd_custlist" caption="거래처코드^거래처^사업자번호^대표자명^전화번호^주소^업태^종목^시작일자^종료일자" colsep="^" colwidth="78, 109, 111, 60, 88, 215, 100, 100, 80, 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; ">
  235. <col ref="custcode"/>
  236. <col ref="custnm"/>
  237. <col ref="entrregno" format="999-99-99999"/>
  238. <col ref="prsdnm"/>
  239. <col ref="cntctel"/>
  240. <col ref="addr"/>
  241. <col ref="bizcont"/>
  242. <col ref="item"/>
  243. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  244. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  245. <script type="javascript" ev:event="ondblclick">
  246. <![CDATA[
  247. if( grd_custlist.isCell(event.target) && grd_custlist.row >= grd_custlist.fixedRows )
  248. {
  249. btn_confirm.dispatch("DOMActivate");
  250. }
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <button id="btn_openpsn" class="btn2_letter5" style="left:875px; top:66px; width:75px; height:19px; ">
  255. <caption>거래처등록</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. window.visible = false;
  259. model.makeNode("/root/source");
  260. model.copyNode("/root/source","/root/target");
  261. modal("SPRAC00600","","","","","/root/source", "/root/target" );
  262. window.close();
  263. ]]>
  264. </script>
  265. </button>
  266. </group>
  267. <group id="group1" scroll="auto" style="left:8px; top:524px; width:950; height:27px; ">
  268. <button id="btn_confirm" class="btn4_letter2" style="left:837px; top:5px; width:56px; height:22px; ">
  269. <caption>확인</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. misfPopUpListReturn(grd_custlist);
  273. ]]>
  274. </script>
  275. </button>
  276. <button id="btn_cancel" class="btn4_letter2" style="left:894px; top:5px; width:56px; height:22px; ">
  277. <caption>취소</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. window.close();
  281. ]]>
  282. </script>
  283. </button>
  284. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
  285. </group>
  286. </xhtml:body>
  287. </xhtml:html>