SMAED00700_재고입출고현황.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAED00700_재고 입출고 현황
  4. * 설 명 : 치기공
  5. * 설 계 자 : 최예원
  6. * 작 성 자 : 최예원
  7. * 작 성 일 : 2011.01.24
  8. * 수정이력 : 2011.01.24
  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. <inoutgbcdlist>
  20. <item>
  21. <cdid>1</cdid>
  22. <cdnm>입 고</cdnm>
  23. </item>
  24. <item>
  25. <cdid>2</cdid>
  26. <cdnm>출 고</cdnm>
  27. </item>
  28. </inoutgbcdlist>
  29. <inoutlst>
  30. <item>
  31. <stockdd/>
  32. <acptno/>
  33. <pid/>
  34. <hngnm/>
  35. <calcscorcd/>
  36. <metalcd/>
  37. <rcptamt/>
  38. <stockbqty/>
  39. <inqty/>
  40. <outqty/>
  41. <stockaqty/>
  42. <bigo/>
  43. <cnclyn/>
  44. </item>
  45. </inoutlst>
  46. </main>
  47. <send>
  48. <srchfromdd/>
  49. <srchtodd/>
  50. <srchmetalcd/>
  51. <srchinoutgb/>
  52. <basecdflag/>
  53. <globalinstance>
  54. <instance1/>
  55. </globalinstance>
  56. </send>
  57. <init>
  58. <combobscdlst/>
  59. </init>
  60. <hidden/>
  61. <temp/>
  62. <rexprnt>
  63. <inoutlst>
  64. <srchsearch/>
  65. </inoutlst>
  66. </rexprnt>
  67. </root>
  68. </instance>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
  73. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  74. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  75. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fGetScreenInit();
  79. ]]>
  80. </script>
  81. <submission id="TRAVB00001"/>
  82. <submission id="TRAVT02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/benflist"/>
  83. <submission id="TRAVT01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dntglist"/>
  84. <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
  85. <submission id="TRAED00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eqmtlist"/>
  86. <submission id="TRAED00700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/inoutlst"/>
  87. </model>
  88. <script type="javascript">
  89. <![CDATA[
  90. // 화면 초기화
  91. function fGetScreenInit(){
  92. aezfSetSuppDeptcd();
  93. // 금속종류 코드 LIST(대분류)
  94. model.setValue("/root/send/basecdflag", "H");
  95. submit("TRAED00103");
  96. model.setValue("/root/send/srchfromdd", getCurrentDate());
  97. model.setValue("/root/send/srchtodd", getCurrentDate());
  98. addComboItem("cmb_metalcd", "전 체", "", "above");
  99. cmb_metalcd.value = "";
  100. addComboItem("cmb_inoutgb", "전 체", "", "above");
  101. cmb_inoutgb.value = "";
  102. model.refresh();
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,1194;2,784;1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  109. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">치기공 재고 입출고 현황</caption>
  110. </group>
  111. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  112. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:210px; height:14px; ">치기공 재고 입출고 현황 리스트</caption>
  113. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  114. <datagrid id="dtg_inoutlst" nodeset="/root/main/inoutlst/item" scroll="auto" caption="입출고 일자^번 호^환자번호^성 명^처방코드^금속^수납금액^이전 재고량^입고량/반납량^출고량/사용량^이후 재고량^비 고^취소여부" colsep="^" colwidth="129, 80, 80, 80, 90, 80, 80, 80, 100, 100, 200, 60" dataheight="23" defaultrows="3" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:76px; width:1194px; height:664px; text-align:center; ">
  115. <col disabled="true" ref="stockdd" format="yyyy-mm-dd hh:nn:ss"/>
  116. <col disabled="true" ref="acptno"/>
  117. <col ref="pid" type="output"/>
  118. <col ref="hngnm" type="output"/>
  119. <col ref="calcscorcd" type="output"/>
  120. <col disabled="true" ref="metalcd" type="combo" style="text-align:right; padding-right:15; ">
  121. <choices>
  122. <itemset nodeset="/root/main/eqmtlist/item">
  123. <label ref="basecdflagdesc"/>
  124. <value ref="basecd"/>
  125. </itemset>
  126. </choices>
  127. </col>
  128. <col ref="rcptamt" type="output" style="text-align:right; padding-right:15; "/>
  129. <col ref="stockbqty" type="output" style="text-align:right; padding-right:15; "/>
  130. <col ref="inqty" type="output" style="text-align:right; padding-right:15; "/>
  131. <col ref="outqty" type="output" style="text-align:right; padding-right:15; "/>
  132. <col ref="stockaqty" type="output" style="text-align:right; padding-right:15; "/>
  133. <col ref="bigo" type="output" style="text-align:left; padding-left:5; "/>
  134. <col ref="cnclyn" type="output"/>
  135. <script type="javascript" ev:event="onaftersort">
  136. <![CDATA[
  137. dtg_inoutlst.gridToInstance();
  138. ]]>
  139. </script>
  140. </datagrid>
  141. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  142. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  143. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:120px; height:17px; ">입출고 일자 :</caption>
  144. <caption id="caption5" class="search_no_b" style="left:227px; top:9px; width:12px; height:17px; ">~</caption>
  145. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  146. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:124px; top:8px; width:100px; height:19px; "/>
  147. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:242px; top:8px; width:100px; height:19px; "/>
  148. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. if( model.getValue("/root/send/srchfromdd") == ""){
  153. messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  154. return;
  155. }
  156. if( model.getValue("/root/send/srchtodd") == "" ){
  157. messageBox("조회기간", "E013", "입력 후 다시 조회하세요.");
  158. return;
  159. }
  160. if( submit("TRAED00700") ){
  161. var rows = dtg_inoutlst.rows
  162. if( rows > 1){
  163. // model.setValue(/root/main/dntglist/item/partcode)
  164. }
  165. }
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <caption id="caption3" class="search_name" style="left:360px; top:9px; width:75px; height:17px; ">금 속 :</caption>
  171. <caption id="caption4" class="search_name" visibility="hidden" style="left:525px; top:9px; width:75px; height:17px; ">구 분 :</caption>
  172. <select1 id="cmb_inoutgb" ref="/root/send/srchinoutgb" class="combo_search" visibility="hidden" appearance="minimal" style="left:600px; top:8px; width:70px; height:19px; ">
  173. <choices>
  174. <itemset nodeset="/root/main/inoutgbcdlist/item">
  175. <label ref="cdnm"/>
  176. <value ref="cdid"/>
  177. </itemset>
  178. </choices>
  179. </select1>
  180. <select1 id="cmb_metalcd" ref="/root/send/srchmetalcd" class="combo_search" appearance="minimal" style="left:435px; top:8px; width:70px; height:19px; ">
  181. <choices>
  182. <itemset nodeset="/root/main/eqmtlist/item">
  183. <label ref="basecdflagdesc"/>
  184. <value ref="basecd"/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. </group>
  189. <button id="btn_excsave" class="btn2_letter4" style="left:1122px; top:49px; width:64px; height:19px; ">
  190. <caption>엑셀저장</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  194. if (filename != "")
  195. {
  196. dtg_inoutlst.saveExcel(filename);
  197. }
  198. ]]>
  199. </script>
  200. </button>
  201. </group>
  202. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  203. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  204. <caption>출력</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button2" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
  211. <caption>출력</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var cnt = getNodesetCount("/root/main/inoutlst/item");
  215. for( var i = 1; i <= cnt; i++){
  216. model.makeNode("/root/rexprnt/inoutlst/item[" + i + "]");
  217. model.copyNode("/root/rexprnt/inoutlst/item[" + i + "]", "/root/main/inoutlst/item["+ i +"]");
  218. model.setValue("/root/rexprnt/inoutlst/item[" + i + "]/stockdd", dtg_inoutlst.labelMatrix(i, dtg_inoutlst.colRef("stockdd")));
  219. model.setValue("/root/rexprnt/inoutlst/item[" + i + "]/metalcd", dtg_inoutlst.labelMatrix(i, dtg_inoutlst.colRef("metalcd")));
  220. }
  221. var srchtitle = "";
  222. srchtitle = "▣ 입출고 일자 : " + ipt_fromdd.label + " ~ " + ipt_todd.label ;
  223. if( cmb_metalcd.value != "" ){
  224. srchtitle = srchtitle + " ▣ 금 속 : " + cmb_metalcd.label ;
  225. }
  226. if( cmb_inoutgb.value != "" ){
  227. srchtitle = srchtitle + " ▣ 구 분 : " + cmb_inoutgb.label ;
  228. }
  229. model.setValue("/root/rexprnt/inoutlst/srchsearch", srchtitle );
  230. model.refresh();
  231. exeReportPreview("RPAED00700", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  232. model.removeNodeset("/root/rexprnt/inoutlst/item");
  233. model.resetInstanceNode("/root/rexprnt/inoutlst/srchsearch");
  234. ]]>
  235. </script>
  236. </button>
  237. </group>
  238. </xhtml:body>
  239. </xhtml:html>