SMMCT00106_외래진료예약시간준수.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMMCT00106_외래진료예약시간준수.xrw
  4. * 설 명 : 외래진료예약시간준수
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2009.09.12
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>외래진료예약 준수</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <fromdd/>
  21. <todd/>
  22. <orddeptcd/>
  23. <subdeptcd/>
  24. <medispclid/>
  25. </condition>
  26. <outrsrvinfo>
  27. <outrsrvinfolist>
  28. <centcd/>
  29. <orddeptcd/>
  30. <subdeptcd/>
  31. <orddrnm/>
  32. <orddrpos/>
  33. <openobserv/>
  34. <opendelay/>
  35. <rsrvobserv/>
  36. <avrmedtime/>
  37. <avrwaittime/>
  38. </outrsrvinfolist>
  39. </outrsrvinfo>
  40. </main>
  41. <send>
  42. <reqdata/>
  43. </send>
  44. <init>
  45. <orddept>
  46. <dept/>
  47. </orddept>
  48. <info/>
  49. <userlist>
  50. <usercombo>
  51. <userid/>
  52. <usernm/>
  53. </usercombo>
  54. </userlist>
  55. <subdeptinfo>
  56. <subdeptlist/>
  57. </subdeptinfo>
  58. </init>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  65. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  66. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  67. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  68. <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fInit_SMMCT00106();
  72. ]]>
  73. </script>
  74. <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
  75. <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
  76. <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
  77. <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
  78. <submission id="TRMCT00106" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/outrsrvinfo"/>
  79. </model>
  80. <script type="javascript">
  81. <![CDATA[
  82. /*
  83. * @desc : 초기화
  84. */
  85. function fInit_SMMCT00106(){
  86. //진료과
  87. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
  88. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  89. addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
  90. //전문의
  91. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
  92. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  93. //초기값 셋팅
  94. model.setValue("/root/main/condition/fromdd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
  95. model.setValue("/root/main/condition/todd" , getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat() );
  96. model.setValue("/root/main/condition/orddeptcd" , "-");
  97. model.setValue("/root/main/condition/subdeptcd" , "-");
  98. model.setValue("/root/main/condition/medispclid" , "-");
  99. model.removeNodeset(grd_outrsrvlst.nodeset );
  100. cap_total.value = "총 0 건";
  101. model.refresh();
  102. }
  103. /**
  104. * @desc : 입원장발급건수 조회
  105. */
  106. function fGetOutRsrvInfo(){
  107. var curTm = getCurrentTime();
  108. var cnt = 0 ;
  109. cap_total.value = "총 " + cnt + " 건";
  110. model.removeNodeset(grd_outrsrvlst.nodeset);
  111. model.resetInstanceNode("/root/send/reqdata");
  112. model.copyNode("/root/send/reqdata", "/root/main/condition");
  113. if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
  114. if( model.getValue("/root/send/reqdata/subdeptcd") == "-" ) model.setValue("/root/send/reqdata/subdeptcd", "");
  115. if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
  116. submit("TRMCT00106");
  117. var nodelst = instance1.selectNodes(grd_outrsrvlst.nodeset );
  118. cnt = nodelst.length;
  119. cap_total.value = "총 " + cnt + " 건";
  120. model.refresh();
  121. }
  122. ]]>
  123. </script>
  124. </xhtml:head>
  125. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  126. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:13px; ">외래진료예약 준수</caption>
  127. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
  128. <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  129. <caption id="caption20" class="tit_2" style="left:5px; top:67px; width:270px; height:13px; ">외래진료예약 준수 조회</caption>
  130. <line id="line1" class="line_1" style="x1:4px; y1:85px; x2:1191px; y2:86px; "/>
  131. <input id="ipt_srchfromdd" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:80px; top:32px; width:90px; height:19px; "/>
  132. <input id="ipt_srchtodd" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
  133. <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:370px; top:33px; width:115px; height:19px; ">
  134. <choices>
  135. <itemset nodeset="/root/init/orddept/dept">
  136. <label ref="depthngnm"/>
  137. <value ref="deptcd"/>
  138. </itemset>
  139. </choices>
  140. <script type="javascript" ev:event="xforms-value-changed">
  141. <![CDATA[
  142. fSetMedDr("", cmb_orddept.value ) ;
  143. ]]>
  144. </script>
  145. </select1>
  146. <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" appearance="minimal" style="left:580px; top:33px; width:115px; height:19px; ">
  147. <choices>
  148. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  149. <label ref="subdeptnm"/>
  150. <value ref="subdeptcd"/>
  151. </itemset>
  152. </choices>
  153. </select1>
  154. <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:785px; top:33px; width:90px; height:19px; ">
  155. <choices>
  156. <itemset nodeset="/root/init/userlist/usercombo">
  157. <label ref="usernm"/>
  158. <value ref="userid"/>
  159. </itemset>
  160. </choices>
  161. </select1>
  162. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  163. <caption>조회</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. fGetOutRsrvInfo();
  167. ]]>
  168. </script>
  169. </button>
  170. <caption id="caption8" style="left:169px; top:34px; width:15px; height:15px; ">~</caption>
  171. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
  172. <datagrid id="grd_outrsrvlst" nodeset="/root/main/outrsrvinfo/outrsrvinfolist" caption="센터^임상과^세부분과^진료의^직위^Session^Session^개시시간준수율^개시시간준수율^진료개시^예약시간^평균^평균|센터^임상과^세부분과^진료의^직위^수^환자수^(10분이내)^(20분이내)^지체시간^준수율^진료시간^대기시간" colwidth="100, 121, 123, 127, 58, 50, 57, 90, 90, 86, 93, 76, 74" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:90px; width:1192px; height:690px; ">
  173. <col ref="centcd" style="text-align:center; "/>
  174. <col ref="orddeptcd" style="text-align:center; "/>
  175. <col ref="subdeptcd" style="text-align:center; "/>
  176. <col ref="orddrnm" style="text-align:center; "/>
  177. <col ref="orddrpos" style="text-align:center; "/>
  178. <col ref="sessioncnt" style="text-align:center; "/>
  179. <col ref="sessionpatcnt" style="text-align:center; "/>
  180. <col ref="openobserv" format="#,###%" style="text-align:center; "/>
  181. <col ref="openobserv1" format="#,###%" style="text-align:center; "/>
  182. <col ref="opendelay" style="text-align:center; "/>
  183. <col ref="rsrvobserv" format="#,###%" style="text-align:center; "/>
  184. <col ref="avrmedtime" style="text-align:center; "/>
  185. <col ref="avrwaittime" style="text-align:center; "/>
  186. </datagrid>
  187. <caption id="caption14" class="search_name" style="left:501px; top:33px; width:76px; height:17px; ">세 부 과</caption>
  188. <caption id="caption7" class="search_name" style="left:291px; top:33px; width:76px; height:17px; ">진 료 과</caption>
  189. <caption id="caption1" class="search_name" style="left:706px; top:33px; width:76px; height:17px; ">주 치 의</caption>
  190. <caption id="cap_total" class="search_name" style="left:895px; top:33px; width:125px; height:17px; ">총 0 건</caption>
  191. <button id="button1" class="btn2_letter2" style="left:1150px; top:64px; width:42px; height:19px; ">
  192. <caption>엑셀</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. var title = "외래진료예약준수 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) + " ) " ;
  196. //fsaveGridToExcel(grd_inpatinfolst, title);
  197. var fileName = window.fileDialog("save", ",", false, "외래진료예약준수", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  198. if (fileName != ""){
  199. grd_outrsrvlst.saveExcel(fileName, "외래진료예약준수", true, true, "", "", false);
  200. var s = fileName.lastIndexOf("\\");
  201. var fileName=fileName.substring(s+1);
  202. var rmsg = messageBox("저장된 Excel을", "Q004");
  203. if( rmsg == 6 ){
  204. window.exec("excel.exe", fileName);
  205. }
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. </xhtml:body>
  211. </xhtml:html>