SMADT10800_부서별집계조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. <sumlist>
  11. <suminfo>
  12. <groupcd/>
  13. <prcpcd/>
  14. <prcpnm/>
  15. <sumqty/>
  16. </suminfo>
  17. </sumlist>
  18. <prcplist>
  19. <prcpinfo>
  20. <flag1/>
  21. <flag2/>
  22. <flag3/>
  23. <pid/>
  24. <hngnm/>
  25. <orddeptcd/>
  26. <wardcd/>
  27. <groupcd/>
  28. <prcpcd/>
  29. <prcpnm/>
  30. <prcpqty/>
  31. <prcptims/>
  32. <prcpdayno/>
  33. <totqty/>
  34. <prcpdd/>
  35. <rtndd/>
  36. </prcpinfo>
  37. </prcplist>
  38. <sumterm>
  39. <suminfo>
  40. <sumflag/>
  41. <sumdt/>
  42. <sumfromdd/>
  43. <sumfromtm/>
  44. <sumtodd/>
  45. <sumtotm/>
  46. <sumnm/>
  47. </suminfo>
  48. </sumterm>
  49. </main>
  50. <send>
  51. <srchdata>
  52. <deptflag/>
  53. <drugflag>1 2</drugflag>
  54. <prcpflag>1 2 3</prcpflag>
  55. <srchfromdd/>
  56. <srchtodd/>
  57. <srchorddeptcd/>
  58. <srchprcpcd/>
  59. <udsflag>N</udsflag>
  60. <prcpkindcd>A</prcpkindcd>
  61. <sumdt/>
  62. <srchorddeptflag/>
  63. <sumdeptcd/>
  64. <dutplcecd/>
  65. </srchdata>
  66. </send>
  67. <init>
  68. <orddept>
  69. <dept>
  70. <chk/>
  71. <deptcd/>
  72. <depthngnm/>
  73. <orddeptflag/>
  74. </dept>
  75. </orddept>
  76. </init>
  77. <hidden/>
  78. <temp>
  79. <ret/>
  80. <prntinfo>
  81. <sumflagnm>주사</sumflagnm>
  82. <wardnm>외래주사실</wardnm>
  83. <sumfromdd>20070901</sumfromdd>
  84. <sumfromtm>0000</sumfromtm>
  85. <sumtodd>20070930</sumtodd>
  86. <sumtotm>2400</sumtotm>
  87. </prntinfo>
  88. <prntprcpinfo>
  89. <suminfo>
  90. <prcpcd/>
  91. <prcpnm/>
  92. <prcpflag/>
  93. <sumqty/>
  94. </suminfo>
  95. </prntprcpinfo>
  96. <deptcd/>
  97. <sumdeptcd>
  98. <deptcd>
  99. <deptcd/>
  100. </deptcd>
  101. </sumdeptcd>
  102. </temp>
  103. </root>
  104. </instance>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. grd_deptlist.fixedcellcheckbox(0,0) = true;
  108. model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
  109. model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
  110. model.refresh();
  111. /*if ( model.getValue("/root/temp/deptcd") !=""){
  112. grd_deptlist.visible=false;
  113. }*/
  114. model.setValue("/root/send/srchdata/dutplcecd", getUserInfo("dutplcecd"));
  115. //submit("TRADT10315");
  116. submit("TRADT10301");
  117. model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  118. //submit("TRADT10304");
  119. model.removeNodeset("/root/main/prcplist/prcpinfo");
  120. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
  121. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
  122. submit("TRADT10302");
  123. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  124. caption5.visible = true;
  125. rdo_prcp.visible = true;
  126. } else {
  127. caption5.visible = false;
  128. rdo_prcp.visible = false;
  129. }
  130. ]]>
  131. </script>
  132. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  135. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  136. <submission id="TRADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  137. <submission id="TRADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  138. <submission id="TRADT10303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  139. <submission id="TRADT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
  140. <submission id="TRADT10305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  141. <submission id="TRADT10306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  142. <submission id="TRADT10307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  143. <submission id="TRADT10309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  144. <submission id="TXADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
  145. <submission id="TXADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  146. <submission id="TRADT10315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumdeptcd"/>
  147. </model>
  148. </xhtml:head>
  149. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  150. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  151. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약국 집계 조회/출력</caption>
  152. </group>
  153. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  154. <datagrid id="grd_prcplist" nodeset="/root/main/prcplist/prcpinfo" caption="구분^구분^구분^등록번호^환자명^진료과^병동^Group코드^처방코드^처방명^1일수량^횟수^일수^불출수량^처방일자^반환일시" colsep="^" colwidth="38, 48, 36, 73, 45, 60, 41, 82, 90, 201, 49, 36, 33, 59, 81, 101" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:72px; width:814px; height:668px; ">
  155. <col ref="flag1"/>
  156. <col ref="flag2"/>
  157. <col ref="flag3"/>
  158. <col ref="pid"/>
  159. <col ref="hngnm"/>
  160. <col ref="orddeptcd"/>
  161. <col ref="wardcd"/>
  162. <col ref="groupcd" visibility="visible"/>
  163. <col ref="prcpcd"/>
  164. <col ref="prcpnm"/>
  165. <col ref="prcpqty" style="text-align:right; "/>
  166. <col ref="prcptims"/>
  167. <col ref="prcpdayno" style="text-align:right; "/>
  168. <col ref="totqty" style="text-align:right; "/>
  169. <col ref="prcpdd" format="yyyy-mm-dd"/>
  170. <col ref="rtndd"/>
  171. </datagrid>
  172. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1194px; y2:67px; "/>
  173. <datagrid id="grd_deptlist" nodeset="/root/init/orddept/dept" visibility="hidden" caption="^코드^부서" colsep="^" colwidth="25, 93, 234" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:455px; top:230px; width:375px; height:245px; ">
  174. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  175. <col ref="deptcd"/>
  176. <col ref="depthngnm"/>
  177. <script type="javascript" ev:event="onclick">
  178. <![CDATA[
  179. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  180. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  181. submit("TRADT10305");
  182. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  183. submit("TRADT10307");
  184. ]]>
  185. </script>
  186. </datagrid>
  187. <datagrid id="grd_sumlist" nodeset="/root/main/sumlist/suminfo" class="datagrid" caption="Group코드^처방코드^처방명^총불출수량" colsep="^" colwidth="80, 80, 120, 70" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:72px; width:375px; height:668px; ">
  188. <col ref="groupcd"/>
  189. <col ref="prcpcd"/>
  190. <col ref="prcpnm"/>
  191. <col ref="sumqty" style="text-align:right; "/>
  192. <script type="javascript" ev:event="onclick">
  193. <![CDATA[
  194. if(isDataCell()) {
  195. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
  196. submit("TRADT10303");
  197. }
  198. ]]>
  199. </script>
  200. <script type="javascript" ev:event="onaftersort">
  201. <![CDATA[
  202. grd_sumlist.gridToInstance();
  203. ]]>
  204. </script>
  205. </datagrid>
  206. </group>
  207. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  208. <button id="button1" class="btn6_letter5" visibility="visible" style="left:230px; top:5px; width:92px; height:22px; ">
  209. <caption>집계표출력</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
  213. //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/orddept/dept["+i+"]/depthngnm"));
  214. submit("TRADT10309");
  215. exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
  216. //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
  217. //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
  218. ]]>
  219. </script>
  220. </button>
  221. <button id="button3" class="btn6_letter6" visibility="hidden" style="left:575px; top:0px; width:104px; height:22px; ">
  222. <caption>Fill List출력</caption>
  223. </button>
  224. <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  225. <caption>수액집계조회</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
  229. ]]>
  230. </script>
  231. </button>
  232. <button id="button6" class="btn6_letter6" visibility="hidden" style="left:687px; top:0px; width:104px; height:22px; ">
  233. <caption>환자별검수지</caption>
  234. </button>
  235. <button id="button7" class="btn6_letter4" visibility="hidden" style="left:795px; top:0px; width:80px; height:22px; ">
  236. <caption>네임카드</caption>
  237. </button>
  238. <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1115px; top:5px; width:80px; height:22px; ">
  239. <caption>집계취소</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. if ( messageBox("집계취소를 ","Q004")==6 ) {
  243. submit("TXADT10302");
  244. submit("TRADT10304");
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. <button id="button2" class="btn3_letter7" style="left:110px; top:5px; width:116px; height:22px; ">
  250. <caption>집계시간별조회</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. open("SMADT10900",0,20,150,"SMADT10900","","");
  254. ]]>
  255. </script>
  256. </button>
  257. </group>
  258. <group id="group2" style="left:0px; top:40px; width:1194px; height:65px; ">
  259. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  260. <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
  261. <caption id="caption4" class="search_name" style="left:315px; top:10px; width:70px; height:17px; ">구분1 :</caption>
  262. <caption id="caption5" class="search_name" style="left:660px; top:10px; width:70px; height:17px; ">구분2 :</caption>
  263. <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:435px; top:14px; width:135px; height:20px; border-style:none; ">
  264. <choices>
  265. <item>
  266. <label>약</label>
  267. <value>1</value>
  268. </item>
  269. <item>
  270. <label>주사</label>
  271. <value>2</value>
  272. </item>
  273. </choices>
  274. </select>
  275. <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:753px; top:35px; width:200px; height:20px; border-style:none; ">
  276. <choices>
  277. <item>
  278. <label>일반</label>
  279. <value>1</value>
  280. </item>
  281. <item>
  282. <label>선처치</label>
  283. <value>2</value>
  284. </item>
  285. <item>
  286. <label>Set처방</label>
  287. <value>3</value>
  288. </item>
  289. </choices>
  290. </select>
  291. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
  292. <caption>조회</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. model.removeNodeset("/root/main/prcplist/prcpinfo");
  296. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
  297. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
  298. submit("TRADT10302");
  299. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  300. caption5.visible = true;
  301. rdo_prcp.visible = true;
  302. } else {
  303. caption5.visible = false;
  304. rdo_prcp.visible = false;
  305. }
  306. ]]>
  307. </script>
  308. </button>
  309. <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
  310. <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
  311. <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  312. <select1 id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" appearance="full" cellspacing="5" cols="6" overflow="visible" style="left:753px; top:10px; width:205px; height:20px; border-style:none; ">
  313. <choices>
  314. <item>
  315. <label>정규</label>
  316. <value>R</value>
  317. </item>
  318. <item>
  319. <label>추가</label>
  320. <value>A</value>
  321. </item>
  322. <item>
  323. <label>응급/Admission</label>
  324. <value>E</value>
  325. </item>
  326. </choices>
  327. </select1>
  328. <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:385px; top:10px; width:50px; height:50px; border-style:none; ">
  329. <choices>
  330. <item>
  331. <label>일반</label>
  332. <value>N</value>
  333. </item>
  334. <item>
  335. <label>UDS</label>
  336. <value>U</value>
  337. </item>
  338. </choices>
  339. </select1>
  340. <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:433px; top:38px; width:175px; height:20px; border-style:none; ">
  341. <choices>
  342. <item>
  343. <label>PTP</label>
  344. <value>3</value>
  345. </item>
  346. <item>
  347. <label>주사</label>
  348. <value>4</value>
  349. </item>
  350. <item>
  351. <label>외용,수제</label>
  352. <value>5</value>
  353. </item>
  354. </choices>
  355. </select>
  356. <caption id="caption3" class="search_name" style="left:660px; top:35px; width:70px; height:17px; ">구분3 :</caption>
  357. </group>
  358. </xhtml:body>
  359. </xhtml:html>