SMRST01300_재고종합조회.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>재고종합조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodwin>
  12. <goodwinlist/>
  13. </goodwin>
  14. <gooddelive>
  15. <gooddelivelist/>
  16. </gooddelive>
  17. <goodsum>
  18. <goodsumlist/>
  19. </goodsum>
  20. <goodstoc>
  21. <goodstoclist/>
  22. </goodstoc>
  23. </list>
  24. </main>
  25. <init>
  26. <stocsumqty/>
  27. </init>
  28. <send>
  29. <goodiolist>
  30. <instcd/>
  31. <goodflag/>
  32. <deptcd/>
  33. <deptnm/>
  34. <goodcd/>
  35. <goodnm/>
  36. <goodspec/>
  37. <goodmodel/>
  38. <prodcmpynm/>
  39. <iofrdd/>
  40. <iotodd/>
  41. <stocym/>
  42. <lrgcd/>
  43. <lrgnm/>
  44. </goodiolist>
  45. <goodstoc>
  46. <instcd/>
  47. <goodcd/>
  48. </goodstoc>
  49. </send>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. //화면 Control을 초기화한다
  55. fInitialize();
  56. ]]>
  57. </script>
  58. <submission id="TRRSI01301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodwin"/>
  59. <submission id="TRRST01301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodstoc"/>
  60. <submission id="TRRSO01301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/gooddelive"/>
  61. <submission id="TRRST01302" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodsum"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  72. function fInitialize() {
  73. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  74. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  75. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  76. model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
  77. model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
  78. var curdate = getCurrentDate();
  79. var cvtdate = curdate.toDate("YYYYMMDD");
  80. model.setValue(ipt_frdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  81. model.setValue(ipt_todd.attribute("ref") , curdate);
  82. misfGridInit(grd_win);
  83. misfGridInit(grd_gooddelive);
  84. misfGridInit(grd_stoclist);
  85. misfGridInit(grd_goodsum);
  86. misfMsterDetailSet(grd_win,null, "TRRSI01301" ,"N");
  87. misfMsterDetailSet(grd_gooddelive,null, "TRRSO01301" ,"N");
  88. misfMsterDetailSet(grd_stoclist,null, "TRRST01301" ,"N");
  89. misfMsterDetailSet(grd_goodsum,null, "TRRST01302" ,"N");
  90. grd_stoclist.subtotalposition = "after";
  91. model.refresh();
  92. }
  93. function fRetrevie()
  94. {
  95. if(fCheckRetrieveData() == false)return;
  96. misfGridInit(grd_win);
  97. misfGridInit(grd_gooddelive);
  98. misfGridInit(grd_stoclist);
  99. misfGridInit(grd_goodsum);
  100. misfMsterDetailRetrieve();
  101. grd_stoclist.subtotal("clear", 0, 0);
  102. //grd_stoclist.subtotal("sum", grd_stoclist.colRef("instcd"), grd_stoclist.colRef("stocqty"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 0, "합계");
  103. grd_stoclist.subtotal("sum", 0, 2, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  104. }
  105. function fCheckRetrieveData()
  106. {
  107. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  108. {
  109. model.setFocus("cmb_instcd");
  110. return false;
  111. }
  112. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  113. {
  114. model.setFocus("cmb_goodflag");
  115. return false;
  116. }
  117. if(model.getValue(ipt_frdd.attribute("ref")).length== 0 )
  118. {
  119. model.setFocus("ipt_frdd");
  120. return false;
  121. }
  122. if(model.getValue(ipt_todd.attribute("ref")).length== 0 )
  123. {
  124. model.setFocus("ipt_todd");
  125. return false;
  126. }
  127. if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
  128. {
  129. model.setFocus("ipt_goodcd");
  130. return false;
  131. }
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  137. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  138. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재고종합조회</caption>
  139. </group>
  140. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:702px; ">
  141. <line id="line7" class="line_2" style="x1:0px; y1:581px; x2:594px; y2:581px; "/>
  142. <line id="line3" class="line_2" style="x1:0px; y1:557px; x2:594px; y2:557px; "/>
  143. <line id="line2" class="line_2" style="x1:0px; y1:533px; x2:594px; y2:533px; "/>
  144. <line id="line8" class="line_3" style="x1:0px; y1:605px; x2:594px; y2:605px; "/>
  145. <caption id="caption21" class="tit_2" style="left:5px; top:81px; width:188px; height:13px; ">입고내역</caption>
  146. <group id="group6" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  147. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  148. <button id="button4" navindex="8" class="btn1_letter2" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. fRetrevie();
  153. ]]>
  154. </script>
  155. </button>
  156. <line id="line14" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  157. <caption id="caption10" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
  158. <caption id="caption4" class="search_name" style="left:15px; top:36px; width:86px; height:17px; ">입출기간 :</caption>
  159. <caption id="caption7" class="search_name" style="left:712px; top:9px; width:93px; height:17px; ">부 서 :</caption>
  160. <select1 id="cmb_instcd" ref="/root/send/goodiolist/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:113px; height:19px; ">
  161. <choices>
  162. <itemset nodeset="/root/init/instcd">
  163. <label ref="cdnm"/>
  164. <value ref="cdid"/>
  165. </itemset>
  166. </choices>
  167. </select1>
  168. <input id="ipt_frdd" ref="/root/send/goodiolist/iofrdd" class="input_s_essential" inputtype="date" style="left:100px; top:35px; width:118px; height:19px; ">
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. ]]>
  172. </script>
  173. </input>
  174. <input id="ipt_todd" ref="/root/send/goodiolist/iotodd" class="input_s_essential" inputtype="date" style="left:238px; top:35px; width:118px; height:19px; "/>
  175. <caption id="caption11" class="search_n_b" style="left:222px; top:38px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  176. <input id="ipt_deptcd" ref="/root/send/goodiolist/deptcd" class="input_s_default" style="left:796px; top:8px; width:78px; height:19px; ">
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. if(ipt_deptcd.value.length == 0)
  180. ipt_deptnm.value = "";
  181. else
  182. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  183. "deptcd," + ipt_deptcd.value, "", "deptcd,deptnm",
  184. ipt_deptcd, "SPRPZ00200", "","");
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. <button id="button1" class="icon_search" style="left:876px; top:8px; width:16px; height:16px; ">
  190. <caption/>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. var recv_list = "deptcd,deptnm";
  194. misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
  195. model.refresh();
  196. ]]>
  197. </script>
  198. </button>
  199. <input id="ipt_deptnm" ref="/root/send/goodiolist/deptnm" class="input_fix" appearance="input" style="left:894px; top:8px; width:186px; height:19px; ">
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. if(ipt_deptnm.value.length == 0)
  203. ipt_deptcd.value = "";
  204. else
  205. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  206. "deptnm," + ipt_deptnm.value, "", "deptcd,deptnm",
  207. ipt_deptnm, "SPRPZ00200", "","");
  208. model.refresh();
  209. ]]>
  210. </script>
  211. </input>
  212. <caption id="caption9" class="search_name" style="left:381px; top:9px; width:93px; height:17px; ">물품구분 :</caption>
  213. <select1 id="cmb_goodflag" ref="/root/send/goodiolist/goodflag" class="combo_s_essential" appearance="minimal" style="left:466px; top:8px; width:133px; height:19px; ">
  214. <choices>
  215. <itemset nodeset="/root/init/goodflag">
  216. <label ref="cdnm"/>
  217. <value ref="cdid"/>
  218. </itemset>
  219. </choices>
  220. </select1>
  221. <button id="btn_searchgoodcd" class="icon_search" style="left:582px; top:36px; width:16px; height:16px; ">
  222. <caption/>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. <output id="opt_goodspec" ref="/root/send/goodiolist/goodspec" class="output_fix" appearance="output" style="left:796px; top:35px; width:78px; height:19px; "/>
  231. <input id="input9" class="input_s_essential" style="left:600px; top:35px; width:107px; height:19px; "/>
  232. <input id="ipt_goodcd" ref="/root/send/goodiolist/goodcd" class="input_s_essential" _chartype="upper" style="left:466px; top:35px; width:113px; height:19px; ">
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. if(ipt_goodcd.value.length == 0)
  236. {
  237. ipt_goodnm.value = "";
  238. opt_goodspec.value = "";
  239. opt_goodmodel.value = "";
  240. opt_prodcmpynm.value = "";
  241. }
  242. else
  243. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  244. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  245. ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag" ,"Y");
  246. model.refresh();
  247. ]]>
  248. </script>
  249. <script type="javascript" ev:event="onkeydown">
  250. <![CDATA[
  251. if (event.keyCode == 13)
  252. {
  253. ipt_goodcd.value = ipt_goodcd.currentText;
  254. ipt_goodcd.refresh();
  255. ipt_goodcd.dispatch("xforms-value-changed");
  256. }
  257. ]]>
  258. </script>
  259. </input>
  260. <caption id="caption1" class="search_name" style="left:381px; top:36px; width:86px; height:17px; ">물품코드 :</caption>
  261. <output id="opt_goodmodel" ref="/root/send/goodiolist/goodmodel" class="output_fix" appearance="output" style="left:876px; top:35px; width:96px; height:19px; "/>
  262. <input id="ipt_goodnm" ref="/root/send/goodiolist/goodnm" class="input_fix" appearance="input" style="left:600px; top:35px; width:195px; height:19px; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. if(ipt_goodnm.value.length == 0)
  266. {
  267. ipt_goodcd.value = "";
  268. opt_goodspec.value = "";
  269. opt_goodmodel.value = "";
  270. opt_prodcmpynm.value = "";
  271. }
  272. else
  273. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  274. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  275. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  276. model.refresh();
  277. ]]>
  278. </script>
  279. <script type="javascript" ev:event="onkeydown">
  280. <![CDATA[
  281. if (event.keyCode == 13)
  282. {
  283. ipt_goodnm.value = ipt_goodnm.currentText;
  284. ipt_goodnm.refresh();
  285. ipt_goodnm.dispatch("xforms-value-changed");
  286. }
  287. ]]>
  288. </script>
  289. </input>
  290. <output id="opt_prodcmpynm" ref="/root/send/goodiolist/prodcmpynm" class="output_fix" appearance="output" style="left:973px; top:35px; width:108px; height:19px; "/>
  291. </group>
  292. <line id="line15" class="line_1" style="x1:0px; y1:95px; x2:730; y2:95px; "/>
  293. <datagrid id="grd_win" nodeset="/root/main/list/goodwin/goodwinlist" caption="입고일자^번호^순번^입고유형^규격^수량^단가^금액^보조거래처^주거래처" colwidth="67, 48, 48, 72, 100, 62, 80, 73, 120, 116, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:100px; width:730; height:387px; ">
  294. <col ref="windd" format="yyyy-mm-dd"/>
  295. <col ref="winno" style="text-align:center; "/>
  296. <col ref="winseqno" style="text-align:center; "/>
  297. <col ref="iokindnm" format="#,###" style="text-align:left; "/>
  298. <col ref="goodspec"/>
  299. <col ref="winqty" style="text-align:right; "/>
  300. <col ref="winunitcost" format="#,###" style="text-align:right; "/>
  301. <col ref="winamt" format="#,###" style="text-align:right; "/>
  302. <col ref="subsuplplcenm"/>
  303. <col ref="suplplcenm"/>
  304. <col ref="instcd" visibility="hidden"/>
  305. <col ref="goodcd" visibility="hidden"/>
  306. </datagrid>
  307. <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="출고일자^번호^순번^출고유형^규격^수량^입고부서" colwidth="84, 43, 42, 75, 81, 58, 86" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:735px; top:100px; width:460px; height:387px; ">
  308. <col ref="delivedd" format="yyyy-mm-dd"/>
  309. <col ref="deliveno" style="text-align:center; "/>
  310. <col ref="deliveseqno" style="text-align:center; "/>
  311. <col ref="iokindnm"/>
  312. <col ref="goodspec"/>
  313. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  314. <col ref="windeptnm"/>
  315. </datagrid>
  316. <line id="line1" class="line_1" style="x1:735px; y1:95px; x2:1195; y2:95px; "/>
  317. <caption id="caption3" class="tit_2" style="left:740; top:81px; width:188px; height:13px; ">출고내역</caption>
  318. <datagrid id="grd_stoclist" nodeset="/root/main/list/goodstoc/goodstoclist" caption="caption1^부서^수 량" colwidth="53, 279, 225" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:599px; top:511px; width:596px; height:181px; ">
  319. <col ref="instcd" visibility="hidden"/>
  320. <col ref="stocdeptnm"/>
  321. <col ref="stocqty" style="text-align:right; "/>
  322. </datagrid>
  323. <line id="line5" class="line_1" style="x1:599px; y1:506px; x2:1195; y2:506px; "/>
  324. <caption id="caption5" class="tit_2" style="left:604px; top:492px; width:188px; height:13px; ">부서별 ONLINE 재고</caption>
  325. <output id="ss" ref="/root/main/list/goodsum/goodsumlist/brngfwrdqty" class="output_fix" appearance="output" style="left:87px; top:513px; width:140px; height:19px; text-align:right; "/>
  326. <caption id="caption13" class="tit_2" style="left:5px; top:492px; width:188px; height:13px; ">입출고 합계</caption>
  327. <line id="line6" class="line_1" style="x1:0px; y1:506px; x2:594px; y2:506px; "/>
  328. <output id="output1" ref="/root/main/list/goodsum/goodsumlist/winqty" class="output_fix" appearance="output" style="left:87px; top:537px; width:140px; height:19px; text-align:right; "/>
  329. <output id="output2" ref="/root/main/list/goodsum/goodsumlist/winamt" class="output_fix" appearance="output" style="left:230px; top:537px; width:165px; height:19px; text-align:right; "/>
  330. <output id="output3" ref="/root/main/list/goodsum/goodsumlist/deliveqty" class="output_fix" appearance="output" style="left:87px; top:561px; width:140px; height:19px; text-align:right; "/>
  331. <datagrid id="grd_goodsum" nodeset="/root/main/list/goodsum/goodsumlist" visibility="hidden" caption="이월수량^입고수량^입고금액^출고합계^재고수량" colwidth="80, 80, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:385px; top:545px; width:410px; height:95px; ">
  332. <col ref="brngfwrdqty"/>
  333. <col ref="winqty"/>
  334. <col ref="winamt"/>
  335. <col ref="deliveqty"/>
  336. <col ref="stocqty"/>
  337. </datagrid>
  338. <output id="output4" ref="/root/main/list/goodsum/goodsumlist/stocqty" class="output_fix" appearance="output" style="left:87px; top:585px; width:140px; height:19px; text-align:right; "/>
  339. <caption id="caption2" class="cell_1" style="left:0px; top:511px; width:85px; height:23px; vertical-align:middle; ">이월수량</caption>
  340. <caption id="caption16" class="cell_1" style="left:0px; top:535px; width:85px; height:23px; vertical-align:middle; ">입고합계</caption>
  341. <caption id="caption17" class="cell_1" style="left:0px; top:559px; width:85px; height:23px; vertical-align:middle; ">출고합계</caption>
  342. <caption id="caption18" class="cell_1" style="left:0px; top:583px; width:85px; height:23px; vertical-align:middle; ">재고수량</caption>
  343. </group>
  344. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  345. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  346. <caption>초기화</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. fInitialize();
  350. ]]>
  351. </script>
  352. </button>
  353. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  354. </group>
  355. </xhtml:body>
  356. </xhtml:html>