SMADT10900_부서별집계대상조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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>약국 집계 조회/출력</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. model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  117. submit("TRADT10304");
  118. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  119. caption5.visible = true;
  120. rdo_prcp.visible = true;
  121. } else {
  122. caption5.visible = false;
  123. rdo_prcp.visible = false;
  124. }
  125. ]]>
  126. </script>
  127. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  130. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  131. <submission id="TRADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  132. <submission id="TRADT10304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
  133. <submission id="TRADT10305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  134. <submission id="TRADT10306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  135. <submission id="TRADT10307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  136. <submission id="TRADT10309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  137. <submission id="TXADT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
  138. <submission id="TXADT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  139. <submission id="TRADT10315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumdeptcd"/>
  140. </model>
  141. </xhtml:head>
  142. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약국 집계 조회/출력</caption>
  145. </group>
  146. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  147. <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:150px; width:814px; height:590px; ">
  148. <col ref="flag1"/>
  149. <col ref="flag2"/>
  150. <col ref="flag3"/>
  151. <col ref="pid"/>
  152. <col ref="hngnm"/>
  153. <col ref="orddeptcd"/>
  154. <col ref="wardcd"/>
  155. <col ref="groupcd" visibility="visible"/>
  156. <col ref="prcpcd"/>
  157. <col ref="prcpnm"/>
  158. <col ref="prcpqty" style="text-align:right; "/>
  159. <col ref="prcptims"/>
  160. <col ref="prcpdayno" style="text-align:right; "/>
  161. <col ref="totqty" style="text-align:right; "/>
  162. <col ref="prcpdd" format="yyyy-mm-dd"/>
  163. <col ref="rtndd"/>
  164. </datagrid>
  165. <line id="line1" class="line_1" style="x1:0px; y1:142px; x2:1194px; y2:142px; "/>
  166. <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; ">
  167. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  168. <col ref="deptcd"/>
  169. <col ref="depthngnm"/>
  170. <script type="javascript" ev:event="onclick">
  171. <![CDATA[
  172. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  173. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  174. submit("TRADT10305");
  175. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  176. submit("TRADT10307");
  177. ]]>
  178. </script>
  179. </datagrid>
  180. <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:150px; width:375px; height:590px; ">
  181. <col ref="groupcd"/>
  182. <col ref="prcpcd"/>
  183. <col ref="prcpnm"/>
  184. <col ref="sumqty" style="text-align:right; "/>
  185. <script type="javascript" ev:event="onclick">
  186. <![CDATA[
  187. if(isDataCell()) {
  188. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
  189. submit("TRADT10307");
  190. }
  191. ]]>
  192. </script>
  193. </datagrid>
  194. <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^집계자" colsep="^" colwidth="241, 116, 68, 34, 68, 34, 66" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:610px; top:0px; width:584px; height:135px; ">
  195. <col ref="sumflag"/>
  196. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
  197. <col ref="sumfromdd" format="yyyy-mm-dd"/>
  198. <col ref="sumfromtm" format="hh:nn"/>
  199. <col ref="sumtodd" format="yyyy-mm-dd"/>
  200. <col ref="sumtotm" format="hh:nn"/>
  201. <col ref="sumnm"/>
  202. <script type="javascript" ev:event="onclick">
  203. <![CDATA[
  204. if(isDataCell()) {
  205. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
  206. model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
  207. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
  208. model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
  209. model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  210. submit("TRADT10306");
  211. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
  212. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
  213. submit("TRADT10305");
  214. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  215. submit("TRADT10307");
  216. }
  217. ]]>
  218. </script>
  219. </datagrid>
  220. </group>
  221. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  222. <button id="button1" class="btn6_letter5" visibility="visible" style="left:105px; top:5px; width:92px; height:22px; ">
  223. <caption>집계표출력</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
  227. if ( model.getValue("/root/init/orddept/dept["+i+"]/chk")=="Y"){
  228. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
  229. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/orddept/dept["+i+"]/depthngnm"));
  230. submit("TRADT10309");
  231. exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
  232. }
  233. }
  234. //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
  235. //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="button3" class="btn6_letter6" visibility="hidden" style="left:200px; top:5px; width:104px; height:22px; ">
  240. <caption>Fill List출력</caption>
  241. </button>
  242. <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  243. <caption>수액집계조회</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="button6" class="btn6_letter6" visibility="hidden" style="left:307px; top:5px; width:104px; height:22px; ">
  251. <caption>환자별검수지</caption>
  252. </button>
  253. <button id="button7" class="btn6_letter4" visibility="hidden" style="left:415px; top:5px; width:80px; height:22px; ">
  254. <caption>네임카드</caption>
  255. </button>
  256. <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1115px; top:5px; width:80px; height:22px; ">
  257. <caption>집계취소</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. if ( messageBox("집계취소를 ","Q004")==6 ) {
  261. submit("TXADT10302");
  262. submit("TRADT10304");
  263. }
  264. ]]>
  265. </script>
  266. </button>
  267. </group>
  268. <group id="group2" style="left:0px; top:40px; width:605px; height:135px; ">
  269. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:605px; height:134px; background-color:#fffbf2; border-color:#ffd799; "/>
  270. <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
  271. <caption id="caption4" class="search_name" style="left:5px; top:38px; width:70px; height:17px; ">구분1 :</caption>
  272. <caption id="caption5" class="search_name" style="left:5px; top:84px; width:70px; height:17px; ">구분2 :</caption>
  273. <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:38px; width:135px; height:20px; border-style:none; ">
  274. <choices>
  275. <item>
  276. <label>약</label>
  277. <value>1</value>
  278. </item>
  279. <item>
  280. <label>주사</label>
  281. <value>2</value>
  282. </item>
  283. </choices>
  284. </select>
  285. <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:98px; top:109px; width:200px; height:20px; border-style:none; ">
  286. <choices>
  287. <item>
  288. <label>일반</label>
  289. <value>1</value>
  290. </item>
  291. <item>
  292. <label>선처치</label>
  293. <value>2</value>
  294. </item>
  295. <item>
  296. <label>Set처방</label>
  297. <value>3</value>
  298. </item>
  299. </choices>
  300. </select>
  301. <line id="line13" class="line_4" style="x1:525px; y1:15px; x2:525px; y2:128px; border-color:#ffe4bb; border-left-style:solid; "/>
  302. <button id="btn_sea" class="btn1_letter2" style="left:535px; top:55px; width:56px; height:22px; ">
  303. <caption>조회</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  307. submit("TRADT10304");
  308. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  309. caption5.visible = true;
  310. rdo_prcp.visible = true;
  311. } else {
  312. caption5.visible = false;
  313. rdo_prcp.visible = false;
  314. }
  315. ]]>
  316. </script>
  317. </button>
  318. <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
  319. <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
  320. <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  321. <select1 id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" appearance="full" cellspacing="5" cols="6" overflow="visible" style="left:98px; top:84px; width:205px; height:20px; border-style:none; ">
  322. <choices>
  323. <item>
  324. <label>정규</label>
  325. <value>R</value>
  326. </item>
  327. <item>
  328. <label>추가</label>
  329. <value>A</value>
  330. </item>
  331. <item>
  332. <label>응급/Admission</label>
  333. <value>E</value>
  334. </item>
  335. </choices>
  336. </select1>
  337. <select1 id="radio1" ref="/root/send/srchdata/udsflag" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:98px; top:35px; width:50px; height:50px; border-style:none; ">
  338. <choices>
  339. <item>
  340. <label>일반</label>
  341. <value>N</value>
  342. </item>
  343. <item>
  344. <label>UDS</label>
  345. <value>U</value>
  346. </item>
  347. </choices>
  348. </select1>
  349. <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" overflow="visible" appearance="full" cols="5" style="left:150px; top:63px; width:175px; height:20px; border-style:none; ">
  350. <choices>
  351. <item>
  352. <label>PTP</label>
  353. <value>3</value>
  354. </item>
  355. <item>
  356. <label>주사</label>
  357. <value>4</value>
  358. </item>
  359. <item>
  360. <label>외용,수제</label>
  361. <value>5</value>
  362. </item>
  363. </choices>
  364. </select>
  365. <caption id="caption3" class="search_name" style="left:5px; top:109px; width:70px; height:17px; ">구분3 :</caption>
  366. </group>
  367. </xhtml:body>
  368. </xhtml:html>