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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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/>
  61. <sumdt/>
  62. <srchorddeptflag/>
  63. <sumdeptcd/>
  64. <dutplcecd/>
  65. <orderby/>
  66. <erprcpflag>'N'</erprcpflag>
  67. <dutplceinstcd/>
  68. </srchdata>
  69. </send>
  70. <init>
  71. <orddept>
  72. <dept>
  73. <chk/>
  74. <deptcd/>
  75. <depthngnm/>
  76. <orddeptflag/>
  77. </dept>
  78. </orddept>
  79. <baseinfo>
  80. <prcpKinditem/>
  81. </baseinfo>
  82. </init>
  83. <hidden/>
  84. <temp>
  85. <ret/>
  86. <prntinfo>
  87. <sumflagnm>주사</sumflagnm>
  88. <wardnm>외래주사실</wardnm>
  89. <sumfromdd>20070901</sumfromdd>
  90. <sumfromtm>0000</sumfromtm>
  91. <sumtodd>20070930</sumtodd>
  92. <sumtotm>2400</sumtotm>
  93. </prntinfo>
  94. <prntprcpinfo>
  95. <suminfo>
  96. <prcpcd/>
  97. <prcpnm/>
  98. <prcpflag/>
  99. <sumqty/>
  100. </suminfo>
  101. </prntprcpinfo>
  102. <deptcd/>
  103. <sumdeptcd>
  104. <deptcd>
  105. <deptcd/>
  106. <orddeptflag/>
  107. </deptcd>
  108. </sumdeptcd>
  109. </temp>
  110. </root>
  111. </instance>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  115. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  116. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  117. <!-- 20100324황세원 추가-->
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. fInitialize();
  121. ]]>
  122. </script>
  123. <script type="javascript">
  124. <![CDATA[
  125. var gWardCd = getUserInfo("dutplcecd"); //로그인 부서
  126. var gWardNm = getUserInfo("dutplcenm"); //로그인 부서명
  127. function fInitialize() {
  128. //의정부성모 집계조건 구분위해 20100401 황세원
  129. var instcd = getUserInfo("dutplceinstcd");
  130. model.setValue("/root/send/srchdata/dutplceinstcd",instcd);
  131. grd_deptlist.fixedcellcheckbox(0,0) = true;
  132. model.setValue("/root/send/srchdata/srchfromdd", getCurrentDate());
  133. model.setValue("/root/send/srchdata/srchtodd", getCurrentDate());
  134. model.refresh();
  135. /*if ( model.getValue("/root/temp/deptcd") !=""){
  136. grd_deptlist.visible=false;
  137. }*/
  138. //20100324 황세원 추가 공통코드에서 처방종류 조회
  139. zbcfGetCodeList( new Array("M0003"), new Array("/root/init/baseinfo/prcpKinditem") );
  140. fDispZoneCd(); //구역설정
  141. //구역조회가 아니면..(응급의료센터 로그인이 아닌경우만)
  142. //if (model.getValue("/root/send/srchdata/zoneyn") == "N") {
  143. //
  144. //}
  145. submit("TRADT10324");
  146. //if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  147. if (model.getValue("/root/temp/sumdeptcd/deptcd/orddeptflag") == "W") { //20100322 황세원 수정
  148. caption5.visible = true;
  149. rdo_prcp.visible = true;
  150. } else {
  151. caption5.visible = false;
  152. rdo_prcp.visible = false;
  153. }
  154. if (model.getValue("/root/send/srchdata/srchorddeptcd") == null || model.getValue("/root/send/srchdata/srchorddeptcd") == "") {
  155. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/send/srchdata/sumdeptcd"));
  156. }
  157. //fLoadSum();
  158. }
  159. //구역디스플레이
  160. function fDispZoneCd() {
  161. if (gWardNm.indexOf("응급의료센터") > -1) {
  162. grp_zone.visible = true;
  163. model.makeValue("/root/send/srchdata/zoneyn", "Y");
  164. fGetZoneList();
  165. } else {
  166. grp_zone.visible = false;
  167. //로그인 부서가 응급의료센터가 아닌경우
  168. model.setValue("/root/send/srchdata/dutplcecd", gWardCd);
  169. submit("TRADT10335");
  170. model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  171. model.makeValue("/root/send/srchdata/zoneyn", "N");
  172. }
  173. }
  174. //구역조회
  175. function fGetZoneList() {
  176. if (submit("TRADT10346")) {
  177. addComboItem( "cmb_zone", gWardNm, gWardCd);
  178. addComboItem( "cmb_zone", "전체", "");
  179. }
  180. }
  181. function fLoadSum() {
  182. grd_drugsum.row = grd_drugsum.fixedRows;
  183. grd_drugsum.col = grd_drugsum.fixedCols;
  184. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
  185. model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
  186. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
  187. model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
  188. model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  189. submit("TRADT10326");
  190. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
  191. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
  192. submit("TRADT10325");
  193. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  194. submit("TRADT10327");
  195. }
  196. ]]>
  197. </script>
  198. <submission id="TRADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  199. <submission id="TRADT10324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumterm"/>
  200. <submission id="TRADT10325" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/sumlist"/>
  201. <submission id="TRADT10326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/orddept"/>
  202. <submission id="TRADT10327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/prcplist"/>
  203. <submission id="TRADT10329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntprcpinfo"/>
  204. <submission id="TXADT10321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/ret"/>
  205. <submission id="TXADT10322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" add="bottom" resultref="/root/temp/ret"/>
  206. <submission id="TRADT10332" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/temp/prntudsinfo"/>
  207. <submission id="TRADT10335" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/sumdeptcd"/>
  208. <submission id="TRADT10346" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" resultref="/root/temp/zoneinfo"/>
  209. <submission id="TRZBC00101"/>
  210. </model>
  211. </xhtml:head>
  212. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  213. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  214. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">약국 집계 조회/출력</caption>
  215. </group>
  216. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  217. <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="|" navindex="11" style="left:380px; top:150px; width:814px; height:590px; ">
  218. <col ref="flag1"/>
  219. <col ref="flag2"/>
  220. <col ref="flag3"/>
  221. <col ref="pid"/>
  222. <col ref="hngnm"/>
  223. <col ref="orddeptcd"/>
  224. <col ref="wardcd"/>
  225. <col ref="groupcd" visibility="visible"/>
  226. <col ref="prcpcd"/>
  227. <col ref="prcpnm"/>
  228. <col ref="prcpqty" style="text-align:right; "/>
  229. <col ref="prcptims"/>
  230. <col ref="prcpdayno" style="text-align:right; "/>
  231. <col ref="totqty" style="text-align:right; "/>
  232. <col ref="prcpdd" format="yyyy-mm-dd"/>
  233. <col ref="rtndd"/>
  234. </datagrid>
  235. <line id="line1" class="line_1" style="x1:0px; y1:142px; x2:1194px; y2:142px; "/>
  236. <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; ">
  237. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  238. <col ref="deptcd"/>
  239. <col ref="depthngnm"/>
  240. <script type="javascript" ev:event="onclick">
  241. <![CDATA[
  242. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/deptcd"));
  243. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept["+grd_deptlist.row+"]/orddeptflag"));
  244. submit("TRADT10325");
  245. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  246. submit("TRADT10327");
  247. ]]>
  248. </script>
  249. </datagrid>
  250. <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="|" navindex="10" style="left:2px; top:150px; width:375px; height:590px; ">
  251. <col ref="groupcd"/>
  252. <col ref="prcpcd"/>
  253. <col ref="prcpnm"/>
  254. <col ref="sumqty" style="text-align:right; "/>
  255. <script type="javascript" ev:event="onclick">
  256. <![CDATA[
  257. if(isDataCell()) {
  258. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo["+grd_sumlist.row+"]/prcpcd"));
  259. submit("TRADT10327");
  260. }
  261. ]]>
  262. </script>
  263. <script type="javascript" ev:event="onaftersort">
  264. <![CDATA[
  265. grd_sumlist.gridToInstance(); //20100324 황세원 수정
  266. ]]>
  267. </script>
  268. </datagrid>
  269. <datagrid id="grd_drugsum" nodeset="/root/main/sumterm/suminfo" caption="집계구분^집계일시^집계구간^집계구간^집계구간^집계구간^sumdeptnm^집계자" colsep="^" colwidth="241, 116, 68, 34, 68, 34, 100, 66" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="9" style="left:610px; top:0px; width:584px; height:135px; ">
  270. <col ref="sumflag"/>
  271. <col ref="sumdt" format="yyyy-mm-dd hh:nn:ss"/>
  272. <col ref="sumfromdd" format="yyyy-mm-dd"/>
  273. <col ref="sumfromtm" format="hh:nn"/>
  274. <col ref="sumtodd" format="yyyy-mm-dd"/>
  275. <col ref="sumtotm" format="hh:nn"/>
  276. <col ref="sumdeptnm" visibility="hidden"/>
  277. <col ref="sumnm"/>
  278. <script type="javascript" ev:event="onclick">
  279. <![CDATA[
  280. if(isDataCell()) {
  281. model.setValue("/root/temp/prntinfo/sumfromdd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromdd"));
  282. model.setValue("/root/temp/prntinfo/sumfromtm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumfromtm"));
  283. model.setValue("/root/temp/prntinfo/sumtodd", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtodd"));
  284. model.setValue("/root/temp/prntinfo/sumtotm", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumtotm"));
  285. model.setValue("/root/send/srchdata/sumdt", model.getValue("/root/main/sumterm/suminfo["+grd_drugsum.row+"]/sumdt"));
  286. submit("TRADT10326");
  287. model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept[1]/deptcd"));
  288. model.setValue("/root/send/srchdata/srchorddeptflag", model.getValue("/root/init/orddept/dept[1]/orddeptflag"));
  289. submit("TRADT10325");
  290. model.setValue("/root/send/srchdata/srchprcpcd", model.getValue("/root/main/sumlist/suminfo[1]/prcpcd"));
  291. submit("TRADT10327");
  292. }
  293. ]]>
  294. </script>
  295. </datagrid>
  296. </group>
  297. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  298. <button id="button1" class="btn6_letter5" navindex="13" visibility="visible" style="left:106px; top:5px; width:92px; height:22px; ">
  299. <caption>집계표출력</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. //for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++){
  303. //if ( model.getValue("/root/init/orddept/dept["+i+"]/chk")=="Y"){
  304. //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/orddept/dept["+i+"]/deptcd"));
  305. //model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/orddept/dept["+i+"]/depthngnm"));
  306. submit("TRADT10329");
  307. if(model.getValue("/root/temp/prntprcpinfo/suminfo/prcpcd") != ""){
  308. exeReportPreview("RPADT10301", "XMLSTR", "", "", "true","","","","","true");
  309. }
  310. //}
  311. // }
  312. //exeReportPreview("RPADT10300", "XML", "/root/send/srchdata");
  313. //exeReportPreview("RPADT10300", "XMLSTR", "", "", "true","","","","","true");
  314. ]]>
  315. </script>
  316. </button>
  317. <button id="button3" class="btn6_letter6" navindex="16" visibility="hidden" style="left:625px; top:5px; width:104px; height:22px; ">
  318. <caption>Fill List출력</caption>
  319. </button>
  320. <button id="button4" class="btn3_letter6" navindex="12" style="left:0px; top:5px; width:104px; height:22px; ">
  321. <caption>수액집계조회</caption>
  322. <script type="javascript" ev:event="DOMActivate">
  323. <![CDATA[
  324. open("SMADT11000",0,20,150,"SMADT11000","/root/send/srchdata/srchorddeptcd","/root/send/srchorddeptcd");
  325. ]]>
  326. </script>
  327. </button>
  328. <button id="button6" class="btn6_letter6" navindex="17" visibility="hidden" style="left:732px; top:5px; width:104px; height:22px; ">
  329. <caption>환자별검수지</caption>
  330. </button>
  331. <button id="button7" class="btn6_letter4" navindex="18" visibility="hidden" style="left:840px; top:5px; width:80px; height:22px; ">
  332. <caption>네임카드</caption>
  333. </button>
  334. <button id="button5" class="btn4_letter4" navindex="19" visibility="hidden" style="left:1115px; top:5px; width:80px; height:22px; ">
  335. <caption>집계취소</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. if ( messageBox("집계취소를 ","Q004")==6 ) {
  339. submit("TXADT10322");
  340. submit("TRADT10324");
  341. }
  342. ]]>
  343. </script>
  344. </button>
  345. <button id="button2" class="btn6_letter7" navindex="14" style="left:200px; top:5px; width:116px; height:22px; ">
  346. <caption>환자별목록출력</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. //for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  350. //if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
  351. //UDS로 집계된 사항만 Fill List로 출력 가능
  352. ///if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
  353. //model.setValue("/root/send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  354. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+ grd_drugsum.row+"]/depthngnm"));
  355. submit("TRADT10332");
  356. if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
  357. exeReportPreview("RPADT10302", "XMLSTR", "", "", "false","","","","","false");
  358. }
  359. if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
  360. exeReportPreview("RPADT10303", "XMLSTR", "", "", "false","","","","","false");
  361. }
  362. if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
  363. exeReportPreview("RPADT10304", "XMLSTR", "", "", "false","","","","","false");
  364. }
  365. //}else{
  366. // messageBox("UDS 집계항목을", "C002");
  367. // break;
  368. //}
  369. //}
  370. //}
  371. ]]>
  372. </script>
  373. </button>
  374. <button id="button8" class="btn6_letter7" navindex="15" style="left:318px; top:5px; width:116px; height:22px; ">
  375. <caption>약품별목록출력</caption>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. //alert("개발중입니다.");
  379. //return;
  380. //for(var i = grd_sumdeptlist.fixedRows; i < grd_sumdeptlist.rows; i++){
  381. //if ( model.getValue("/root/init/sumorddept/dept["+i+"]/chk")=="Y"){
  382. //UDS로 집계된 사항만 Fill List로 출력 가능
  383. ///if(model.getValue("/root/init/sumorddept/dept/sumkind") == "U"){
  384. //model.setValue("/root/1send/srchdata/srchorddeptcd", model.getValue("/root/init/sumorddept/dept["+i+"]/deptcd"));
  385. model.setValue("/root/temp/prntinfo/wardnm", model.getValue("/root/init/sumorddept/dept["+ grd_drugsum.row +"]/depthngnm"));
  386. model.setValue("/root/send/srchdata/orderby", "drugcd");
  387. submit("TRADT10332");
  388. if(model.getValue("/root/temp/prntudsinfo/injinfo/pid") != ""){
  389. exeReportPreview("RPADT10308", "XMLSTR", "", "", "false","","","","","false");
  390. }
  391. if(model.getValue("/root/temp/prntudsinfo/exuinfo/pid") != ""){
  392. exeReportPreview("RPADT10309", "XMLSTR", "", "", "false","","","","","false");
  393. }
  394. if(model.getValue("/root/temp/prntudsinfo/ptpinfo/pid") != ""){
  395. exeReportPreview("RPADT10310", "XMLSTR", "", "", "false","","","","","false");
  396. }
  397. //}else{
  398. // messageBox("UDS 집계항목을", "C002");
  399. // break;
  400. //}
  401. //}
  402. //}
  403. ]]>
  404. </script>
  405. </button>
  406. </group>
  407. <group id="group2" style="left:0px; top:40px; width:605px; height:135px; ">
  408. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:605px; height:134px; background-color:#fffbf2; border-color:#ffd799; "/>
  409. <caption id="caption1" class="search_name" style="left:5px; top:13px; width:90px; height:17px; ">조회구간 :</caption>
  410. <caption id="caption4" class="search_name" style="left:5px; top:38px; width:70px; height:17px; ">구분1 :</caption>
  411. <caption id="caption5" class="search_name" style="left:5px; top:84px; width:70px; height:17px; ">구분2 :</caption>
  412. <select id="checkbox1" ref="/root/send/srchdata/drugflag" class="checkbox_search" navindex="4" overflow="visible" appearance="full" cols="5" style="left:145px; top:38px; width:135px; height:20px; border-style:none; ">
  413. <choices>
  414. <item>
  415. <label>약</label>
  416. <value>1</value>
  417. </item>
  418. <item>
  419. <label>주사</label>
  420. <value>2</value>
  421. </item>
  422. </choices>
  423. </select>
  424. <select id="checkbox3" ref="/root/send/srchdata/prcpflag" class="checkbox_search" navindex="8" overflow="visible" appearance="full" cols="5" style="left:93px; top:109px; width:200px; height:20px; border-style:none; ">
  425. <choices>
  426. <item>
  427. <label>일반</label>
  428. <value>1</value>
  429. </item>
  430. <item>
  431. <label>선처치</label>
  432. <value>2</value>
  433. </item>
  434. <item>
  435. <label>Set처방</label>
  436. <value>3</value>
  437. </item>
  438. </choices>
  439. </select>
  440. <line id="line13" class="line_4" style="x1:540px; y1:15px; x2:540px; y2:128px; border-color:#ffe4bb; border-left-style:solid; "/>
  441. <button id="btn_sea" class="btn1_letter2" style="left:545px; top:55px; width:56px; height:22px; ">
  442. <caption>조회</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. //model.setValue("/root/send/srchdata/sumdeptcd", model.getValue("/root/temp/sumdeptcd/deptcd/deptcd"));
  446. submit("TRADT10324");
  447. if(model.getValue("/root/temp/sumdeptcd/deptcd/orddeptflag") == "W") { //20100322 황세원 수정
  448. //if(model.getValue("/root/init/orddept/dept/orddeptflag") == "W") {
  449. caption5.visible = true;
  450. rdo_prcp.visible = true;
  451. } else {
  452. caption5.visible = false;
  453. rdo_prcp.visible = false;
  454. }
  455. ]]>
  456. </script>
  457. </button>
  458. <input id="ipt_sumdt1" ref="/root/send/srchdata/srchfromdd" class="input_default" navindex="1" inputtype="date" style="left:93px; top:11px; width:95px; height:19px; "/>
  459. <input id="ipt_sumdt2" ref="/root/send/srchdata/srchtodd" class="input_default" navindex="2" inputtype="date" style="left:205px; top:11px; width:95px; height:19px; "/>
  460. <caption id="caption32" style="left:192px; top:10px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  461. <select1 id="radio1" ref="/root/send/srchdata/udsflag" navindex="3" appearance="full" cols="1" rows="2" vcellspacing="8" overflow="visible" style="left:93px; top:35px; width:50px; height:50px; border-style:none; ">
  462. <choices>
  463. <item>
  464. <label>일반</label>
  465. <value>N</value>
  466. </item>
  467. <item>
  468. <label>UDS</label>
  469. <value>U</value>
  470. </item>
  471. </choices>
  472. <script type="javascript" ev:event="xforms-value-changed">
  473. <![CDATA[
  474. if(radio1.value == "N") {
  475. checkbox1.value = "1 2";
  476. checkbox1.disabled = false;
  477. checkbox4.value = "";
  478. checkbox4.disabled = true;
  479. } else {
  480. checkbox1.value = "";
  481. checkbox1.disabled = true;
  482. checkbox4.value = "3 4 5";
  483. checkbox4.disabled = false;
  484. }
  485. ]]>
  486. </script>
  487. </select1>
  488. <select id="checkbox4" ref="/root/send/srchdata/drugflag" class="checkbox_search" disabled="true" navindex="5" overflow="visible" appearance="full" cols="5" style="left:150px; top:63px; width:175px; height:20px; border-style:none; ">
  489. <choices>
  490. <item>
  491. <label>PTP</label>
  492. <value>3</value>
  493. </item>
  494. <item>
  495. <label>주사</label>
  496. <value>4</value>
  497. </item>
  498. <item>
  499. <label>외용,수제</label>
  500. <value>5</value>
  501. </item>
  502. </choices>
  503. </select>
  504. <caption id="caption3" class="search_name" style="left:5px; top:109px; width:70px; height:17px; ">구분3 :</caption>
  505. <select id="rdo_prcp" ref="/root/send/srchdata/prcpkindcd" navindex="7" overflow="visible" appearance="full" cols="4" style="left:93px; top:85px; width:217px; height:15px; border-style:none; ">
  506. <choices>
  507. <item>
  508. <label>정규</label>
  509. <value>R</value>
  510. </item>
  511. <item>
  512. <label>추가</label>
  513. <value>A</value>
  514. </item>
  515. <item>
  516. <label>응급</label>
  517. <value>E</value>
  518. </item>
  519. <item>
  520. <label>Admission</label>
  521. <value>M</value>
  522. </item>
  523. </choices>
  524. </select>
  525. <group id="grp_zone" style="left:300px; top:35px; width:275px; height:25px; background-color:transparent; ">
  526. <select1 id="cmb_zone" ref="/root/send/srchdata/sumdeptcd" class="combo_search" navindex="6" appearance="minimal" style="left:70px; top:0px; width:160px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  527. <choices>
  528. <itemset nodeset="/root/temp/zoneinfo/zonelist">
  529. <label ref="cdnm"/>
  530. <value ref="cdid"/>
  531. </itemset>
  532. </choices>
  533. <script type="javascript" ev:event="xforms-value-changed">
  534. <![CDATA[
  535. //fSrchPatRtnDrugList(); // 환자별, 처방별 반납약리스트 조회
  536. ]]>
  537. </script>
  538. </select1>
  539. <caption id="caption2" class="search_name" style="left:0px; top:2px; width:65px; height:17px; ">구역 :</caption>
  540. </group>
  541. </group>
  542. </xhtml:body>
  543. </xhtml:html>