SMRST06300_자재재고조회.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>월수불증감내역</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mtallist>
  11. <acntflagnm/>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <goodmodel/>
  16. <deliveunit/>
  17. <trnsqty/>
  18. <inputqty/>
  19. <outputqty/>
  20. <endmonqty/>
  21. <inunitcost/>
  22. <trnsamt/>
  23. <inputamt/>
  24. <outputamt/>
  25. <endmonamt/>
  26. <cmt/>
  27. <instcd/>
  28. <acntflag/>
  29. </mtallist>
  30. <cond>
  31. <instcd/>
  32. <stkmonth/>
  33. <acntflagnm/>
  34. <goodcd/>
  35. <goodnm/>
  36. <acntflag/>
  37. <purcflag/>
  38. </cond>
  39. </main>
  40. <send>
  41. <instcd/>
  42. <stkmonth/>
  43. <acntflagnm/>
  44. <goodcd/>
  45. <goodnm/>
  46. <acntflag/>
  47. </send>
  48. <init>
  49. </init>
  50. <temp/>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fInitialize() ;
  56. var acntflag = model.property("acntflag");
  57. var stkmonth = model.property("stkmonth");
  58. var instcd = model.property("instcd");
  59. var acntflagnm = model.property("acntflagnm");
  60. if(acntflag != "") {
  61. model.setValue(ipt_acntflag.attribute("ref"), acntflag);
  62. }
  63. if(stkmonth != "") {
  64. model.setValue(ipt_stkmonth.attribute("ref"), stkmonth);
  65. }
  66. if(instcd != "") {
  67. model.setValue(cmb_instcd.attribute("ref"), instcd);
  68. }
  69. if(acntflagnm != "") {
  70. model.setValue(ipt_acntflagnm.attribute("ref"), acntflagnm);
  71. }
  72. ipt_acntflag.refresh();
  73. ipt_stkmonth.refresh();
  74. cmb_instcd.refresh();
  75. ipt_acntflagnm.refresh();
  76. if(acntflag != "") {
  77. btn_search.dispatch("DOMActivate");
  78. }
  79. ]]>
  80. </script>
  81. <submission id="TRRST06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mtallist"/>
  82. <submission id="TRRST06302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mtallist"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript">
  92. <![CDATA[
  93. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  94. function fInitialize()
  95. {
  96. misfComboComCdListMulti("R0111","cmb_purcflag");
  97. rszfComboAppendBlankChild("cmb_purcflag");
  98. rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"%","B");
  99. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  100. cmb_instcd.refresh();
  101. model.setValue(ipt_stkmonth.attribute("ref"), getCurrentDate().substr(0,6));
  102. ipt_stkmonth.refresh();
  103. }
  104. // --------------------------------------------------------------
  105. // 불출 재고 현황 Excel 저장처리
  106. // --------------------------------------------------------------
  107. function fSaveExcel() {
  108. var files = window.fileDialog("save","|", true, "불출 재고 현황_"+getCurrentDate(),"xls","Excel Files(*.xls)|*.xls");
  109. // var filesarr= files.split("\\");
  110. // var filenm = filesarr[filesarr.length-1];
  111. // var filepath= files.split(filenm);
  112. if (files != "") {
  113. var sendPath = "/root/main/cond/";
  114. var ptxt = "";
  115. ptxt += "&instcd=" + model.getValue(sendPath+"instcd" ); // 기관코드
  116. ptxt += "&stkmonth=" + model.getValue(sendPath+"stkmonth" ); // 수불년월
  117. ptxt += "&goodcd=" + model.getValue(sendPath+"goodcd" ); // 물품코드
  118. ptxt += "&acntflag=" + model.getValue(sendPath+"acntflag" ); // 계정구분
  119. ptxt += "&purcflag=" + model.getValue(sendPath+"purcflag" ); // 구매구분
  120. ptxt += "&acntflagnm=" + model.getValue(sendPath+"acntflagnm"); // 계정구분명
  121. ptxt += "&goodnm=" + model.getValue(sendPath+"goodnm" ); // 물품명
  122. //
  123. // alert( ptxt);
  124. try {
  125. model.download(getActionURL("TRRST06302")+ptxt, files, false);
  126. } catch(e) {
  127. }
  128. }
  129. }
  130. ]]>
  131. </script>
  132. </xhtml:head>
  133. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  134. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  135. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">불출재고현황</caption>
  136. </group>
  137. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  138. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:51px; "/>
  139. <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:6px; width:120px; height:19px; ">
  140. <choices>
  141. <itemset nodeset="/root/init/instcd">
  142. <label ref="cdnm"/>
  143. <value ref="cdid"/>
  144. </itemset>
  145. </choices>
  146. </select1>
  147. <caption id="caption14" class="search_name" style="left:5px; top:6px; width:91px; height:17px; ">기관코드 :</caption>
  148. <caption id="caption31" class="search_name" style="left:230px; top:6px; width:86px; height:17px; ">재고년월 :</caption>
  149. <line id="line14" class="line_4" style="x1:1110px; y1:19px; x2:1110px; y2:41px; "/>
  150. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:20px; width:56px; height:22px; text-align:left; ">
  151. <caption>조회</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. model.setValue(ipt_acntflag.attribute("ref"), "");
  155. ipt_acntflag.refresh();
  156. model.copyNode("/root/send", "/root/main/cond");
  157. submit("TRRST06301");
  158. ]]>
  159. </script>
  160. </button>
  161. <caption id="caption5" class="tit_2" style="left:5px; top:60px; width:110px; height:14px; ">불출재고현황</caption>
  162. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  163. <input id="ipt_stkmonth" ref="/root/main/cond/stkmonth" class="input_s_essential" inputtype="date" maxlength="6" format="yyyy-mm" style="left:320px; top:6px; width:130px; height:19px; "/>
  164. <caption id="caption1" class="search_name" style="left:230px; top:29px; width:83px; height:17px; ">계 정 명 :</caption>
  165. <input id="ipt_acntflagnm" ref="/root/main/cond/acntflagnm" class="input_default" style="left:320px; top:29px; width:130px; height:19px; "/>
  166. <caption id="caption2" class="search_name" style="left:500px; top:6px; width:86px; height:17px; ">물품코드 :</caption>
  167. <datagrid id="grd_mtallist" nodeset="/root/main/mtallist" caption="계정명^물품코드^물품코드^물품명^규격^모델^단위^전월수량^입고수량^출고수량^재고수량^단가^전월금액^입고금액^출고금액^재고금액^비고^기관코드^계정코드" colsep="^" colwidth="100, 80, 26, 170, 100, 100, 57, 60, 60, 60, 60, 79, 100, 100, 100, 100, 100, 100, 100" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:80px; width:1195px; height:660px; ">
  168. <col ref="acntflagnm"/>
  169. <col ref="goodcd"/>
  170. <col ref="allsizespecid"/>
  171. <col ref="goodnm"/>
  172. <col ref="goodspec"/>
  173. <col ref="goodmodel"/>
  174. <col ref="deliveunit"/>
  175. <col ref="trnsqty" format="(-)#,###" style="text-align:right; "/>
  176. <col ref="inputqty" format="(-)#,###" style="text-align:right; "/>
  177. <col ref="outputqty" format="(-)#,###" style="text-align:right; "/>
  178. <col ref="endmonqty" format="(-)#,###" style="text-align:right; "/>
  179. <col ref="inunitcost" format="(-)#,###" style="text-align:right; "/>
  180. <col ref="trnsamt" format="(-)#,###" style="text-align:right; "/>
  181. <col ref="inputamt" format="(-)#,###" style="text-align:right; "/>
  182. <col ref="outputamt" format="(-)#,###" style="text-align:right; "/>
  183. <col ref="endmonamt" format="(-)#,###" style="text-align:right; "/>
  184. <col ref="cmt" visibility="hidden"/>
  185. <col ref="instcd" visibility="hidden"/>
  186. <col ref="acntflag" visibility="hidden"/>
  187. </datagrid>
  188. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" style="left:590px; top:6px; width:100px; height:19px; "/>
  189. <caption id="caption3" class="search_name" style="left:500px; top:29px; width:83px; height:17px; ">물 품 명 :</caption>
  190. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" style="left:590px; top:29px; width:160px; height:19px; "/>
  191. <input id="ipt_acntflag" ref="/root/main/cond/acntflag" visibility="hidden" style="left:315px; top:55px; width:100px; height:19px; "/>
  192. <button id="button1" class="btn2_letter4" style="left:1130px; top:55px; width:64px; height:19px; ">
  193. <caption>엑셀저장</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. var fileName = window.fileDialog("save", ",", false, "자재재고조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  197. if (fileName != "")
  198. {
  199. grd_mtallist.saveExcel(fileName, "자재수불증감분석");
  200. }
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="caption10" class="search_name" style="left:810px; top:29px; width:87px; height:17px; ">구매구분 :</caption>
  205. <select1 id="cmb_purcflag" ref="/root/main/cond/purcflag" class="combo_default" appearance="minimal" style="left:895px; top:29px; width:110px; height:19px; ">
  206. <choices>
  207. <itemset nodeset="/root/init/purcflag">
  208. <label ref="cdnm"/>
  209. <value ref="cdid"/>
  210. </itemset>
  211. </choices>
  212. <script type="javascript" ev:event="xforms-value-changed">
  213. <![CDATA[
  214. btn_search.dispatch("DOMActivate");
  215. ]]>
  216. </script>
  217. </select1>
  218. </group>
  219. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  220. <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  221. <caption>리스트출력</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. fSaveExcel() ; // 불출 재고 현황 Excel 저장처리
  225. // exeReportPreview("RPRST05301", "XMLSTR");
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  230. </group>
  231. </xhtml:body>
  232. </xhtml:html>