SMADT30500_부서별집계내역조회.xrw 16 KB

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