SPLAF00700_코드팝업.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLAF00300_물품코드관리.xrw
  4. * 설 명 : 물품코드 저장 화면
  5. * 설 계 자 : 한음미
  6. * 작 성 자 : 한음미
  7. * 작 성 일 : 2007.08.06
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>SPLAF00300_물품코드관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <purccd>
  20. <purclist>
  21. <choi/>
  22. <instcd/>
  23. <cd/>
  24. <nm/>
  25. </purclist>
  26. <lastPage>
  27. <lastPage/>
  28. </lastPage>
  29. </purccd>
  30. </main>
  31. <send>
  32. <req/>
  33. <postdeptcd/>
  34. <todd/>
  35. <instcd/>
  36. <goodcd/>
  37. <page/>
  38. <itemlimit>100</itemlimit>
  39. <seaVal/>
  40. <seamthdcd/>
  41. </send>
  42. <init>
  43. <sysdt>
  44. <sysdtinfo>
  45. <sysdd/>
  46. <systm/>
  47. </sysdtinfo>
  48. </sysdt>
  49. </init>
  50. <hidden>
  51. <item>
  52. </item>
  53. <paval>1</paval>
  54. <seaVal/>
  55. <seamthdcd>0</seamthdcd>
  56. </hidden>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. fExeInitialize();
  62. ]]>
  63. </script>
  64. <submission id="TRLAF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/purccd"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. /* @group : 물품코드관리(팝업)
  72. * @ver : 2007.07.24 (CMCDEV-0001)
  73. * @by : 한음미
  74. * @-----------------------------------
  75. * @type : function
  76. * @access : public
  77. * @desc : 메인화면과의 같은 매핑파일 작업으로 생기는 조건 Function
  78. */
  79. function fExeInitialize() {
  80. //--------------------------------
  81. model.removeNodeset("/root/send");
  82. model.removeNodeset("/root/main/goodcd/goodcdlist");
  83. model.makeValue("/root/send/seamthdcd", "2"); // 0:물품코드, 1:물품명
  84. model.makeValue("/root/send/useflagcd", "0");
  85. //----------------------------------------------
  86. switch (model.getValue("/root/send/cdflagcd")) {
  87. case "3" : cap_title.text = "검사목록";
  88. grd_goodlist.caption = "선택^검사코드^검사명";
  89. break;
  90. case "6" : cap_title.text = "물품목록";
  91. grd_goodlist.caption = "선택^물품코드^물품명";
  92. break;
  93. case "9" : cap_title.text = "장비목록";
  94. grd_goodlist.caption = "선택^장비코드^장비명";
  95. break;
  96. }
  97. //--------------
  98. fGetCodeList(1);
  99. model.refresh();
  100. }
  101. /* @group : 물품코드관리
  102. * @ver : 2007.08.06 (CMCDEV-0001)
  103. * @by : 한음미
  104. * @-----------------------------------
  105. * @type : function
  106. * @access : public
  107. * @desc : 구매팀 물품 목록 선택 Function
  108. */
  109. function fExeSelect() {
  110. var sNode = "/root/main/purccd/purclist";
  111. opener.javascript.setParameter("SMLAF00600_cd", model.getValue(sNode+"["+grd_goodlist.row+"]/cd"));
  112. opener.javascript.setParameter("SMLAF00600_nm", model.getValue(sNode+"["+grd_goodlist.row+"]/nm"));
  113. window.close();
  114. }
  115. /* @group : 물품코드관리(팝업)
  116. * @ver : 2007.07.24 (CMCDEV-0001)
  117. * @by : 한음미
  118. * @-----------------------------------
  119. * @type : function
  120. * @access : public
  121. * @desc : 구매팀 물류 정보 보기
  122. */
  123. function fGetCodeList(page) {
  124. // 이상 페이지 번호 처리
  125. if(page == "") page = 1;
  126. if(page < 1) page = 1;
  127. if(page > parseInt(cap_lastPage.value)) page = parseInt(cap_lastPage.value);
  128. //-------------------------------------------------------------------------------------------
  129. model.makeValue("/root/send/instcd", opener.javascript.getParameter("SMLAF00600_instcd"));
  130. model.makeValue("/root/send/posdeptcd", opener.javascript.getParameter("SMLAF00600_posdeptcd"));
  131. model.makeValue("/root/send/dutdeptcd", opener.javascript.getParameter("SMLAF00600_dutdeptcd"));
  132. model.makeValue("/root/send/cdflagcd", opener.javascript.getParameter("SMLAF00600_flagcd"));
  133. model.makeValue("/root/send/seaVal", model.getValue("root/hidden/seaVal"));
  134. model.makeValue("/root/send/seamthdcd", model.getValue("root/hidden/seamthdcd"));
  135. model.makeValue("/root/send/page", page);
  136. model.makeValue("/root/send/itemlimit", "100");
  137. submit("TRLAF00701"); // 구매팀 물품목록 보이기
  138. ipt_paval.value = page;
  139. }
  140. /* @group : 물품코드관리(팝업)
  141. * @ver : 2008.04.15 (CMCDEV-0001)
  142. * @by : 유동철
  143. * @-----------------------------------
  144. * @type : function
  145. * @access : public
  146. * @desc : 물품코드/품명 검색어 입력 시 처리
  147. */
  148. function fExeGoodKeyPress() {
  149. if (event.keyCode == '13' && ipt_seaVal.currentText != ipt_seaVal.value) {
  150. model.setValue("root/hidden/seaVal", ipt_seaVal.currentText);
  151. fGetCodeList(1);
  152. }
  153. }
  154. /* @group : 물품코드관리(팝업)
  155. * @ver : 2008.04.15 (CMCDEV-0001)
  156. * @by : 유동철
  157. * @-----------------------------------
  158. * @type : function
  159. * @access : public
  160. * @desc : 검색 페이지번호 입력 시 처리
  161. */
  162. function fExePageKeyPress() {
  163. if(event.keyCode == '13' && ipt_paval.currentText != ipt_paval.value){
  164. model.setValue("/root/hidden/paval", ipt_paval.currentText);
  165. ipt_paval.dispatch("xforms-value-changed");
  166. }
  167. else if(event.keyCode != 8 && (event.keyCode < 48 || event.keyCode > 57)) {
  168. event.defaultAction = "cancel";
  169. }
  170. }
  171. ]]>
  172. </script>
  173. </xhtml:head>
  174. <xhtml:body pagewidth="430" pageheight="569" guideline="1,1194;" style="top:0; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  175. <group id="group2" style="left:0px; top:0px; width:412px; height:523px; ">
  176. <datagrid id="grd_goodlist" nodeset="/root/main/purccd/purclist" scroll="auto" autoresize="true" caption="선택^instcd^물품코드^물품명" colsep="^" colwidth="40, 0, 90, 259" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" navindex="3" style="left:0px; top:32px; width:410px; height:489px; ">
  177. <col ref="choi" type="checkbox"/>
  178. <col ref="instcd"/>
  179. <col ref="cd"/>
  180. <col ref="nm"/>
  181. <script type="javascript" ev:event="xforms-select">
  182. <![CDATA[
  183. fExeSelect();
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="ondblclick">
  187. <![CDATA[
  188. fExeSelect();
  189. ]]>
  190. </script>
  191. </datagrid>
  192. <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:410px; y2:27px; "/>
  193. <choices>
  194. <item>
  195. <label>checkbox1</label>
  196. <value>checkbox1</value>
  197. </item>
  198. </choices>
  199. <caption id="caption3" style="left:110px; top:5px; width:30px; height:15px; "/>
  200. <caption id="cap_title" class="tit_2" style="left:5px; top:10px; width:113px; height:13; ">검사목록</caption>
  201. <select1 id="rdo_seamthdcd" ref="/root/hidden/seamthdcd" navindex="1" overflow="visible" appearance="full" cols="2" style="left:185px; top:7px; width:95px; height:20px; border-style:none; ">
  202. <choices>
  203. <item>
  204. <label>코드</label>
  205. <value>0</value>
  206. </item>
  207. <item>
  208. <label>명칭</label>
  209. <value>1</value>
  210. </item>
  211. </choices>
  212. </select1>
  213. <input id="ipt_seaVal" ref="/root/hidden/seaVal" class="input_search" navindex="2" style="left:280px; top:7px; width:130px; height:19px; text-align:right; ">
  214. <script type="javascript" ev:event="onkeypress">
  215. <![CDATA[
  216. fExeGoodKeyPress();
  217. ]]>
  218. </script>
  219. </input>
  220. </group>
  221. <group id="group3" style="left:0px; top:523; width:412; height:30px; ">
  222. <input id="ipt_paval" ref="/root/hidden/paval" class="input_search" navindex="6" style="left:120px; top:5px; width:65px; height:19px; text-align:right; ">
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fGetCodeList(model.getValue("/root/hidden/paval"));
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="onkeypress">
  229. <![CDATA[
  230. fExePageKeyPress();
  231. ]]>
  232. </script>
  233. </input>
  234. <caption id="cap_lastPage" ref="/root/main/purccd/lastPage/lastPage" style="left:195px; top:5px; width:60px; height:20px; font-size:9pt; font-weight:bold; ">1</caption>
  235. <caption id="caption4" style="left:187px; top:5px; width:11px; height:20px; font-size:9pt; font-weight:bold; ">/</caption>
  236. <button id="btn_prntexcel" class="btn3_letter2" navindex="5" style="left:61px; top:4px; width:56px; height:22px; ">
  237. <caption>이전</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fGetCodeList(parseInt(model.getValue("/root/hidden/paval")) - 1);
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="button1" class="btn4_letter2" navindex="7" style="left:295px; top:5px; width:56px; height:22px; ">
  245. <caption>다음</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. fGetCodeList(parseInt(model.getValue("/root/hidden/paval")) + 1);
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="button2" class="btn3_letter2" navindex="4" style="left:2px; top:4px; width:56px; height:22px; ">
  253. <caption>처음</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. fGetCodeList(1);
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="button4" class="btn4_letter2" navindex="8" style="left:354px; top:5px; width:56px; height:22px; ">
  261. <caption>최종</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fGetCodeList(model.getValue("root/main/purccd/lastPage/lastPage"));
  265. ]]>
  266. </script>
  267. </button>
  268. </group>
  269. </xhtml:body>
  270. </xhtml:html>