SMMNV01300_수술진행현황전광판.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <oppatlist>
  11. <oppatlist1/>
  12. <oppatlist2/>
  13. <oppatlist3/>
  14. <oppatlist4/>
  15. <oppatlist5/>
  16. </oppatlist>
  17. <cond>
  18. <oppartrtndd/>
  19. <togglenm/>
  20. <flag/>
  21. </cond>
  22. <msglist>
  23. <msginfo>
  24. <calltm/>
  25. <callmsg/>
  26. <oprsrvno/>
  27. </msginfo>
  28. </msglist>
  29. <menuitems>
  30. <gnrlmenu>
  31. <item>
  32. <name>종료</name>
  33. <func>fCloseBoard</func>
  34. </item>
  35. </gnrlmenu>
  36. </menuitems>
  37. </main>
  38. <send>
  39. <reqdata/>
  40. </send>
  41. <hidden>
  42. <patlist/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-model-construct-done">
  47. <![CDATA[
  48. fInitialize();
  49. ]]>
  50. </script>
  51. <submission id="TRMNV06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/patlist"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. var submitIntervalTime = 10 * 1000 ; // 5초
  59. var getlListInterval = ""
  60. var count = 0;
  61. function fInitialize(){
  62. model.removeNodeset("/root/hidden/patlist/");
  63. model.removeNodeset("/root/main/msglist/msginfo");
  64. model.removenode("/root/main/oppatlist/oppatlist1");
  65. model.removenode("/root/main/oppatlist/oppatlist2");
  66. model.removenode("/root/main/oppatlist/oppatlist3");
  67. model.removenode("/root/main/oppatlist/oppatlist4");
  68. model.removenode("/root/main/oppatlist/oppatlist5");
  69. model.makeNode("/root/main/oppatlist/oppatlist1");
  70. model.makeNode("/root/main/oppatlist/oppatlist2");
  71. model.makeNode("/root/main/oppatlist/oppatlist3");
  72. model.makeNode("/root/main/oppatlist/oppatlist4");
  73. model.makeNode("/root/main/oppatlist/oppatlist5");
  74. model.makeValue("/root/main/cond/oppartrtndd", getCurrentDate());
  75. model.makeValue("/root/main/cond/flag", "O");
  76. model.refresh();
  77. submit("TRMNV06301");
  78. copyNodeListType("/root/main/oppatlist/oppatlist1", "/root/hidden/patlist/oppatinfo1", "after");
  79. copyNodeListType("/root/main/oppatlist/oppatlist2", "/root/hidden/patlist/oppatinfo2", "after");
  80. copyNodeListType("/root/main/oppatlist/oppatlist3", "/root/hidden/patlist/oppatinfo3", "after");
  81. copyNodeListType("/root/main/oppatlist/oppatlist4", "/root/hidden/patlist/oppatinfo4", "after");
  82. copyNodeListType("/root/main/oppatlist/oppatlist5", "/root/hidden/patlist/oppatinfo5", "after");
  83. model.refresh();
  84. fDispChngColor();
  85. getlListInterval = window.setInterval("fGetNextOpPatList()", submitIntervalTime); //5초
  86. // fGetNextOpPatList()
  87. }
  88. function fGetNextOpPatList() {
  89. // 50초 이후에는 분만현황으로 바꿔주기 위함
  90. if (count >= 5 ) {
  91. if(!isNull(getlListInterval)) {
  92. window.clearInterval(getlListInterval);
  93. opener.window.javaScript.fPregInit();
  94. }
  95. } else {
  96. count++
  97. }
  98. // 현재의 토글 정보를 가져와서 다음 토글을 알려줌
  99. // 노드의 리스트가 0일때는 처음으로 돌아첫번째 노드로 돌아감
  100. var togglenm = model.getValue("/root/main/cond/togglenm");
  101. if (togglenm =="" || togglenm == "OP5") {
  102. var cnts = getNodesetCount("/root/main/oppatlist/oppatlist1/oppatinfo1");
  103. togglenm = "OP1";
  104. } else if ( togglenm == "OP1") {
  105. var cnts = getNodesetCount("/root/main/oppatlist/oppatlist2/oppatinfo2");
  106. if (cnts == "0" ) {
  107. togglenm = "OP1";
  108. } else {
  109. togglenm = "OP2";
  110. }
  111. } else if ( togglenm == "OP2") {
  112. var cnts = getNodesetCount("/root/main/oppatlist/oppatlist3/oppatinfo3");
  113. if (cnts == "0" ) {
  114. togglenm = "OP1";
  115. } else {
  116. togglenm = "OP3";
  117. }
  118. } else if ( togglenm == "OP3") {
  119. var cnts = getNodesetCount("/root/main/oppatlist/oppatlist4/oppatinfo4");
  120. if (cnts == "0" ) {
  121. togglenm = "OP1";
  122. } else {
  123. togglenm = "OP4";
  124. }
  125. } else if ( togglenm == "OP4") {
  126. var cnts = getNodesetCount("/root/main/oppatlist/oppatlist5/oppatinfo5");
  127. if (cnts == "0" ) {
  128. togglenm = "OP1";
  129. } else {
  130. togglenm = "OP5";
  131. }
  132. }
  133. model.setValue("/root/main/cond/togglenm", togglenm);
  134. model.toggle(togglenm);
  135. model.refresh()
  136. }
  137. function fCloseBoard(){
  138. if (getlListInterval != "") window.clearInterval(getlListInterval);
  139. opener.window.close();
  140. }
  141. /**
  142. * @desc : 진행상태에 따른 색 변경
  143. * @
  144. * @param :
  145. * @return : 수술중 : 녹색
  146. * @ 회복중 , 수술종료 : 남색
  147. * @ 병실이동 : 파란색
  148. * @ 대기 : 검정색
  149. * @author : 오지훈
  150. * @---------------------------------------------------
  151. */
  152. function fDispChngColor(){
  153. for(var i = 1; i < grd_op1.rows; i++){
  154. var color = model.getValue("/root/main/oppatlist/oppatlist1/oppatinfo1[" + i + "]/color");
  155. if(!isNull(color)){
  156. grd_op1.rowStyle(i, "all", "color") = "#" + color;
  157. }
  158. }
  159. for(var i = 1; i < grd_op2.rows; i++){
  160. var color = model.getValue("/root/main/oppatlist/oppatlist2/oppatinfo2[" + i + "]/color");
  161. if(!isNull(color)){
  162. grd_op2.rowStyle(i, "all", "color") = "#" + color;
  163. }
  164. }
  165. for(var i = 1; i < grd_op3.rows; i++){
  166. var color = model.getValue("/root/main/oppatlist/oppatlist3/oppatinfo3[" + i + "]/color");
  167. if(!isNull(color)){
  168. grd_op3.rowStyle(i, "all", "color") = "#" + color;
  169. }
  170. }
  171. for(var i = 1; i < grd_op4.rows; i++){
  172. var color = model.getValue("/root/main/oppatlist/oppatlist4/oppatinfo4[" + i + "]/color");
  173. if(!isNull(color)){
  174. grd_op4.rowStyle(i, "all", "color") = "#" + color;
  175. }
  176. }
  177. for(var i = 1; i < grd_op5.rows; i++){
  178. var color = model.getValue("/root/main/oppatlist/oppatlist5/oppatinfo5[" + i + "]/color");
  179. if(!isNull(color)){
  180. grd_op5.rowStyle(i, "all", "color") = "#" + color;
  181. }
  182. }
  183. grd_op1.refresh();
  184. grd_op2.refresh();
  185. grd_op3.refresh();
  186. grd_op4.refresh();
  187. grd_op5.refresh();
  188. }
  189. ]]>
  190. </script>
  191. </xhtml:head>
  192. <xhtml:body pagewidth="1020" pageheight="634" guideline="1,879;2,634;2,634;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  193. <script type="javascript" ev:event="onkeyup">
  194. <![CDATA[
  195. // fClearTimer();
  196. ]]>
  197. </script>
  198. <switch id="switch1" class="sw_no_border" style="left:0px; top:98px; width:1002px; height:532px; ">
  199. <case id="OP1" selected="true">
  200. <datagrid id="grd_op1" nodeset="/root/main/oppatlist/oppatlist1/oppatinfo1" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 299, 252" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:0px; width:1002px; height:532px; font-size:29pt; text-align:center; vertical-align:middle; background-color:#c0c0c0; ">
  201. <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  202. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  203. <col ref="sex" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  204. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  205. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  206. </datagrid>
  207. </case>
  208. <case id="OP2">
  209. <datagrid id="grd_op2" nodeset="/root/main/oppatlist//oppatlist2/oppatinfo2" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 299, 252" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:0px; width:1002px; height:532px; font-size:29pt; text-align:center; vertical-align:middle; background-color:#c0c0c0; ">
  210. <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  211. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  212. <col ref="sex" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  213. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  214. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  215. </datagrid>
  216. </case>
  217. <case id="OP3">
  218. <datagrid id="grd_op3" nodeset="/root/main/oppatlist//oppatlist3/oppatinfo3" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 299, 252" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:0px; width:1002px; height:532px; font-size:29pt; text-align:center; vertical-align:middle; background-color:#c0c0c0; ">
  219. <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  220. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  221. <col ref="sex" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  222. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  223. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  224. </datagrid>
  225. </case>
  226. <case id="OP4">
  227. <datagrid id="grd_op4" nodeset="/root/main/oppatlist//oppatlist4/oppatinfo4" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 299, 252" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:0px; width:1002px; height:532px; font-size:29pt; text-align:center; vertical-align:middle; background-color:#c0c0c0; ">
  228. <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  229. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  230. <col ref="sex" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  231. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  232. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  233. </datagrid>
  234. </case>
  235. <case id="OP5">
  236. <datagrid id="grd_op5" nodeset="/root/main/oppatlist//oppatlist5/oppatinfo5" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^성별^수술과^진행상태^caption1" colsep="^" colwidth="179, 183, 124, 299, 252" dataheight="64px" extendlastcol="noscroll" frozenrows="7" mergecellsfixedrows="bycolrec" rowheight="90" rowsep="|" style="left:0px; top:0px; width:1002px; height:532px; font-size:29pt; text-align:center; vertical-align:middle; background-color:#c0c0c0; ">
  237. <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  238. <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  239. <col ref="sex" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  240. <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  241. <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
  242. </datagrid>
  243. </case>
  244. </switch>
  245. <caption id="caption1" style="left:0px; top:0px; width:1001px; height:75px; font-family:HY헤드라인M; font-size:36pt; font-weight:bold; color:#000080; text-align:center; vertical-align:middle; ">수술 현황 안내</caption>
  246. <caption id="caption2" 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>
  247. <caption id="caption3" 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>
  248. <caption id="caption4" style="left:485px; top:70px; width:300px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">수술과</caption>
  249. <caption id="caption5" 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>
  250. <caption id="caption7" 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>
  251. <caption id="caption8" style="left:785px; top:70px; width:218px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">진행상태</caption>
  252. <line id="line1" class="line_1" style="x1:0px; y1:68px; x2:1003px; y2:68px; "/>
  253. <line id="line2" class="line_1" style="x1:0px; y1:120px; x2:1003px; y2:120px; "/>
  254. <script type="javascript" ev:event="onmousedown">
  255. <![CDATA[
  256. if(event.button == 3) {
  257. window.setPopupMenu(true, "/root/main/menuitems/gnrlmenu/item", "name", "func", false);
  258. }
  259. ]]>
  260. </script>
  261. <script type="javascript" ev:event="DOMFocusOut">
  262. <![CDATA[
  263. window.setPopupMenu(false);
  264. ]]>
  265. </script>
  266. </xhtml:body>
  267. </xhtml:html>