SPMMO08040_권역외상회진관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. <pinfo>
  11. <plist/>
  12. </pinfo>
  13. </main>
  14. <send>
  15. </send>
  16. <init>
  17. <sdate/>
  18. <edate/>
  19. <bastime/>
  20. <outflag/>
  21. <emcd/>
  22. <nowflag/>
  23. </init>
  24. <hidden/>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <submission id="TRMNE09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" resultref="/root/temp/emcdinfo"/>
  29. <submission id="TRMMO08041" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/pinfo"/>
  30. <submission id="TRMMO08042" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" resultref="/root/temp/drinfo"/>
  31. </model>
  32. <script type="javascript" ev:event="xforms-ready">
  33. <![CDATA[
  34. // if (submit("TRMNE09502")) {
  35. // model.setValue("/root/init/emcd", model.getValue("/root/temp/emcdinfo/emcd"));
  36. // }
  37. model.removeNodeset("/root/main/pinfo/plist");
  38. var tmpSrchdd = new Date();
  39. tmpSrchdd.setDate(tmpSrchdd.getDate() - 1);
  40. var sdate = tmpSrchdd.getDateFormat("YYYYMMDD");
  41. var edate = getCurrentDate();
  42. model.makeValue("/root/init/sdate", sdate);
  43. model.makeValue("/root/init/edate", edate);
  44. model.makeValue("/root/init/bastime", "0600");
  45. model.refresh();
  46. ]]>
  47. </script>
  48. <script type="javascript">
  49. <![CDATA[
  50. ]]>
  51. </script>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <!--script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  56. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/-->
  57. </xhtml:head>
  58. <xhtml:body pagewidth="1200" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  59. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1180px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  60. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:1180px; y2:61px; "/>
  61. <button id="btn_search" class="btn1_letter2" style="left:986px; top:30px; width:56px; height:22px; ">
  62. <caption>조회</caption>
  63. <script type="javascript" ev:event="DOMActivate">
  64. <![CDATA[
  65. model.removeNodeSet ("/root/send" );
  66. model.makeValue("/root/send/cond/sdate", model.getValue("/root/init/sdate") );
  67. model.makeValue("/root/send/cond/edate", model.getValue("/root/init/edate") );
  68. model.makeValue("/root/send/cond/bastime", model.getValue("/root/init/bastime") );
  69. model.makeValue("/root/send/cond/outflag", model.getValue("/root/init/outflag") );
  70. //model.makeValue("/root/send/cond/emcd", model.getValue("/root/init/emcd") );
  71. model.makeValue("/root/send/cond/nowflag", model.getValue("/root/init/nowflag") );
  72. submit("TRMMO08042");
  73. model.removeNodeSet ("/root/main/pinfo/plist");
  74. submit("TRMMO08041");
  75. for(var i = 1; i <= grd_troplist.rows; i++){
  76. if (i > 1) {
  77. j = i - 1;
  78. oldposcd = model.getValue("/root/main/pinfo/plist[" + j + "]/gbn");
  79. newposcd = model.getValue("/root/main/pinfo/plist[" + i + "]/gbn");
  80. if (oldposcd != newposcd) {
  81. grd_troplist.cellstyle("border-bottom-color", j, 0, j, 14) = '#ff0000';
  82. } else {
  83. grd_troplist.cellstyle("border-bottom-color", j, 0, j, 14) = '#C0C0C0';
  84. }
  85. }
  86. }
  87. ]]>
  88. </script>
  89. </button>
  90. <datagrid id="grd_troplist" nodeset="/root/main/pinfo/plist" autoresize="true" caption="환자구분^현위치^환자번호^이름^성별/나이^진단명^진료과^전문의^담당의^내원일시^내원일시^퇴실일시^퇴실일시^응급진료결과^수술" colsep="^" colwidth="60, 80, 60, 80, 60, 195, 110, 50, 50, 70, 40, 70, 40, 145, 50" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:120px; width:1180px; height:400px; ">
  91. <col ref="gbn" style="text-align:center; "/>
  92. <col ref="curpos"/>
  93. <col ref="pid"/>
  94. <col ref="hngnm"/>
  95. <col ref="sa" style="text-align:center; "/>
  96. <col ref="diagnm"/>
  97. <col ref="orddeptnm"/>
  98. <col ref="jatdoctnm"/>
  99. <col ref="datdoctnm"/>
  100. <col ref="chosdd" format="yyyy-mm-dd"/>
  101. <col ref="chostm" format="hh:nn"/>
  102. <col ref="outrmdd" format="yyyy-mm-dd"/>
  103. <col ref="outrmtm" format="hh:nn"/>
  104. <col ref="outrmcd"/>
  105. <col ref="opflag" style="text-align:center; "/>
  106. </datagrid>
  107. <input id="input3" ref="/root/init/sdate" class="input_search" inputtype="date" style="left:95px; top:31px; width:93px; height:19px; text-align:center; ">
  108. <script type="javascript" ev:event="onclick">
  109. <![CDATA[
  110. ]]>
  111. </script>
  112. </input>
  113. <input id="input1" ref="/root/init/edate" class="input_search" inputtype="date" style="left:213px; top:31px; width:93px; height:19px; text-align:center; ">
  114. <script type="javascript" ev:event="onclick">
  115. <![CDATA[
  116. ]]>
  117. </script>
  118. </input>
  119. <caption id="caption1" style="left:195px; top:31px; width:20px; height:20px; ">~</caption>
  120. <caption id="caption8" class="search_name" style="left:10px; top:31px; width:95px; height:17px; ">검색조건 :</caption>
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:315px; height:13px; ">권역 외상센터 회진 대상자 리스트</caption>
  122. <line id="line2" style="x1:972px; y1:29px; x2:972px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  123. <button id="button1" class="btn1_letter2" style="left:1100px; top:30px; width:56px; height:22px; ">
  124. <caption>출력</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. var curtime = getCurrentTime().substr(0, 4);
  128. model.makeValue("/root/init/curtime", curtime);
  129. exeReportPreview("RPMMO08040", "XMLSTR","","","");
  130. ]]>
  131. </script>
  132. </button>
  133. <caption id="caption2" class="search_name" style="left:350px; top:31px; width:95px; height:17px; ">기준시간:</caption>
  134. <input id="input2" ref="/root/init/bastime" format="hh:nn" style="left:435px; top:31px; width:50px; height:19px; text-align:center; "/>
  135. <select id="checkbox1" ref="/root/init/outflag" overflow="visible" appearance="full" style="left:870px; top:32px; width:100px; height:20px; border-style:none; ">
  136. <choices>
  137. <item>
  138. <label>퇴실조건 제외</label>
  139. <value>Y</value>
  140. </item>
  141. </choices>
  142. </select>
  143. <datagrid id="grd_oplist" nodeset="/root/main/pinfo/oplist" caption="현위치^환자번호^이름^성별/나이^진단명^진료과^전문의^담당의^내원일시^내원일시^퇴실일시^퇴실일시^응급진료결과^집도과^집도의^수술명^상태^수술일^입실시간^퇴실시간" colsep="^" colwidth="80, 60, 80, 60, 145, 105, 50, 50, 70, 40, 70, 40, 145, 105, 55, 100, 42, 70, 105, 105" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:527px; width:1180px; height:237px; ">
  144. <col ref="curpos"/>
  145. <col ref="pid"/>
  146. <col ref="hngnm"/>
  147. <col ref="sa" style="text-align:center; "/>
  148. <col ref="diagnm"/>
  149. <col ref="orddeptnm"/>
  150. <col ref="jatdoctnm"/>
  151. <col ref="datdoctnm"/>
  152. <col ref="chosdd" format="yyyy-mm-dd"/>
  153. <col ref="chostm" format="hh:nn"/>
  154. <col ref="outrmdd" format="yyyy-mm-dd"/>
  155. <col ref="outrmtm" format="hh:nn"/>
  156. <col ref="outrmcd"/>
  157. <col ref="perfdeptnm"/>
  158. <col ref="perfdrnm"/>
  159. <col ref="opnm"/>
  160. <col ref="opstatcd"/>
  161. <col ref="opschedd" format="yyyy-mm-dd"/>
  162. <col ref="patinroomdt" format="yyyy-mm-dd hh:nn"/>
  163. <col ref="patoutroomdt" format="yyyy-mm-dd hh:nn"/>
  164. </datagrid>
  165. <line id="line3" class="line_1" style="x1:0px; y1:522px; x2:1180px; y2:522px; "/>
  166. <select id="checkbox2" ref="/root/init/nowflag" overflow="visible" appearance="full" style="left:490px; top:32px; width:100px; height:20px; border-style:none; ">
  167. <choices>
  168. <item>
  169. <label>현재시간까지</label>
  170. <value>Y</value>
  171. </item>
  172. </choices>
  173. </select>
  174. <button id="button2" class="btn1_letter2" style="left:1043px; top:30px; width:56px; height:22px; ">
  175. <caption>Excel</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var curDate = getCurrentDate();
  179. var fileName = window.fileDialog("save", ",", false, "회진리스트_" + curDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  180. //grd_troplist.saveExcel("회진리스트_" + curDate + ".xls", "회진대상환자", false, false, "", "");
  181. grd_troplist.saveExcel(fileName, "SheetName", false, false, "", "");
  182. var fileName = window.fileDialog("save", ",", false, "수술리스트_" + curDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  183. // grd_oplist.saveExcel("수술리스트_" + curDate + ".xls", "수술환자", false, false, "", "");
  184. grd_oplist.saveExcel(fileName, "SheetName", false, false, "", "");
  185. ]]>
  186. </script>
  187. </button>
  188. <datagrid id="datagrid1" nodeset="/root/temp/drinfo" caption="센터장^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의^권역외상센터 당직의" colsep="^" colwidth="100,60,100,60,100,60,100,60,100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:66px; width:1180px; height:48px; ">
  189. <col ref="drnm" style="text-align:center; "/>
  190. <col ref="deptnm1" style="text-align:center; "/>
  191. <col ref="drnm1" style="text-align:center; "/>
  192. <col ref="deptnm2" style="text-align:center; "/>
  193. <col ref="drnm2" style="text-align:center; "/>
  194. <col ref="deptnm3" style="text-align:center; "/>
  195. <col ref="drnm3" style="text-align:center; "/>
  196. <col ref="deptnm4" style="text-align:center; "/>
  197. <col ref="drnm4" style="text-align:center; "/>
  198. </datagrid>
  199. <line id="line4" class="line_1" style="x1:0px; y1:115px; x2:1180px; y2:115px; "/>
  200. </xhtml:body>
  201. </xhtml:html>