SPMMO33510_OnCall현황.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>On Call 관리 (응급실, 수술실)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <orddept/>
  11. <userlist/>
  12. </init>
  13. <main>
  14. <cond>
  15. <fromdd/>
  16. <todd/>
  17. <codnstat> E</codnstat>
  18. <pid/>
  19. <condflag/>
  20. <stat/>
  21. </cond>
  22. <oncalllist/>
  23. <oncallinfo>
  24. <calldeptcd/>
  25. <calldrid/>
  26. </oncallinfo>
  27. </main>
  28. <send>
  29. <reqdata/>
  30. <savedata/>
  31. </send>
  32. <hidden/>
  33. <temp/>
  34. </root>
  35. </instance>
  36. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  37. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  38. <submission id="TRMMO33501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/oncalllist"/>
  39. <script type="javascript" ev:event="xforms-model-construct-done">
  40. <![CDATA[
  41. fInitOnCall("V");
  42. ]]>
  43. </script>
  44. </model>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  50. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO33200.js"/>
  51. </xhtml:head>
  52. <xhtml:body pagewidth="1000" pageheight="800">
  53. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:695px; height:14px; ">On Call 내역</caption>
  54. <group id="group1" style="left:0px; top:15px; width:980px; height:760px; ">
  55. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:980px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  56. <input id="input3" ref="/root/main/cond/fromdd" inputtype="date" style="left:95px; top:8px; width:85px; height:19px; "/>
  57. <input id="input6" ref="/root/main/cond/todd" inputtype="date" style="left:195px; top:8px; width:85px; height:19px; "/>
  58. <caption id="caption1" style="left:182px; top:9px; width:11px; height:20px; ">~</caption>
  59. <button id="button1" class="btn1_letter2" style="left:853px; top:17px; width:56px; height:22px; ">
  60. <caption>조회</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. model.makeValue("/root/main/cond/condkind", "A");
  64. model.makeValue("/root/main/cond/condacpt", "-");
  65. model.makeValue("/root/main/cond/calldeptcd", model.getValue("/root/main/oncallinfo/calldeptcd"));
  66. model.makeValue("/root/main/cond/calldrid", model.getValue("/root/main/oncallinfo/calldrid"));
  67. var gbn = model.getValue("/root/main/cond/codnstat");
  68. var gbnlist = gbn.split(" ");
  69. if (gbn.length>0) {
  70. for (var i=0; i<gbnlist.length;i++) {
  71. gbn = gbn.replace(" ","','");
  72. }
  73. gbn = "('" + gbn + "')";
  74. } else {
  75. messageBox("구분을 반드시 1개 이상 선택하십시오", "E999");
  76. return;
  77. }
  78. model.setValue("/root/main/cond/stat", gbn);
  79. fGetAfterOnCallList();
  80. ]]>
  81. </script>
  82. </button>
  83. <line id="line2" style="x1:837px; y1:12px; x2:837px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
  84. <line id="line9" class="line_1" style="x1:0px; y1:58px; x2:980px; y2:58px; "/>
  85. <caption id="caption2" class="search_name" style="left:295px; top:9px; width:75px; height:17px; ">상 태:</caption>
  86. <select id="checkbox1" ref="/root/main/cond/codnstat" overflow="visible" appearance="full" cellspacing="5" cols="4" style="left:370px; top:8px; width:145px; height:20px; border-style:none; ">
  87. <choices>
  88. <item>
  89. <label>신청</label>
  90. <value>A</value>
  91. </item>
  92. <item>
  93. <label>도착</label>
  94. <value>R</value>
  95. </item>
  96. <item>
  97. <label>완료</label>
  98. <value>E</value>
  99. </item>
  100. </choices>
  101. <script type="javascript" ev:event="xforms-value-changed">
  102. <![CDATA[
  103. ]]>
  104. </script>
  105. </select>
  106. <line id="line3" class="line_3" style="x1:0px; y1:759px; x2:980px; y2:759px; "/>
  107. <datagrid id="grd_oncalllist" nodeset="/root/main/oncalllist/info" autoresize="true" caption="saveflag^calldeptcd^진료과^진료의^등록번호^환자명^신청일시^시작시간^시작시간^종료시간^소요(분)^상태^신청내용^작업내용" colsep="^" colwidth="0, 0, 110, 60, 60, 60, 105, 30, 105, 105, 60, 40, 200, 300" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:694px; text-align:center; ">
  108. <col ref="saveflag"/>
  109. <col ref="calldeptcd"/>
  110. <col ref="calldeptnm"/>
  111. <col ref="calldrnm"/>
  112. <col ref="pid"/>
  113. <col ref="hngnm"/>
  114. <col ref="appdt" format="yyyy-mm-dd hh:nn"/>
  115. <col ref="arvdy"/>
  116. <col ref="arvdt" format="yyyy-mm-dd hh:nn"/>
  117. <col ref="enddt" format="yyyy-mm-dd hh:nn"/>
  118. <col ref="worktime"/>
  119. <col disabled="true" ref="statcd" type="combo">
  120. <choices>
  121. <item>
  122. <label>신청</label>
  123. <value>A</value>
  124. </item>
  125. <item>
  126. <label>도착</label>
  127. <value>R</value>
  128. </item>
  129. <item>
  130. <label>완료</label>
  131. <value>E</value>
  132. </item>
  133. </choices>
  134. </col>
  135. <col ref="appcnts" style="text-align:left; "/>
  136. <col ref="workcnts" style="text-align:left; "/>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. var iRow = grd_oncalllist.row;
  140. if( iRow > 0 ){
  141. if( model.getValue("/root/main/oncalllist/info["+iRow+"]/statcd") != "E" ){
  142. alert("완료 상태가 아닙니다.");
  143. model.setValue("/root/main/oncalllist/info["+iRow+"]/acptyn", "N");
  144. return;
  145. }
  146. model.setValue("/root/main/oncalllist/info["+iRow+"]/saveflag", "U");
  147. }
  148. ]]>
  149. </script>
  150. </datagrid>
  151. <caption id="caption3" class="search_name" style="left:10px; top:9px; width:110px; height:17px; ">신청일자:</caption>
  152. <caption id="caption4" class="search_name" style="left:10px; top:31px; width:81px; height:17px; ">진 료 과:</caption>
  153. <caption id="caption5" class="search_name" style="left:295px; top:31px; width:79px; height:17px; ">의 사:</caption>
  154. <select1 id="cmb_orddr" ref="/root/main/oncallinfo/calldrid" class="combo_s_essential" navindex="3" appearance="minimal" style="left:370px; top:31px; width:140px; 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. <select1 id="cmb_orddept" ref="/root/main/oncallinfo/calldeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:95px; top:31px; width:185px; height:19px; ">
  163. <choices>
  164. <itemset nodeset="/root/init/orddept/dept">
  165. <label ref="depthngnm"/>
  166. <value ref="deptcd"/>
  167. </itemset>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. fGetOrdDrList();
  172. ]]>
  173. </script>
  174. </select1>
  175. <caption id="caption7" class="search_name" style="left:525px; top:31px; width:89px; height:17px; ">환자번호:</caption>
  176. <input id="input1" ref="/root/main/cond/pid" style="left:610px; top:30px; width:65px; height:19px; "/>
  177. <input id="input2" disabled="true" editable="false" style="left:676px; top:30px; width:75px; height:19px; "/>
  178. <button id="button2" class="btn1_letter2" style="left:910px; top:17px; width:56px; height:22px; ">
  179. <caption>엑셀</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. var SheetName = "OnCall현황_" + model.getValue("/root/main/cond/todd");
  183. if(isNull(SheetName)) SheetName = "Sheet1";
  184. var fileName = window.fileDialog("save", ",", false, SheetName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  185. grd_oncalllist.saveExcel(fileName, SheetName, false, false, "", "");
  186. ]]>
  187. </script>
  188. </button>
  189. </group>
  190. </xhtml:body>
  191. </xhtml:html>