SMLAW00800_입출고현황(시점).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLAW00700_입출고현황(년별).xrw
  4. * 설 명 : 입출고현황
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.11.27
  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. <goodtimelist>
  20. <goodcd/>
  21. <goodnm/>
  22. <allsizespecid/>
  23. <goodspec/>
  24. <purcunit/>
  25. <purcqty/>
  26. <useunitcd/>
  27. <useqty/>
  28. <tunitcost/>
  29. <tstocqty/>
  30. <tstocmon/>
  31. <twinqty/>
  32. <twinmon/>
  33. <tuseqty/>
  34. <tusemon/>
  35. <tadjtqty/>
  36. <tadjtmon/>
  37. <suppcustnm/>
  38. </goodtimelist>
  39. </main>
  40. <send>
  41. <deptcd/>
  42. <deptcdlist/>
  43. <goodflag/>
  44. <goodtext/>
  45. </send>
  46. <init>
  47. <deptinfo>
  48. <cd/>
  49. </deptinfo>
  50. <dept>
  51. <appdeptcd/>
  52. </dept>
  53. <appdeptcd/>
  54. <goodflag>0</goodflag>
  55. <goodtext/>
  56. <goodshop>0</goodshop>
  57. <custinfo>
  58. <custlist>
  59. <instcd/>
  60. <entrregno/>
  61. <custnm/>
  62. </custlist>
  63. </custinfo>
  64. <stocdd/>
  65. <popupmenu>
  66. <item>
  67. <funt>fExeUseQtyList</funt>
  68. <nm>불출내역보기</nm>
  69. </item>
  70. </popupmenu>
  71. </init>
  72. <hidden>
  73. <ref>
  74. </ref>
  75. </hidden>
  76. </root>
  77. </instance>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. fExeInitialize();
  85. ]]>
  86. </script>
  87. <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
  88. <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dept/appdeptcd"/>
  89. <submission id="TRLAA00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/appdeptcd"/>
  90. <submission id="TRLAW00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodtimelist"/>
  91. <submission id="TRLAW00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/custinfo/custlist"/>
  92. </model>
  93. <script type="javascript">
  94. <![CDATA[
  95. /* @group : 입출고현황(시점)
  96. * @ver : 2007.12.03
  97. * @by : 송요셉(ACK)
  98. * @-----------------------------------
  99. * @type : function
  100. * @access : public
  101. * @desc : 입출고목록 초기화면설정
  102. */
  103. function fExeInitialize() {
  104. //--------------------------------
  105. model.removeNodeset("/root/send");
  106. model.removeNodeset("/root/main/goodtimelist");
  107. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  108. model.makeValue("/root/send/userid", getUserInfo("userid"));
  109. submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
  110. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  111. submit("TRLAA00103", false); // 부서코드 목록
  112. submit("TRLAW00802"); // 거래처 목록
  113. //-----------------------------------------------------------------
  114. iMaxCnt = Number(getNodesetCount("/root/init/dept/appdeptcd")) + 1;
  115. //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/cd", "00");
  116. //model.makeValue("/root/init/dept/appdeptcd["+iMaxCnt+"]/nm", "전체");
  117. //----------------------
  118. //cmb_seadept.select(0);
  119. model.setValue("/root/init/appdeptcd", "-");
  120. //model.setValue("/root/init/goodflag", "0");
  121. //model.setValue("/root/init/goodtext", "");
  122. model.setValue("/root/init/goodshop", "00");
  123. model.setValue("/root/init/stocdd", getCurrentDate());
  124. model.refresh();
  125. }
  126. /* @group : 입출고현황(시점)
  127. * @ver : 2007.12.03
  128. * @by : 송요셉(ACK)
  129. * @-----------------------------------
  130. * @type : function
  131. * @access : public
  132. * @desc : 입출고목록 엑셀파일저장
  133. */
  134. function fExeSaveToExcel() {
  135. goodyearlist.saveExcel("C:\\SMLAW00800_입출고목록(시점).xls", "시점별입출고목록", false, true);
  136. }
  137. /* @group : 입출고현황(시점)
  138. * @ver : 2007.12.03
  139. * @by : 송요셉(ACK)
  140. * @-----------------------------------
  141. * @type : function
  142. * @access : public
  143. * @desc : 입출고목록 조회
  144. */
  145. function fGetGoodList() {
  146. //--------------------------------
  147. model.removeNodeset("/root/send");
  148. model.removeNodeset("/root/main/goodtimelist");
  149. //--------------------------------------------------------------------
  150. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  151. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  152. model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd"));
  153. model.makeValue("/root/send/goodflag", model.getValue("/root/init/goodflag"));
  154. model.makeValue("/root/send/goodtext", model.getValue("/root/init/goodtext"));
  155. model.makeValue("/root/send/goodshop", model.getValue("/root/init/goodshop"));
  156. model.makeValue("/root/send/stocdd", model.getValue("/root/init/stocdd"));
  157. //-------------------
  158. submit("TRLAW00801");
  159. }
  160. /* @group : 입출고현황(시점)
  161. * @ver : 2008.12.08
  162. * @by : 유동철(ACK)
  163. * @-----------------------------------
  164. * @type : function
  165. * @access : public
  166. * @desc : 출고상세내역 조회
  167. */
  168. function fExeUseQtyList(pRow, pCol) {
  169. var sDate = model.getValue("/root/init/stocdd");
  170. setParameter("SPLAW00900_instcd", getUserInfo("dutplceinstcd"));
  171. setParameter("SPLAW00900_posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  172. setParameter("SPLAW00900_outdeptcd", model.getValue("/root/init/appdeptcd"));
  173. setParameter("SPLAW00900_goodshop", model.getValue("/root/init/goodshop"));
  174. setParameter("SPLAW00900_fromdd", sDate.substring(0,6)+"01");
  175. setParameter("SPLAW00900_todd", sDate.substring(0,6)+"31");
  176. setParameter("SPLAW00900_goodcd", model.getValue("/root/main/goodtimelist["+(Number(grd_goodtimelist.row)-1)+"]/goodcd"));
  177. setParameter("SPLAW00900_allsize", model.getValue("/root/main/goodtimelist["+(Number(grd_goodtimelist.row)-1)+"]/allsizespecid"));
  178. modal("SPLAW00900");
  179. }
  180. ]]>
  181. </script>
  182. </xhtml:head>
  183. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  184. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  185. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  186. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  187. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  188. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  189. <button id="btn_Ref" class="btn1_letter2" navindex="6" style="left:1123px; top:7px; width:56px; height:22px; ">
  190. <caption>조회</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. fGetGoodList();
  194. ]]>
  195. </script>
  196. </button>
  197. <select1 id="cmb_seadept" ref="/root/init/appdeptcd" navindex="1" appearance="minimal" style="left:84px; top:8px; width:114px; height:19px; font-weight:normal; ">
  198. <choices>
  199. <itemset nodeset="/root/init/dept/appdeptcd">
  200. <label ref="nm"/>
  201. <value ref="cd"/>
  202. </itemset>
  203. </choices>
  204. </select1>
  205. <caption id="caption26" class="search_name" style="left:19px; top:9px; width:61px; height:17px; ">부서 :</caption>
  206. <caption id="caption1" class="search_name" style="left:309px; top:9px; width:68px; height:17px; ">검색 :</caption>
  207. <caption id="caption2" class="search_name" style="left:919px; top:9px; width:73px; height:17px; ">거래처 :</caption>
  208. <select1 id="cbo_seaflagcd" ref="/root/init/goodflag" disabled="true" navindex="2" appearance="minimal" style="left:375px; top:8px; width:80px; height:19px; font-weight:normal; ">
  209. <choices>
  210. <item>
  211. <label>물품코드</label>
  212. <value>0</value>
  213. </item>
  214. <item>
  215. <label>물품명</label>
  216. <value>1</value>
  217. </item>
  218. </choices>
  219. </select1>
  220. <input id="ipt_seaval" ref="/root/init/goodtext" navindex="3" style="left:458px; top:8px; width:100px; height:19px; font-weight:normal; "/>
  221. <select1 id="cbo_custlist" ref="/root/init/goodshop" navindex="5" appearance="minimal" style="left:996px; top:8px; width:99px; height:19px; font-weight:normal; ">
  222. <choices>
  223. <itemset nodeset="/root/init/custinfo/custlist">
  224. <label ref="custnm"/>
  225. <value ref="entrregno"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <input id="ipt_stocdd" ref="/root/init/stocdd" navindex="4" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:745px; top:8px; width:100px; height:19px; "/>
  230. <caption id="caption4" class="search_name" style="left:655px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
  231. </group>
  232. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">입출고목록</caption>
  233. <datagrid id="grd_goodtimelist" nodeset="/root/main/goodtimelist" caption="물품코드^물품명^ALL SIZE^거래처^규격^청구&#xA;단위^청구단위&#xA;수량^사용&#xA;단위^사용단위&#xA;수량^단가^재고^재고^입고^입고^출고^출고^재고보정^재고보정^3월^3월^3월^3월^3월^3월^3월^4월^4월^4월^4월^4월^4월^4월^5월^5월^5월^5월^5월^5월^5월^6월^6월^6월^6월^6월^6월^6월^7월^7월^7월^7월^7월^7월^7월^8월^8월^8월^8월^8월^8월^8월^9월^9월^9월^9월^9월^9월^9월^10월^10월^10월^10월^10월^10월^10월^11월^11월^11월^11월^11월^11월^11월^12월^12월^12월^12월^12월^12월^12월^합계^합계^합계^합계^합계^합계|물품코드^물품명^^거래처^규격^청구&#xA;단위^청구단위&#xA;수량^사용&#xA;단위^사용단위&#xA;수량^단가^수량^금액^수량^금액^수량^금액^수량^금액^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^단가^재고^재고^입고^입고^출고^출고^재고^재고^입고^입고^출고^출고" colwidth="70, 180, 0, 100, 80, 50, 60, 50, 60, 60, 50, 60, 50, 60, 50, 60, 50, 60" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" navindex="7" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:665px; font-weight:normal; ">
  234. <col ref="goodcd" style="text-align:center; "/>
  235. <col ref="goodnm" style="text-align:left; "/>
  236. <col ref="allsizespecid"/>
  237. <col ref="suppcustnm"/>
  238. <col class="text_center" ref="goodspec"/>
  239. <col class="text_center" ref="purcunit"/>
  240. <col ref="purcqty" format="(-)#,###" style="text-align:right; "/>
  241. <col class="text_center" ref="useunitcd"/>
  242. <col class="text_center" ref="useqty" format="(-)#,###"/>
  243. <col ref="tunitcost" format="(-)#,###" style="text-align:right; "/>
  244. <col ref="tstocqty" format="(-)#,###" style="text-align:right; "/>
  245. <col ref="tstocmon" format="(-)#,###" style="text-align:right; "/>
  246. <col ref="twinqty" format="(-)#,###" style="text-align:right; "/>
  247. <col ref="twinmon" format="(-)#,###" style="text-align:right; "/>
  248. <col ref="tuseqty" format="(-)#,###" style="text-align:right; "/>
  249. <col ref="tusemon" format="(-)#,###" style="text-align:right; "/>
  250. <col ref="tadjtqty"/>
  251. <col ref="tadjtmon"/>
  252. <script type="javascript" ev:event="onaftersort">
  253. <![CDATA[
  254. grd_goodtimelist.gridToInstance();
  255. ]]>
  256. </script>
  257. <script type="javascript" ev:event="onmousedown">
  258. <![CDATA[
  259. setPopupMenu("grd_goodtimelist", false, "/root/init/popupmenu/item", "nm", "funt");
  260. ]]>
  261. </script>
  262. <script type="javascript" ev:event="DOMFocusOut">
  263. <![CDATA[
  264. initPopupMenu();
  265. ]]>
  266. </script>
  267. </datagrid>
  268. </group>
  269. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  270. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">입출고현황(시점)</caption>
  271. </group>
  272. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  273. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  274. <button id="button13" class="btn6_letter5" navindex="8" style="left:0px; top:3px; width:92px; height:22px; ">
  275. <caption>EXCEL출력</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. //fExeSaveToExcel();
  279. lpzfExeSaveToExcel(grd_goodtimelist, "입출고현황(시점)");
  280. ]]>
  281. </script>
  282. </button>
  283. </group>
  284. </xhtml:body>
  285. </xhtml:html>