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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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/>
  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. <userinfo>
  103. <userinfo>
  104. <userid/>
  105. <usernm/>
  106. <userdeptcd/>
  107. <userdeptnm/>
  108. </userinfo>
  109. </userinfo>
  110. </temp>
  111. </root>
  112. </instance>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. grd_deptlist.fixedcellcheckbox(0,0) = true;
  116. model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
  117. model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
  118. model.refresh();
  119. /*if ( model.getValue("/root/temp/deptcd") !=""){
  120. grd_deptlist.visible=false;
  121. }*/
  122. /* 사용자부서 가져오기 */
  123. model.setValue("/root/temp/userinfo/userinfo/userdeptcd", getUserInfo("dutplcecd"));
  124. model.setValue("/root/temp/userinfo/userinfo/userdeptnm", getUserInfo("dutplcenm"));
  125. model.setValue("/root/send/srchdata/dutplcecd", getUserInfo("dutplcecd"));
  126. //submit("TRADT10335");
  127. submit("TRADT10321");
  128. model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  129. //submit("TRADT10324");
  130. model.removeNodeset("/root/main/prcplist/prcpinfo");
  131. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
  132. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
  133. submit("TRADT10322");
  134. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  135. caption5.visible = true;
  136. rdo_prcp.visible = true;
  137. } else {
  138. caption5.visible = false;
  139. rdo_prcp.visible = false;
  140. }
  141. ]]>
  142. </script>
  143. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  144. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  146. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  147. <submission id="TRADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  148. <submission id="TRADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  149. <submission id="TRADT10323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  150. <submission id="TRADT10324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
  151. <submission id="TRADT10325" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  152. <submission id="TRADT10326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  153. <submission id="TRADT10327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  154. <submission id="TRADT10329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  155. <submission id="TXADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
  156. <submission id="TXADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  157. <submission id="TRADT10335" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumdeptcd"/>
  158. </model>
  159. </xhtml:head>
  160. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  161. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약국 집계 조회/출력</caption>
  163. </group>
  164. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  165. <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, 80, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:72px; width:814px; height:668px; ">
  166. <col ref="flag1"/>
  167. <col ref="flag2"/>
  168. <col ref="flag3"/>
  169. <col ref="pid"/>
  170. <col ref="hngnm"/>
  171. <col ref="orddeptnm"/>
  172. <col ref="roomcd"/>
  173. <col ref="groupcd" visibility="visible"/>
  174. <col ref="prcpcd"/>
  175. <col ref="prcpnm"/>
  176. <col ref="prcpqty" style="text-align:right; "/>
  177. <col ref="prcptims"/>
  178. <col ref="prcpdayno" style="text-align:right; "/>
  179. <col ref="totqty" style="text-align:right; "/>
  180. <col ref="prcpdd" format="yyyy-mm-dd"/>
  181. <col format="yyyy-mm-dd hh:nn:ss"/>
  182. <col ref="rtndd" format="yyyy-mm-dd hh:nn:ss"/>
  183. </datagrid>
  184. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:1194px; y2:67px; "/>
  185. <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; ">
  186. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  187. <col ref="deptcd"/>
  188. <col ref="depthngnm"/>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  192. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  193. submit("TRADT10325");
  194. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  195. submit("TRADT10327");
  196. ]]>
  197. </script>
  198. </datagrid>
  199. <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; ">
  200. <col ref="groupcd"/>
  201. <col ref="prcpcd"/>
  202. <col ref="prcpnm"/>
  203. <col ref="sumqty" style="text-align:right; "/>
  204. <script type="javascript" ev:event="onclick">
  205. <![CDATA[
  206. if(isDataCell()) {
  207. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
  208. submit("TRADT10323");
  209. // 20100319 황세원 수정
  210. model.refresh();
  211. }
  212. ]]>
  213. </script>
  214. <script type="javascript" ev:event="onaftersort">
  215. <![CDATA[
  216. grd_sumlist.gridToInstance();
  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:230px; top:5px; width:92px; height:22px; ">
  223. <caption>집계표출력</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
  227. //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/orddept/dept["+i+"]/depthngnm"));
  228. //submit("TRADT10329");
  229. model.removeNodeset("/root/temp/prntprcpinfo");
  230. model.makeNode("/root/temp/prntprcpinfo");
  231. model.copyNode( "/root/temp/prntprcpinfo", "/root/main/sumlist");
  232. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/send/srchdata/srchfromdd"));
  233. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/send/srchdata/srchtodd"));
  234. model.refresh();
  235. for(var i = 1 ; i <= getNodesetCount("/root/temp/prntprcpinfo/suminfo") ; i++) {
  236. model.setValue("/root/temp/prntprcpinfo/suminfo["+i+"]/wardnm",model.getValue("/root/init/orddept/dept/depthngnm"));
  237. }
  238. model.refresh();
  239. exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
  240. //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
  241. //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="button3" class="btn6_letter6" visibility="hidden" style="left:575px; top:0px; width:104px; height:22px; ">
  246. <caption>Fill List출력</caption>
  247. </button>
  248. <button id="button4" class="btn3_letter6" style="left:0px; top:5px; width:104px; height:22px; ">
  249. <caption>수액집계조회</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. //부서별약품집계조회(수액집계조회) 화면을 통해 수액집계조회 호출하는 경우 "마감시간관리"설정 불가하도록 처리 (2009.05.27 JJE)
  253. //var curScrnId = getScreenID();
  254. //setParameter("SMADT11000_openerscrnid", curScrnId);
  255. setParameter("SMADT11000_openerauth", "R");
  256. open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="button6" class="btn6_letter6" visibility="hidden" style="left:687px; top:0px; width:104px; height:22px; ">
  261. <caption>환자별검수지</caption>
  262. </button>
  263. <button id="button7" class="btn6_letter4" visibility="hidden" style="left:795px; top:0px; width:80px; height:22px; ">
  264. <caption>네임카드</caption>
  265. </button>
  266. <button id="button5" class="btn4_letter4" visibility="hidden" style="left:1115px; top:5px; width:80px; height:22px; ">
  267. <caption>집계취소</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. if ( messageBox("집계취소를 ","Q004")==6 ) {
  271. submit("TXADT10322");
  272. submit("TRADT10324");
  273. }
  274. ]]>
  275. </script>
  276. </button>
  277. <button id="button2" class="btn3_letter7" style="left:110px; top:5px; width:116px; height:22px; ">
  278. <caption>집계시간별조회</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. open("SMADT10900",0,20,150,"SMADT10900","","");
  282. ]]>
  283. </script>
  284. </button>
  285. </group>
  286. <group id="group2" style="left:0px; top:40px; width:1194px; height:65px; ">
  287. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  288. <caption id="caption1" class="search_name" style="left:5px; top:11px; width:90px; height:17px; ">조회구간 :</caption>
  289. <caption id="caption4" class="search_name" style="left:315px; top:10px; width:70px; height:17px; ">구분1 :</caption>
  290. <caption id="caption5" class="search_name" style="left:660px; top:10px; width:70px; height:17px; ">구분2 :</caption>
  291. <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; ">
  292. <choices>
  293. <item>
  294. <label>약</label>
  295. <value>1</value>
  296. </item>
  297. <item>
  298. <label>주사</label>
  299. <value>2</value>
  300. </item>
  301. </choices>
  302. </select>
  303. <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; ">
  304. <choices>
  305. <item>
  306. <label>일반</label>
  307. <value>1</value>
  308. </item>
  309. <item>
  310. <label>선처치</label>
  311. <value>2</value>
  312. </item>
  313. <item>
  314. <label>Set처방</label>
  315. <value>3</value>
  316. </item>
  317. </choices>
  318. </select>
  319. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
  320. <caption>조회</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. model.removeNodeset("/root/main/prcplist/prcpinfo");
  324. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept/deptcd"));
  325. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept/orddeptflag"));
  326. submit("TRADT10322");
  327. if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  328. caption5.visible = true;
  329. rdo_prcp.visible = true;
  330. } else {
  331. caption5.visible = false;
  332. rdo_prcp.visible = false;
  333. }
  334. ]]>
  335. </script>
  336. </button>
  337. <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" inputtype="date" style="left:98px; top:11px; width:95px; height:19px; "/>
  338. <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" inputtype="date" style="left:210px; top:11px; width:95px; height:19px; "/>
  339. <caption id="caption32" style="left:197px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  340. <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; ">
  341. <choices>
  342. <item>
  343. <label>일반</label>
  344. <value>N</value>
  345. </item>
  346. <item>
  347. <label>UDS</label>
  348. <value>U</value>
  349. </item>
  350. </choices>
  351. </select1>
  352. <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; ">
  353. <choices>
  354. <item>
  355. <label>PTP</label>
  356. <value>3</value>
  357. </item>
  358. <item>
  359. <label>주사</label>
  360. <value>4</value>
  361. </item>
  362. <item>
  363. <label>외용,수제</label>
  364. <value>5</value>
  365. </item>
  366. </choices>
  367. </select>
  368. <caption id="caption3" class="search_name" style="left:660px; top:35px; width:70px; height:17px; ">구분3 :</caption>
  369. <caption id="caption2" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">부 서 :</caption>
  370. <output id="otp_userdeptnm" ref="/root/temp/userinfo/userinfo/userdeptnm" style="left:95px; top:39px; width:280px; height:19px; "/>
  371. <select id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" overflow="visible" appearance="full" cols="4" style="left:752px; top:10px; width:233px; height:25px; border-style:none; ">
  372. <choices>
  373. <item>
  374. <label>정규</label>
  375. <value>R</value>
  376. </item>
  377. <item>
  378. <label>추가</label>
  379. <value>A</value>
  380. </item>
  381. <item>
  382. <label>응급</label>
  383. <value>E</value>
  384. </item>
  385. <item>
  386. <label>Admission</label>
  387. <value>M</value>
  388. </item>
  389. </choices>
  390. </select>
  391. </group>
  392. </xhtml:body>
  393. </xhtml:html>