SMMCT00110_응급실현황판.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMMCT00110_응급실현황판.xrw
  4. * 설 명 : 응급실현황 조회
  5. * 설 계 자 : 박유진
  6. * 작 성 자 : 박유진
  7. * 작 성 일 : 2009.09.28
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <pid/>
  21. <patnm/>
  22. <orddeptcd/>
  23. <bedcd/>
  24. <basedd/>
  25. </condition>
  26. <erprescondinfo>
  27. <erprescondlist>
  28. <bedflag/>
  29. <pid/>
  30. <patnm/>
  31. <orddeptcd/>
  32. <acpttm/>
  33. <calltm/>
  34. <drarvtm/>
  35. <drarvusetm/>
  36. <patstaytm/>
  37. <inspecyn/>
  38. <roomnm/>
  39. </erprescondlist>
  40. </erprescondinfo>
  41. <patinfo>
  42. <patinfolist/>
  43. </patinfo>
  44. <bedflaglist>
  45. <bedflag>
  46. <bedflagnm/>
  47. <bedflagcd/>
  48. </bedflag>
  49. </bedflaglist>
  50. </main>
  51. <send>
  52. <reqdata/>
  53. </send>
  54. <init>
  55. <bedflaginfo>
  56. </bedflaginfo>
  57. <info/>
  58. <orddept>
  59. <dept/>
  60. </orddept>
  61. </init>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  68. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  69. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fInit_SMMCT00110();
  74. ]]>
  75. </script>
  76. <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
  77. <submission id="TRMCT00110" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/erprescondinfo"/>
  78. <submission id="TRMCT00111" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/bedflaglist"/>
  79. <submission id="TRMMO04105" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/patnm"/>
  80. </model>
  81. <script type="javascript">
  82. <![CDATA[
  83. /*
  84. * @desc : 초기화
  85. */
  86. function fInit_SMMCT00110(){
  87. submit("TRMCT00111");
  88. //병상구분
  89. addComboInstance("/root/main/bedflaglist" , "bedflagcd^bedflagnm", "-^전체", "bedflag"); //병상콤보 Item '전체'추가
  90. // cmb_bedflag.value='전체';
  91. //진료과
  92. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //진료과 콤보
  93. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //진료과콤보 Item '전체'추가
  94. //초기값 셋팅
  95. model.setValue("/root/main/condition/bedcd" , "-");
  96. model.setValue("/root/main/condition/orddeptcd" , "-");
  97. model.setValue("/root/main/condition/basedd" , getCurrentDate() );
  98. model.removeNodeset(grd_erprescondlst.nodeset );
  99. cap_total.value = "총 0 건";
  100. model.refresh();
  101. }
  102. /**
  103. * @desc : 입원장발급건수 조회
  104. */
  105. function fGetERPresCond(){
  106. var curTm = getCurrentTime();
  107. // if( curTm< "170000" && curTm > "080000" ) {
  108. // alert("업무시간에는 사용하실 수 없습니다. ( 08:00~ 17:00 ) " );
  109. // return ;
  110. // }
  111. var cnt = 0 ;
  112. cap_total.value = "총 " + cnt + " 건";
  113. model.removeNodeset(grd_erprescondlst.nodeset);
  114. model.resetInstanceNode("/root/send/reqdata");
  115. model.copyNode("/root/send/reqdata", "/root/main/condition");
  116. if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
  117. if( model.getValue("/root/send/reqdata/bedcd") == "-" ) model.setValue("/root/send/reqdata/bedcd", "");
  118. submit("TRMCT00110");
  119. var nodelst = instance1.selectNodes(grd_erprescondlst.nodeset );
  120. cnt = nodelst.length;
  121. cap_total.value = "총 " + cnt + " 건";
  122. model.refresh();
  123. }
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  128. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:28px; width:1189px; height:40px; "/>
  129. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">응급실현황</caption>
  130. <caption id="caption20" class="tit_2" style="left:0px; top:75px; width:270px; height:13px; ">응급실 현황</caption>
  131. <datagrid id="grd_erprescondlst" nodeset="/root/main/erprescondinfo/erprescondlist" autoresize="true" caption="병상구분^등록번호^이름^주진료과^도착시간(접수시간)^도착시간(접수시간)^콜시간^의사도착시간^의사도착소요시간^의사도착소요시간^환자체류시간^환자체류시간^입원장^병실|병상구분^등록번호^이름^주진료과^도착시간(접수시간)^도착시간(접수시간)^콜시간^의사도착시간^의사도착소요시간^의사도착소요시간^환자체류시간^환자체류시간^입원장^병실" colwidth="71, 100, 100, 110, 30, 141, 80, 110, 30, 81, 30, 110, 49, 102" ellipsis="true" explorerbar="sortshow" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:95px; width:1187px; height:638px; ">
  132. <col ref="bedflag" style="text-align:center; "/>
  133. <col ref="pid" style="text-align:center; "/>
  134. <col ref="patnm" style="text-align:center; "/>
  135. <col ref="orddeptcd" style="text-align:center; "/>
  136. <col ref="acptcalluseflag" style="text-align:center; "/>
  137. <col ref="acpttm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  138. <col ref="calltm" format="hh:nn:ss" style="text-align:center; "/>
  139. <col ref="drarvtm" format="hh:nn:ss" style="text-align:center; "/>
  140. <col ref="drarvuseflag" style="text-align:center; "/>
  141. <col ref="drarvusetm" style="text-align:center; "/>
  142. <col ref="patstayflag" style="text-align:center; "/>
  143. <col ref="patstaytm" style="text-align:center; "/>
  144. <col ref="inspecyn" style="text-align:center; "/>
  145. <col ref="roomnm" style="text-align:center; "/>
  146. </datagrid>
  147. <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1187px; y2:93px; "/>
  148. <caption id="cap_total" class="search_name" style="left:975px; top:40px; width:125px; height:17px; ">총 0 건</caption>
  149. <button id="btn_req" class="btn1_letter2" style="left:1115px; top:38px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  150. <caption>조회</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. fGetERPresCond();
  154. ]]>
  155. </script>
  156. </button>
  157. <caption id="caption7" class="search_name" style="left:746px; top:40px; width:76px; height:17px; ">진 료 과</caption>
  158. <line id="line5" style="x1:1100px; y1:38px; x2:1100px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
  159. <caption id="caption2" class="search_name" style="left:20px; top:40px; width:91px; height:17px; ">병 상 구 분</caption>
  160. <caption id="caption1" class="search_name" style="left:265px; top:40px; width:91px; height:17px; ">등 록 번 호</caption>
  161. <caption id="caption3" class="search_name" style="left:505px; top:40px; width:76px; height:17px; ">이 름</caption>
  162. <select1 id="cmb_bedflag" ref="/root/main/condition/bedcd" class="combo_search" appearance="minimal" editmode="search" style="left:115px; top:40px; width:115px; height:19px; ">
  163. <choices>
  164. <itemset nodeset="/root/main/bedflaglist/bedflag">
  165. <label ref="bedflagnm"/>
  166. <value ref="bedflagcd"/>
  167. </itemset>
  168. </choices>
  169. </select1>
  170. <input id="ipt_pid" ref="/root/main/condition/pid" style="left:360px; top:40px; width:115px; height:19px; ">
  171. <script type="javascript" ev:event="onkeypress">
  172. <![CDATA[
  173. if(event.keyCode == 13 ) {
  174. //fPidTrim("/root/main/condition/pid")
  175. var pid = trim(ipt_pid.currentText );
  176. if(pid == ""){
  177. return;
  178. }
  179. if(reqPatInfo("pid", "ptbs", pid)==true){
  180. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  181. model.setValue("/root/main/condition/patnm", hngnm);
  182. model.setValue("/root/main/condition/pid", pid);
  183. fGetERPresCond();
  184. }
  185. }
  186. ]]>
  187. </script>
  188. </input>
  189. <input id="ipt_patnm" ref="/root/main/condition/patnm" style="left:570px; top:40px; width:115px; height:19px; ">
  190. <script type="javascript" ev:event="onkeypress">
  191. <![CDATA[
  192. if(event.keyCode == 13){
  193. model.makeValue("/root/hidden/srchcond", "2");
  194. model.makeValue("/root/hidden/hngnm", ipt_patnm.currentText);
  195. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden", "/root/send");
  196. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  197. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  198. model.setValue("/root/main/condition/pid", pid);
  199. model.setValue("/root/main/condition/patnm", hngnm);
  200. model.refresh();
  201. }
  202. ]]>
  203. </script>
  204. </input>
  205. <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:830px; top:40px; width:115px; height:19px; ">
  206. <choices>
  207. <itemset nodeset="/root/init/orddept/dept">
  208. <label ref="depthngnm"/>
  209. <value ref="deptcd"/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <button id="btn_patsrch" class="icon_search" style="left:690px; top:42px; width:16px; height:16px; ">
  214. <caption/>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. modal("SPPMC02500");
  218. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  219. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  220. model.setValue("/root/main/condition/pid", sPid);
  221. model.setValue("/root/main/condition/patnm", sHngnm);
  222. fGetERPresCond();
  223. ]]>
  224. </script>
  225. </button>
  226. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:737px; width:1185px; height:26px; background-color:#ffffff; border-color:#3366ff; "/>
  227. <caption id="caption16" style="left:10px; top:743px; width:1165px; height:15px; ">◇ : 응급실 입원장 발행 ◆ : 응급실 입원장 발행, 원무에서 접수 ★ : 환자도착 후 콜시간까지 30분이상 소요 ☆ : 의사 콜 후 의사도착시간까지 30분이상 소요 ● : 환자 체류시간 24시간 초과</caption>
  228. <button id="button1" class="btn2_letter2" style="left:1145px; top:73px; width:42px; height:19px; ">
  229. <caption>엑셀</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. var title = "응급실현황 (" + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) + " ) " ;
  233. //fsaveGridToExcel(grd_inpatinfolst, title);
  234. var fileName = window.fileDialog("save", ",", false, "응급실현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  235. if (fileName != ""){
  236. grd_erprescondlst.saveExcel(fileName, "응급실현황", true, true, "", "", false);
  237. var s = fileName.lastIndexOf("\\");
  238. var fileName=fileName.substring(s+1);
  239. var rmsg = messageBox("저장된 Excel을", "Q004");
  240. if( rmsg == 6 ){
  241. window.exec("excel.exe", fileName);
  242. }
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. </xhtml:body>
  248. </xhtml:html>