SMRST03301_재고종합조회 환자별 상세내역.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. <main>
  10. <prcplist>
  11. <prcpinfo>
  12. <genrdd/>
  13. <genrtm/>
  14. <prcpdd/>
  15. <spcldrug/>
  16. <deptnm/>
  17. <wardnm/>
  18. <pid/>
  19. <panm/>
  20. <calcscorcd/>
  21. <engnm/>
  22. <execprcptotqty/>
  23. <execdd/>
  24. <issdeptcd/>
  25. <prcpgenrflag/>
  26. <execprcpuniqno/>
  27. <sumflag/>
  28. </prcpinfo>
  29. </prcplist>
  30. <patlist>
  31. <patinfo/>
  32. </patlist>
  33. <astlist>
  34. <astinfo/>
  35. </astlist>
  36. <prnlist>
  37. <prninfo/>
  38. </prnlist>
  39. </main>
  40. <send>
  41. <srchfromdd/>
  42. <calcscorcd/>
  43. <execdeptcd/>
  44. <sumlistinfo>
  45. <prcpflag>O</prcpflag>
  46. </sumlistinfo>
  47. <endtime/>
  48. <fromddflag/>
  49. <fromtm>150001</fromtm>
  50. <toddflag/>
  51. <totm>150000</totm>
  52. <fromdd/>
  53. <todd/>
  54. <srchorddeptcd/>
  55. <issdeptcd/>
  56. <spcldrug/>
  57. <maendflag/>
  58. <ddflag/>
  59. <srchdeptcd>전체</srchdeptcd>
  60. <offset>0</offset>
  61. <pagesize>1000</pagesize>
  62. <indeptcd/>
  63. </send>
  64. <init>
  65. <sumtmflaglist>
  66. <flaglist>
  67. <flagcd/>
  68. <flagnm/>
  69. <fromddflag/>
  70. <fromtm/>
  71. <toddflag/>
  72. <totm/>
  73. </flaglist>
  74. </sumtmflaglist>
  75. <updmflaglist>
  76. <flaglist>
  77. <fromddflag/>
  78. <fromtm/>
  79. <nextfromtm/>
  80. </flaglist>
  81. </updmflaglist>
  82. <chksum>
  83. <item>
  84. <chkast/>
  85. </item>
  86. </chksum>
  87. <chkyn/>
  88. <chktm/>
  89. <chkinstcd>
  90. <hosp>
  91. <hospnm/>
  92. <hospnm1/>
  93. </hosp>
  94. </chkinstcd>
  95. <sumdtinfo/>
  96. </init>
  97. <hidden>
  98. <chkpid>
  99. <pharm>
  100. <pharmflag/>
  101. </pharm>
  102. </chkpid>
  103. </hidden>
  104. <temp>
  105. <drugcd/>
  106. <fromddflag/>
  107. <toddflag/>
  108. <fromtm/>
  109. <totm/>
  110. <issdeptcd/>
  111. </temp>
  112. <result>
  113. <hidden/>
  114. </result>
  115. </root>
  116. </instance>
  117. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  118. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  121. <script type="javascript" ev:event="xforms-ready">
  122. <![CDATA[
  123. model.removeNodeset(datagrid1.nodeset);
  124. btn_srch.dispatch("DOMActivate");
  125. ]]>
  126. </script>
  127. <script type="javascript" ev:event="xforms-model-construct-done">
  128. <![CDATA[
  129. ]]>
  130. </script>
  131. <script type="javascript">
  132. <![CDATA[
  133. ]]>
  134. </script>
  135. <submission id="TXRST06905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/prcplist/prcpinfo"/>
  136. </model>
  137. </xhtml:head>
  138. <xhtml:body pagewidth="860" pageheight="780" guideline="1,839;1,836;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  139. <group id="group1" style="left:0px; top:0px; width:836px; height:13px; ">
  140. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약품 재고 환자별 상세 내역</caption>
  141. </group>
  142. <group id="group3" scroll="auto" style="left:0px; top:15px; width:836px; height:745px; ">
  143. <group id="group2" style="left:0px; top:5px; width:820px; height:45px; ">
  144. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:815px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  145. <caption id="caption1" class="search_name" visibility="hidden" style="left:185px; top:15px; width:185px; height:17px; vertical-align:middle; ">조회/마감/재고반영 부서</caption>
  146. <button id="btn_srch" class="btn3_letter2" navindex="18" visibility="hidden" style="left:700px; top:10px; width:104px; height:22px; ">
  147. <caption>조회</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. model.setValue("/root/send/calcscorcd",model.getValue("/root/temp/drugcd"));
  151. // model.setValue("/root/send/fromddflag",model.getValue("/root/temp/fromddflag"));
  152. model.setValue("/root/send/toddflag",model.getValue("/root/temp/toddflag"));
  153. model.setValue("/root/send/indeptcd",model.getValue("/root/temp/indeptcd"));
  154. model.setValue("/root/send/issdeptcd",model.getValue("/root/temp/issdeptcd"));
  155. // model.setValue("/root/send/fromtm",model.getValue("/root/temp/fromtm"));
  156. // model.setValue("/root/send/totm",model.getValue("/root/temp/totm"));
  157. /*
  158. var issdeptcd = model.getValue("/root/temp/issdeptcd");
  159. if(issdeptcd == "병동약국") {
  160. model.setValue("/root/send/issdeptcd","3240300000");
  161. } else if(issdeptcd == "외래약국") {
  162. model.setValue("/root/send/issdeptcd","3240400000");
  163. } else if(issdeptcd == "특수조제실") {
  164. model.setValue("/root/send/issdeptcd","3240807000");
  165. }*/
  166. submit("TXRST06905");
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. </group>
  172. <caption id="caption10" class="tit_2" style="left:6px; top:53px; width:183px; height:13px; ">상세 내역</caption>
  173. <datagrid id="datagrid1" nodeset="/root/main/prcplist/prcpinfo" caption="마감일자^마감시간^적용일자^약품구분^입고부서^병동^등록번호^환자명^약품코드^약품명^불출수량^UNIQNO^재고반영여부" colsep="^" colwidth="60, 60, 60, 60, 107, 65, 75, 80, 100, 180, 60, 80" explorerbar="sortshow" rowheader="seq" style="left:0px; top:85px; width:815px; height:635px; ">
  174. <col ref="genrdd" style="text-align:center; "/>
  175. <col ref="genrtm" style="text-align:center; "/>
  176. <col ref="prcpdd" style="text-align:center; "/>
  177. <col ref="spcldrug" visibility="hidden" style="text-align:center; "/>
  178. <col ref="deptnm" style="text-align:center; "/>
  179. <col ref="wardnm" style="text-align:center; "/>
  180. <col ref="pid" style="text-align:center; "/>
  181. <col ref="panm" style="text-align:center; "/>
  182. <col ref="calcscorcd" visibility="hidden"/>
  183. <col ref="engnm" style="text-align:left; "/>
  184. <col ref="execprcptotqty" style="text-align:center; "/>
  185. <col ref="execdd" visibility="hidden" style="text-align:center; "/>
  186. <script type="javascript" ev:event="onscroll">
  187. <![CDATA[
  188. if(datagrid1.vscroll.attribute("max") == datagrid1.vscroll.attribute("pos")) {
  189. // end of scroll
  190. model.setValue("/root/send/offset", datagrid1.rows-datagrid1.fixedRows); // grid의 header row는 제외
  191. submit("TRADT50203");
  192. datagrid1.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  193. }
  194. ]]>
  195. </script>
  196. <script type="javascript" ev:event="onaftersort">
  197. <![CDATA[
  198. datagrid1.gridToInstance();
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="ondblclick">
  202. <![CDATA[
  203. ]]>
  204. </script>
  205. </datagrid>
  206. <line id="line4" class="line_1" style="x1:0px; y1:68px; x2:494px; y2:68px; "/>
  207. <line id="line1" class="line_1" style="x1:440px; y1:68px; x2:815; y2:68px; "/>
  208. <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:15px; top:15px; width:64px; height:19px; ">
  209. <caption>엑셀저장</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
  213. submit("TRADT11026");
  214. var chkast = model.getValue("/root/init/chksum/item/chkast");
  215. // ast에 집계된 내역이 없으면 중지
  216. if( chkast != "Y") {
  217. alert("조회된 일자로 발주된 데이터가 없습니다. ");
  218. model.refresh();
  219. return;
  220. }
  221. // 조회일자로 집계된 내역을 출력한다.
  222. var prcplist = model.getValue("/root/main/prcplist/prcpinfo/inorddeptnm");
  223. model.setValue("/root/send/prnflag", "E");
  224. if (prcplist == "") {
  225. model.removeNodeset("/root/main/prcplist/prcpinfo/");
  226. submit("TRADT11024");
  227. }
  228. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  229. if (file != ""){
  230. grd.prcp.saveExcel(file);
  231. }
  232. model.removeNodeset("/root/send/prcplist/prcpinfo")
  233. ]]>
  234. </script>
  235. </button>
  236. </group>
  237. </xhtml:body>
  238. </xhtml:html>