SMADS01600_복약상담통계.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. <item>
  12. <title/>
  13. <inreplcnt/>
  14. <inreplpatcnt/>
  15. <innonreplcnt/>
  16. <innonreplpatcnt/>
  17. <inexeccnt/>
  18. <inpatcnt/>
  19. <inprcpcnt/>
  20. <outreplcnt/>
  21. <outreplpatcnt/>
  22. <outnonreplcnt/>
  23. <outnonreplpatcnt/>
  24. <outexeccnt/>
  25. <outpatcnt/>
  26. <outprcpcnt/>
  27. </item>
  28. </statslist>
  29. </main>
  30. <send>
  31. <srchfromdd/>
  32. <srchtodd/>
  33. <srchchosflag/>
  34. <srchstattype1/>
  35. <srchstattype2/>
  36. <srchwardcd/>
  37. <srchcdgrupid/>
  38. <formflag1>1</formflag1>
  39. <formflag2/>
  40. <srchdeptcd/>
  41. <srchdrid/>
  42. <deptinfo>
  43. <deptflag/>
  44. </deptinfo>
  45. <baseinfo>
  46. <spcldrug/>
  47. <efcycd/>
  48. </baseinfo>
  49. <srchdrugcd/>
  50. </send>
  51. <init>
  52. <baseinfo>
  53. <tmedcnst>
  54. <A0036/>
  55. </tmedcnst>
  56. </baseinfo>
  57. </init>
  58. <hidden>
  59. <srchinfo>
  60. <wardcd/>
  61. <wardnm/>
  62. </srchinfo>
  63. <baseinfo>
  64. <spcldrug>
  65. <A0006/>
  66. </spcldrug>
  67. </baseinfo>
  68. <receivedrugcd>/root/temp/drugcd</receivedrugcd>
  69. <orddept>
  70. <dept/>
  71. </orddept>
  72. <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
  73. <srchTmed>
  74. <TMED>
  75. <cdid/>
  76. <cdnm/>
  77. </TMED>
  78. </srchTmed>
  79. </hidden>
  80. <temp>
  81. <srchinfo>
  82. <ward/>
  83. </srchinfo>
  84. <receivedata>
  85. <receiveref/>
  86. <srchflag/>
  87. <srchcnts/>
  88. <drugkind/>
  89. </receivedata>
  90. <drugcd/>
  91. </temp>
  92. </root>
  93. </instance>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  99. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  100. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  101. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  102. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. //복약구분
  106. //model.removenode("/root/hidden/srchTmed/TMED");
  107. //pharmacyGetCodeList( new Array("TMED"), new Array("/root/hidden/srchTmed") );
  108. //aezfSetSuppDeptcd();
  109. // 진료과/진료의 조회
  110. submit("TRPMOCOM01");
  111. astfAddCombo("/root/init", "orddeptcd", "cd,nm", ",전체");
  112. //병동 Combo 조회
  113. model.setValue("/root/send/deptinfo/deptflag", "W");
  114. submit("TRADT10203");
  115. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  116. // // 진료과세팅
  117. // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
  118. // if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
  119. // astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
  120. // }
  121. // 2011.03.17 pymi 복약상담
  122. model.makeNode("/root/init/baseinfo/tmedcnst/A0036") ;
  123. submit("TRADB00109");
  124. astfAddCombo("/root/init/baseinfo/tmedcnst", "A0036", "cdid,cdnm", "T,전체");
  125. // (e)
  126. var rdo_children = rdo_formcd.children;
  127. rdo_children.item(1).attribute("disable") = true;
  128. model.setValue("/root/send/srchfromdd", getNewDate().getAddDate(-7, "D").getDateFormat("YYYYMMDD"));
  129. model.setValue("/root/send/srchtodd", getCurrentDate());
  130. model.setValue("/root/send/srchchosflag", "A");
  131. model.setValue("/root/send/srchstattype1", "1");
  132. model.setValue("/root/send/srchstattype2", "1");
  133. rexObj = makeReportPreview(0,106,1195,634);
  134. // fCtrlDataSheet();
  135. chk_chosflag.visible = false;
  136. model.refresh();
  137. ]]>
  138. </script>
  139. <submission id="TRADB00001"/>
  140. <submission id="TRZBC00101"/>
  141. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  142. <submission id="TRADS01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  143. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  144. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  145. <submission id="TRADS01604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
  146. <submission id="TRADS01603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
  147. <submission id="TRADS01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statslist"/>
  148. <submission id="TRADB00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/baseinfo/tmedcnst"/>
  149. </model>
  150. <script type="javascript">
  151. <![CDATA[
  152. // var rexObj;
  153. // function fCtrlDataSheet() {
  154. // var selectVal = model.getValue("/root/send/srchstattype1");
  155. // if (selectVal == "1") {
  156. // removeReportPreview(rexObj);
  157. // grd_replDaily.visible = true;
  158. // } else {
  159. // makeReportPreview(0,106,1195,634, rexObj);
  160. // grd_replDaily.visible = false;
  161. // }
  162. // }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  168. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">복약상담 통계</caption>
  169. </group>
  170. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  171. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:100px; "/>
  172. <group id="group1" style="left:0px; top:10px; width:1195px; height:85px; vertical-align:top; ">
  173. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  174. <line id="line2" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:76px; "/>
  175. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:29px; width:56px; height:22px; ">
  176. <caption>조회</caption>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var chkVal1 = model.getValue("/root/send/srchstattype1");
  180. var chkVal2 = model.getValue("/root/send/srchstattype2");
  181. if (chkVal1 == "1") {
  182. if (submit("TRADS01601")) {
  183. if (chkVal2 == "1") {
  184. exeReportPreview("RPADS01601", "XMLSTR", "/root/main/statslist/item");
  185. } else if (chkVal2 == "2") {
  186. exeReportPreview("RPADS01602", "XMLSTR", "/root/main/statslist/item");
  187. }
  188. }
  189. } else if (chkVal1 == "2") {
  190. if (submit("TRADS01602")) {
  191. if (chkVal2 == "1") {
  192. exeReportPreview("RPADS01603", "XMLSTR", "/root/main/statslist/item");
  193. } else if (chkVal2 == "2") {
  194. exeReportPreview("RPADS01604", "XMLSTR", "/root/main/statslist/item");
  195. }
  196. }
  197. } else if (chkVal1 == "3") {
  198. if (submit("TRADS01603")) {
  199. if (chkVal2 == "1") {
  200. exeReportPreview("RPADS01605", "XMLSTR", "/root/main/statslist/item");
  201. } else if (chkVal2 == "2") {
  202. exeReportPreview("RPADS01606", "XMLSTR", "/root/main/statslist/item");
  203. }
  204. }
  205. } else if (chkVal1 == "4") {
  206. if (submit("TRADS01604")) {
  207. if (chkVal2 == "1") {
  208. exeReportPreview("RPADS01607", "XMLSTR", "/root/main/statslist/item");
  209. } else if (chkVal2 == "2") {
  210. exeReportPreview("RPADS01608", "XMLSTR", "/root/main/statslist/item");
  211. }
  212. }
  213. }
  214. ]]>
  215. </script>
  216. </button>
  217. <caption id="caption2" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">일자 :</caption>
  218. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:15px; width:100px; height:19px; "/>
  219. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:15px; width:100px; height:19px; "/>
  220. <caption id="caption5" class="search_no_b" style="left:213px; top:15px; width:12px; height:17px; ">~</caption>
  221. <select1 id="combo1" ref="/root/send/srchcdgrupid" class="combo_search" appearance="minimal" style="left:110px; top:54px; width:195px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/baseinfo/tmedcnst/A0036">
  224. <label ref="cdnm"/>
  225. <value ref="cdid"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <caption id="caption3" class="search_name" style="left:15px; top:55px; width:86px; height:17px; ">복약구분 :</caption>
  230. <caption id="caption4" class="search_name" style="left:620px; top:15px; width:86px; height:17px; ">통계양식 :</caption>
  231. <select1 id="rdo_formcd" ref="/root/send/srchstattype2" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:710px; top:35px; width:120px; height:20px; border-style:none; ">
  232. <choices>
  233. <item>
  234. <label>일자별</label>
  235. <value>1</value>
  236. </item>
  237. <item>
  238. <label>월별</label>
  239. <value>2</value>
  240. </item>
  241. </choices>
  242. </select1>
  243. <caption id="caption10" class="search_name" style="left:345px; top:55px; width:86px; height:17px; ">진료과 :</caption>
  244. <caption id="caption12" class="search_name" style="left:620px; top:55px; width:80px; height:17px; ">의사 :</caption>
  245. <caption id="caption13" class="search_name" style="left:815px; top:55px; width:80px; height:17px; ">병동 :</caption>
  246. <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:425px; top:55px; width:170px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/orddeptcd">
  249. <label ref="nm"/>
  250. <value ref="cd"/>
  251. </itemset>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
  256. model.setValue("/root/send/srchdrid", "");
  257. cmb_orddr.refresh();
  258. ]]>
  259. </script>
  260. </select1>
  261. <select1 id="cmb_orddr" ref="/root/send/srchdrid" class="combo_search" appearance="minimal" style="left:690px; top:55px; width:100px; height:19px; ">
  262. <choices>
  263. <itemset nodeset="/root/init/orddrid">
  264. <label ref="nm"/>
  265. <value ref="cd"/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. <button id="button4" class="icon_search" style="left:1085px; top:55px; width:16px; height:16px; ">
  270. <caption/>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. if(chk_ward.visible==true){
  274. chk_ward.visible = false;
  275. }else {
  276. chk_ward.visible = true;
  277. }
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </button>
  282. <select1 id="rdo_stattype1" ref="/root/send/srchstattype1" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:710px; top:15px; width:300px; height:20px; border-style:none; ">
  283. <choices>
  284. <item>
  285. <label>복약상담</label>
  286. <value>1</value>
  287. </item>
  288. <item>
  289. <label>약사별</label>
  290. <value>2</value>
  291. </item>
  292. <item>
  293. <label>과별</label>
  294. <value>3</value>
  295. </item>
  296. <item>
  297. <label>퇴원상담결과</label>
  298. <value>4</value>
  299. </item>
  300. </choices>
  301. </select1>
  302. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:885px; top:55px; width:196px; height:19px; "/>
  303. <select1 id="chk_chosflag" ref="/root/send/srchchosflag" class="radio_search" appearance="full" cols="2" overflow="visible" sep="," style="left:470px; top:15px; width:90px; height:20px; border-style:none; ">
  304. <choices>
  305. <item>
  306. <label>입원</label>
  307. <value>I</value>
  308. </item>
  309. <item>
  310. <label>외래</label>
  311. <value>O</value>
  312. </item>
  313. </choices>
  314. </select1>
  315. <select id="chk_ioflagall" ref="/root/send/srchchosflag" overflow="visible" appearance="full" cols="3" style="left:420px; top:15px; width:50px; height:20px; border-style:none; ">
  316. <choices>
  317. <item>
  318. <label>전체</label>
  319. <value>A</value>
  320. </item>
  321. </choices>
  322. <script type="javascript" ev:event="onclick">
  323. <![CDATA[
  324. var chkType = model.getValue("/root/send/srchchosflag");
  325. if (chkType.indexOf("A") > -1) {
  326. model.setValue("/root/send/srchchosflag", "A");
  327. chk_chosflag.visible = false;
  328. } else {
  329. model.setValue("/root/send/srchchosflag", "I");
  330. chk_chosflag.visible = true;
  331. chk_chosflag.refresh();
  332. }
  333. ]]>
  334. </script>
  335. </select>
  336. <caption id="caption7" class="search_name" style="left:346px; top:15px; width:70px; height:17px; ">구 분 :</caption>
  337. </group>
  338. <select id="chk_ward" ref="/root/send/srchwardcd" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" cols="8" direction="downacross" sep="," style="left:360px; top:40px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  339. <choices>
  340. <itemset nodeset="/root/hidden/deptlist/ward">
  341. <label ref="wardnm"/>
  342. <value ref="wardcd"/>
  343. </itemset>
  344. </choices>
  345. <script type="javascript" ev:event="onclick">
  346. <![CDATA[
  347. var tmpVal = model.getValue("/root/send/srchwardcd");
  348. var wardCode = "";
  349. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  350. if (tmpVal.indexOf("T") > -1) {
  351. var wardCnt = model.getXPathValue("count(/root/hidden/deptlist/ward)");
  352. for (var i = 1; i <= wardCnt; i++) {
  353. wardCode += model.getValue("/root/hidden/deptlist/ward["+i+"]/wardcd")+",";
  354. }
  355. }
  356. model.setValue("/root/send/srchwardcd", wardCode);
  357. chk_ward.refresh();
  358. }
  359. if (tmpVal.indexOf("T") > -1 ){
  360. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  361. } else {
  362. ipt_wardnm.value = chk_ward.label;
  363. }
  364. // if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  365. ]]>
  366. </script>
  367. </select>
  368. </group>
  369. <button id="button2" class="icon_search" visibility="hidden" style="left:531px; top:760px; width:16px; height:16px; ">
  370. <caption/>
  371. <script type="javascript" ev:event="DOMActivate">
  372. <![CDATA[
  373. model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  374. model.setValue("/root/temp/receivedata/srchflag", "");
  375. model.setValue("/root/temp/receivedata/srchcnts", "");
  376. model.setValue("/root/temp/receivedata/drugkind","");
  377. // 약품코드 검색
  378. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  379. var drugcd = model.getValue("/root/send/srchdrugcd");
  380. var getcd = model.getValue("/root/temp/drugcd");
  381. if (getcd == "") {
  382. model.setValue("/root/send/srchdrugcd");
  383. } else {
  384. if (drugcd == "") {
  385. model.setValue("/root/send/srchdrugcd", getcd);
  386. } else {
  387. model.setValue("/root/send/srchdrugcd", getcd+","+drugcd);
  388. }
  389. }
  390. ipt_srchdrugcd.refresh();
  391. ]]>
  392. </script>
  393. </button>
  394. <input id="ipt_srchdrugcd" ref="/root/send/srchdrugcd" class="input_search" visibility="hidden" style="left:330px; top:760px; width:196px; height:19px; "/>
  395. <caption id="caption8" class="search_name" visibility="hidden" style="left:236px; top:760px; width:86px; height:17px; ">특정코드 :</caption>
  396. </xhtml:body>
  397. </xhtml:html>