123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?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>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- <patlist/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNV06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/hidden/patlist"/>
- </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 ; // 5초
- var getlListInterval = ""
- var count = 0;
-
- function fInitialize(){
-
- model.removeNodeset("/root/hidden/patlist/");
- model.removeNodeset("/root/main/msglist/msginfo");
- model.removenode("/root/main/oppatlist/oppatlist1");
- model.removenode("/root/main/oppatlist/oppatlist2");
- model.removenode("/root/main/oppatlist/oppatlist3");
- model.removenode("/root/main/oppatlist/oppatlist4");
- model.removenode("/root/main/oppatlist/oppatlist5");
-
- model.makeNode("/root/main/oppatlist/oppatlist1");
- model.makeNode("/root/main/oppatlist/oppatlist2");
- model.makeNode("/root/main/oppatlist/oppatlist3");
- model.makeNode("/root/main/oppatlist/oppatlist4");
- model.makeNode("/root/main/oppatlist/oppatlist5");
- model.makeValue("/root/main/cond/oppartrtndd", getCurrentDate());
- model.makeValue("/root/main/cond/flag", "O");
- model.refresh();
- submit("TRMNV06301");
- copyNodeListType("/root/main/oppatlist/oppatlist1", "/root/hidden/patlist/oppatinfo1", "after");
- copyNodeListType("/root/main/oppatlist/oppatlist2", "/root/hidden/patlist/oppatinfo2", "after");
- copyNodeListType("/root/main/oppatlist/oppatlist3", "/root/hidden/patlist/oppatinfo3", "after");
- copyNodeListType("/root/main/oppatlist/oppatlist4", "/root/hidden/patlist/oppatinfo4", "after");
- copyNodeListType("/root/main/oppatlist/oppatlist5", "/root/hidden/patlist/oppatinfo5", "after");
-
- model.refresh();
-
- fDispChngColor();
-
- getlListInterval = window.setInterval("fGetNextOpPatList()", submitIntervalTime); //5초
- // fGetNextOpPatList()
- }
-
- function fGetNextOpPatList() {
- // 50초 이후에는 분만현황으로 바꿔주기 위함
- if (count >= 5 ) {
- if(!isNull(getlListInterval)) {
- window.clearInterval(getlListInterval);
- opener.window.javaScript.fPregInit();
- }
- } 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;
- }
- }
- for(var i = 1; i < grd_op2.rows; i++){
- var color = model.getValue("/root/main/oppatlist/oppatlist2/oppatinfo2[" + i + "]/color");
- if(!isNull(color)){
- grd_op2.rowStyle(i, "all", "color") = "#" + color;
- }
- }
- for(var i = 1; i < grd_op3.rows; i++){
- var color = model.getValue("/root/main/oppatlist/oppatlist3/oppatinfo3[" + i + "]/color");
- if(!isNull(color)){
- grd_op3.rowStyle(i, "all", "color") = "#" + color;
- }
- }
- for(var i = 1; i < grd_op4.rows; i++){
- var color = model.getValue("/root/main/oppatlist/oppatlist4/oppatinfo4[" + i + "]/color");
- if(!isNull(color)){
- grd_op4.rowStyle(i, "all", "color") = "#" + color;
- }
- }
- for(var i = 1; i < grd_op5.rows; i++){
- var color = model.getValue("/root/main/oppatlist/oppatlist5/oppatinfo5[" + i + "]/color");
- if(!isNull(color)){
- grd_op5.rowStyle(i, "all", "color") = "#" + color;
- }
- }
-
- grd_op1.refresh();
- grd_op2.refresh();
- grd_op3.refresh();
- grd_op4.refresh();
- grd_op5.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <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; ">
- <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="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; ">
- <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="sex" 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; "/>
- </datagrid>
- </case>
- <case id="OP2">
- <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; ">
- <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="sex" 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; "/>
- </datagrid>
- </case>
- <case id="OP3">
- <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; ">
- <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="sex" 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; "/>
- </datagrid>
- </case>
- <case id="OP4">
- <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; ">
- <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="sex" 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; "/>
- </datagrid>
- </case>
- <case id="OP5">
- <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; ">
- <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="sex" 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; "/>
- </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="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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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; "/>
- <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>
- </xhtml:body>
- </xhtml:html>
|