SMMNV06404_분만진행현황전광판(성가).xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. var IntervalTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='2']/cdid"));
  79. var DelTempFolderTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='3']/cdid"));
  80. var showMsgTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='4']/cdid"));
  81. fInitialize();
  82. ]]>
  83. </script>
  84. <submission id="TRMNV02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/msg"/>
  85. <submission id="TRMNV05302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/msg"/>
  86. <submission id="TRMNV06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/patlist"/>
  87. <submission id="TRMNV03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/interval"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  93. <script type="javascript">
  94. <![CDATA[
  95. var IntervalTime ; // 5초
  96. var DelTempFolderTime ; // 12시간
  97. var showMsgTime ; // 10초
  98. var msgintervalIDTop = "";
  99. var count = 0;
  100. function fInitialize() {
  101. DelTempFolderID = window.setInterval("fdelTempFolers();", DelTempFolderTime); //12시간
  102. msgintervalID = window.setInterval("fGetCallMessage();", IntervalTime); //5초
  103. ivw_preglist.src = "SMMNV02404_분만진행현황전광판(성가).xrw";
  104. }
  105. //로그를 지우는 함수
  106. function fdelTempFolers()
  107. {
  108. var fso = new ActiveXObject("Scripting.FileSystemObject");
  109. var fldr = fso.GetFolder("C:\\Program Files\\himed\\components\\TrustForm\\TFViewer");
  110. var fc = new Enumerator(fldr.SubFolders);
  111. for(;!fc.atEnd(); fc.moveNext())
  112. {
  113. fc.item().Delete();
  114. }
  115. }
  116. //
  117. // function fOpInit() {
  118. // ivw_piclist.src = "";
  119. // ivw_piclist.visible = false;
  120. // ivw_patlist.visible = true;
  121. // ivw_patlist.src = "SMMNV01400_수술진행현황전광판(성가).xrw";
  122. // //ivw_patlist.window.javaScript.fInitialize();
  123. // }
  124. //
  125. // function fPicInit() {
  126. // ivw_patlist.src = "";
  127. // ivw_patlist.visible = false;
  128. // ivw_piclist.visible = true;
  129. // ivw_piclist.src = "SMMNV03400_성가그림.xrw";
  130. // }
  131. /**
  132. * @group :
  133. * @ver : 2007.10.09
  134. * @by : 문창곤
  135. * @---------------------------------------------------
  136. * @type : function
  137. * @access : public
  138. * @desc : 수술환자 보호자 호출메시지 조회.
  139. * @param :
  140. * @param :
  141. * @return :
  142. * @---------------------------------------------------
  143. */
  144. function fGetCallMessage(){
  145. var sPath = "/root/main/msglist";
  146. if(getNodesetCount(sPath + "/msginfo") == 0) {
  147. // model.removenode("/root/main/msglist");
  148. model.removeNodeset(sPath);
  149. model.copyNode("/root/send/reqdata", "/root/main/cond") ;
  150. setErrorOff();
  151. // submit("TRMNV05302",false);
  152. copyNodeListType("/root/main/msglist", "/root/init/msglist/msginfo", "after");
  153. var msgCnt = getNodesetCount(sPath + "/msginfo") ;
  154. if (msgCnt > 0) {
  155. msgintervalIDTop = window.setInterval("fGetCallMessageSub1()", showMsgTime); //10초
  156. }else{
  157. model.setValue("/root/hidden/callmsg", "빠른 쾌유를 빕니다.");
  158. tar_callmsg.refresh();
  159. }
  160. model.refresh();
  161. }
  162. }
  163. //-------------------------------
  164. // 수술환자 보호자 호출메시지 조회.
  165. //-------------------------------
  166. function fGetCallMessageSub1() {
  167. if (count > 0 ) {
  168. model.removenode("/root/main/msglist/msginfo[1]") ;
  169. }
  170. model.setValue("/root/hidden/callmsg", model.getValue("/root/main/msglist/msginfo[1]/callmsg")) ;
  171. count ++;
  172. model.refresh();
  173. if ( getNodesetCount("/root/main/msglist/msginfo") == 0) {
  174. count = 0;
  175. model.setValue("/root/hidden/callmsg", "빠른 쾌유를 빕니다.");
  176. model.refresh() ;
  177. window.clearInterval(msgintervalIDTop);
  178. fGetCallMessage();
  179. }
  180. }
  181. function fCloseBoard(){
  182. if (msgintervalIDTop != "") window.clearInterval(msgintervalIDTop);
  183. if (DelTempFolderID != "") window.clearInterval(DelTempFolderID);
  184. window.close();
  185. }
  186. function clock() {
  187. var tdate = getCurrentDateTime().substring(0, 4) + "년 "
  188. + getCurrentDateTime().substring(4, 6) + "월 "
  189. + getCurrentDateTime().substring(6, 8) + "일 "
  190. // + getCurrentDate().toDate("YYYYMMDD").getDayOfWeek("K") + "요일 "
  191. var ttime = getCurrentDateTime().substring(8, 11) + ":"
  192. + getCurrentDateTime().substring(11, 13) + ":"
  193. + getCurrentDateTime().substring(13, 15)
  194. model.setValue("/root/main/date/tdate", tdate) ;
  195. model.setValue("/root/main/date/ttime", ttime) ;
  196. model.refresh();
  197. }
  198. ]]>
  199. </script>
  200. </xhtml:head>
  201. <xhtml:body pagewidth="1260" pageheight="1000" guideline="2,726;2,486;1,1004;2,66;" style="margin-left:4; margin-top:0; margin-right:4; margin-bottom:0; ">
  202. <iviewer id="ivw_preglist" style="left:0px; top:0px; width:1265px; height:860px; background-color:#ffffff; border-color:transparent; border-style:none; "/>
  203. <textarea id="tar_callmsg" ref="/root/hidden/callmsg" overflow="visible" scroll="autovscroll" style="left:0px; top:868px; width:1265px; height:132px; font-family:HY각헤드라인M; font-size:45pt; font-weight:bold; color:#003366; text-align:center; vertical-align:middle; "/>
  204. <line id="line1" class="line_1" style="x1:0px; y1:862px; x2:1265px; y2:862px; "/>
  205. <!--
  206. <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; "/>
  207. <line id="line1" class="line_1" style="x1:0px; y1:636px; x2:1020px; y2:636px; "/>
  208. <switch id="switch2" style="left:0px; top:0px; width:1018px; height:634px; ">
  209. <case id="OP">
  210. <import id="import1" src="C:\CMCOracle\application\webapps\emr\waitguideweb\xrw\SMMNV01300_수술진행현황전광판.xrw" style="left:0px; top:0px; width:1016px; height:633px; "/>
  211. </case>
  212. <case id="PREG" selected="true">
  213. <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; ">
  214. <col ref="roomcd" style="left:0px; top:23px; width:196px; height:75px; font-family:휴먼둥근헤드라인; font-size:22pt; "/>
  215. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:22pt; "/>
  216. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  217. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  218. <col ref="patposplcecd" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  219. <col ref="opstatcd" visibility="hidden"/>
  220. </datagrid>
  221. <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>
  222. <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>
  223. <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>
  224. <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>
  225. <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>
  226. <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>
  227. <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>
  228. <line id="line16" class="line_1" style="x1:0px; y1:120px; x2:1015px; y2:120px; "/>
  229. <line id="line17" class="line_1" style="x1:0px; y1:68px; x2:1015px; y2:68px; "/>
  230. </case>
  231. <case id="PIC"/>
  232. </switch>
  233. -->
  234. <script type="javascript" ev:event="onmousedown">
  235. <![CDATA[
  236. if(event.button == 3) {
  237. window.setPopupMenu(true, "/root/main/menuitems/gnrlmenu/item", "name", "func", false);
  238. }
  239. ]]>
  240. </script>
  241. <script type="javascript" ev:event="DOMFocusOut">
  242. <![CDATA[
  243. window.setPopupMenu(false);
  244. ]]>
  245. </script>
  246. </xhtml:body>
  247. </xhtml:html>