123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMI02001_병상정보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>
- <orddeptcd/>
- <wardcd/>
- <rmspecref/>
- <otherdeptyn/>
- <orduseyn/>
- <search/>
- <budogubunyn/>
- <updateData>
- <datalist/>
- </updateData>
- </send>
- <main>
- <bedlist>
- <grdbedspec/>
- </bedlist>
- </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>
- <bedcd>
- <wd/>
- <rm/>
- <cd/>
- <nm/>
- </bedcd>
- <roomgrdecd>
- <cd/>
- <nm/>
- <typecd/>
- <cdamt/>
- </roomgrdecd>
- </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>
- <PAM>
- <PK116list/>
- </PAM>
- </init>
- <tmp>
- <orddeptcd>
- <cd>-</cd>
- <nm>-</nm>
- </orddeptcd>
- <orddeptcd>
- <cd>0000000000</cd>
- <nm>공용병상</nm>
- </orddeptcd>
- </tmp>
- </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="TRPMI02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bedlist"/>
- <submission id="TXPMB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updateData" resultref="/root/send/updateData/griddata"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0026","P0391","P0325"), new Array("/root/init/P0026list","/root/init/P0391list","/root/init/P0325list"));
- submit("TRPMI00106");
-
- // 원무공통코드 조회
- pamfGetCodeList(new Array("PK116"), new Array("/root/init/PAM/PK116list"));
- //진료과 콤보에 디폴트값 추가
- model.makeNode("/root/tmp/orddeptcd");
- copyNodesetType("/root/tmp/orddeptcd","/root/hidden/init/orddeptcd","after");
- copyNodesetType("/root/hidden/init/orddeptcd","/root/tmp/orddeptcd","replace");
-
- model.setValue("/root/send/rmspecref", "1");
- cmb_rmsrch.dispatch("xforms-value-changed");
-
- // 진료의뢰서 테스트용
- if (getUserInfo("userid") == "PAM") {
- checkbox2.visible = true;
- } else {
- checkbox2.visible = false;
- }
-
- //진료과에 맞게 병상 조회
- if (isPopup()) {
-
- // 메뉴를 통해 표시되는 경우
- var sMenuParam = model.getValue("/root/properties/menu/menuparam");
-
- // 진료대기자 리스트 팝업메뉴를 통해 표시되는 경우
- if (isNull(sMenuParam) || sMenuParam == '') {
- sMenuParam = opener.javascript.getParameter("SMPMI00100_MENUPARAM");
- }
-
- //부모창에서 파마리터로 전달 받아 해당 진료과의 병상만 조회한다.
- var sParam1 = opener.javascript.getParameter("SMPMI00100_Param1");
- opener.javascript.clearParameter("SMPMI00100_Param1");
-
- //부모창에서 파마리터로 전달 받아 해당 병동의 병상만 조회한다.
- var sParam2 = opener.javascript.getParameter("SMPMI00100_Param2");
- opener.javascript.clearParameter("SMPMI00100_Param2");
-
- //진료에서 호출 여부
- //Y : 결정서화면 호출, H: 전실신청에서 호출
- var sOrdUserYn = opener.javascript.getParameter("SMPMI00100_orduseyn");
- opener.javascript.clearParameter("SMPMI00100_orduseyn");
-
- model.setValue("/root/send/orduseyn", sOrdUserYn);
-
- // 부도병상 표시여부
- if(sOrdUserYn == "Y"){
- model.setValue("/root/send/budogubunyn", "Y"); // 결정서화면에서 호출된 경우만 적용
- }
-
- // 결정서화면에서 호출 + 진료과 전달된 경우
- if(sOrdUserYn == 'Y' && !isNull(sParam1)){
- checkbox1.visible = true;
- cmb_rmsrch.disabled = true;
-
- // 병동코드가 전달된 경우(소아청소년과 분과)
- if (!isNull(sParam2)) {
-
- // 세부조건 콤보 표시제어용
- cmb_orddept.visible = false;
- cmb_ward.visible = true; // 병동
- cmb_ward.disabled = true;
-
-
- model.setValue("/root/send/wardcd", sParam2);
- cmb_ward.refresh();
-
- model.setValue("/root/send/rmspecref", "2");
- cmb_rmsrch.refresh();
-
- // 진료과만 전달된 경우
- } else {
-
- cmb_orddept.disabled = true;
-
- model.setValue("/root/send/orddeptcd", sParam1);
- cmb_orddept.refresh();
- }
- fQueryBedRef();
-
- // 메뉴화면에서 호출한 경우
- }else if (sMenuParam == 'A'){
- checkbox1.visible = true;
- cmb_rmsrch.disabled = false;
- cmb_orddept.disabled = false;
-
- // 세부조건 콤보 표시제어용
- cmb_orddept.visible = false;
- cmb_ward.visible = false;
- cmb_search.visible = true; // 빈병상
-
- model.setValue("/root/send/otherdeptyn", "Y"); // Y:타과병상신청
- checkbox1.refresh();
-
- model.setValue("/root/send/search", "E"); // E:응급의료센터, 임상시험센터 제외
- cmb_search.refresh();
-
- model.setValue("/root/send/rmspecref", 0); // 0:빈병상
- cmb_rmsrch.refresh();
-
- fQueryBedRef();
-
- // 기타
- }else{
- checkbox1.visible = false;
- cmb_rmsrch.disabled = false;
- cmb_orddept.disabled = false;
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //병상 조회
- function fQueryBedRef()
- {
-
- // 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("TRPMI02001");
- model.refresh();
- fSetRowStyle();
- }
- // 빈병상이 있는 Row의 색상을 노랑색으로 변경한다.
- function fSetRowStyle(){
- grd_bedspec.allStyle("all","background-color") = "#ffffff"; // 배경색을 초기화 한다.
- // 빈병상 처리
- setRowStyle("grd_bedspec", "1","N","emptycheck","equal");
- // 입원결정서 화면 연동 시 부도병상 처리
- if (model.getValue("/root/send/budogubunyn") == "Y") {
-
- // 부도병상 처리(N:부도)
- setRowStyle("grd_bedspec", "5","N","budogubun","equal");
- }
- }
-
- //확인버트 클릭 모화면으로 데이터 넘김
- function fConfirm(){
-
- var scurrentrow = grd_bedspec.row;
-
- // 메뉴를 통해 표시되는 경우
- var sMenuParam = model.getValue("/root/properties/menu/menuparam");
-
- // 진료대기자 리스트 팝업메뉴를 통해 표시되는 경우
- if (isNull(sMenuParam) || sMenuParam == '') {
- sMenuParam = opener.javascript.getParameter("SMPMI00100_MENUPARAM");
- }
-
- // 메뉴에서 호출되는 경우, 부모창이 없으므로 설정로직 스킵하도록 수정추가 by 조중래 20131021
- if ( scurrentrow > 0 && isDataCell() && sMenuParam != 'A') {
-
- var emptycheck = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/emptycheck"); // 빈병상여부
- var sRoomTypeCd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomtypecd"); // 병실형태
- var sRoomCd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomcd"); // 호수
- var sOverBedYn = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/overbedyn"); // overbed여부
- var sRoomGrdecd = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/roomgrdecd"); // 병실등급
- var sBudoGubun = model.getValue("/root/main/bedlist/grdbedspec["+ scurrentrow +"]/budogubun"); // 부도여부(N:부도)
-
- // 부도병상 체크
- if (model.getValue("/root/send/budogubunyn") == "Y" && sBudoGubun == "N") {
- messageBox("해당병상은 2일이상 연속으로 부도처리되어 병실배정 불가능합니다.\r\n해당병상의 사용은 공용병상 담당자에게 문의하시기 바랍니다.\r\n(일과중 : 원무과 공용병상 담당자 / 일과후 : 응급수납)", "E000");
- return;
-
- // 빈병상(N)인 경우
- } else if (emptycheck != 'Y' ) {
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- model.property("certyn") = "Y";
- }
- window.close();
- // 특수병동(S01:신생아, S02:집중치료, S09:분만)으 ㅣ경우 오버베드 가능
- } else if (sRoomTypeCd == "S01" || sRoomTypeCd == "S02" || sRoomTypeCd == "S09" ) {
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- model.property("certyn") = "Y";
- }
- window.close();
-
- // 오버베드 가능한 경우
- } else if (sOverBedYn == "Y" ) {
- //부모창에 선택한 병실데이터 전송
- var nodeList = instance1.selectNodes("/root/main/bedlist/grdbedspec["+ scurrentrow +"]");
- var node;
- while( node = nodeList.nextNode() ) {
- model.duplicate(opener.root.hidden.target , node);
- model.property("certyn") = "Y";
- }
- window.close();
-
- // 재원병상인 경우
- } else {
- messageBox("빈병상이 있는 병실을","C002");
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="690" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1070px; height:655px; ">
- <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:1050px; y2:60px; "/>
- <group id="group4" style="left:0px; top:0px; width:1050px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1050px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line32" class="line_4" style="x1:963px; y1:7px; x2:963px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_orddept" ref="/root/send/orddeptcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:165px; 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[
- fQueryBedRef();
- ]]>
- </script>
- </select1>
- <button id="btn_search1" class="btn1_letter2" style="left:978px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fQueryBedRef();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:112px; height:17px; ">병실검색조건 :</caption>
- <select1 id="cmb_rmsrch" ref="/root/send/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>2</value>
- </item>
- <item>
- <label>빈병상</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var rmchoi = model.getValue("/root/send/rmspecref");
- if( rmchoi == '1' ){ //진료과
-
- cmb_orddept.visible = true;
- cmb_ward.visible = false;
- cmb_search.visible = false;
- }else if( rmchoi == '2' ){ //병동
-
- cmb_orddept.visible = false;
- cmb_ward.visible = true;
- cmb_search.visible = false;
- }else if( rmchoi == '0' ) { // 빈병상
-
- cmb_orddept.visible = false;
- cmb_ward.visible = false;
- cmb_search.visible = true;
- }
-
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ward" ref="/root/send/wardcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:165px; 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[
- fQueryBedRef();
- ]]>
- </script>
- </select1>
- <select id="checkbox1" ref="/root/send/otherdeptyn" overflow="visible" appearance="full" style="left:860px; top:9px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>타과병상신청</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var checkyn = model.getValue("/root/send/otherdeptyn");
- if( checkyn == 'Y' ){
- cmb_rmsrch.disabled = false;
- cmb_orddept.disabled = false;
- cmb_ward.disabled = false;
- }else{
- cmb_rmsrch.disabled = true;
- cmb_orddept.disabled = true;
- cmb_ward.disabled = true;
- }
-
- cmb_rmsrch.refresh();
- cmb_orddept.refresh();
- cmb_ward.refresh();
- ]]>
- </script>
- </select>
- <select1 id="cmb_search" ref="/root/send/search" class="combo_search" visibility="hidden" appearance="minimal" style="left:228px; top:8px; width:222px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>A</value>
- </item>
- <item>
- <label>응급의료센터,임상시험센터 제외</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fQueryBedRef();
- ]]>
- </script>
- </select1>
- <select id="checkbox2" ref="/root/send/budogubunyn" visibility="hidden" overflow="visible" appearance="full" style="left:735px; top:9px; width:120px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>부도구분표시여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <datagrid id="grd_bedspec" nodeset="/root/main/bedlist/grdbedspec" class="datagrid2" caption="건물^병동^병실(인실)^병실(인실)^병상^병상2^성별^등급^병실차액^형태^빈병상^상태^환자정보(표시명/나이/성별)^HOLD^재원진료과^진료과^부진료과1^부진료과2^부진료과3^부진료과4^부진료과5^O2^Suction^부도여부^참고사항^시작일자^종료일자" colsep="^" colwidth="55, 110, 45, 26, 77, 77, 40, 145, 66, 90, 54, 70, 170, 150, 140, 140, 100, 100, 100, 100, 100, 100, 100, 60, 170, 90, 90" dataheight="32" explorerbar="sort" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="listbox" tooltip="true" navindex="1" style="left:0px; top:64px; width:1050px; height:586px; ">
- <col disabled="true" ref="building" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>본관</label>
- <value>M</value>
- </item>
- <item>
- <label>별관</label>
- <value>S</value>
- </item>
- <item>
- <label>1동</label>
- <value>A</value>
- </item>
- <item>
- <label>2동</label>
- <value>B</value>
- </item>
- <item>
- <label>3동</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
- <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <!--
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>-->
- </col>
- <col disabled="true" ref="roomcd" style="text-align:center; "/>
- <col disabled="true" ref="bedcnt" style="text-align:center; "/>
- <col ref="bednm" style="text-align:center; "/>
- <col disabled="true" ref="bedcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <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" style="text-align:left; padding-left:5; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomgrdecd" type="combo" format="#,###" style="text-align:right; padding-right:5; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="cdamt"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomtypecd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0026list/P0026">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="emptycheck" visibility="hidden"/>
- <col ref="emptykind" style="text-align:center; "/>
- <col ref="patinfo" style="text-align:left; padding-left:5; "/>
- <col ref="holdmsg" type="input" style="text-align:center; "/>
- <col ref="patorddeptnm" style="padding-left:5; "/>
- <col disabled="true" ref="orddeptcd" style="padding-left:5; "/>
- <col disabled="true" ref="suborddeptcd1" visibility="visible"/>
- <col disabled="true" ref="suborddeptcd2" visibility="visible"/>
- <col disabled="true" ref="suborddeptcd3" visibility="visible"/>
- <col disabled="true" ref="suborddeptcd4" visibility="visible"/>
- <col disabled="true" ref="suborddeptcd5" visibility="visible"/>
- <col disabled="true" ref="oxyyn" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suctyn" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="budogubun" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>부도</label>
- <value>N</value>
- </item>
- <item>
- <label>정상</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="bedrem" type="input"/>
- <col autonext="false" disabled="true" ref="fromdd" type="inputdate" visibility="hidden"/>
- <col autonext="false" disabled="true" ref="todd" type="inputdate" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- fConfirm();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_bedspec.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- // 원무공통코드에 등록되어있는 부서인지 조회
- var cnt = getNodesetCount("/root/init/PAM/PK116list/PK116[cdid='" + getUserInfo("dutplcecd") + "']");
-
- // 존재하지 않으면 false를 리턴
- if (cnt < 1) {
- messageBox("HOLD 메세지 저장권한이 없습니다. ", "E");
- } else {
-
- // HOLD 메세지 수정 시 pam.pmbmbedm.holdmsg 반영
- if (grd_bedspec.row > 0 && grd_bedspec.col == grd_bedspec.colRef("holdmsg")) {
- model.removeNodeset("/root/send/updateData/datalist");
- model.makeNode("/root/send/updateData/datalist");
- model.setValue("/root/send/updateData/datalist", grd_bedspec.getUpdateData());
- if (submit("TXPMB00303")) {
-
- grd_bedspec.clearStatus();
- alert("저장되었습니다.");
- } else {
-
- alert("저장 시 오류가 발생되었습니다.");
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_bedspec.row > 0 && grd_bedspec.col == grd_bedspec.colRef("holdmsg")) {
-
- grd_bedspec.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <shape id="rectangle1" appearance="rectangle" style="left:165px; top:40px; width:15px; height:15px; background-color:#f7a08b; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:90px; top:40px; width:15px; height:15px; background-color:#ffe79d; "/>
- <caption id="caption3" style="left:110px; top:40px; width:45px; height:20px; ">빈병상</caption>
- <caption id="caption4" style="left:185px; top:40px; width:414px; height:20px; ">부도처리병상 (2일이상 연속으로 입원결정 후 실제 입원처리 되지않은 경우)</caption>
- <button id="button1" class="btn2_letter4" style="left:980px; top:40px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_bedspec.rows == 1) return;
-
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_bedspec.saveExcel(fileName, "빈병상현황", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:660px; width:1070px; height:30px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:935px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fConfirm();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:994px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|