SMLAP00100_입출고현황.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLAP00100_입출고현황.xrw
  4. * 설 명 : 사용자의 부서, 거래처에 따른 입출고 화면
  5. * 설 계 자 : 한음미
  6. * 작 성 자 : 한음미
  7. * 작 성 일 : 2007.11.14
  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>입출고현황(TEST)</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <goodio>
  20. <goodiolist>
  21. <instcd/>
  22. <posdeptcd/>
  23. <dutdeptcd/>
  24. <dutdeptnm/>
  25. <goodcd/>
  26. <goodnm/>
  27. <lotno/>
  28. <usedd/>
  29. <usetm/>
  30. <useid/>
  31. <usenm/>
  32. <spec/>
  33. <requnit/>
  34. <requnitqty/>
  35. <useunit/>
  36. <useunitqty/>
  37. <unitcost/>
  38. <winqty/>
  39. <winamt/>
  40. <deliveqty/>
  41. <deliveamt/>
  42. <stocqty/>
  43. <stocamt/>
  44. </goodiolist>
  45. </goodio>
  46. </main>
  47. <send>
  48. </send>
  49. <init>
  50. <seaval/>
  51. <useflagcd/>
  52. <dutdept>
  53. <appdeptcd/>
  54. </dutdept>
  55. <deptinfo>
  56. <cd/>
  57. </deptinfo>
  58. <appdeptcd/>
  59. <delivefromdd/>
  60. <delivetodd/>
  61. <custinfo>
  62. <custlist>
  63. <instcd/>
  64. <entrregno/>
  65. <custnm/>
  66. </custlist>
  67. </custinfo>
  68. <custcd/>
  69. </init>
  70. <hidden>
  71. </hidden>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fExeInitialize();
  77. ]]>
  78. </script>
  79. <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
  80. <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/dutdept/appdeptcd"/>
  81. <submission id="TRLAW00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/custinfo/custlist"/>
  82. <submission id="TRLAP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodio/goodiolist"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript">
  88. <![CDATA[
  89. function fExeInitialize() {
  90. //현재날짜
  91. var toDay = getCurrentDate();
  92. //--------------------------------
  93. model.removeNodeset("/root/send");
  94. model.removeNodeset("/root/main/goodiolist");
  95. //--------------------------------------------------------------------
  96. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  97. model.makeValue("/root/send/userid", getUserInfo("userid"));
  98. submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
  99. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
  100. submit("TRLAA00103", false); // 부서코드 목록
  101. submit("TRLAW00802"); // 거래처 목록
  102. //-----------------------------------------------
  103. model.setValue("/root/init/delivefromdd", toDay);
  104. model.setValue("/root/init/delivetodd", toDay);
  105. model.setValue("/root/init/useflagcd", "0"); // 검색값(0:물품코드, 1:물품명)
  106. //-----------------------------------------------------------------
  107. iMaxCnt = Number(getNodesetCount("/root/init/dutdept/appdeptcd")) + 1;
  108. model.makeValue("/root/init/dutdept/appdeptcd["+iMaxCnt+"]/cd", "00");
  109. model.makeValue("/root/init/dutdept/appdeptcd["+iMaxCnt+"]/nm", "전체");
  110. //--------------------------------------------
  111. model.makeValue("/root/init/appdeptcd", "00");
  112. model.makeValue("/root/init/custcd", "00");
  113. // cmb_seadept.select(0);
  114. // cmb_seacust.select(0);
  115. //--------------------------
  116. grd_goodappcdlist.refresh();
  117. model.refresh();
  118. }
  119. /* @group : 입출고현황(Test)
  120. * @ver : 2008.05.19
  121. * @by : 유동철
  122. * @-----------------------------------
  123. * @type : function
  124. * @access : public
  125. * @desc : 입출고현황 조회
  126. */
  127. function fGetWinDeliveList() {
  128. //--------------------------------
  129. model.removeNodeset("/root/send");
  130. model.removeNodeset("/root/main/goodiolist");
  131. //-----------------------------------------------------------------------
  132. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  133. model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd")); // 과코드
  134. model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd")); // 부서코드
  135. model.makeValue("/root/send/useflagcd", model.getValue("/root/init/useflagcd")); // 사용구분(0:물품코드, 1:물품명)
  136. model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval")); // 검색값
  137. model.makeValue("/root/send/delivefromdd", model.getValue("/root/init/delivefromdd")); // 재고 시작일자
  138. model.makeValue("/root/send/delivetodd", model.getValue("/root/init/delivetodd")); // 재고 종료일자
  139. model.makeValue("/root/send/custcd", model.getValue("/root/init/custcd")); // 거래처 코드
  140. //-------------------
  141. submit("TRLAP00101");
  142. }
  143. /* @group : 입출고현황(Test)
  144. * @ver : 2008.05.19
  145. * @by : 유동철
  146. * @-----------------------------------
  147. * @type : function
  148. * @access : public
  149. * @desc : 입출고현황 엑셀파일저장
  150. */
  151. function fExeSaveToExcel() {
  152. var fileName = window.fileDialog("save", ",", false, "입출고현황(Test별)", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  153. //-------------------
  154. if (fileName != "") {
  155. grd_goodappcdlist.saveExcel(fileName);
  156. }
  157. }
  158. //----------------------------
  159. // 검색값 입력 후 Enter키 입력
  160. function fExeSeaValOnKeyPress() {
  161. if (event.keyCode == "13") {
  162. model.setValue("/root/init/seaval", ipt_seaval.currentText);
  163. ipt_seaval.refresh();
  164. //------------------
  165. fGetWinDeliveList();
  166. }
  167. }
  168. ]]>
  169. </script>
  170. </xhtml:head>
  171. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  172. <group id="group1" scroll="auto" style="left:0px; top:0px; width:1194px; height:15px; ">
  173. <caption id="caption6" class="tit_1" autoresize="true" style="left:0px; top:0px; width:140px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">입출고현황(Test)</caption>
  174. </group>
  175. <group id="group3" style="left:0px; top:40; width:1194px; height:679px; ">
  176. <group id="group2" style="left:0px; top:10; width:1194px; height:35px; vertical-align:top; ">
  177. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0; width:1194px; height:35px; "/>
  178. <line id="line1" class="line_4" style="x1:1108; y1:7; x2:1108; y2:29; "/>
  179. <button id="btn_sea" class="btn1_letter2" style="left:1123; top:7; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. fGetWinDeliveList();
  184. ]]>
  185. </script>
  186. </button>
  187. <input id="ipt_todd" ref="/root/init/delivetodd" class="input_s_essential" inputtype="date" style="left:993; top:8; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  188. <caption id="caption1" class="search_name" style="left:785px; top:9; width:105px; height:17px; ">사용일자 :</caption>
  189. <input id="ipt_fromdd" ref="/root/init/delivefromdd" class="input_s_essential" inputtype="date" style="left:875; top:8px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  190. <caption id="caption5" class="search_no_b" style="left:978; top:9px; width:12px; height:17px; ">~</caption>
  191. <caption id="caption3" class="search_name" style="left:2px; top:9; width:105px; height:17px; ">부서 코드 :</caption>
  192. <select1 id="cmb_seadept" ref="/root/init/appdeptcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:90px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/init/dutdept/appdeptcd">
  195. <label ref="nm"/>
  196. <value ref="cd"/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <caption id="caption7" class="search_name" style="left:567px; top:9px; width:103px; height:17px; ">거래처 :</caption>
  201. <select1 id="cmb_seacust" ref="/root/init/custcd" class="combo_search" appearance="minimal" style="left:645px; top:8px; width:110px; height:19px; ">
  202. <choices>
  203. <itemset nodeset="/root/init/custinfo/custlist">
  204. <label ref="custnm"/>
  205. <value ref="entrregno"/>
  206. </itemset>
  207. </choices>
  208. </select1>
  209. <caption id="caption2" class="search_name" style="left:225px; top:9px; width:75px; height:17px; ">검색값 :</caption>
  210. <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" style="left:406px; top:8px; width:129px; height:19px; ">
  211. <script type="javascript" ev:event="onkeypress">
  212. <![CDATA[
  213. fExeSeaValOnKeyPress();
  214. ]]>
  215. </script>
  216. </input>
  217. <select1 id="cbo_seamthdcd" ref="/root/init/useflagcd" disabled="true" appearance="minimal" style="left:304px; top:8px; width:100px; height:19px; ">
  218. <choices>
  219. <item>
  220. <label>물품코드</label>
  221. <value>0</value>
  222. </item>
  223. <item>
  224. <label>물품명</label>
  225. <value>1</value>
  226. </item>
  227. </choices>
  228. </select1>
  229. </group>
  230. <caption id="caption22" class="tit_2" style="left:5; top:54px; width:82px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">입출고목록</caption>
  231. <line id="line2" class="line_1" style="x1:0; y1:68; x2:1194px; y2:68px; "/>
  232. <datagrid id="grd_goodappcdlist" nodeset="/root/main/goodio/goodiolist" caption="instcd^posdeptcd^dutdeptcd^부서^물품코드^물품명^Lot번호^사용일자^사용시간^사용자ID^사용자명^규격^구매&#xA;단위^구매&#xA;수량^기준&#xA;단위^기준&#xA;수량^단가^입고^입고^출고^출고^재고^재고|instcd^posdeptcd^dutdeptcd^부서^물품코드^물품명^Lot번호^사용일자^사용시간^사용자ID^사용자명^규격^구매&#xA;단위^구매&#xA;수량^기준&#xA;단위^기준&#xA;수량^단가^수량^금액^수량^금액^수량^금액" colsep="^" colwidth="0, 0, 0, 90, 70, 342, 140, 70, 0, 0, 0, 60, 50, 60, 50, 60, 0, 0, 0, 60, 100, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:73px; width:1194px; height:604px; vertical-align:middle; ">
  233. <col ref="instcd"/>
  234. <col ref="posdeptcd"/>
  235. <col ref="dutdeptcd"/>
  236. <col class="text_center" ref="dutdeptnm"/>
  237. <col ref="goodcd"/>
  238. <col ref="goodnm"/>
  239. <col ref="lotno"/>
  240. <col class="text_center" ref="usedd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  241. <col ref="usetm"/>
  242. <col ref="useid"/>
  243. <col ref="usenm"/>
  244. <col class="text_center" ref="spec"/>
  245. <col class="text_center" ref="requnit"/>
  246. <col class="text_right" ref="requnitqty" format="#,###" mask="exclude" showmask="true"/>
  247. <col class="text_center" ref="useunit"/>
  248. <col class="text_right" ref="useunitqty" format="#,###" mask="exclude" showmask="true"/>
  249. <col ref="unitcost" secretendposition="20" secretmark="*" secretstartposition="0" format="#,###" mask="exclude" showmask="true"/>
  250. <col ref="winqty"/>
  251. <col ref="winamt"/>
  252. <col class="text_right" ref="deliveqty" format="#,###" mask="exclude" showmask="true"/>
  253. <col class="text_right" ref="deliveamt" format="#,###" mask="exclude" showmask="true"/>
  254. <col ref="stocqty"/>
  255. <col ref="stocamt"/>
  256. </datagrid>
  257. </group>
  258. <group id="grp_btn" style="left:0px; top:13; width:1194px; height:27; ">
  259. <line id="line3" class="line_6" style="x1:0px; y1:25; x2:1194; y2:25; "/>
  260. <button id="btn_excelsave" class="btn6_letter5" navindex="8" style="left:0px; top:3px; width:92px; height:22px; ">
  261. <caption>EXCEL출력</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fExeSaveToExcel();
  265. ]]>
  266. </script>
  267. </button>
  268. </group>
  269. </xhtml:body>
  270. </xhtml:html>