123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMI02000_병실정보Popup.xrw
- * 설 명 : 병실정보Popup
- * 설 계 자 : 홍영표
- * 작 성 자 : 홍영표
- * 작 성 일 : 2007.06.05
- * 수정이력 : 2008.11.16 최병진 - 입원등록 화면에 파라미터를 설정해서 입원등록 시 가동병실,병상만 조회되도록 기능 추가
- * 기 타 :
- * 구현예정 :
- -->
- <?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>병실정보Popup</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <rmspecref>8</rmspecref>
- <rmspecrefnm>-</rmspecrefnm>
- <sendflag/>
- <prestdd/>
- <bedflag/>
- <room_sex/>
- <room_type/>
- <room_grdefrom/>
- <room_grdeto/>
- <room_wardcd/>
- <building/>
- </data1>
- <sess_posinstcd>012</sess_posinstcd>
- </send>
- <main>
- <wdrmlist>
- <grdroomspec/>
- </wdrmlist>
- </main>
- <hidden>
- <rcv>
- </rcv>
- <original>
- </original>
- <flag>
- <rcv_flag>
- </rcv_flag>
- </flag>
- <target>
- <srchcond/>
- <wardcd/>
- </target>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- </roomcd>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- </init>
- </hidden>
- <init>
- <P0025list>
- <P0025>
- <cdid/>
- <cdnm/>
- </P0025>
- </P0025list>
- <P0026list>
- <P0026>
- <cdid/>
- <cdnm/>
- </P0026>
- </P0026list>
- <P0391list>
- <P0391>
- <cdid/>
- <cdnm/>
- </P0391>
- </P0391list>
- <P0325list>
- <P0325>
- <cdnm/>
- <cdid/>
- </P0325>
- </P0325list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPMI00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/wdrmlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0025","P0026","P0391","P0325"), new Array("/root/init/P0025list","/root/init/P0026list","/root/init/P0391list","/root/init/P0325list"));
- submit("TRPMI00106");
- // 2008.12.12 - 우선은 무조건 빈병상으로 조회되도록 수정
-
- if (isPopup()) {
- // 2008.12.05 환자에 적합한 병실을 우선 조회하기 위한 로직 추가
- // 성병, 병실형태는 쿼리에서 조건으로 처리하고, 병실등급에 따른 정렬은 mgr에서 처리한다.
- var sParam = opener.javascript.getParameter("SMPMI00100_Param1");
- opener.javascript.clearParameter("SMPMI00100_Param1");
-
- //var sParam = "M" + "▦" + "S08" + "▦" + "" + "▦" + "" + "▦" + "";
- if (!isNull(sParam)) {
- var aRoomArray = sParam.split("▦");
- var sSex = aRoomArray[0].replace('-', '');
- var sRoomTypeCd = aRoomArray[1].replace('-', '');
- var sRoomGrdeCdFrom = aRoomArray[2].replace('-', '');
- var sRoomGrdeCdTo = aRoomArray[3].replace('-', '');
- var sWardCd = aRoomArray[4].replace('-', '');
-
- model.setValue("/root/send/data1/room_sex", sSex);
- model.setValue("/root/send/data1/room_type", sRoomTypeCd);
- model.setValue("/root/send/data1/room_grdefrom", sRoomGrdeCdFrom);
- model.setValue("/root/send/data1/room_grdeto", sRoomGrdeCdTo);
- model.setValue("/root/send/data1/room_wardcd", sWardCd);
-
- if (!isNull(sSex) || !isNull(sRoomTypeCd) || !isNull(sRoomGrdeCdFrom) || !isNull(sRoomGrdeCdTo) || !isNull(sWardCd)) {
- //model.setValue("/root/send/data1/rmspecref","0");
- //fChoice("0");
- } else {
- var swardcd = model.getValue("/root/hidden/target/wardcd");
- if (swardcd != "" && swardcd != "-") {
- model.setValue("/root/send/data1/rmspecrefnm",swardcd);
- //model.setValue("/root/send/data1/rmspecref","2");
- //fChoice("2");
- //fQueryRoomRef();
- } else {
- //model.setValue("/root/send/data1/rmspecref","8");
- //fChoice("8");
- }
- }
- //fQueryRoomRef();
- } else { // 기존 조회 로직
- var swardcd = model.getValue("/root/hidden/target/wardcd");
- if (swardcd != "" && swardcd != "-") {
- model.setValue("/root/send/data1/rmspecrefnm",swardcd);
- model.setValue("/root/send/data1/rmspecref","2");
- fChoice("2");
- fQueryRoomRef();
- } else {
- model.setValue("/root/send/data1/rmspecref","8");
- fChoice("8");
- }
- }
-
- var swardcd = model.getValue("/root/hidden/target/wardcd");
- if (swardcd != "" && swardcd != "-") {
- model.setValue("/root/send/data1/rmspecrefnm",swardcd);
- model.setValue("/root/send/data1/rmspecref","2");
- fChoice("2");
- fQueryRoomRef();
- } else {
- model.setValue("/root/send/data1/rmspecref","8");
- fChoice("8");
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 조회조건에 따른 조회문장
- function fQueryRoomRef()//병동병실 조회
- {
- // 2008.11.16 메인화면 체크
- var mainViewer = getMainViewer();
- var mainScrnId = mainViewer.javascript.getScreenID(); //메인화면 ID
- var winId = "SMPMI00100"; // 입원등록 화면 ID
- if (mainScrnId == winId) {
- //가동병실 조회 체크 조건 추가
- // Y : 입원등록, 병실배정, N : 재원변경관리, 전과전실승인
- model.setValue("/root/send/data1/bedflag", "Y");
- } else {
- model.setValue("/root/send/data1/bedflag", "N");
- }
- model.setValue("/root/send/data1/sendflag", "R");//병실검색 조회 구분자
- model.setValue("/root/send/data1/prestdd", getCurrentDate());
- submit("TRPMI00301");
- model.refresh();
- fSetRowStyle();
- }
- // 빈병상이 있는 Row의 색상을 노랑색으로 변경한다.
- function fSetRowStyle(){
- grd_roomspec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- setRowStyle("grd_roomspec", "1","0","emptybedcnt","bigger"); // 병실정보row의 색상을 변경한다.
- }
- function fChoice(rmchoi)
- {
- //1.전체 2.병동 3.병실 4.병실등급 5.병실형태 6.성별 7.진료과 8.빈병상 0.환자맞춤
- switch(rmchoi) {
- case "0" :
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- fQueryRoomRef();
- break;
- case "1" :
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- fQueryRoomRef();
- break;
- case "2" :
- cmb_building.attribute("top") = "8px";
- cmb_building.attribute("left") = "228px";
- cmb_ward.attribute("top") = "8px";
- cmb_ward.attribute("left") = "280px";
- model.setFocus("cmb_ward");
- ipt_room.visible = false;
- cmb_ward.visible = true;
- cmb_building.visible = true;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- break;
- case "3" :
- ipt_room.attribute("top") = "8px";
- ipt_room.attribute("left") = "228px";
- model.setFocus("ipt_room");
- ipt_room.visible = true;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- ipt_room.value ="";
- break;
- case "4" :
- cmb_grde.attribute("top") = "8px";
- cmb_grde.attribute("left") = "228px";
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = true;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- break;
- case "5" :
- cmb_type.attribute("top") = "8px";
- cmb_type.attribute("left") = "228px";
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = true;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- break;
- case "6" :
- cmb_sex.attribute("top") = "8px";
- cmb_sex.attribute("left") = "228px";
- model.setFocus("cmb_sex");
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = true;
- cmb_orddept.visible = false;
- break;
- case "7" :
- cmb_orddept.attribute("top") = "8px";
- cmb_orddept.attribute("left") = "228px";
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = true;
- break;
- case "8" :
- cmb_orddept.attribute("top") = "8px";
- cmb_orddept.attribute("left") = "228px";
- ipt_room.visible = false;
- cmb_ward.visible = false;
- cmb_building.visible = false;
- cmb_grde.visible = false;
- cmb_type.visible = false;
- cmb_sex.visible = false;
- cmb_orddept.visible = false;
- fQueryRoomRef();
- break;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="930" pageheight="500" guideline="1,924;2,500;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:914px; height:445px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">병실정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:908px; y2:60px; "/>
- <datagrid id="grd_roomspec" nodeset="/root/main/wdrmlist/grdroomspec" class="datagrid2" caption="^병동^병실^성별^등급^병상수^재원병상^기준병상^빈병상^추가병상^퇴원예고^전실
OUT^전실
IN^형태^진료과^참고사항^폐쇄병상^퇴원통보^O2^Suction^오버
베드" colsep="^" colwidth="6, 68, 54, 38, 134, 33, 33, 33, 33, 33, 33, 33, 33, 78, 80, 80, 35, 31, 40, 40, 33" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:64px; width:908px; height:378px; ">
- <col type="inputbutton" visibility="hidden" style="text-align:center; "/>
- <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomgrdecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0025list/P0025">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="bedcnt" style="text-align:center; "/>
- <col ref="inpatcnt" style="text-align:center; "/>
- <col ref="basbedcnt" style="text-align:center; "/>
- <col ref="emptybedcnt" style="text-align:center; "/>
- <col ref="tempaddbedcnt" style="text-align:center; "/>
- <col ref="dschdclrtcnt" style="text-align:center; "/>
- <col ref="outchngroomcnt" style="text-align:center; "/>
- <col ref="inchngroomcnt" style="text-align:center; "/>
- <col disabled="true" ref="roomtypecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0026list/P0026">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="bedroomrem"/>
- <col ref="tempclosbedcnt" style="text-align:center; "/>
- <col ref="dschnoticnt" style="text-align:center; "/>
- <col ref="oxyyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="suctyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="overbedyn" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell()) {
- var scurrentrow = grd_roomspec.row;
- var semptybedcnt = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/emptybedcnt");
- var sRoomTypeCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
- var sRoomCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomcd"); // 병실형태
- var sOverBedYn = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/overbedyn"); // overbed여부
- //alert("scurrentrow:"+scurrentrow+", semptybedcnt:"+semptybedcnt+", fixedRows:"+grd_roomspec.fixedRows);
- if (semptybedcnt > 0 && scurrentrow >= grd_roomspec.fixedRows ) {
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) { // 중환자실(집중치료)실은 오버베드 가능하도록 조건 추가
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else if (sOverBedYn == "Y" ) { // 오버베드 가능하도록 조건 추가
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else {
- messageBox("빈병상이 있는 병실을","C002");
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:0px; top:0px; width:907px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:905px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption43" class="search_name" style="left:10px; top:9px; width:112px; height:17px; ">병실검색조건 :</caption>
- <line id="line32" class="line_4" style="x1:818px; y1:7px; x2:818px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_rmsrch" ref="/root/send/data1/rmspecref" class="combo_search" appearance="minimal" style="left:125px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>빈병상</label>
- <value>8</value>
- </item>
- <item>
- <label>성별</label>
- <value>6</value>
- </item>
- <item>
- <label>병동</label>
- <value>2</value>
- </item>
- <item>
- <label>병실</label>
- <value>3</value>
- </item>
- <item>
- <label>병실등급</label>
- <value>4</value>
- </item>
- <item>
- <label>병실형태</label>
- <value>5</value>
- </item>
- <item>
- <label>진료과</label>
- <value>7</value>
- </item>
- <item>
- <label>환자맞춤</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var rmchoi = model.getValue("/root/send/data1/rmspecref");
- fChoice(rmchoi);
- ]]>
- </script>
- </select1>
- <input id="ipt_room" ref="/root/send/data1/rmspecrefnm" class="input_search" visibility="hidden" style="left:228px; top:8px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search1", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_grde" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:238px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0025list/P0025">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_type" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:278px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0026list/P0026">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sex" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:248px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddept" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:258px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ward" ref="/root/send/data1/rmspecrefnm" class="combo_search" visibility="hidden" appearance="minimal" style="left:268px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </select1>
- <button id="btn_search1" class="btn1_letter2" style="left:833px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fQueryRoomRef();
- ]]>
- </script>
- </button>
- <select1 id="cmb_building" ref="/root/send/data1/building" class="combo_search" visibility="hidden" appearance="minimal" style="left:405px; top:8px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>본관</label>
- <value>M</value>
- </item>
- <item>
- <label>별관</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sBuilding = model.getValue("/root/send/data1/building");
- if (sBuilding != null) {
- cmb_ward.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd[build = '" + sBuilding + "' ]";
- cmb_ward.refresh();
- }
- ]]>
- </script>
- </select1>
- </group>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:450px; width:910px; height:35px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:790px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var scurrentrow = grd_roomspec.row;
- var semptybedcnt = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/emptybedcnt");
- var sRoomTypeCd = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
- var sOverBedYn = model.getValue("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]/overbedyn"); // overbed여부
- if (semptybedcnt > 0 && scurrentrow > grd_roomspec.fixedRows ) {
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) { // 중환자실(집중치료)실은 오버베드 가능하더록 조건 추가
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else if (sOverBedYn == "Y") { // 오버베드 가능하더록 조건 추가
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/wdrmlist/grdroomspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- }
- window.close();
- } else {
- messageBox("빈병상이 있는 병실을","C002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:849px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|