SPLLC91100_채혈정보안내현황.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 채혈정보 안내 현황.xrw
  4. * 설 명 : 채혈정보 안내 현황
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 윤재한
  7. * 작 성 일 : 2009.03.05
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>채혈정보 안내 현황</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <daegiip>
  20. <ip/>
  21. </daegiip>
  22. <waitlist>
  23. <bcollroom/>
  24. <bcollwaittm/>
  25. <msg/>
  26. <msgmovetm/>
  27. </waitlist>
  28. </main>
  29. <send>
  30. </send>
  31. <hidden>
  32. <time/>
  33. <date/>
  34. <callmsg>환우님들의 건강을 최우선으로 생각하는 병원이…. (자막문구선택)</callmsg>
  35. <Daegicnt1/>
  36. <Daegicnt3/>
  37. <Daegitime1/>
  38. <Daegitime3/>
  39. <count>0</count>
  40. </hidden>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInit();
  46. ]]>
  47. </script>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  52. <submission id="TRLLC91001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  53. </model>
  54. <script type="javascript">
  55. <![CDATA[
  56. function fInit() {
  57. //브라우저 객체 초기화
  58. brs_msg.Navigate("about:blank");
  59. lzzfMakeAutoBrcdPrntObj("AutoLabel");
  60. var tdate = getCurrentDateTime().substring(0, 4) + "년 "
  61. + getCurrentDateTime().substring(4, 6) + "월 "
  62. + getCurrentDateTime().substring(6, 8) + "일 "
  63. + getCurrentDate().toDate().getDayOfWeek("K") + "요일 ";
  64. model.setvalue("/root/hidden/date",tdate);
  65. model.makeValue("/root/send/refflag", "0");
  66. submit("TRLLC91001"); //대기화면 ip 및 대기시간, 하단메세지 조회
  67. //브라우져 초기 디자인 적용 및 글자 흐르게 하기
  68. fGetCallMessage();
  69. //대기인수 조회
  70. fDaeGiCnt();
  71. fTimer();
  72. model.refresh();
  73. }
  74. //타이머
  75. var gClockID;//초변화
  76. var gDaegiID; //대기인수
  77. function fTimer(){
  78. gClockID = window.setInterval( "clock()", 1000 ); //1초마다 시계 값 올리기
  79. if(getNodesetCount("/root/main/daegiip/ip") > 0 ) { //ip 노드가 있고
  80. if(model.getValue("/root/main/daegiip/ip") != "") { //ip 값이 있을경우.
  81. gDaegiID = window.setInterval( "fDaeGiCnt()", 5 * 1000 ); //5초마다 대기인수 변경
  82. } else {
  83. messageBox("외래채혈화면에서 Auto Label 대기자 IP를 설정", "I008");
  84. }
  85. } else {
  86. messageBox("외래채혈화면에서 Auto Label 대기자 IP를 설정", "I008");
  87. }
  88. }
  89. //초시간 변화
  90. function clock() {
  91. var ttime = getCurrentDateTime().substring(8, 11) + ":"
  92. + getCurrentDateTime().substring(11, 13) + ":"
  93. + getCurrentDateTime().substring(13, 15)
  94. model.setValue("/root/hidden/time", ttime) ;
  95. model.refresh();
  96. }
  97. function fDaeGiCnt() {
  98. model.setValue("/root/hidden/count", parseInt(model.getValue("/root/hidden/count") + 1));
  99. //대기화면 ip 및 대기시간 조회 submit 및 대기시간 계산.
  100. var sSetUpVal = model.getValue("/root/main/daegiip/ip");
  101. var sReturn = AutoLabel.WAITDATA(0, sSetUpVal);
  102. /* A|1|10|a-1001,b-1002,|^
  103. B|1|20|a-2001,b-2002,c-2003,|^
  104. C|3|15|a-3001,b-3002,c-3003,d-3004,|^
  105. D|1|16|a-4001,b-4002,c-4003,|^
  106. */
  107. if(sReturn != "") { //오류가 나지 않았다면.
  108. var vJangBi = sReturn.split("^");
  109. var vADaegi = vJangBi[0].split("|");
  110. var vBDaegi = vJangBi[1].split("|");
  111. var vCDaegi = vJangBi[2].split("|");
  112. var vDDaegi = vJangBi[3].split("|");
  113. model.setValue("/root/hidden/Daegicnt1", parseInt(vADaegi[2]) + parseInt(vBDaegi[2])); //1층 대기인수
  114. model.setValue("/root/hidden/Daegicnt3", parseInt(vCDaegi[2]) + parseInt(vDDaegi[2])); //3층 대기인수
  115. model.setValue("/root/hidden/Daegitime1", model.getValue("/root/hidden/Daegicnt1") * model.getValue("/root/main/waitlist[1]/bcollwaittm")); //1층 평균대기시간
  116. model.setValue("/root/hidden/Daegitime3", model.getValue("/root/hidden/Daegicnt3") * model.getValue("/root/main/waitlist[2]/bcollwaittm")); //3층 평균대기시간
  117. } else {
  118. messageBox(model.getValue("/root/main/daegiip/ip") + "컴퓨터에 대기자 화면을 실행", "I008");
  119. }
  120. model.refresh();
  121. }
  122. //브라우져 초기 디자인 적용 및 글자 흐르게 하기
  123. function fGetCallMessage(){
  124. var str1 ="<body bgcolor=#CCECFF SCROLL=no leftmargin=0 topmargin=10 marginwidth=0 marginheight=0><marquee TRUESPEED Scrollamount=";
  125. var str2 ="><font face=돋움체 color=#3366ff style=' font-size:25pt;'>";
  126. var str3 ="</font></marquee></body>";
  127. //문서의 기존 내용을 삭제
  128. brs_msg.Document.open();
  129. //신규 문서 내용 적용
  130. brs_msg.Document.write(str1 + model.getValue("/root/main/waitlist/msgmovetm") + str2 + model.getValue("/root/main/waitlist/msg") + str3);
  131. }
  132. ]]>
  133. </script>
  134. </xhtml:head>
  135. <xhtml:body pagewidth="1366" pageheight="768">
  136. <group id="grp_biz" scroll="auto" style="left:30px; top:25px; width:1305px; height:720px; ">
  137. <group id="group1" style="left:0px; top:6px; width:1300px; height:50px; vertical-align:top; ">
  138. <caption id="cpt_time" ref="/root/hidden/time" style="left:1125px; top:5px; width:175px; height:40px; font-family:HY각헤드라인M; font-size:30pt; color:#FF5050; text-align:left; background-color:#ffffff; border-color:#c0c0c0; border-style:hidden; "/>
  139. <line id="line1" class="line_1" style="x1:0px; y1:45px; x2:1125px; y2:45px; "/>
  140. <line id="line3" class="line_1" style="x1:1125px; y1:0px; x2:1295px; y2:0px; "/>
  141. <line id="line4" class="line_1" style="x1:1125px; y1:3px; x2:1125px; y2:49px; "/>
  142. </group>
  143. <img id="img2" src="../../../emr/waitguideweb/images/biglogo012.jpg" style="left:1035px; top:675px; width:260px; height:35px; background-stretch:stretch; "/>
  144. <group id="group2" style="left:0px; top:60px; width:650px; height:480px; vertical-align:top; ">
  145. <caption id="cpt_1daegitime" ref="/root/hidden/Daegitime1" style="left:510px; top:35px; width:130px; height:55px; font-family:HY헤드라인M; font-size:30pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
  146. <caption id="caption12" style="left:310px; top:35px; width:200px; height:55px; font-family:HY헤드라인M; font-size:20pt; color:#000000; text-align:center; background-color:#CCECFF; border-color:#c0c0c0; border-style:solid; ">평균대기시간</caption>
  147. <caption id="caption13" style="left:0px; top:0px; width:180px; height:40px; font-family:HY헤드라인M; font-size:20pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:none; ">1층 채혈실</caption>
  148. <caption id="caption14" style="left:5px; top:35px; width:150px; height:55px; font-family:HY헤드라인M; font-size:25pt; color:#000000; text-align:center; background-color:#CCECFF; border-color:#c0c0c0; border-style:solid; ">대기인수</caption>
  149. <caption id="cpt_1daegicnt" ref="/root/hidden/Daegicnt1" style="left:155px; top:35px; width:155px; height:55px; font-family:HY헤드라인M; font-size:30pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
  150. <img id="img1" src="C:\1F.JPG" style="left:5px; top:100px; width:635px; height:356px; background-stretch:stretch; "/>
  151. </group>
  152. <group id="group3" style="left:655px; top:60px; width:650px; height:480px; vertical-align:top; ">
  153. <caption id="caption3" style="left:0px; top:0px; width:180px; height:40px; font-family:HY헤드라인M; font-size:20pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:none; ">3층 채혈실</caption>
  154. <caption id="caption1" style="left:310px; top:35px; width:200px; height:55px; font-family:HY헤드라인M; font-size:20pt; color:#000000; text-align:center; background-color:#CCECFF; border-color:#c0c0c0; border-style:solid; ">평균대기시간</caption>
  155. <caption id="cpt_3daegitime" ref="/root/hidden/Daegitime3" style="left:510px; top:35px; width:130px; height:55px; font-family:HY헤드라인M; font-size:30pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
  156. <caption id="caption4" style="left:5px; top:35px; width:150px; height:55px; font-family:HY헤드라인M; font-size:25pt; color:#000000; text-align:center; background-color:#CCECFF; border-color:#c0c0c0; border-style:solid; ">대기인수</caption>
  157. <caption id="cpt_3daegicnt" ref="/root/hidden/Daegicnt3" style="left:155px; top:35px; width:155px; height:55px; font-family:HY헤드라인M; font-size:30pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:solid; "/>
  158. <img id="img3" src="C:\3F.JPG" style="left:5px; top:100px; width:635px; height:356px; background-stretch:stretch; "/>
  159. </group>
  160. <caption id="caption7" style="left:0px; top:545px; width:1296px; height:45px; font-family:HY헤드라인M; font-size:20pt; color:#000000; text-align:center; border-color:#c0c0c0; border-style:solid; ">대기인수를 확인하시고 편하신 채혈실을 이용하시기 바랍니다</caption>
  161. <line id="line5" class="line_1" style="x1:652px; y1:55px; x2:652px; y2:546px; "/>
  162. <browser id="brs_msg" style="left:0px; top:600px; width:1296px; height:70px; "/>
  163. <output id="output1" ref="/root/hidden/count" visibility="hidden" style="left:665px; top:685px; width:130px; height:19px; background-color:#ccffcc; "/>
  164. </group>
  165. <line id="line2" class="line_1" style="x1:30px; y1:620px; x2:1326px; y2:620px; "/>
  166. <caption id="caption8" ref="/root/hidden/date" style="left:55px; top:705px; width:290px; height:30px; font-family:HY헤드라인M; font-size:18pt; text-align:center; "/>
  167. <caption id="lbl_header" style="left:30px; top:15px; width:840px; height:50px; font-family:HY헤드라인M; font-size:36pt; color:#0000CC; text-align:center; ">채혈정보 안내 현황</caption>
  168. </xhtml:body>
  169. </xhtml:html>