SMADT50201_약품재고관리 환자별 상세내역.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. <drugno/>
  25. <issdeptcd/>
  26. <prcpgenrflag/>
  27. <execprcpuniqno/>
  28. <sumflag/>
  29. </prcpinfo>
  30. </prcplist>
  31. <patlist>
  32. <patinfo/>
  33. </patlist>
  34. <astlist>
  35. <astinfo/>
  36. </astlist>
  37. <prnlist>
  38. <prninfo/>
  39. </prnlist>
  40. </main>
  41. <send>
  42. <srchfromdd/>
  43. <calcscorcd/>
  44. <execdeptcd/>
  45. <sumlistinfo>
  46. <prcpflag>O</prcpflag>
  47. </sumlistinfo>
  48. <endtime/>
  49. <fromddflag/>
  50. <fromtm>150001</fromtm>
  51. <toddflag/>
  52. <totm>150000</totm>
  53. <fromdd/>
  54. <todd/>
  55. <srchorddeptcd/>
  56. <issdeptcd/>
  57. <spcldrug/>
  58. <maendflag/>
  59. <ddflag/>
  60. <srchdeptcd>전체</srchdeptcd>
  61. <offset>0</offset>
  62. <pagesize>1000</pagesize>
  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="TRADT50203" 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:836px; height:45px; ">
  144. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:836px; 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/fromtm",model.getValue("/root/temp/fromtm"));
  154. model.setValue("/root/send/totm",model.getValue("/root/temp/totm"));
  155. var issdeptcd = model.getValue("/root/temp/issdeptcd");
  156. if(issdeptcd == "병동약국") {
  157. model.setValue("/root/send/issdeptcd","3240300000");
  158. } else if(issdeptcd == "외래약국") {
  159. model.setValue("/root/send/issdeptcd","3240400000");
  160. } else if(issdeptcd == "특수조제실") {
  161. model.setValue("/root/send/issdeptcd","3240807000");
  162. }
  163. submit("TRADT50203");
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. <caption id="caption10" class="tit_2" style="left:6px; top:53px; width:183px; height:13px; ">상세 내역</caption>
  170. <datagrid id="datagrid1" nodeset="/root/main/prcplist/prcpinfo" caption="마감일자^마감시간^적용일자^약품구분^발행부서^병동^등록번호^환자명^약품코드^약품명^불출수량^UNIQNO^투약번호^재고반영여부" colsep="^" colwidth="60, 60, 60, 60, 60, 45, 69, 80, 100, 180, 60, 80, 57" explorerbar="sortshow" rowheader="seq" style="left:0px; top:85px; width:836px; height:635px; ">
  171. <col ref="genrdd" style="text-align:center; "/>
  172. <col ref="genrtm" style="text-align:center; "/>
  173. <col ref="prcpdd" style="text-align:center; "/>
  174. <col ref="spcldrug" style="text-align:center; "/>
  175. <col ref="deptnm" style="text-align:center; "/>
  176. <col ref="wardnm" style="text-align:center; "/>
  177. <col ref="pid" style="text-align:center; "/>
  178. <col ref="panm" style="text-align:center; "/>
  179. <col ref="calcscorcd" visibility="hidden"/>
  180. <col ref="engnm" style="text-align:left; "/>
  181. <col ref="execprcptotqty" style="text-align:center; "/>
  182. <col ref="execdd" visibility="hidden" style="text-align:center; "/>
  183. <col ref="drugno" style="text-align:center; "/>
  184. <script type="javascript" ev:event="onscroll">
  185. <![CDATA[
  186. if(datagrid1.vscroll.attribute("max") == datagrid1.vscroll.attribute("pos")) {
  187. // end of scroll
  188. model.setValue("/root/send/offset", datagrid1.rows-datagrid1.fixedRows); // grid의 header row는 제외
  189. submit("TRADT50203");
  190. datagrid1.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  191. }
  192. ]]>
  193. </script>
  194. <script type="javascript" ev:event="onaftersort">
  195. <![CDATA[
  196. datagrid1.gridToInstance();
  197. ]]>
  198. </script>
  199. <script type="javascript" ev:event="ondblclick">
  200. <![CDATA[
  201. ]]>
  202. </script>
  203. </datagrid>
  204. <line id="line4" class="line_1" style="x1:0px; y1:68px; x2:494px; y2:68px; "/>
  205. <line id="line1" class="line_1" style="x1:440px; y1:68px; x2:815; y2:68px; "/>
  206. <button id="btn_excsave" class="btn2_letter4" visibility="hidden" style="left:15px; top:15px; width:64px; height:19px; ">
  207. <caption>엑셀저장</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. // 조회일자로 ast에 집계 출력된 내역이 있는지 확인.
  211. submit("TRADT11026");
  212. var chkast = model.getValue("/root/init/chksum/item/chkast");
  213. // ast에 집계된 내역이 없으면 중지
  214. if( chkast != "Y") {
  215. alert("조회된 일자로 발주된 데이터가 없습니다. ");
  216. model.refresh();
  217. return;
  218. }
  219. // 조회일자로 집계된 내역을 출력한다.
  220. var prcplist = model.getValue("/root/main/prcplist/prcpinfo/inorddeptnm");
  221. model.setValue("/root/send/prnflag", "E");
  222. if (prcplist == "") {
  223. model.removeNodeset("/root/main/prcplist/prcpinfo/");
  224. submit("TRADT11024");
  225. }
  226. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  227. if (file != ""){
  228. grd.prcp.saveExcel(file);
  229. }
  230. model.removeNodeset("/root/send/prcplist/prcpinfo")
  231. ]]>
  232. </script>
  233. </button>
  234. </group>
  235. </xhtml:body>
  236. </xhtml:html>