SMRSG06000_(재고자산)BarCode출력.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>재고자산 BarCode 출력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <stokasetcnfminfo>
  12. <stokasetcnfmlist/>
  13. </stokasetcnfminfo>
  14. <cpstokasetcnfm>
  15. <cpstokasetcnfmlist>
  16. <goodnm/>
  17. <allsizespecidnm/>
  18. <goodmodel/>
  19. <prodcmpynm/>
  20. <subcustnm/>
  21. <goodcd2/>
  22. <barcode/>
  23. </cpstokasetcnfmlist>
  24. </cpstokasetcnfm>
  25. </list>
  26. <barcdprntsetup>
  27. <prntkind>2</prntkind>
  28. <commkind>02</commkind>
  29. <setupval/>
  30. <comm/>
  31. <databit>8</databit>
  32. <stopbit>1</stopbit>
  33. <baudrate>9600</baudrate>
  34. <parity>n</parity>
  35. </barcdprntsetup>
  36. </main>
  37. <send>
  38. <search>
  39. <execyymm/>
  40. <instcd/>
  41. <goodflag>U</goodflag>
  42. <lrgcd/>
  43. <mdlcd/>
  44. <goodcd/>
  45. <goodnm/>
  46. <purcflag/>
  47. <stocmngtflag/>
  48. </search>
  49. <stokasetcnfmlist/>
  50. </send>
  51. <init>
  52. </init>
  53. <temp/>
  54. </root>
  55. </instance>
  56. <submission id="TRRPZ00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  57. <submission id="TXRSG06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stokasetcnfmlist" resultref="/root/temp"/>
  58. <submission id="TRRSG06002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/stokasetcnfminfo"/>
  59. </model>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. //화면 Control을 초기화한다
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFC00700.js"/>
  73. <script type="javascript" src="../../../mis/purcstatsweb/js/SMRSG06000.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  80. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">재고자산 BarCode 출력</caption>
  82. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  83. </group>
  84. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:764px; ">
  85. <line id="line1" class="line_1" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
  86. <caption id="caption21" class="tit_2" style="left:5px; top:86px; width:143px; height:13px; ">물품 정보</caption>
  87. <button id="btn_allcancel" class="btn2_letter5" style="left:1054px; top:83px; width:75px; height:19px; ">
  88. <caption>전체 취소</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. for (var i=grd_stokasetcnfmlist.fixedRows; i<grd_stokasetcnfmlist.rows; i++){
  92. grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("chk")) = "N";
  93. grd_stokasetcnfmlist.rowStatus(i) = 0;
  94. }
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_allselect" class="btn2_letter5" style="left:969px; top:83px; width:75px; height:19px; ">
  99. <caption>전체 선택</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. for (var i=grd_stokasetcnfmlist.fixedRows; i<grd_stokasetcnfmlist.rows; i++){
  103. grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("chk")) = "Y";
  104. grd_stokasetcnfmlist.rowStatus(i) = 1;
  105. }
  106. ]]>
  107. </script>
  108. </button>
  109. <button id="btn_print" class="btn2_letter2" style="left:1139px; top:83px; width:42px; height:19px; ">
  110. <caption>출력</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. var updtdata = getGridUpdateData(grd_stokasetcnfmlist);
  114. if (updtdata == "" || grd_stokasetcnfmlist.rows == 0)
  115. {
  116. messageBox("출력할 데이터가","I004");
  117. return;
  118. }
  119. var retMes = messageBox("출력 하시겠습니까?", "Q999");
  120. if ( retMes != 6) {
  121. return;
  122. }
  123. model.setValue("/root/send/stokasetcnfmlist", updtdata);
  124. submit("TXRSG06102");
  125. fStokAsetLabel_DrvType();
  126. btn_search.dispatch("DOMActivate");
  127. ]]>
  128. </script>
  129. </button>
  130. <group id="grp_search" style="left:0px; top:7px; width:1195px; height:63px; vertical-align:top; ">
  131. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  132. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  133. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  134. <caption>조회</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. model.resetInstanceNode("/root/main/list/stokasetcnfminfo/stokasetcnfmlist");
  138. model.setValue("/root/send/search/execyymm", model.getValue("/root/send/search/execyymm").substr(0, 6));
  139. submit("TRRSG06002");
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </button>
  144. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:130px; height:19px; ">
  145. <choices>
  146. <itemset nodeset="/root/main/init">
  147. <label ref="cnstnm"/>
  148. <value ref="cnstcd"/>
  149. </itemset>
  150. </choices>
  151. <script type="javascript" ev:event="xforms-value-changed">
  152. <![CDATA[
  153. fSetPrintUseCheck();
  154. ]]>
  155. </script>
  156. </select1>
  157. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  158. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:344px; top:11px; width:161px; height:19px; ">
  159. <choices>
  160. <item>
  161. <label>의료비품</label>
  162. <value>U</value>
  163. </item>
  164. <item>
  165. <label>의료소모품</label>
  166. <value>Y</value>
  167. </item>
  168. <item>
  169. <label>공급실물품</label>
  170. <value>T</value>
  171. </item>
  172. <item>
  173. <label>일반소모품</label>
  174. <value>Z</value>
  175. </item>
  176. </choices>
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  180. addComboItem( "cmb_lrgcd", "전체", "", "above");
  181. cmb_mdlcd.value='';
  182. model.refresh();
  183. ]]>
  184. </script>
  185. </select1>
  186. <caption id="cap_goodflag" class="search_name" style="left:250px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  187. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:344px; top:38px; width:161px; height:19px; ">
  188. <choices>
  189. <itemset>
  190. <label/>
  191. <value/>
  192. </itemset>
  193. </choices>
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  197. cmb_mdlcd.dispatch("xforms-value-changed");
  198. addComboItem( "cmb_mdlcd", "전체", "", "above");
  199. model.refresh();
  200. ]]>
  201. </script>
  202. </select1>
  203. <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:610px; top:40px; width:150px; height:19px; ">
  204. <choices>
  205. <itemset>
  206. <label/>
  207. <value/>
  208. </itemset>
  209. </choices>
  210. </select1>
  211. <caption id="caption7" class="search_name" style="left:250px; top:39px; width:88px; height:17px; ">대 분 류 :</caption>
  212. <caption id="caption8" class="search_name" style="left:516px; top:39px; width:88px; height:17px; ">중 분 류 :</caption>
  213. <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="input_search" style="left:730px; top:10px; width:160px; height:19px; "/>
  214. <button id="btn_goodcd" class="icon_search" style="left:711px; top:10px; width:16px; height:16px; ">
  215. <caption/>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  219. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  220. //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,reqflag","cmb_instcd,cmb_goodflag,cmb_reqflag");
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </button>
  225. <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:610px; top:10px; width:95px; height:19px; "/>
  226. <caption id="caption1" class="search_name" style="left:518px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
  227. <input id="ipt_execyymm" ref="/root/send/search/execyymm" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:104px; top:40px; width:130px; height:19px; "/>
  228. <caption id="caption15" class="search_name" style="left:10px; top:39px; width:88px; height:17px; ">실사년월 :</caption>
  229. <select1 id="cmb_purcflag" ref="/root/send/search/purcflag" appearance="minimal" style="left:995px; top:10px; width:101px; height:19px; ">
  230. <choices>
  231. <itemset nodeset="/root/init/purcflag">
  232. <label ref="cdnm"/>
  233. <value ref="cdid"/>
  234. </itemset>
  235. </choices>
  236. </select1>
  237. <caption id="caption2" class="search_name" style="left:905px; top:10px; width:86px; height:17px; ">구매구분 :</caption>
  238. <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" appearance="minimal" style="left:896px; top:40px; width:200px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/stocmngtflag">
  241. <label ref="cdnm"/>
  242. <value ref="cdid"/>
  243. </itemset>
  244. </choices>
  245. </select1>
  246. <caption id="caption3" class="search_name" style="left:775px; top:40px; width:112px; height:17px; ">재고관리기준 :</caption>
  247. </group>
  248. <button id="btn_prntset" class="btn3_letter5" visibility="visible" style="left:95px; top:80px; width:92px; height:22px; ">
  249. <caption>프린터설정</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. fSetPrint();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_init" class="btn4_letter3" style="left:885px; top:80px; width:68px; height:22px; ">
  257. <caption>초기화</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. fInitialize();
  261. ]]>
  262. </script>
  263. </button>
  264. <datagrid id="grd_cpstokasetcnfmlist" nodeset="/root/main/list/cpstokasetcnfm/cpstokasetcnfmlist" visibility="hidden" caption="물품명^규격^모델^제조원^거래처^물품코드^바코드" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:620px; width:640px; height:105px; ">
  265. <col ref="goodnm"/>
  266. <col ref="allsizespecidnm"/>
  267. <col ref="goodmodel"/>
  268. <col ref="prodcmpynm"/>
  269. <col ref="subcustnm"/>
  270. <col ref="goodcd2"/>
  271. <col ref="barcode"/>
  272. </datagrid>
  273. <datagrid id="grd_stokasetcnfmlist" nodeset="/root/main/list/stokasetcnfminfo/stokasetcnfmlist" class="datagrid3" caption="선택^실사년월^기관코드^물품구분^물품코드^물품코드^물품명^규격^모델^제조원^주거래처명^보조거래처명^현재고수량^출력 여부" colsep="^" colwidth="37, 3, 1, 2, 80, 25, 285, 160, 130, 100, 100, 100, 69, 62" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:110px; width:1194px; height:620px; font-weight:normal; text-align:center; ">
  274. <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:left; "/>
  275. <col ref="execyymm" visibility="hidden" style="text-align:left; "/>
  276. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  277. <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
  278. <col ref="goodcd" style="text-align:center; "/>
  279. <col ref="allsizespecid" style="text-align:center; "/>
  280. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  281. <col ref="allsizespecidnm" style="text-align:left; padding-left:10; "/>
  282. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  283. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  284. <col ref="maincustnm" style="text-align:left; padding-left:10; "/>
  285. <col ref="subcustnm" style="text-align:left; padding-left:10; "/>
  286. <col ref="totstocqty" format="#,###" style="text-align:right; "/>
  287. <col checkvalue="Y,N" disabled="true" ref="barcdprintyn" type="checkbox"/>
  288. <script type="javascript" ev:event="onclick">
  289. <![CDATA[
  290. if (grd_stokasetcnfmlist.col == grd_stokasetcnfmlist.colRef("chk")){
  291. var chk;
  292. chk = grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk"));
  293. if (chk == "Y"){
  294. grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 1;
  295. }else{
  296. grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 0;
  297. }
  298. }
  299. ]]>
  300. </script>
  301. </datagrid>
  302. </group>
  303. </xhtml:body>
  304. </xhtml:html>