SMMNV05400_수술진행현황전광판(성가).xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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>수술 및 분만 진행현황 안내</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <oppartrtndd/>
  12. </cond>
  13. <oppatlist>
  14. <oppatinfo>
  15. <roomcd/>
  16. <patnm/>
  17. <orddept/>
  18. <opstatnm/>
  19. <patposplcecd/>
  20. <oprsrvno/>
  21. <opstatcd/>
  22. </oppatinfo>
  23. <oppatlist1/>
  24. <oppatlist2/>
  25. <oppatlist3/>
  26. <oppatlist4/>
  27. <oppatlist5/>
  28. </oppatlist>
  29. <pregpatinfo>
  30. <pregpatlist>
  31. <roomcd/>
  32. <patnm/>
  33. <orddept/>
  34. <opstatnm/>
  35. <patposplcecd/>
  36. <oprsrvno/>
  37. <opstatcd/>
  38. </pregpatlist>
  39. </pregpatinfo>
  40. <menuitems>
  41. <gnrlmenu>
  42. <item>
  43. <name>종료</name>
  44. <func>fCloseBoard</func>
  45. </item>
  46. </gnrlmenu>
  47. </menuitems>
  48. <date>
  49. <tdate/>
  50. <ttime/>
  51. </date>
  52. </main>
  53. <send>
  54. <reqdata/>
  55. </send>
  56. <init>
  57. <msglist>
  58. <msginfo>
  59. <calltm/>
  60. <callmsg>빠른 쾌유를 빕니다.</callmsg>
  61. <oprsrvno/>
  62. </msginfo>
  63. <msginfo>
  64. <calltm/>
  65. <callmsg>항상 최선을 다하는 수술실이 되겠습니다.</callmsg>
  66. <oprsrvno/>
  67. </msginfo>
  68. </msglist>
  69. </init>
  70. <hidden>
  71. <callmsg/>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. submit("TRMNV03003");
  78. IntervalTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='2']/cdid"));
  79. DelTempFolderTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='3']/cdid"));
  80. showMsgTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='4']/cdid"));
  81. fInitialize();
  82. model.setFocus("line1");
  83. ]]>
  84. </script>
  85. <submission id="TRMNV02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/msg"/>
  86. <submission id="TRMNV05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/msg"/>
  87. <submission id="TRMNV06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/patlist"/>
  88. <submission id="TRMNV03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/interval"/>
  89. </model>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript">
  95. <![CDATA[
  96. var IntervalTime; // 5초
  97. var DelTempFolderTime ; // 12시간
  98. var showMsgTime ; // 10초
  99. var msgintervalIDTop = "";
  100. var count = 0;
  101. function fInitialize() {
  102. DelTempFolderID = window.setInterval("fdelTempFolers();", DelTempFolderTime); //12시간
  103. msgintervalID = window.setInterval("fGetCallMessage();", IntervalTime); //5초
  104. ivw_patlist.src = "SMMNV01400_수술진행현황전광판(성가).xrw";
  105. }
  106. //로그를 지우는 함수
  107. function fdelTempFolers()
  108. {
  109. var fso = new ActiveXObject("Scripting.FileSystemObject");
  110. var fldr = fso.GetFolder("C:\\Program Files\\himed\\components\\TrustForm\\TFViewer");
  111. var fc = new Enumerator(fldr.SubFolders);
  112. for(;!fc.atEnd(); fc.moveNext())
  113. {
  114. fc.item().Delete();
  115. }
  116. }
  117. //
  118. // function fOpInit() {
  119. // ivw_piclist.src = "";
  120. // ivw_piclist.visible = false;
  121. // ivw_patlist.visible = true;
  122. // ivw_patlist.src = "SMMNV01400_수술진행현황전광판(성가).xrw";
  123. // //ivw_patlist.window.javaScript.fInitialize();
  124. // }
  125. //
  126. // function fPicInit() {
  127. // ivw_patlist.src = "";
  128. // ivw_patlist.visible = false;
  129. // ivw_piclist.visible = true;
  130. // ivw_piclist.src = "SMMNV03400_성가그림.xrw";
  131. // }
  132. //
  133. /**
  134. * @group :
  135. * @ver : 2007.10.09
  136. * @by : 문창곤
  137. * @---------------------------------------------------
  138. * @type : function
  139. * @access : public
  140. * @desc : 수술환자 보호자 호출메시지 조회.
  141. * @param :
  142. * @param :
  143. * @return :
  144. * @---------------------------------------------------
  145. */
  146. function fGetCallMessage(){
  147. var sPath = "/root/main/msglist";
  148. if(getNodesetCount(sPath + "/msginfo") == 0) {
  149. // model.removenode("/root/main/msglist");
  150. model.removeNodeset(sPath);
  151. model.copyNode("/root/send/reqdata", "/root/main/cond") ;
  152. setErrorOff();
  153. submit("TRMNV05302",false);
  154. copyNodeListType("/root/main/msglist", "/root/init/msglist/msginfo", "after");
  155. var msgCnt = getNodesetCount(sPath + "/msginfo") ;
  156. if (msgCnt > 0) {
  157. msgintervalIDTop = window.setInterval("fGetCallMessageSub1()", showMsgTime); //10초
  158. }else{
  159. model.setValue("/root/hidden/callmsg", "항상 최선을 다하는 수술실이 되겠습니다.");
  160. tar_callmsg.refresh();
  161. }
  162. model.refresh();
  163. }
  164. }
  165. //-------------------------------
  166. // 수술환자 보호자 호출메시지 조회.
  167. //-------------------------------
  168. function fGetCallMessageSub1() {
  169. if (count > 0 ) {
  170. model.removenode("/root/main/msglist/msginfo[1]") ;
  171. }
  172. model.setValue("/root/hidden/callmsg", model.getValue("/root/main/msglist/msginfo[1]/callmsg")) ;
  173. count ++;
  174. model.refresh();
  175. if ( getNodesetCount("/root/main/msglist/msginfo") == 0) {
  176. count = 0;
  177. model.setValue("/root/hidden/callmsg", "항상 최선을 다하는 수술실이 되겠습니다.");
  178. model.refresh() ;
  179. window.clearInterval(msgintervalIDTop);
  180. fGetCallMessage();
  181. }
  182. }
  183. function fCloseBoard(){
  184. if (msgintervalIDTop != "") window.clearInterval(msgintervalIDTop);
  185. if (DelTempFolderID != "") window.clearInterval(DelTempFolderID);
  186. window.close();
  187. }
  188. function clock() {
  189. var tdate = getCurrentDateTime().substring(0, 4) + "년 "
  190. + getCurrentDateTime().substring(4, 6) + "월 "
  191. + getCurrentDateTime().substring(6, 8) + "일 "
  192. // + getCurrentDate().toDate("YYYYMMDD").getDayOfWeek("K") + "요일 "
  193. var ttime = getCurrentDateTime().substring(8, 11) + ":"
  194. + getCurrentDateTime().substring(11, 13) + ":"
  195. + getCurrentDateTime().substring(13, 15)
  196. model.setValue("/root/main/date/tdate", tdate) ;
  197. model.setValue("/root/main/date/ttime", ttime) ;
  198. model.refresh();
  199. }
  200. ]]>
  201. </script>
  202. </xhtml:head>
  203. <xhtml:body pagewidth="1020" pageheight="730" guideline="2,726;2,486;1,1004;2,66;" style="margin-left:4; margin-top:0; margin-right:4; margin-bottom:0; ">
  204. <iviewer id="ivw_patlist" style="left:0px; top:0px; width:1005px; height:634px; background-color:#ffffff; border-color:transparent; border-style:none; "/>
  205. <iviewer id="ivw_preglist" style="left:0px; top:0px; width:1007px; height:634px; background-color:#ffffff; border-color:transparent; border-style:none; "/>
  206. <iviewer id="ivw_piclist" style="left:0px; top:0px; width:1006px; height:633px; background-color:#ffffff; border-color:transparent; border-style:none; "/>
  207. <textarea id="tar_callmsg" ref="/root/hidden/callmsg" overflow="visible" scroll="autovscroll" style="left:0px; top:639px; width:1005px; height:92px; font-family:HY각헤드라인M; font-size:32pt; font-weight:bold; color:#003366; text-align:center; vertical-align:middle; "/>
  208. <line id="line1" class="line_1" style="x1:0px; y1:634px; x2:1004px; y2:634px; "/>
  209. <!--
  210. <switch id="switch1" class="sw_no_border" style="left:0px; top:0px; width:1024px; height:641px; "/> <line id="line1" class="line_1" style="x1:0px; y1:636px; x2:1020px; y2:636px; "/>
  211. <line id="line1" class="line_1" style="x1:0px; y1:636px; x2:1020px; y2:636px; "/>
  212. <switch id="switch2" style="left:0px; top:0px; width:1018px; height:634px; ">
  213. <case id="OP">
  214. <import id="import1" src="C:\CMCOracle\application\webapps\emr\waitguideweb\xrw\SMMNV01300_수술진행현황전광판.xrw" style="left:0px; top:0px; width:1016px; height:633px; "/>
  215. </case>
  216. <case id="PREG" selected="true">
  217. <datagrid id="grd_preg" nodeset="/root/main/pregpatinfo/preginfo" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 265, 248,0" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:100px; width:1015px; height:530px; font-size:29pt; text-align:center; vertical-align:middle; ">
  218. <col ref="roomcd" style="left:0px; top:23px; width:196px; height:75px; font-family:휴먼둥근헤드라인; font-size:22pt; "/>
  219. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:22pt; "/>
  220. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  221. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  222. <col ref="patposplcecd" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  223. <col ref="opstatcd" visibility="hidden"/>
  224. </datagrid>
  225. <caption id="caption77" style="left:0px; top:0px; width:1010px; height:75px; font-family:HY헤드라인M; font-size:36pt; font-weight:bold; color:#000080; text-align:center; vertical-align:middle; ">분만 현황 안내</caption>
  226. <caption id="caption79" style="left:363px; top:69px; width:122px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">보호자</caption>
  227. <caption id="caption81" style="left:180px; top:70px; width:183px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">환자명</caption>
  228. <caption id="caption83" style="left:485px; top:70px; width:265px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">진행상태</caption>
  229. <caption id="caption85" style="left:180px; top:70px; width:183px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">산모명</caption>
  230. <caption id="caption87" style="left:0px; top:70px; width:180px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">병 실</caption>
  231. <caption id="caption88" style="left:750px; top:70px; width:260px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">분만내용</caption>
  232. <line id="line16" class="line_1" style="x1:0px; y1:120px; x2:1015px; y2:120px; "/>
  233. <line id="line17" class="line_1" style="x1:0px; y1:68px; x2:1015px; y2:68px; "/>
  234. </case>
  235. <case id="PIC"/>
  236. </switch>
  237. -->
  238. <script type="javascript" ev:event="onmousedown">
  239. <![CDATA[
  240. if(event.button == 3) {
  241. window.setPopupMenu(true, "/root/main/menuitems/gnrlmenu/item", "name", "func", false);
  242. }
  243. ]]>
  244. </script>
  245. <script type="javascript" ev:event="DOMFocusOut">
  246. <![CDATA[
  247. window.setPopupMenu(false);
  248. ]]>
  249. </script>
  250. </xhtml:body>
  251. </xhtml:html>