SMADS00600_반환관리통계.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. <formflag1>1</formflag1>
  21. <formflag2>1</formflag2>
  22. <srchdeptcd/>
  23. <srchdrid/>
  24. <deptinfo>
  25. <deptflag/>
  26. </deptinfo>
  27. <baseinfo>
  28. <spcldrug/>
  29. <efcycd/>
  30. </baseinfo>
  31. <srchdata>
  32. <drugcd/>
  33. </srchdata>
  34. <srchwardcd/>
  35. <srchduty/>
  36. </send>
  37. <init>
  38. </init>
  39. <hidden>
  40. <srchinfo>
  41. <wardcd/>
  42. <wardnm/>
  43. </srchinfo>
  44. <baseinfo>
  45. <spcldrug>
  46. <A0006/>
  47. </spcldrug>
  48. </baseinfo>
  49. <receivedrugcd>/root/send/srchdata/drugcd</receivedrugcd>
  50. <orddept>
  51. <dept/>
  52. </orddept>
  53. <receiveefcy>/root/send/baseinfo/efcycd</receiveefcy>
  54. <send_w_d_cdname/>
  55. </hidden>
  56. <temp>
  57. <srchinfo>
  58. <ward/>
  59. </srchinfo>
  60. <receivedata>
  61. <receiveref/>
  62. <srchflag/>
  63. <srchcnts/>
  64. <drugkind/>
  65. </receivedata>
  66. </temp>
  67. </root>
  68. </instance>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  74. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  75. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. var rdo_children = rdo_formcd.children;
  79. rdo_children.item(1).attribute("disable") = true;
  80. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  81. model.setValue("/root/send/srchfromdd", getCurrentDate());
  82. model.setValue("/root/send/srchtodd", getCurrentDate());
  83. model.setValue("/root/send/srchioflag", "전체");
  84. model.setValue("/root/send/formflag1", "1");
  85. model.setValue("/root/send/formflag2", "1");
  86. makeReportPreview(0,150,1195,570);
  87. //병동 Combo 조회
  88. model.setValue("/root/send/deptinfo/deptflag", "W");
  89. submit("TRADT10203");
  90. astfAddCombo("/root/hidden/deptlist", "ward", "wardcd,wardnm", "T,전체");
  91. // 진료과세팅
  92. zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/hidden/orddept"); //부서코드 콤보조회
  93. if ( model.instances(0).selectSingleNode("/root/hidden/orddept/dept") != null) {
  94. astfAddCombo("/root/hidden/orddept","dept","deptcd,depthngnm",",전체");
  95. }
  96. model.refresh();
  97. ]]>
  98. </script>
  99. <submission id="TRZBC00101"/>
  100. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  101. <submission id="TRADS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statslist"/>
  102. <submission id="TRADT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptinfo" replace="instance" resultref="/root/hidden/deptlist"/>
  103. </model>
  104. </xhtml:head>
  105. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  106. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  107. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">반환관리 통계</caption>
  108. </group>
  109. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  110. <line id="line1" class="line_1" style="x1:0px; y1:130px; x2:1195px; y2:130px; "/>
  111. <group id="group1" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
  112. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:110px; background-color:#fffbf2; border-color:#ffd799; "/>
  113. <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:85px; "/>
  114. <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. model.setValue("/root/send/srchwardcd", model.getValue("/root/temp/srchinfo/ward"));
  119. model.refresh();
  120. if ( model.getValue("/root/send/formflag1") == '1' && model.getValue("/root/send/formflag2") == '1' ) {
  121. submit("TRADS00601")
  122. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  123. }
  124. else if ( model.getValue("/root/send/formflag1") == '1' && model.getValue("/root/send/formflag2") == '2' ) {
  125. submit("TRADS00601")
  126. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  127. }
  128. else if ( model.getValue("/root/send/formflag1") == '1' && model.getValue("/root/send/formflag2") == '3' ) {
  129. submit("TRADS00601")
  130. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  131. }
  132. else if ( model.getValue("/root/send/formflag1") == '2' && model.getValue("/root/send/formflag2") == '1' ) {
  133. submit("TRADS00601")
  134. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  135. }
  136. else if ( model.getValue("/root/send/formflag1") == '2' && model.getValue("/root/send/formflag2") == '2' ) {
  137. submit("TRADS00601")
  138. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  139. }
  140. else if ( model.getValue("/root/send/formflag1") == '2' && model.getValue("/root/send/formflag2") == '3' ) {
  141. submit("TRADS00601")
  142. exeReportPreview("RPADS00601", "XMLSTR", "/root/main/statslist/item");
  143. }
  144. ]]>
  145. </script>
  146. </button>
  147. <caption id="caption2" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">일자구간 :</caption>
  148. <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; "/>
  149. <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; "/>
  150. <caption id="caption5" class="search_no_b" style="left:213px; top:30px; width:12px; height:17px; ">~</caption>
  151. <select1 id="combo1" ref="/root/send/srchioflag" class="combo_search" appearance="minimal" style="left:110px; top:5px; width:100px; height:19px; ">
  152. <choices>
  153. <item>
  154. <label>전체</label>
  155. <value>전체</value>
  156. </item>
  157. <item>
  158. <label>병동약국</label>
  159. <value>병동</value>
  160. </item>
  161. <item>
  162. <label>외래약국</label>
  163. <value>외래</value>
  164. </item>
  165. <item>
  166. <label>특수조제실</label>
  167. <value>특조</value>
  168. </item>
  169. </choices>
  170. </select1>
  171. <caption id="caption3" class="search_name" style="left:15px; top:6px; width:86px; height:17px; ">조제장소 :</caption>
  172. <caption id="caption4" class="search_name" style="left:540px; top:5px; width:86px; height:17px; ">통계양식 :</caption>
  173. <select1 id="rdo_formcd" ref="/root/send/formflag1" class="radio_search" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:635px; top:5px; width:295px; height:20px; border-style:none; ">
  174. <choices>
  175. <item>
  176. <label>반환량</label>
  177. <value>1</value>
  178. </item>
  179. <item>
  180. <label>조제보류량</label>
  181. <value>2</value>
  182. </item>
  183. </choices>
  184. </select1>
  185. <caption id="caption8" class="search_name" style="left:540px; top:50px; width:86px; height:17px; ">병동 :</caption>
  186. <caption id="caption10" class="search_name" style="left:540px; top:75px; width:86px; height:17px; ">진료과 :</caption>
  187. <select1 id="cmb_orddept" ref="/root/send/srchdeptcd" class="combo_search" appearance="minimal" style="left:635px; top:75px; width:170px; height:19px; ">
  188. <choices>
  189. <itemset nodeset="/root/hidden/orddept/dept">
  190. <label ref="depthngnm"/>
  191. <value ref="deptcd"/>
  192. </itemset>
  193. </choices>
  194. <script type="javascript" ev:event="xforms-value-changed">
  195. <![CDATA[
  196. model.setValue("/root/hidden/send_w_d_cdname", model.getValue(cmb_orddept.choices.itemset.attribute("nodeset")+"[deptcd ='"+model.getValue("/root/send/srchdeptcd")+"']/depthngnm"));
  197. ]]>
  198. </script>
  199. </select1>
  200. <button id="button2" class="icon_search" style="left:835px; top:50px; width:16px; height:16px; ">
  201. <caption/>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. if(chk_ward.visible==true){
  205. chk_ward.visible = false;
  206. }else {
  207. chk_ward.visible = true;
  208. }
  209. model.refresh();
  210. ]]>
  211. </script>
  212. </button>
  213. <select id="checkbox1" ref="/root/send/srchduty" overflow="visible" appearance="full" rows="3" style="left:340px; top:30px; width:130px; height:55px; border-style:none; ">
  214. <choices>
  215. <item>
  216. <label>Day1</label>
  217. <value>D1</value>
  218. </item>
  219. <item>
  220. <label>Day2</label>
  221. <value>D2</value>
  222. </item>
  223. <item>
  224. <label>Night</label>
  225. <value>N</value>
  226. </item>
  227. </choices>
  228. </select>
  229. <select1 id="radio1" ref="/root/send/formflag2" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:635px; top:27px; width:295px; height:20px; border-style:none; ">
  230. <choices>
  231. <item>
  232. <label>진료과별</label>
  233. <value>1</value>
  234. </item>
  235. <item>
  236. <label>병동별</label>
  237. <value>2</value>
  238. </item>
  239. <item>
  240. <label>근무형태별</label>
  241. <value>3</value>
  242. </item>
  243. </choices>
  244. </select1>
  245. <input id="ipt_wardnm" ref="/root/hidden/srchinfo/wardnm" class="input_search" disabled="true" style="left:635px; top:50px; width:196px; height:19px; "/>
  246. </group>
  247. <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:380px; top:80px; width:205px; height:15px; background-color:#e5eae9; border-style:none; ">
  248. <choices>
  249. <itemset nodeset="/root/hidden/deptlist/ward">
  250. <label ref="wardnm"/>
  251. <value ref="wardcd"/>
  252. </itemset>
  253. </choices>
  254. <script type="javascript" ev:event="onclick">
  255. <![CDATA[
  256. //if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  257. if(chk_ward.mouseRow == 0 && chk_ward.mouseCol == 0 ){
  258. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  259. 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");
  260. } else {
  261. //ipt_wardcd.value = "";
  262. //ipt_wardnm.value = "";
  263. model.setValue("/root/temp/srchinfo/ward", "");
  264. }
  265. model.refresh();
  266. }
  267. if(isSearchString(model.getValue("/root/temp/srchinfo/ward"),"T")){
  268. ipt_wardcd.value = chk_ward.value.substr(2,chk_ward.value.length);
  269. ipt_wardnm.value = chk_ward.label.substr(3,chk_ward.label.length);
  270. } else {
  271. ipt_wardcd.value = chk_ward.value;
  272. ipt_wardnm.value = chk_ward.label;
  273. }
  274. //input3.refresh();
  275. //검사실 체크박스 감추기
  276. //chk_excuroom.visible = false;
  277. ]]>
  278. </script>
  279. </select>
  280. <input id="ipt_wardcd" ref="/root/hidden/srchinfo/wardcd" class="input_search" visibility="hidden" style="left:610px; top:80px; width:140px; height:19px; "/>
  281. </group>
  282. </xhtml:body>
  283. </xhtml:html>