SMRST02800_품목별 입출고현황 출력.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <send>
  10. <instcd/>
  11. <goodflag/>
  12. <stocdeptcd/>
  13. <stocdeptnm/>
  14. <stocym/>
  15. <prtflag>A</prtflag>
  16. </send>
  17. <main>
  18. <goodinoutlist/>
  19. </main>
  20. </root>
  21. </instance>
  22. <script type="javascript" ev:event="xforms-ready">
  23. <![CDATA[
  24. //화면 Control을 초기화한다
  25. fInitialize();
  26. ]]>
  27. </script>
  28. <submission id="TRRST02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodinoutlist"/>
  29. </model>
  30. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  32. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  33. <script type="javascript" src="../../../mis/purccommonweb/js/PURC.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  40. function fInitialize() {
  41. model.resetInstanceNode("/root/send");
  42. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  43. // misfComboComCdListMulti("Z0007,R0025","cmb_instcd,cmb_goodflag" );
  44. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  45. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  46. model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("posdeptcd"));
  47. model.setValue(ipt_stocdeptnm.attribute("ref") , getUserInfo("posdeptnm"));
  48. var curdate = getCurrentDate();
  49. model.setValue(ipt_stocym.attribute("ref") ,curdate);
  50. misfGridInit(grd_goodinoutlist);
  51. misfMsterDetailSet(grd_goodinoutlist,null, "TRRST02801" ,"N");
  52. model.setValue("/root/send/prtflag", "A");
  53. model.refresh();
  54. }
  55. //필수항목 체크하는 메소드
  56. function fCheckRetrieveData()
  57. {
  58. if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
  59. if(!isRequiredControls("cmb_goodflag") )return false; // 물품구분
  60. if(!isRequiredControls("ipt_stocym") )return false; // 기준년월
  61. //if(!isRequiredControls("ipt_delivetodd") )return false; // 출고종료일자
  62. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  63. }
  64. ]]>
  65. </script>
  66. </xhtml:head>
  67. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  68. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  69. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">품목별 입출고현황 출력</caption>
  70. </group>
  71. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  72. <caption id="caption21" class="tit_2" style="left:5px; top:83px; width:216px; height:13px; ">품목별 입출고현황</caption>
  73. <group id="group6" style="left:0px; top:13px; width:1195px; height:61; vertical-align:top; ">
  74. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  75. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  76. <caption id="cap_stocym" class="search_name" style="left:323px; top:9px; width:93px; height:17px; ">기 준 월 :</caption>
  77. <caption id="cap_prtflag" class="search_name" style="left:595px; top:9px; width:112px; height:17px; ">출력구분 :</caption>
  78. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:141px; height:19px; ">
  79. <choices>
  80. <itemset nodeset="/root/init/instcd">
  81. <label ref="cdnm"/>
  82. <value ref="cdid"/>
  83. </itemset>
  84. </choices>
  85. </select1>
  86. <input id="ipt_stocym" ref="/root/send/stocym" class="input_s_essential" inputtype="date" maxlength="4" format="yyyy-mm" style="left:406px; top:8px; width:105px; height:19px; "/>
  87. <select1 id="rdo_prtflag" ref="/root/send/prtflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:683px; top:10px; width:160px; height:20px; border-style:none; ">
  88. <choices>
  89. <item>
  90. <label>요약내역</label>
  91. <value>A</value>
  92. </item>
  93. <item>
  94. <label>상세내역</label>
  95. <value>B</value>
  96. </item>
  97. </choices>
  98. </select1>
  99. <button id="button3" class="icon_search" style="left:490px; top:36px; width:16px; height:16px; ">
  100. <caption/>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. var recv_list = "stocdeptcd,stocdeptnm";
  104. misfOpenPopUpList("02", ipt_stocdeptcd,"", recv_list) ;
  105. model.refresh();
  106. ]]>
  107. </script>
  108. </button>
  109. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" class="input_s_essential" style="left:406px; top:34px; width:78px; height:19px; ">
  110. <script type="javascript" ev:event="xforms-value-changed">
  111. <![CDATA[
  112. misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </input>
  117. <input id="ipt_stocdeptnm" ref="/root/send/stocdeptnm" class="input_s_essential" style="left:510px; top:34px; width:172px; height:19px; "/>
  118. <caption id="caption1" class="search_name" style="left:321px; top:35px; width:90px; height:17px; ">부 서 :</caption>
  119. <caption id="cap_goodflag" class="search_name" style="left:15px; top:35; width:93px; height:17px; ">물품구분 :</caption>
  120. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:34px; width:141px; height:19px; ">
  121. <choices>
  122. <itemset nodeset="/root/init/goodflag">
  123. <label ref="cdnm"/>
  124. <value ref="cdid"/>
  125. </itemset>
  126. </choices>
  127. </select1>
  128. <button id="button4" class="btn1_letter2" navindex="8" style="left:1125px; top:20px; width:56px; height:22px; text-align:left; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. /*
  133. misfGridInit(grd_goodinoutlist);
  134. if(fCheckRetrieveData(false) == false)return;
  135. //misfGridInit(grd_outputsumlist)
  136. misfMsterDetailRetrieve();
  137. */
  138. ]]>
  139. </script>
  140. </button>
  141. <line id="line14" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  142. </group>
  143. <line id="line15" class="line_1" style="x1:0px; y1:98px; x2:1195px; y2:98px; "/>
  144. <datagrid id="grd_goodinoutlist" nodeset="/root/main/goodinoutlist" caption="물품코드^품명 및 규격^단 위^단 가^전월재고^전월재고^입고량^입고량^출고량^출고량^재고량^재고량|물품코드^품명 및 규격^단 위^단 가^수량^금액^수량^금액^수량^금액^수량^금액" colsep="^" colwidth="80, 320, 100, 120, 60, 70, 60, 70, 60, 70, 60, 70" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:108px; width:1195px; height:631px; ">
  145. <col ref="goodcd" style="text-align:center; "/>
  146. <col ref="goodnm"/>
  147. <col ref="purcunit" style="text-align:right; "/>
  148. <col ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  149. <col ref="brngfwrdqty" style="text-align:right; "/>
  150. <col ref="brngfwrdamt" format="#,###.##" style="text-align:right; "/>
  151. <col ref="abwinqty" style="text-align:right; "/>
  152. <col ref="abwinamt" format="#,###.##" style="text-align:right; "/>
  153. <col ref="delivedeptqty" style="text-align:right; "/>
  154. <col ref="deliveamt" format="#,###.##" style="text-align:right; "/>
  155. <col ref="abstocqty" style="text-align:right; "/>
  156. <col ref="stocamt" format="#,###.##" style="text-align:right; "/>
  157. </datagrid>
  158. <button id="button1" class="btn2_letter6" style="left:1108px; top:77px; width:86px; height:19px; ">
  159. <caption>엑셀파일저장</caption>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. misfSaveExcel(grd_goodinoutlist , "품목별입출고현황출력");
  163. ]]>
  164. </script>
  165. </button>
  166. <button id="button2" class="btn2_letter6" style="left:1020px; top:77px; width:86px; height:19px; ">
  167. <caption>엑셀파일열기</caption>
  168. </button>
  169. </group>
  170. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  171. <button id="button46" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; font-size:10pt; ">
  172. <caption>출력</caption>
  173. </button>
  174. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  175. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  176. <caption>초기화</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. fInitialize();
  180. ]]>
  181. </script>
  182. </button>
  183. </group>
  184. </xhtml:body>
  185. </xhtml:html>