SMRST00901_기간별 약품 입고 현황(약국).xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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. <init/>
  10. <send>
  11. <sendlist>
  12. <instcd/>
  13. <goodflag/>
  14. <stocym/>
  15. <tostocym/>
  16. <mngtcls/>
  17. </sendlist>
  18. </send>
  19. <main>
  20. <stocpropertylist>
  21. </stocpropertylist>
  22. </main>
  23. <temp/>
  24. <hidden/>
  25. </root>
  26. </instance>
  27. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  28. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  29. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fInitialize();
  36. misfGridInit(grd_stocpropertylist);
  37. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  38. misfMsterDetailSet(grd_stocpropertylist,null,"TRRST00901","Y");
  39. //화면 권한 설정
  40. // btn_save.disabled = !(checkAuth("X"));
  41. btn_prt.disabled= !(checkAuth("P"));
  42. model.refresh();
  43. ]]>
  44. </script>
  45. <submission id="TRRST00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/stocpropertylist"/>
  46. </model>
  47. <script type="javascript">
  48. <![CDATA[
  49. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  50. function fInitialize() {
  51. model.removeNodeset("/root/main/stocpropertylist");
  52. model.resetInstanceNode("/root/send");
  53. misfComboComCdList("030M0003",cmb_mngtcls,"Y");
  54. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  55. var curdd = getCurrentDate();
  56. model.setValue(ipt_stocym.attribute("ref") ,curdd.substr(0,6) );
  57. model.setValue(ipt_tostocym.attribute("ref") ,curdd.substr(0,6) );
  58. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  59. model.setValue(opt_goodflag.attribute("ref") ,"PH" );
  60. model.refresh();
  61. }
  62. ]]>
  63. </script>
  64. </xhtml:head>
  65. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  66. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  67. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:209px; height:14px; ">기간별 약품입고 현황(약품)</caption>
  68. </group>
  69. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  70. <caption id="caption21" class="tit_2" style="left:5px; top:57px; width:211px; height:13px; ">기간별 약품입고 현황</caption>
  71. <group id="group6" style="left:0px; top:13px; width:1195px; height:35px; vertical-align:top; ">
  72. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  73. <caption id="caption10" class="search_name" style="left:353px; top:9px; width:93px; height:17px; ">마 감 월 :</caption>
  74. <caption id="caption7" class="search_name" style="left:15px; top:9; width:93px; height:17px; ">기관코드 :</caption>
  75. <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:8px; width:141px; height:19px; text-align:center; ">
  76. <choices>
  77. <itemset>
  78. <label/>
  79. <value/>
  80. </itemset>
  81. </choices>
  82. </select1>
  83. <input id="ipt_stocym" ref="/root/send/sendlist/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:435px; top:8px; width:100px; height:19px; text-align:center; "/>
  84. <line id="line18" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-left-style:solid; "/>
  85. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  86. <caption>조회</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. // submit("TRRST00800");
  90. //기관코드체크
  91. var null_check = cmb_instcd.value;
  92. /*
  93. if( null_check=="") {
  94. messageBox("기관코드를","C002");
  95. return;
  96. null_check=cmb_goodflag.value;
  97. } else if(null_check=="") {
  98. messageBox("물품청구 구분","C002");
  99. return;
  100. }
  101. */
  102. submit("TRRST00902");
  103. // misfMsterDetailRetrieve();
  104. ]]>
  105. </script>
  106. </button>
  107. <output id="opt_goodflag" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:960px; top:5px; width:100px; height:19px; "/>
  108. <select1 id="cmb_mngtcls" ref="/root/send/sendlist/mngtcls" class="combo_s_essential" appearance="minimal" style="left:810px; top:8px; width:150px; height:19px; ">
  109. <choices>
  110. <itemset>
  111. <label/>
  112. <value/>
  113. </itemset>
  114. </choices>
  115. </select1>
  116. <caption id="caption2" class="search_name" style="left:725px; top:9px; width:88px; height:17px; ">관리분류 :</caption>
  117. <caption id="caption1" style="left:540px; top:10px; width:15px; height:20px; ">~</caption>
  118. <input id="ipt_tostocym" ref="/root/send/sendlist/tostocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:560px; top:8px; width:100px; height:19px; text-align:center; "/>
  119. </group>
  120. <line id="line15" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
  121. <datagrid id="grd_stocpropertylist" nodeset="/root/main/stocpropertylist" class="datagrid2" caption="약분류^계정명^약품코드^약품명^단가^함량/단위^함량/단위^규격/단위^규격/단위^낱개단위^포장수량/단위^포장수량/단위^최소단위^입고수량/단위^입고수량/단위^입고금액^출고수량^출고금액^재고수량^재고금액^계정코드" colsep="^" colwidth="8, 26, 84, 169, 10, 42, 40, 44, 42, 57, 44, 42, 32, 70, 41, 113, 64, 100, 66, 113, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:77px; width:1195px; height:657px; ">
  122. <col ref="lrgnm" visibility="hidden" style="text-align:center; "/>
  123. <col ref="dcntnm" visibility="hidden"/>
  124. <col ref="goodcd"/>
  125. <col ref="goodnm"/>
  126. <col ref="goodunitcost" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  127. <col ref="cntsqty" style="text-align:right; "/>
  128. <col ref="cntsunit" style="text-align:center; "/>
  129. <col ref="specvol" style="text-align:right; "/>
  130. <col ref="specunit" style="text-align:center; "/>
  131. <col ref="deliveunit" style="text-align:center; "/>
  132. <col ref="exchqty" style="text-align:right; "/>
  133. <col ref="purcunit" style="text-align:center; "/>
  134. <col ref="deliveunit" visibility="hidden" style="text-align:center; "/>
  135. <col ref="abwinqty" format="#,###.##" style="text-align:right; "/>
  136. <col ref="deliveunit" style="text-align:left; "/>
  137. <col ref="abwinamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  138. <col ref="deliveqty" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  139. <col ref="deliveamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  140. <col ref="abstocqty" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  141. <col ref="stocamt" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  142. <col ref="amtacnt" visibility="hidden" style="text-align:center; "/>
  143. </datagrid>
  144. <button id="btn_excel" class="btn5_letter6" style="left:1106px; top:52px; width:86px; height:19px; ">
  145. <caption>Excel Save</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. var reqfrdd = model.getValue(ipt_stocym.attribute("ref"));
  149. var fileName = window.fileDialog("save", ",", false, "약품입고현황"+"(" + reqfrdd + ")", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  150. if (fileName != "")
  151. {
  152. grd_stocpropertylist.saveExcel(fileName, "약품입고현황");
  153. }
  154. ]]>
  155. </script>
  156. </button>
  157. </group>
  158. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  159. <button id="btn_prt" class="btn6_letter2" style="left:0; top:3px; width:56px; height:22px; ">
  160. <caption>출력</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. model.removeNodeset("/root/tmp/rexinfo/sendlist");
  164. model.removeNodeset("/root/tmp/rexinfo/stocpropertylist");
  165. model.makeNode("/root/tmp/rexinfo/sendlist");
  166. model.makeNode("/root/tmp/rexinfo/stocpropertylist");
  167. copyNodesetType("/root/tmp/rexinfo/sendlist", "/root/send/sendlist", "replace");
  168. copyNodesetType("/root/tmp/rexinfo/stocpropertylist", grd_stocpropertylist.nodeset, "replace");
  169. exeReportPreview("RPRST00903", "XMLSTR","/root/tmp/rexinfo");
  170. ]]>
  171. </script>
  172. </button>
  173. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  174. </group>
  175. </xhtml:body>
  176. </xhtml:html>