SPLAW00900_출고현황조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : PLAW00900_출고현황조회.xrw
  4. * 설 명 : 출고현황조회
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2008.12.09
  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>불출현황조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <usegood>
  20. <usegoodlist>
  21. <instcd/>
  22. <posdeptcd/>
  23. <outdeptcd/>
  24. <outdeptnm/>
  25. <dutdeptcd/>
  26. <dutdeptnm/>
  27. <usedd/>
  28. <goodcd/>
  29. <goodnm/>
  30. <allsizespecid/>
  31. <goodspec/>
  32. <setunit/>
  33. <lotno/>
  34. <useqty/>
  35. <model/>
  36. <prodcustnm/>
  37. <suppcustnm/>
  38. </usegoodlist>
  39. </usegood>
  40. </main>
  41. <send/>
  42. <init>
  43. <dept>
  44. <appdeptcd/>
  45. </dept>
  46. <custinfo>
  47. <custlist>
  48. <instcd/>
  49. <entrregno/>
  50. <custnm/>
  51. </custlist>
  52. </custinfo>
  53. <appdeptcd/>
  54. <execappdeptcd/>
  55. <fromdd/>
  56. <todd/>
  57. <goodshop/>
  58. </init>
  59. <hidden/>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  67. <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
  68. <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dept/appdeptcd"/>
  69. <submission id="TRLAW00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/init/custinfo/custlist"/>
  70. <submission id="TRLAW00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/usegood/usegoodlist"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fExeInitialize();
  74. ]]>
  75. </script>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. /* @group : 출고현황조회
  80. * @ver : 2008.12.09 (CMCDEV-0001)
  81. * @by : 유동철(ACK)
  82. * @-----------------------------------
  83. * @type : function
  84. * @access : public
  85. * @desc : 화면초기화 함수
  86. */
  87. function fExeInitialize() {
  88. //var iMaxCnt = 0;
  89. var sDate = "";
  90. //--------------------------------
  91. model.removeNodeset("/root/send");
  92. model.removeNodeset("/root/main/goodtimelist");
  93. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  94. model.makeValue("/root/send/userid", getUserInfo("userid"));
  95. submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
  96. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  97. submit("TRLAA00103", false); // 부서코드 목록
  98. //-----------------------------------------------------------------------------------------
  99. model.makeValue("/root/init/custinfo/custlist[1]/instcd", getUserInfo("dutplceinstcd"));
  100. model.makeValue("/root/init/custinfo/custlist[1]/entrregno", "00");
  101. model.makeValue("/root/init/custinfo/custlist[1]/custnm", "전체");
  102. submit("TRLAW00802"); // 거래처 목록
  103. //-----------------------------------------------------------------
  104. //iMaxCnt = Number(getNodesetCount("/root/init/dept/appdeptcd")) + 1;
  105. //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/cd", "00");
  106. //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/nm", "전체");
  107. //-----------------------
  108. sDate = getCurrentDate();
  109. model.setValue("/root/init/appdeptcd", "-"); // 재고부서
  110. model.setValue("/root/init/execappdeptcd", "-"); // 실사용부서
  111. model.setValue("/root/init/goodshop", "00"); // 거래처
  112. model.makeValue("/root/init/fromdd", sDate.substring(0,6)+"01");
  113. model.makeValue("/root/init/todd", sDate.substring(0,6)+"31");
  114. //-------------------------------------
  115. // 상위 화면에서 넘어온 조회조건을 설정
  116. model.makeValue("/root/init/appdeptcd", opener.javascript.getParameter("SPLAW00900_outdeptcd"));
  117. model.makeValue("/root/init/goodshop", opener.javascript.getParameter("SPLAW00900_goodshop"));
  118. model.makeValue("/root/init/fromdd", opener.javascript.getParameter("SPLAW00900_fromdd"));
  119. model.makeValue("/root/init/todd", opener.javascript.getParameter("SPLAW00900_todd"));
  120. model.makeValue("/root/init/goodcd", opener.javascript.getParameter("SPLAW00900_goodcd"));
  121. model.makeValue("/root/init/allsize", opener.javascript.getParameter("SPLAW00900_allsize"));
  122. model.refresh();
  123. //----------------
  124. fGetUseGoodList();
  125. }
  126. /* @group : 출고현황조회
  127. * @ver : 2008.12.09 (CMCDEV-0001)
  128. * @by : 유동철(ACK)
  129. * @-----------------------------------
  130. * @type : function
  131. * @access : public
  132. * @desc : 불출목록 조회 처리 함수
  133. */
  134. function fGetUseGoodList() {
  135. var sNode = "/root/main/usegood/usegoodlist";
  136. //--------------------------------
  137. model.removeNodeset("/root/send");
  138. model.removeNodeset(sNode);
  139. //--------------------------------------------------------------------
  140. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  141. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  142. model.makeValue("/root/send/outdeptcd", model.getValue("/root/init/appdeptcd"));
  143. model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/execappdeptcd"));
  144. model.makeValue("/root/send/fromdd", model.getValue("/root/init/fromdd"));
  145. model.makeValue("/root/send/todd", model.getValue("/root/init/todd"));
  146. model.makeValue("/root/send/goodshop", model.getValue("/root/init/goodshop"));
  147. model.makeValue("/root/send/goodcd", model.getValue("/root/init/goodcd"));
  148. model.makeValue("/root/send/allsize", model.getValue("/root/init/allsize"));
  149. submit("TRLAW00803");
  150. }
  151. ]]>
  152. </script>
  153. </xhtml:head>
  154. <xhtml:body pagewidth="1066" pageheight="594" guideline="1,1063;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  155. <group id="grp_biz" style="left:0px; top:0px; width:1050px; height:551; ">
  156. <caption id="caption5" class="tit_2" style="left:5px; top:47px; width:113px; height:14px; ">부서별 불출목록</caption>
  157. <line id="line2" class="line_1" style="x1:0px; y1:62px; x2:1049px; y2:62px; "/>
  158. <datagrid id="grd_goodlist" nodeset="/root/main/usegood/usegoodlist" class="datagrid2" caption="기관코드^posdeptcd^outdeptcd^재고부서^dutdeptcd^실사용부서^사용일자^물품코드^물품명^ALL SIZE^규격^포장&#xA;구성단위^Lot번호^수량^모델^제조사^공급처" colsep="^" colwidth="0, 0, 0, 90, 0, 90, 0, 80, 220, 0, 140, 90, 80, 50, 60, 60, 70" mergecellsfixedrows="bycolrec" rowsep="|" navindex="7" style="left:0px; top:67px; width:1049px; height:482px; border-color:#c0c0c0; border-style:solid; ">
  159. <col ref="instcd"/>
  160. <col ref="posdeptcd"/>
  161. <col class="text_center" ref="outdeptcd"/>
  162. <col class="text_center" ref="outdeptnm"/>
  163. <col class="text_center" ref="dutdeptcd"/>
  164. <col class="text_center" ref="dutdeptnm" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  165. <col class="text_center" ref="usedd" format="99:99:99" mask="exclude" showmask="true"/>
  166. <col class="text_center" ref="goodcd"/>
  167. <col ref="goodnm"/>
  168. <col ref="allsizespecid"/>
  169. <col ref="goodspec"/>
  170. <col class="text_center" ref="setunit"/>
  171. <col class="text_center" ref="lotno"/>
  172. <col class="text_right" ref="useqty" format="#,###" mask="exclude" showmask="true"/>
  173. <col class="text_center" ref="model"/>
  174. <col ref="prodcustnm"/>
  175. <col ref="suppcustnm"/>
  176. </datagrid>
  177. <group id="grp_sea" style="left:0; top:0; width:1050; height:35px; font-weight:bold; ">
  178. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1050; height:35px; "/>
  179. <line id="line4" class="line_4" style="x1:963px; y1:7px; x2:963px; y2:29px; "/>
  180. <button id="btn_Ref" class="btn1_letter2" navindex="6" style="left:978px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fGetUseGoodList();
  185. ]]>
  186. </script>
  187. </button>
  188. <caption id="caption26" class="search_name" style="left:19px; top:9px; width:61px; height:17px; ">부서 :</caption>
  189. <caption id="caption7" class="search_name" style="left:450px; top:9px; width:86px; height:17px; ">불출일자 :</caption>
  190. <caption id="caption1" class="search_name" style="left:218px; top:9px; width:99px; height:17px; ">실사용부서 :</caption>
  191. <select1 id="cbo_custlist" ref="/root/init/goodshop" navindex="5" appearance="minimal" itemcount="20" style="left:850px; top:8px; width:99px; height:19px; font-weight:normal; ">
  192. <choices>
  193. <itemset nodeset="/root/init/custinfo/custlist">
  194. <label ref="custnm"/>
  195. <value ref="entrregno"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <caption id="caption6" class="search_name" style="left:773px; top:9px; width:73px; height:17px; ">거래처 :</caption>
  200. <caption id="caption19" class="search_no_b" style="left:645px; top:10px; width:12px; height:17px; text-align:center; vertical-align:middle; ">~</caption>
  201. <select1 id="cmb_stocdeptcd" ref="/root/init/appdeptcd" navindex="1" appearance="minimal" style="left:86px; top:8px; width:114px; height:19px; font-weight:normal; ">
  202. <choices>
  203. <itemset nodeset="/root/init/dept/appdeptcd">
  204. <label ref="nm"/>
  205. <value ref="cd"/>
  206. </itemset>
  207. </choices>
  208. </select1>
  209. <select1 id="cmb_execdeptcd" ref="/root/init/execappdeptcd" navindex="2" appearance="minimal" style="left:320px; top:8px; width:114px; height:19px; font-weight:normal; ">
  210. <choices>
  211. <itemset nodeset="/root/init/dept/appdeptcd">
  212. <label ref="nm"/>
  213. <value ref="cd"/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. <input id="ipt_fromdd" ref="/root/init/fromdd" navindex="3" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:540px; top:8px; width:100px; height:19px; "/>
  218. <input id="ipt_todd" ref="/root/init/todd" navindex="4" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:662px; top:8px; width:100px; height:19px; "/>
  219. </group>
  220. <button id="btn_excelsave" class="btn2_letter6" navindex="8" style="left:963px; top:42px; width:86px; height:19px; ">
  221. <caption>EXCEL출력</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. lpzfExeSaveToExcel(grd_goodlist, "불출현황목록");
  225. ]]>
  226. </script>
  227. </button>
  228. </group>
  229. <group id="grp_btn" scroll="auto" style="left:0px; top:551; width:1050px; height:27px; ">
  230. <button id="btn_cls" class="btn4_letter2" navindex="8" style="left:994; top:5px; width:56px; height:22px; ">
  231. <caption>닫기</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. model.close();
  235. ]]>
  236. </script>
  237. </button>
  238. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1050; y2:0px; "/>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>