123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <oppatlist>
- <oppatlist1/>
- <oppatlist2/>
- <oppatlist3/>
- <oppatlist4/>
- <oppatlist5/>
- </oppatlist>
- <cond>
- <oppartrtndd/>
- <togglenm/>
- <flag/>
- </cond>
- <msglist>
- <msginfo>
- <calltm/>
- <callmsg/>
- <oprsrvno/>
- </msginfo>
- </msglist>
- <menuitems>
- <gnrlmenu>
- <item>
- <name>종료</name>
- <func>fCloseBoard</func>
- </item>
- </gnrlmenu>
- </menuitems>
- <date>
- <tdate/>
- <ttime/>
- </date>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <patlist/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- submit("TRMNV03003");
- submitIntervalTime = parseInt(model.getValue("/root/main/cond/interval/intervalnm[sortseq='5']/cdid"));
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNV06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/patlist"/>
- <submission id="TRMNV03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cond/interval"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var submitIntervalTime = 10 * 1000 ; // 50초
- var getlListInterval = ""
- var count = 0;
- var printno = 8;
-
- function fInitialize(){
- clockID = window.setInterval("clock();" , 1000); //1초
- model.removeNodeset("/root/hidden/patlist/");
- model.removeNodeset("/root/main/msglist/msginfo");
- model.removenode("/root/main/oppatlist/oppatlist1");
- model.makeValue("/root/main/cond/oppartrtndd", getCurrentDate());
- model.makeValue("/root/main/cond/flag", "O");
- model.refresh();
- submit("TRMNV06301");
- for(var i = 1 ; i <= 8 ; i ++){
- model.makeNode("/root/main/oppatlist/oppatlist1/oppatinfo1["+i+"]");
- model.copyNode("/root/main/oppatlist/oppatlist1/oppatinfo1["+i+"]", "/root/hidden/patlist/oppatinfo1["+i+"]");
- }
-
- model.refresh();
-
- fDispChngColor();
-
- getlListInterval = window.setInterval("fGetNextOpPatList()", submitIntervalTime); //5초
- }
-
- function fGetNextOpPatList() {
-
- var Nodes = instance1.selectNodes("/root/hidden/patlist/oppatinfo1");
- var toNodeno= 0;
- var fromNodeno= 0;
-
- model.removenode("/root/main/oppatlist/oppatlist1");
- fromNodeno=printno+1; // 전광판의 첫 행
- toNodeno= fromNodeno + 7 ; // 마지막행
-
- if(fromNodeno>Nodes.length){
- printno=0;
- fromNodeno=printno+1; // 전광판의 첫 행
- toNodeno= fromNodeno + 7 ; // 마지막행
- }
- if(toNodeno>Nodes.length){
- toNodeno=Nodes.length;
- }
- if (Nodes.length==0){
- fromNodeno=1;
- toNodeno = fromNodeno+7;
- }
- for(var i = fromNodeno ; i <= toNodeno ; i ++){
- model.makeNode("/root/main/oppatlist/oppatlist1/oppatinfo1["+i+"]");
- model.copyNode("/root/main/oppatlist/oppatlist1/oppatinfo1["+i+"]", "/root/hidden/patlist/oppatinfo1["+i+"]");
- printno++;
- }
- fDispChngColor();
- if (printno==Nodes.length){
- printno=0;
- }
- model.refresh()
- }
-
-
- // 50초 이후에는 성가 그림으로 바꿔주기 위함
- // if (count >= 5 ) {
- // if(!isNull(getlListInterval)) {
- // window.clearInterval(getlListInterval);
- // opener.window.javaScript.fPicInit();
- // }
- // } else {
- // count++
- // }
- //
- // // 현재의 토글 정보를 가져와서 다음 토글을 알려줌
- // // 노드의 리스트가 0일때는 처음으로 돌아첫번째 노드로 돌아감
- // var togglenm = model.getValue("/root/main/cond/togglenm");
- // if (togglenm =="" || togglenm == "OP5") {
- // var cnts = getNodesetCount("/root/main/oppatlist/oppatlist1/oppatinfo1");
- // togglenm = "OP1";
- // } else if ( togglenm == "OP1") {
- // var cnts = getNodesetCount("/root/main/oppatlist/oppatlist2/oppatinfo2");
- // if (cnts == "0" ) {
- // togglenm = "OP1";
- // } else {
- // togglenm = "OP2";
- // }
- // } else if ( togglenm == "OP2") {
- // var cnts = getNodesetCount("/root/main/oppatlist/oppatlist3/oppatinfo3");
- // if (cnts == "0" ) {
- // togglenm = "OP1";
- // } else {
- // togglenm = "OP3";
- // }
- // } else if ( togglenm == "OP3") {
- // var cnts = getNodesetCount("/root/main/oppatlist/oppatlist4/oppatinfo4");
- // if (cnts == "0" ) {
- // togglenm = "OP1";
- // } else {
- // togglenm = "OP4";
- // }
- // } else if ( togglenm == "OP4") {
- // var cnts = getNodesetCount("/root/main/oppatlist/oppatlist5/oppatinfo5");
- // if (cnts == "0" ) {
- // togglenm = "OP1";
- // } else {
- // togglenm = "OP5";
- // }
- // }
- // model.setValue("/root/main/cond/togglenm", togglenm);
- // model.toggle(togglenm);
- //
- // model.refresh()
- // }
-
- function fCloseBoard(){
- if (getlListInterval != "") window.clearInterval(getlListInterval);
- opener.window.close();
- }
-
- /**
- * @desc : 진행상태에 따른 색 변경
- * @
- * @param :
- * @return : 수술중 : 녹색
- * @ 회복중 , 수술종료 : 남색
- * @ 병실이동 : 파란색
- * @ 대기 : 검정색
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fDispChngColor(){
- for(var i = 1; i < grd_op1.rows; i++){
- var color = model.getValue("/root/main/oppatlist/oppatlist1/oppatinfo1[" + i + "]/color");
- if(!isNull(color)){
- grd_op1.rowStyle(i, "all", "color") = "#" + color;
- }else{
- grd_op1.rowStyle(i, "all", "color") = "#" + "000000";
- }
- }
- grd_op1.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.10.09
- * @by : 문창곤
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : DataTime 조회.
- * @return :
- * @---------------------------------------------------
- */
- function clock() {
- var tdate = getCurrentDateTime().substring(0, 4) + "년 "
- + getCurrentDateTime().substring(4, 6) + "월 "
- + getCurrentDateTime().substring(6, 8) + "일 "
- // + getCurrentDate().toDate("YYYYMMDD").getDayOfWeek("K") + "요일 "
-
- var ttime = getCurrentDateTime().substring(8, 11) + ":"
- + getCurrentDateTime().substring(11, 13) + ":"
- + getCurrentDateTime().substring(13, 15)
-
- model.setValue("/root/main/date/tdate", tdate) ;
- model.setValue("/root/main/date/ttime", ttime) ;
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1020" pageheight="634" guideline="1,879;2,633;2,634;2,68;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // fClearTimer();
- ]]>
- </script>
- <switch id="switch1" class="sw_no_border" style="left:0px; top:98px; width:1002px; height:532px; ">
- <case id="OP1" selected="true">
- <datagrid id="grd_op1" nodeset="/root/main/oppatlist/oppatlist1/oppatinfo1" class="datagrid_op" overflow="hidden" scroll="auto" caption="병실^환자명^수술과^진행상태^이동위치^caption1" colsep="^" colwidth="154, 161, 249, 218, 217" 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; ">
- <col ref="roomcd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
- <col ref="patnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
- <col ref="orddept" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
- <col ref="opstatnm" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
- <col ref="patposplcecd" style="font-family:HY각헤드라인M; font-size:18pt; font-weight:bold; "/>
- </datagrid>
- </case>
- </switch>
- <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>
- <caption id="caption4" style="left:315px; top:70px; width:250px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">수술과</caption>
- <caption id="caption5" style="left:155px; top:70px; width:160px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">환자명</caption>
- <caption id="caption7" style="left:0px; top:70px; width:155px; height:54px; font-family:HY헤드라인M; font-size:29pt; color:#ffffff; text-align:center; background-color:#008080; border-color:#c0c0c0; border-style:solid; ">병 실</caption>
- <caption id="caption8" style="left:565px; 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>
- <caption id="caption2" style="left:783px; 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>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3) {
- window.setPopupMenu(true, "/root/main/menuitems/gnrlmenu/item", "name", "func", false);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <line id="line1" class="line_1" style="x1:0px; y1:68px; x2:1003px; y2:68px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:120px; x2:1003px; y2:120px; "/>
- <img id="img2" src="../../../emr/waitguideweb/images/his014logo.jpg" style="left:0px; top:0px; width:166; height:68; background-stretch:stretch; "/>
- <caption id="caption3" ref="/root/main/date/tdate" style="left:665px; top:5px; width:330px; height:30px; font-family:HY각헤드라인M; font-size:18pt; text-align:right; "/>
- <caption id="caption6" ref="/root/main/date/ttime" style="left:770px; top:35px; width:215px; height:30px; font-family:HY각헤드라인M; font-size:18pt; text-align:right; "/>
- </xhtml:body>
- </xhtml:html>
|