SMADS00300_마약류업무통계.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. <statslist/>
  11. </main>
  12. <send>
  13. <srchfromdd/>
  14. <srchtodd/>
  15. <globalinstance>
  16. <instance1/>
  17. </globalinstance>
  18. <suppdeptcd/>
  19. <srchioflag/>
  20. <formflag1/>
  21. <narcflag>M</narcflag>
  22. <drugflag1/>
  23. <drugflag2/>
  24. <srchdeptcd/>
  25. <srchdrid/>
  26. <drugflag1all/>
  27. <drugflag2all/>
  28. <deptinfo>
  29. <deptflag/>
  30. </deptinfo>
  31. <baseinfo>
  32. <spcldrug/>
  33. <efcycd/>
  34. </baseinfo>
  35. <srchdata>
  36. <drugcd/>
  37. </srchdata>
  38. <srchwardcd/>
  39. <formflag/>
  40. </send>
  41. <init>
  42. </init>
  43. <hidden>
  44. <srchinfo>
  45. <wardcd/>
  46. <wardnm/>
  47. </srchinfo>
  48. <baseinfo>
  49. <spcldrug>
  50. <A0006/>
  51. </spcldrug>
  52. </baseinfo>
  53. <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
  54. <orddept>
  55. <dept/>
  56. </orddept>
  57. <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
  58. </hidden>
  59. <temp>
  60. <srchinfo>
  61. <ward/>
  62. </srchinfo>
  63. <receivedata>
  64. <receiveref/>
  65. <srchflag/>
  66. <srchcnts/>
  67. <drugkind/>
  68. </receivedata>
  69. </temp>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  76. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  77. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  78. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. var rdo_children = rdo_formcd.children;
  82. rdo_children.item(1).attribute("disable") = true;
  83. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  84. model.setValue("/root/send/srchfromdd", getCurrentDate());
  85. model.setValue("/root/send/srchtodd", getCurrentDate());
  86. model.setValue("/root/send/srchioflag", "전체");
  87. model.setValue("/root/send/formflag", "1");
  88. model.setValue("/root/send/formflag1", "1");
  89. model.setValue("/root/send/drugflag1", "재원 퇴원 외래");
  90. model.setValue("/root/send/drugflag2", "원내 원외");
  91. model.setValue("/root/send/drugflag1all", "전체");
  92. model.setValue("/root/send/drugflag2all", "전체");
  93. makeReportPreview(0,150,1195,570);
  94. //병동 Combo 조회
  95. model.setValue("/root/send/deptinfo/deptflag", "W");
  96. submit("TRADT10203");
  97. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  98. // 진료과세팅
  99. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
  100. if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
  101. astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
  102. }
  103. model.refresh();
  104. ]]>
  105. </script>
  106. <submission id="TRZBC00101"/>
  107. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  108. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  109. <submission id="TRADS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  110. </model>
  111. </xhtml:head>
  112. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  114. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">마약류 업무 통계</caption>
  115. </group>
  116. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  117. <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:1195px; y2:135px; "/>
  118. <group id="group1" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
  119. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  120. <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:85px; "/>
  121. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:34px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. model.setValue("/root/send/srchwardcd", model.getValue("/root/temp/srchinfo/ward"));
  126. model.refresh();
  127. if ( model.getValue("/root/send/formflag1") == '1' ) {
  128. if(submit("TRADS00301")){
  129. exeReportPreview("RPADS00301", "XMLSTR", "/root/main/statslist/item");
  130. }
  131. } else {
  132. }
  133. ]]>
  134. </script>
  135. </button>
  136. <caption id="caption2" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">일자구간 :</caption>
  137. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:30px; width:100px; height:19px; "/>
  138. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:30px; width:100px; height:19px; "/>
  139. <caption id="caption5" class="search_no_b" style="left:213px; top:30px; width:12px; height:17px; ">~</caption>
  140. <select1 id="combo1" ref="/root/send/srchioflag" class="combo_search" appearance="minimal" style="left:110px; top:5px; width:100px; height:19px; ">
  141. <choices>
  142. <item>
  143. <label>전체</label>
  144. <value>전체</value>
  145. </item>
  146. <item>
  147. <label>병동약국</label>
  148. <value>병동</value>
  149. </item>
  150. <item>
  151. <label>외래약국</label>
  152. <value>외래</value>
  153. </item>
  154. <item>
  155. <label>특수조제실</label>
  156. <value>특조</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <caption id="caption3" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">조제장소 :</caption>
  161. <caption id="caption4" class="search_name" style="left:345px; top:5px; width:86px; height:17px; ">통계양식 :</caption>
  162. <caption id="caption7" class="search_name" style="left:345px; top:55px; width:86px; height:17px; ">처방구분 :</caption>
  163. <select1 id="rdo_formcd" ref="/root/send/formflag1" class="radio_search" appearance="full" cols="2" rows="2" vcellspacing="2" overflow="visible" style="left:440px; top:5px; width:135px; height:20px; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>사용량</label>
  167. <value>1</value>
  168. </item>
  169. <item>
  170. <label>재고</label>
  171. <value>2</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <select id="chk_drugflag1" ref="/root/send/drugflag1" overflow="visible" appearance="full" cols="3" style="left:440px; top:55px; width:136px; height:20px; border-style:none; ">
  176. <choices>
  177. <item>
  178. <label>재원</label>
  179. <value>재원</value>
  180. </item>
  181. <item>
  182. <label>퇴원</label>
  183. <value>퇴원</value>
  184. </item>
  185. <item>
  186. <label>외래</label>
  187. <value>외래</value>
  188. </item>
  189. </choices>
  190. </select>
  191. <select id="chk_drugflag1all" ref="/root/send/drugflag1all" overflow="visible" appearance="full" cols="3" style="left:580px; top:55px; width:50px; height:20px; border-style:none; ">
  192. <choices>
  193. <item>
  194. <label>전체</label>
  195. <value>전체</value>
  196. </item>
  197. </choices>
  198. <script type="javascript" ev:event="onclick">
  199. <![CDATA[
  200. if(model.getValue("/root/send/drugflag1all") == "전체")
  201. {
  202. chk_drugflag1.select(0);
  203. chk_drugflag1.select(1);
  204. chk_drugflag1.select(2);
  205. }
  206. else
  207. {
  208. chk_drugflag1.deselect(0);
  209. chk_drugflag1.deselect(1);
  210. chk_drugflag1.deselect(2);
  211. }
  212. ]]>
  213. </script>
  214. </select>
  215. <select id="chk_drugflag2" ref="/root/send/drugflag2" overflow="visible" appearance="full" cols="3" style="left:440px; top:78px; width:92px; height:20px; border-style:none; ">
  216. <choices>
  217. <item>
  218. <label>원내</label>
  219. <value>원내</value>
  220. </item>
  221. <item>
  222. <label>원외</label>
  223. <value>원외</value>
  224. </item>
  225. </choices>
  226. </select>
  227. <select id="chk_drugflag2all" ref="/root/send/drugflag2all" overflow="visible" appearance="full" cols="3" style="left:536px; top:78px; width:50px; height:20px; border-style:none; ">
  228. <choices>
  229. <item>
  230. <label>전체</label>
  231. <value>전체</value>
  232. </item>
  233. </choices>
  234. <script type="javascript" ev:event="onclick">
  235. <![CDATA[
  236. if(model.getValue("/root/send/drugflag2all") == "전체")
  237. {
  238. chk_drugflag2.select(0);
  239. chk_drugflag2.select(1);
  240. }
  241. else
  242. {
  243. chk_drugflag2.deselect(0);
  244. chk_drugflag2.deselect(1);
  245. }
  246. ]]>
  247. </script>
  248. </select>
  249. <caption id="caption8" class="search_name" style="left:15px; top:55px; width:86px; height:17px; ">병동 :</caption>
  250. <caption id="caption10" class="search_name" style="left:15px; top:80px; width:86px; height:17px; ">진료과 :</caption>
  251. <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:110px; top:80px; width:170px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/hidden/orddept/dept">
  254. <label ref="depthngnm"/>
  255. <value ref="deptcd"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <button id="button2" class="icon_search" style="left:310px; top:55px; width:16px; height:16px; ">
  260. <caption/>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. if(chk_ward.visible==true){
  264. chk_ward.visible = false;
  265. }else {
  266. chk_ward.visible = true;
  267. }
  268. model.refresh();
  269. ]]>
  270. </script>
  271. </button>
  272. <caption id="caption1" class="search_name" style="left:675px; top:5px; width:86px; height:17px; ">마약종류 :</caption>
  273. <select1 id="radio1" ref="/root/send/narcflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:770px; top:5px; width:135px; height:20px; border-style:none; ">
  274. <choices>
  275. <item>
  276. <label>마약</label>
  277. <value>M</value>
  278. </item>
  279. <item>
  280. <label>향정</label>
  281. <value>H</value>
  282. </item>
  283. <item>
  284. <label>전체</label>
  285. <value/>
  286. </item>
  287. </choices>
  288. </select1>
  289. <datagrid id="datagrid1" caption="선택^명칭^코드" colsep="^" colwidth="40, 189, 126" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:680px; top:30px; width:400px; height:70px; text-align:center; vertical-align:middle; ">
  290. <col type="checkbox"/>
  291. <col/>
  292. <col/>
  293. </datagrid>
  294. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:110px; top:55px; width:196px; height:19px; "/>
  295. <select1 id="radio2" ref="/root/send/formflag" class="radio_search" appearance="full" cols="2" rows="2" vcellspacing="2" overflow="visible" style="left:440px; top:25px; width:135px; height:20px; border-style:none; ">
  296. <choices>
  297. <item>
  298. <label>진료과별</label>
  299. <value>1</value>
  300. </item>
  301. <item>
  302. <label>병동별</label>
  303. <value>2</value>
  304. </item>
  305. </choices>
  306. </select1>
  307. </group>
  308. <select id="chk_ward" ref="/root/temp/srchinfo/ward" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:110px; top:85px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  309. <choices>
  310. <itemset nodeset="/root/hidden/deptlist/ward">
  311. <label ref="wardnm"/>
  312. <value ref="wardcd"/>
  313. </itemset>
  314. </choices>
  315. <script type="javascript" ev:event="onclick">
  316. <![CDATA[
  317. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  318. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  319. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  320. model.setValue("/root/temp/srchinfo/ward", "T,2100300000,2110200000,2110201000,2280200000,2360800000,2361501000,3050107000,3050108000,3050109000,3050110000,3050112000,3050113000,3050115000,3050116000,3050118000,3050119000,3050120000,3050121000,3050122000,3050123000,3050135000,3050136000,3060000000,3060100000,3060200000,3060300000,3060400000,3060600000,3120400000");
  321. } else {
  322. //ipt_wardcd.value = "";
  323. //ipt_wardnm.value = "";
  324. model.setValue("/root/temp/srchinfo/ward", "");
  325. }
  326. model.refresh();
  327. }
  328. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  329. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  330. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  331. } else {
  332. ipt_wardcd.value = chk_ward.value;
  333. ipt_wardnm.value = chk_ward.label;
  334. }
  335. //input3.refresh();
  336. //검사실 체크박스 감추기
  337. //chk_excuroom.visible = false;
  338. ]]>
  339. </script>
  340. </select>
  341. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:320px; top:85px; width:140px; height:19px; "/>
  342. </group>
  343. </xhtml:body>
  344. </xhtml:html>