SMADS00400_일자별처방조제량통계.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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. <statslist/>
  11. </main>
  12. <send>
  13. <srchfromdd/>
  14. <srchtodd/>
  15. <globalinstance>
  16. <instance1/>
  17. </globalinstance>
  18. <suppdeptcd/>
  19. <srchioflag/>
  20. <formflag>1</formflag>
  21. <srchdeptcd/>
  22. <deptinfo>
  23. <deptflag/>
  24. </deptinfo>
  25. <baseinfo>
  26. <spcldrug/>
  27. <efcycd/>
  28. </baseinfo>
  29. <srchdata>
  30. <drugcd/>
  31. </srchdata>
  32. <srchwardcd/>
  33. <srchduty/>
  34. <od1fromtm>083000</od1fromtm>
  35. <od1totm>173000</od1totm>
  36. <od2fromtm>173001</od2fromtm>
  37. <od2totm>200000</od2totm>
  38. <onfromtm>200001</onfromtm>
  39. <ontotm>235959</ontotm>
  40. <id1fromtm>080000</id1fromtm>
  41. <id1totm>170000</id1totm>
  42. <id2fromtm>170001</id2fromtm>
  43. <id2totm>200000</id2totm>
  44. <in1fromtm>200001</in1fromtm>
  45. <in1totm>235959</in1totm>
  46. <in2fromtm>000000</in2fromtm>
  47. <in2totm>070000</in2totm>
  48. <srchoduty/>
  49. <srchiduty/>
  50. <srchdutyflag/>
  51. </send>
  52. <init>
  53. </init>
  54. <hidden>
  55. <srchinfo>
  56. <wardcd/>
  57. <wardnm/>
  58. </srchinfo>
  59. <baseinfo>
  60. <spcldrug>
  61. <A0006/>
  62. </spcldrug>
  63. </baseinfo>
  64. <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
  65. <orddept>
  66. <dept/>
  67. </orddept>
  68. <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
  69. <send_w_d_cdname/>
  70. </hidden>
  71. <temp>
  72. <srchinfo>
  73. <ward/>
  74. </srchinfo>
  75. <receivedata>
  76. <receiveref/>
  77. <srchflag/>
  78. <srchcnts/>
  79. <drugkind/>
  80. </receivedata>
  81. </temp>
  82. </root>
  83. </instance>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  88. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  89. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  90. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  91. <script type="javascript" ev:event="xforms-ready">
  92. <![CDATA[
  93. var rdo_children = rdo_formcd.children;
  94. rdo_children.item(1).attribute("disable") = true;
  95. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  96. model.setValue("/root/send/srchfromdd", getCurrentDate());
  97. model.setValue("/root/send/srchtodd", getCurrentDate());
  98. model.setValue("/root/send/srchioflag", "전체");
  99. model.setValue("/root/send/formflag", "1");
  100. makeReportPreview(0,150,1195,570);
  101. //병동 Combo 조회
  102. model.setValue("/root/send/deptinfo/deptflag", "W");
  103. submit("TRADT10203");
  104. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  105. // 진료과세팅
  106. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
  107. if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
  108. astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
  109. }
  110. model.refresh();
  111. ]]>
  112. </script>
  113. <submission id="TRZBC00101"/>
  114. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  115. <submission id="TRADS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  116. <submission id="TRADS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  117. <submission id="TRADS00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  118. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  119. </model>
  120. </xhtml:head>
  121. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  123. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:250px; height:14px; ">일자별 처방조제량 통계</caption>
  124. </group>
  125. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  126. <line id="line1" class="line_1" style="x1:0px; y1:135px; x2:1195px; y2:135px; "/>
  127. <group id="group1" style="left:0px; top:10px; width:1195px; height:115px; vertical-align:top; ">
  128. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  129. <line id="line2" class="line_4" style="x1:1110px; y1:15px; x2:1110px; y2:95px; "/>
  130. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:24px; width:56px; height:22px; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. model.setValue("/root/send/srchwardcd", model.getValue("/root/temp/srchinfo/ward"));
  135. var formflag = model.getValue("/root/send/formflag");
  136. if ( formflag == "1" ) {
  137. if(submit("TRADS00402")){
  138. exeReportPreview("RPADS00402", "XMLSTR", "/root/main/statslist/item");
  139. }
  140. }
  141. else if ( formflag == "2" ) {
  142. if(submit("TRADS00401")){
  143. exeReportPreview("RPADS00401", "XMLSTR", "/root/main/statslist/item");
  144. }
  145. }
  146. else if ( formflag == "3" ) {
  147. model.setValue("/root/send/srchdutyflag","");
  148. // 20130524
  149. i
  150. var drugflag1 = model.getValue("/root/send/srchoduty");
  151. var temp="";
  152. var count = 0;
  153. if(drugflag1 != "") {
  154. var drugflagData = drugflag1.split("|");
  155. for(var i = 0; i < drugflagData.length; i++) {
  156. if (count == 0 ) {
  157. temp = "'" + drugflagData[i] + "'";
  158. count = count + 1;
  159. } else {
  160. temp += ",'" + drugflagData[i] + "'" ;
  161. count = count + 1;
  162. }
  163. }
  164. }
  165. var drugflag2 = model.getValue("/root/send/srchiduty");
  166. if(drugflag2 != "") {
  167. var drugflagData2 = drugflag2.split("|");
  168. for(var i = 0; i < drugflagData2.length; i++) {
  169. if (count == 0 ) {
  170. temp = "'" + drugflagData2[i] + "'";
  171. count = count + 1;
  172. } else {
  173. temp += ",'" + drugflagData2[i] + "'" ;
  174. count = count + 1;
  175. }
  176. }
  177. }
  178. if(temp != "") {
  179. model.setValue("/root/send/srchdutyflag", temp);
  180. }
  181. if(submit("TRADS00403")){
  182. exeReportPreview("RPADS00403", "XMLSTR", "/root/main/statslist/item");
  183. }
  184. }
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </button>
  189. <caption id="caption2" class="search_name" style="left:15px; top:40px; width:86px; height:17px; ">일자구간 :</caption>
  190. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:40px; width:100px; height:19px; "/>
  191. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:40px; width:100px; height:19px; "/>
  192. <caption id="caption5" class="search_no_b" style="left:213px; top:40px; width:12px; height:17px; ">~</caption>
  193. <select1 id="combo1" ref="/root/send/srchioflag" class="combo_search" appearance="minimal" style="left:110px; top:15px; width:100px; height:19px; ">
  194. <choices>
  195. <item>
  196. <label>전체</label>
  197. <value>전체</value>
  198. </item>
  199. <item>
  200. <label>병동약국</label>
  201. <value>병동</value>
  202. </item>
  203. <item>
  204. <label>외래약국</label>
  205. <value>외래</value>
  206. </item>
  207. <item>
  208. <label>특수조제실</label>
  209. <value>특조</value>
  210. </item>
  211. </choices>
  212. </select1>
  213. <caption id="caption3" class="search_name" style="left:15px; top:16px; width:86px; height:17px; ">조제장소 :</caption>
  214. <caption id="caption4" class="search_name" style="left:775px; top:15px; width:86px; height:17px; ">통계양식 :</caption>
  215. <select1 id="rdo_formcd" ref="/root/send/formflag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:870px; top:15px; width:225px; height:20px; border-style:none; ">
  216. <choices>
  217. <item>
  218. <label>진료과별</label>
  219. <value>1</value>
  220. </item>
  221. <item>
  222. <label>병동별</label>
  223. <value>2</value>
  224. </item>
  225. <item>
  226. <label>근무형태별</label>
  227. <value>3</value>
  228. </item>
  229. </choices>
  230. </select1>
  231. <caption id="caption8" class="search_name" style="left:775px; top:40px; width:86px; height:17px; ">병동 :</caption>
  232. <caption id="caption10" class="search_name" style="left:775px; top:65px; width:86px; height:17px; ">진료과 :</caption>
  233. <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:870px; top:65px; width:170px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/hidden/orddept/dept">
  236. <label ref="depthngnm"/>
  237. <value ref="deptcd"/>
  238. </itemset>
  239. </choices>
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. model.setValue("/root/hidden/send_w_d_cdname", model.getValue(cmb_orddept.choices.itemset.attribute("nodeset")+"[deptcd ='"+model.getValue("/root/send/srchdeptcd")+"']/depthngnm"));
  243. ]]>
  244. </script>
  245. </select1>
  246. <button id="button2" class="icon_search" style="left:1070px; top:40px; width:16px; height:16px; ">
  247. <caption/>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. if(chk_ward.visible==true){
  251. chk_ward.visible = false;
  252. }else {
  253. chk_ward.visible = true;
  254. }
  255. model.refresh();
  256. ]]>
  257. </script>
  258. </button>
  259. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:870px; top:40px; width:196px; height:19px; "/>
  260. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:331px; top:5px; width:75px; height:95px; "/>
  261. <select id="checkbox1" ref="/root/send/srchoduty" overflow="visible" appearance="full" rows="3" sep="|" style="left:340px; top:29px; width:60px; height:55px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>Day1</label>
  265. <value>oDay1</value>
  266. </item>
  267. <item>
  268. <label>Day2</label>
  269. <value>oDay2</value>
  270. </item>
  271. <item>
  272. <label>Nigth</label>
  273. <value>oNight</value>
  274. </item>
  275. </choices>
  276. </select>
  277. <caption id="caption1" style="left:343px; top:9px; width:50px; height:20px; text-align:center; ">외래</caption>
  278. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:553px; top:5px; width:75px; height:95px; "/>
  279. <select id="checkbox2" ref="/root/send/srchiduty" overflow="visible" appearance="full" rows="3" sep="|" style="left:560px; top:29px; width:60px; height:66px; border-style:none; ">
  280. <choices>
  281. <item>
  282. <label>Day1</label>
  283. <value>iDay1</value>
  284. </item>
  285. <item>
  286. <label>Day2</label>
  287. <value>iDay2</value>
  288. </item>
  289. <item>
  290. <label>Nigth1</label>
  291. <value>iNight1</value>
  292. </item>
  293. <item>
  294. <label>Nigth2</label>
  295. <value>iNight2</value>
  296. </item>
  297. </choices>
  298. </select>
  299. <caption id="caption7" style="left:565px; top:9px; width:50px; height:20px; text-align:center; ">병동</caption>
  300. <input id="ipt_fromtm" ref="/root/send/od1fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:412px; top:30px; width:52px; height:19px; "/>
  301. <input id="ipt_totm" ref="/root/send/od1totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:488px; top:30px; width:52px; height:19px; ">
  302. <script type="javascript" ev:event="xforms-value-changed">
  303. <![CDATA[
  304. /* var totm = model.getValue("/root/send/totm");
  305. if(totm == "235959") {
  306. model.setValue("/root/send/fromtm", "000000");
  307. } else {
  308. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  309. }
  310. model.refresh();*/
  311. ]]>
  312. </script>
  313. </input>
  314. <caption id="caption9" class="search_no_b" style="left:470px; top:32px; width:12px; height:17px; ">~</caption>
  315. <input id="input1" ref="/root/send/od2totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:488px; top:50px; width:52px; height:19px; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. /* var totm = model.getValue("/root/send/totm");
  319. if(totm == "235959") {
  320. model.setValue("/root/send/fromtm", "000000");
  321. } else {
  322. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  323. }
  324. model.refresh();*/
  325. ]]>
  326. </script>
  327. </input>
  328. <input id="input2" ref="/root/send/od2fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:412px; top:50px; width:52px; height:19px; "/>
  329. <caption id="caption11" class="search_no_b" style="left:470px; top:52px; width:12px; height:17px; ">~</caption>
  330. <caption id="caption12" class="search_no_b" style="left:470px; top:72px; width:12px; height:17px; ">~</caption>
  331. <input id="input3" ref="/root/send/ontotm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:488px; top:70px; width:52px; height:19px; ">
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. /* var totm = model.getValue("/root/send/totm");
  335. if(totm == "235959") {
  336. model.setValue("/root/send/fromtm", "000000");
  337. } else {
  338. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  339. }
  340. model.refresh();*/
  341. ]]>
  342. </script>
  343. </input>
  344. <input id="input4" ref="/root/send/onfromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:412px; top:70px; width:52px; height:19px; "/>
  345. <input id="input5" ref="/root/send/id1totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:710px; top:25px; width:52px; height:19px; ">
  346. <script type="javascript" ev:event="xforms-value-changed">
  347. <![CDATA[
  348. /* var totm = model.getValue("/root/send/totm");
  349. if(totm == "235959") {
  350. model.setValue("/root/send/fromtm", "000000");
  351. } else {
  352. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  353. }
  354. model.refresh();*/
  355. ]]>
  356. </script>
  357. </input>
  358. <caption id="caption13" class="search_no_b" style="left:692px; top:47px; width:12px; height:17px; ">~</caption>
  359. <caption id="caption14" class="search_no_b" style="left:692px; top:67px; width:12px; height:17px; ">~</caption>
  360. <input id="input6" ref="/root/send/id1fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:634px; top:25px; width:52px; height:19px; "/>
  361. <input id="input7" ref="/root/send/id2totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:710px; top:45px; width:52px; height:19px; ">
  362. <script type="javascript" ev:event="xforms-value-changed">
  363. <![CDATA[
  364. /* var totm = model.getValue("/root/send/totm");
  365. if(totm == "235959") {
  366. model.setValue("/root/send/fromtm", "000000");
  367. } else {
  368. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  369. }
  370. model.refresh();*/
  371. ]]>
  372. </script>
  373. </input>
  374. <input id="input8" ref="/root/send/id2fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:634px; top:45px; width:52px; height:19px; "/>
  375. <input id="input9" ref="/root/send/in1totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:710px; top:65px; width:52px; height:19px; ">
  376. <script type="javascript" ev:event="xforms-value-changed">
  377. <![CDATA[
  378. /* var totm = model.getValue("/root/send/totm");
  379. if(totm == "235959") {
  380. model.setValue("/root/send/fromtm", "000000");
  381. } else {
  382. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  383. }
  384. model.refresh();*/
  385. ]]>
  386. </script>
  387. </input>
  388. <input id="input10" ref="/root/send/in1fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:634px; top:65px; width:52px; height:19px; "/>
  389. <caption id="caption15" class="search_no_b" style="left:692px; top:27px; width:12px; height:17px; ">~</caption>
  390. <input id="input11" ref="/root/send/in2totm" class="input_search" autonext="false" maxlength="5" format="hh:nn:ss" style="left:710px; top:85px; width:52px; height:19px; ">
  391. <script type="javascript" ev:event="xforms-value-changed">
  392. <![CDATA[
  393. /* var totm = model.getValue("/root/send/totm");
  394. if(totm == "235959") {
  395. model.setValue("/root/send/fromtm", "000000");
  396. } else {
  397. model.setValue("/root/send/fromtm", parseInt(totm) + 1);
  398. }
  399. model.refresh();*/
  400. ]]>
  401. </script>
  402. </input>
  403. <input id="input12" ref="/root/send/in2fromtm" class="input_search" disabled="false" autonext="false" editable="true" maxlength="5" format="hh:nn:ss" style="left:634px; top:85px; width:52px; height:19px; "/>
  404. <caption id="caption16" class="search_no_b" style="left:692px; top:87px; width:12px; height:17px; ">~</caption>
  405. </group>
  406. </group>
  407. <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:775px; top:110px; width:170px; height:20px; background-color:#e5eae9; border-style:none; ">
  408. <choices>
  409. <itemset nodeset="/root/hidden/deptlist/ward">
  410. <label ref="wardnm"/>
  411. <value ref="wardcd"/>
  412. </itemset>
  413. </choices>
  414. <script type="javascript" ev:event="onclick">
  415. <![CDATA[
  416. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  417. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  418. 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");
  419. } else {
  420. //ipt_wardcd.value = "";
  421. //ipt_wardnm.value = "";
  422. model.setValue("/root/temp/srchinfo/ward", "");
  423. }
  424. model.refresh();
  425. }
  426. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  427. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  428. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  429. } else {
  430. ipt_wardcd.value = chk_ward.value;
  431. ipt_wardnm.value = chk_ward.label;
  432. }
  433. ]]>
  434. </script>
  435. </select>
  436. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:955px; top:110px; width:150px; height:19px; "/>
  437. </xhtml:body>
  438. </xhtml:html>