SSLAW00100_물품목록.xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SSLAW00100_물품목록.xfm
  4. * 설 명 : 물품목록
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 평화is 김성희
  7. * 작 성 일 : 2007.10.02
  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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <goodcd>
  20. <goodcdlist>
  21. <choi/>
  22. <goodcd/>
  23. <goodnm/>
  24. <goodspec/>
  25. <deliveunit/>
  26. <goodunitcost/>
  27. <posdeptcd/>
  28. <instcd/>
  29. <deptcd/>
  30. <stocqty/>
  31. <tqty/>
  32. <unitcost/>
  33. <lotno/>
  34. <allsizespecid/>
  35. <setunit/>
  36. <model/>
  37. <keeptmpr/>
  38. </goodcdlist>
  39. </goodcd>
  40. </main>
  41. <send>
  42. <deptcd/>
  43. </send>
  44. <hidden/>
  45. <init>
  46. <cdid/>
  47. <codeinfo>
  48. <R0025>
  49. <cdid/>
  50. <cdnm/>
  51. </R0025>
  52. </codeinfo>
  53. <subappdeptcd/>
  54. </init>
  55. </root>
  56. </instance>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. fExeInitializeSub();
  60. ]]>
  61. </script>
  62. <submission id="TRLAW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodcd/goodcdlist"/>
  63. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. /* @group : 물품목록
  72. * @ver : 2007.10.02 (CMCDEV-0001)
  73. * @by : 유동철(ACK)
  74. * @-----------------------------------
  75. * @type : function
  76. * @access : public
  77. * @desc : 초기화 Function
  78. */
  79. function fExeInitializeSub() {
  80. zbcfGetCodeList( new Array("R0025"), new Array("/root/init/codeinfo") , null, null, null);
  81. cmb_cdid.refresh();
  82. //--------------------------------------
  83. model.makeValue("/root/init/cdid", "Y");
  84. btn_stoclist.selected = true;
  85. cmb_subdeptcd.select(0);
  86. //--------------------
  87. fGetGoodCodeSubList();
  88. //--------------
  89. model.refresh();
  90. }
  91. /* @group : 물품목록
  92. * @ver : 2007.10.02 (CMCDEV-0001)
  93. * @by : 유동철(ACK)
  94. * @-----------------------------------
  95. * @type : function
  96. * @access : public
  97. * @desc : 초기화 Function
  98. */
  99. function fGetGoodCodeSubList() {
  100. var sStocFlagCd = "A";
  101. //--------------------------------
  102. model.removeNodeset("/root/send");
  103. model.removeNodeset("/root/main/goodcd/goodcdlist"); // 물품코드목록 초기화
  104. model.removeNodeset("/root/main/dtbtgood/dtbtgoodlist"); // 분배물품 목록 초기화 물품 분배화면
  105. //---------------------------------------------------
  106. if (btn_stoclist.selected == true) sStocFlagCd = "S";
  107. //---------------------------------------------------------------------
  108. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  109. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd")); // 로그인 사용자의 부서코드
  110. model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/subappdeptcd")); // 검색부서
  111. model.makeValue("/root/send/goodflag", model.getValue("/root/init/cdid")); // 물품구분
  112. model.makeValue("/root/send/scrno", model.getValue("/root/init/scrno")); // 화면구분(10:입고, 20:분배, 30:사용, 40:Test별사용)
  113. model.makeValue("/root/send/stocflagcd", sStocFlagCd); // 조회구분(A:전체목록, S:재고목록)
  114. submit("TRLAW00101");
  115. model.makeValue("/root/hidden/goodflag", model.getValue("/root/init/cdid"));
  116. }
  117. ]]>
  118. </script>
  119. </xhtml:head>
  120. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:300px; height:688px; ">
  122. <line id="line12" class="line_1" style="x1:0px; y1:25px; x2:300px; y2:25px; "/>
  123. <datagrid id="grd_goodlist" nodeset="/root/main/goodcd/goodcdlist" class="datagrid2" caption="선택^물품코드^물품명^규격^T수량^재고&#xA;수량^단가^Lot번호^ALL SIZE^포장구성단위^제조사^모델^공급처^deliveunit^goodunitcost^posdeptcd^instcd^dutdeptcd^dutdeptnm^tqty^caption1^keeptmpr" colsep="^" colwidth="24, 70, 80, 44, 0, 40, 0, 110, 0, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:55px; width:300px; height:632px; ">
  124. <col ref="choi" type="checkbox"/>
  125. <col ref="goodcd"/>
  126. <col ref="goodnm"/>
  127. <col ref="goodspec"/>
  128. <col ref="tqty"/>
  129. <col ref="stocqty" style="text-align:right; "/>
  130. <col ref="unitcost"/>
  131. <col class="text_center" ref="lotno"/>
  132. <col ref="allsizespecid"/>
  133. <col class="text_center" ref="setunit"/>
  134. <col ref="prodcustnm"/>
  135. <col ref="model"/>
  136. <col ref="suppcustnm"/>
  137. <col ref="deliveunit"/>
  138. <col ref="goodunitcost"/>
  139. <col ref="posdeptcd"/>
  140. <col ref="instcd"/>
  141. <col ref="dutdeptcd"/>
  142. <col ref="dutdeptnm"/>
  143. <col ref="tqty"/>
  144. <col/>
  145. <col ref="keeptmpr"/>
  146. <script type="javascript" ev:event="xforms-select">
  147. <![CDATA[
  148. fExeChoiTrue("good");
  149. ]]>
  150. </script>
  151. <script type="javascript" ev:event="onaftersort">
  152. <![CDATA[
  153. grd_goodlist.gridToInstance();
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <select1 id="cmb_cdid" ref="/root/init/cdid" navindex="3" appearance="minimal" style="left:220px; top:31px; width:80px; height:19px; ">
  158. <choices>
  159. <itemset nodeset="/root/init/codeinfo/R0025">
  160. <label ref="cdnm"/>
  161. <value ref="cdid"/>
  162. </itemset>
  163. </choices>
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. fGetGoodCodeSubList();
  167. ]]>
  168. </script>
  169. </select1>
  170. <button id="btn_allgood" class="btn_sw" group="tab" style="left:0px; top:3px; width:65px; height:22px; ">
  171. <caption>전체목록</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. fGetGoodCodeSubList();
  175. ]]>
  176. </script>
  177. </button>
  178. <caption id="caption7" class="cell_1" style="left:158px; top:30px; width:59px; height:23px; vertical-align:middle; ">물품구분</caption>
  179. <caption id="caption1" class="cell_1" style="left:0px; top:30px; width:60px; height:23px; vertical-align:middle; ">물품부서</caption>
  180. <line id="line6" class="line_3" style="x1:0px; y1:52px; x2:300px; y2:52px; "/>
  181. <button id="btn_stoclist" class="btn_sw" group="tab" selected="true" style="left:66px; top:3px; width:65px; height:22px; ">
  182. <caption>재고목록</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fGetGoodCodeSubList();
  186. ]]>
  187. </script>
  188. </button>
  189. <select1 id="cmb_subdeptcd" ref="/root/init/subappdeptcd" navindex="3" appearance="minimal" style="left:63px; top:31px; width:92px; height:19px; ">
  190. <choices>
  191. <itemset nodeset="/root/init/dutdept/appdeptcd">
  192. <label ref="nm"/>
  193. <value ref="cd"/>
  194. </itemset>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. fGetGoodCodeSubList();
  199. ]]>
  200. </script>
  201. </select1>
  202. </group>
  203. </xhtml:body>
  204. </xhtml:html>