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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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 = "SMMNV02400_분만진행현황전광판(성가).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. fc.item().Delete();
  113. }
  114. }
  115. // function fOpInit() {
  116. // ivw_piclist.src = "";
  117. // ivw_piclist.visible = false;
  118. // ivw_patlist.visible = true;
  119. // ivw_patlist.src = "SMMNV01400_수술진행현황전광판(성가).xrw";
  120. // //ivw_patlist.window.javaScript.fInitialize();
  121. // }
  122. //
  123. // function fPicInit() {
  124. // ivw_patlist.src = "";
  125. // ivw_patlist.visible = false;
  126. // ivw_piclist.visible = true;
  127. // ivw_piclist.src = "SMMNV03400_성가그림.xrw";
  128. // }
  129. /**
  130. * @group :
  131. * @ver : 2007.10.09
  132. * @by : 문창곤
  133. * @---------------------------------------------------
  134. * @type : function
  135. * @access : public
  136. * @desc : 수술환자 보호자 호출메시지 조회.
  137. * @param :
  138. * @param :
  139. * @return :
  140. * @---------------------------------------------------
  141. */
  142. function fGetCallMessage(){
  143. var sPath = "/root/main/msglist";
  144. if(getNodesetCount(sPath + "/msginfo") == 0) {
  145. // model.removenode("/root/main/msglist");
  146. model.removeNodeset(sPath);
  147. model.copyNode("/root/send/reqdata", "/root/main/cond") ;
  148. setErrorOff();
  149. // submit("TRMNV05302",false);
  150. copyNodeListType("/root/main/msglist", "/root/init/msglist/msginfo", "after");
  151. var msgCnt = getNodesetCount(sPath + "/msginfo") ;
  152. if (msgCnt > 0) {
  153. msgintervalIDTop = window.setInterval("fGetCallMessageSub1()", showMsgTime); //10초
  154. }else{
  155. model.setValue("/root/hidden/callmsg", "빠른 쾌유를 빕니다.");
  156. tar_callmsg.refresh();
  157. }
  158. model.refresh();
  159. }
  160. }
  161. //-------------------------------
  162. // 수술환자 보호자 호출메시지 조회.
  163. //-------------------------------
  164. function fGetCallMessageSub1() {
  165. if (count > 0 ) {
  166. model.removenode("/root/main/msglist/msginfo[1]") ;
  167. }
  168. model.setValue("/root/hidden/callmsg", model.getValue("/root/main/msglist/msginfo[1]/callmsg")) ;
  169. count ++;
  170. model.refresh();
  171. if ( getNodesetCount("/root/main/msglist/msginfo") == 0) {
  172. count = 0;
  173. model.setValue("/root/hidden/callmsg", "빠른 쾌유를 빕니다.");
  174. model.refresh() ;
  175. window.clearInterval(msgintervalIDTop);
  176. fGetCallMessage();
  177. }
  178. }
  179. function fCloseBoard(){
  180. if (msgintervalIDTop != "") window.clearInterval(msgintervalIDTop);
  181. if (DelTempFolderID != "") window.clearInterval(DelTempFolderID);
  182. window.close();
  183. }
  184. function clock() {
  185. var tdate = getCurrentDateTime().substring(0, 4) + "년 "
  186. + getCurrentDateTime().substring(4, 6) + "월 "
  187. + getCurrentDateTime().substring(6, 8) + "일 "
  188. // + getCurrentDate().toDate("YYYYMMDD").getDayOfWeek("K") + "요일 "
  189. var ttime = getCurrentDateTime().substring(8, 11) + ":"
  190. + getCurrentDateTime().substring(11, 13) + ":"
  191. + getCurrentDateTime().substring(13, 15)
  192. model.setValue("/root/main/date/tdate", tdate) ;
  193. model.setValue("/root/main/date/ttime", ttime) ;
  194. model.refresh();
  195. }
  196. ]]>
  197. </script>
  198. </xhtml:head>
  199. <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; ">
  200. <iviewer id="ivw_preglist" style="left:0px; top:0px; width:1007px; height:634px; background-color:#ffffff; border-color:transparent; border-style:none; "/>
  201. <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; "/>
  202. <line id="line1" class="line_1" style="x1:0px; y1:634px; x2:1004px; y2:634px; "/>
  203. <!--
  204. <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; "/>
  205. <line id="line1" class="line_1" style="x1:0px; y1:636px; x2:1020px; y2:636px; "/>
  206. <switch id="switch2" style="left:0px; top:0px; width:1018px; height:634px; ">
  207. <case id="OP">
  208. <import id="import1" src="C:\CMCOracle\application\webapps\emr\waitguideweb\xrw\SMMNV01300_수술진행현황전광판.xrw" style="left:0px; top:0px; width:1016px; height:633px; "/>
  209. </case>
  210. <case id="PREG" selected="true">
  211. <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; ">
  212. <col ref="roomcd" style="left:0px; top:23px; width:196px; height:75px; font-family:휴먼둥근헤드라인; font-size:22pt; "/>
  213. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:22pt; "/>
  214. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  215. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  216. <col ref="patposplcecd" style="font-family:HY각헤드라인M; font-size:28pt; "/>
  217. <col ref="opstatcd" visibility="hidden"/>
  218. </datagrid>
  219. <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>
  220. <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>
  221. <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>
  222. <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>
  223. <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>
  224. <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>
  225. <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>
  226. <line id="line16" class="line_1" style="x1:0px; y1:120px; x2:1015px; y2:120px; "/>
  227. <line id="line17" class="line_1" style="x1:0px; y1:68px; x2:1015px; y2:68px; "/>
  228. </case>
  229. <case id="PIC"/>
  230. </switch>
  231. -->
  232. <script type="javascript" ev:event="onmousedown">
  233. <![CDATA[
  234. if(event.button == 3) {
  235. window.setPopupMenu(true, "/root/main/menuitems/gnrlmenu/item", "name", "func", false);
  236. }
  237. ]]>
  238. </script>
  239. <script type="javascript" ev:event="DOMFocusOut">
  240. <![CDATA[
  241. window.setPopupMenu(false);
  242. ]]>
  243. </script>
  244. </xhtml:body>
  245. </xhtml:html>