1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>병실코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <srchcond>1</srchcond>
- <srchcondnm/>
- <roomflag>N</roomflag>
- </data1>
- <updateData>
- <datalist/>
- <s_wdrm>
- <saveflag/>
- </s_wdrm>
- </updateData>
- <sess_posinstcd/>
- <ioflag/>
- </send>
- <main>
- <gridlist>
- <roominfolist>
- </roominfolist>
- <roominfolistprint/>
- <item>
- <prmisnroomtot/>
- <basbedtot/>
- <usebedtot/>
- <useroomtot/>
- </item>
- </gridlist>
- <griddata>
- <roomtelno/>
- <fromdd/>
- <todd/>
- <roomgrdecd/>
- <roomtypecd/>
- <sex/>
- <orddeptcd/>
- <weflag/>
- <bedcnt/>
- <tempaddbedcnt/>
- <tempclosbedcnt/>
- <inpatcnt/>
- <leavhospnoticnt/>
- <bedroomrem/>
- <basbedcnt/>
- <rspatcnt/>
- <bedflag/>
- <oxyyn/>
- <suctyn/>
- <wcyn/>
- </griddata>
- <roominfo>
- <building/>
- <spaceflag/>
- <wardcd/>
- <roomcd/>
- <posinfocd/>
- <roomtelno/>
- <fromdd/>
- <todd/>
- <roomgrdecd/>
- <roomtypecd/>
- <sex/>
- <orddeptcd/>
- <bedcnt/>
- <tempaddbedcnt/>
- <tempclosbedcnt/>
- <inpatcnt/>
- <basbedcnt/>
- <prmisnroomflag/>
- <bedflag/>
- <oxyyn/>
- <suctyn/>
- <wcyn/>
- <roomseq/>
- <bedroomrem/>
- <overbedyn/>
- <area/>
- <wardcd_old/>
- <roomcd_old/>
- <todd_old/>
- <seqno_old/>
- <specialroomflag/>
- <psnnoroomflag/>
- <ertrsmyn/>
- <ertrsmtype/>
- </roominfo>
- </main>
- <init>
- <P0025list>
- <P0025>
- <cdid/>
- <cdnm/>
- </P0025>
- </P0025list>
- <P0026list>
- <P0026>
- <cdid/>
- <cdnm/>
- </P0026>
- </P0026list>
- <P0338list>
- <P0338>
- <cdid/>
- <cdnm/>
- </P0338>
- </P0338list>
- <P0391list>
- <P0391>
- <cdnm/>
- <cdid/>
- </P0391>
- </P0391list>
- <P0325list>
- <P0325>
- <cdnm/>
- <cdid/>
- </P0325>
- </P0325list>
- <P0478list>
- <P0478>
- <cdnm/>
- <cdid/>
- </P0478>
- </P0478list>
- <P0480list>
- <P0480>
- <cdnm>-</cdnm>
- <cdid>-</cdid>
- </P0480>
- </P0480list>
- <P0483list>
- <P0483>
- <cdnm/>
- <cdid/>
- </P0483>
- </P0483list>
- <PK058list>
- <PK058>
- <cdnm/>
- <cdid/>
- </PK058>
- </PK058list>
- <srchPK058list/>
- </init>
- <init2>
- <wardlist>
- <deptcd/>
- <depthngnm/>
- </wardlist>
- </init2>
- <hidden>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- </orddrid>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <wardcd>
- <cd/>
- <nm/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- </roomcd>
- </init>
- <warddeptlist>
- </warddeptlist>
- <roominfo/>
- <roomgrdelist>
- <roomgrde>
- <cdid/>
- <cdnm/>
- </roomgrde>
- </roomgrdelist>
- </hidden>
- <tmp>
- <!-- 20100122 수정추가 JHP 진료과 빈값입력시 오류발생 하여 '-' 처리 되도록함.-->
- <orddeptcd>
- <cd>-</cd>
- <nm>-</nm>
- </orddeptcd>
- </tmp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXPMB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updateData" resultref="/root/main/griddata"/>
- <submission id="TRPMB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/gridlist"/>
- <submission id="TRPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPMB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/roomgrdelist"/>
- <submission id="TRPMB00305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init2"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fflagcheck(1);
- zbcfGetCodeList(new Array("P0025","P0026","P0338","P0391","P0325","P0478","P0480","P0483"), new Array("/root/init/P0025list","/root/init/P0026list","/root/init/P0338list","/root/init/P0391list","/root/init/P0325list","/root/init/P0478list","/root/init/P0480list","/root/init/P0483list"));
-
- pamfGetCodeList(new Array("PK058", "PK058"), new Array("/root/init/PK058list", "/root/init/srchPK058list"));
- addComboItem("cmb_building", "전체", "-", "above");
-
- //20070809 kshin 병동코드조회
- fWardCDInfo();
-
- //2013-09-09 완료이력 포함 병동코드 조회
- submit("TRPMB00305");
-
- //20090606 JHP 수정 추가
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var posinstcd = UserInfosS_Array[6]; //근무지기관코드(dutplceinstcd)
-
- model.setValue("/root/send/sess_posinstcd",posinstcd);
- model.setValue("/root/send/ioflag","I");
- if(submit("TRPMB00302")){
- submit("TRPMB00301");
- }
- //진료과에 null값 추가
- model.makeNode("/root/tmp/orddeptcd");
- copyNodesetType("/root/tmp/orddeptcd","/root/hidden/init/orddeptcd","after");
- copyNodesetType("/root/hidden/init/orddeptcd","/root/tmp/orddeptcd","replace");
- //addComboItem("orddeptcd","above");
-
-
- //2008.10.12 저장버튼 권한설정
- button3.disabled = !checkAuth("X");
- //20090518 박재형 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
- // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
- // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
- submit("TRPMB00303");
- model.setValue("/root/main/roominfo/todd_old" , "99991231");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/gridlist");
- model.makeNode("/root/main/gridlist/roominfolist");
- model.makeNode("/root/main/gridlist/item/prmisnroomtot");
- model.makeNode("/root/main/gridlist/item/basbedtot");
- model.makeNode("/root/main/gridlist/item/usebedtot");
- model.makeNode("/root/main/gridlist/item/useroomtot");
- model.resetInstanceNode("/root/send/data1");
- model.resetInstanceNode("/root/send/updateData");
- model.resetInstanceNode("/root/main/roominfo");
- model.setValue("/root/send/data1/srchcond","1");
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- model.refresh();
- }
-
- function fWardCDInfo()
- {
- var instcd = getUserInfo("dutplceinstcd");
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "/root/hidden/warddeptlist";
- sort_field = "deptcd";
- sort_method = "desc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- }
-
-
- function fflagcheck(init_flag)
- {
- //초기설정 "1"
- if ((init_flag == "1") || (init_flag == 'D')) {
- grd_list.coldisabled(1) = "true";
- grd_list.coldisabled(2) = "true";
- } else {
- grd_list.coldisabled(1) = "false";
- grd_list.coldisabled(2) = "false";
- }
- }
- function fChoiValue(choiflag)
- {
- //전체/병동/병실/병실등급/병실형태/진료과/성별/허가병실/허가병상/가동병실/가동병상
- model.resetInstanceNode("/root/send/data1/srchcondnm");
- // model.setValue("/root/send/data2", "") //조회조건 변경시 값 공백처리 smpark
- if (choiflag == '1' || choiflag == '9' || choiflag == '10' || choiflag =='11') {
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- } else if (choiflag == '2') {
- cmb_wardcd.attribute("left") = "303px";
- cmb_wardcd.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = true;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- sortNodeList("/root/init2/wardlist", "depthngnm", "asc"); //동병 조회 시 정렬기준 설정
- model.setFocus("cmb_wardcd");
- } else if (choiflag == '3') {
- ipt_roomcd.visible = true;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("ipt_roomcd");
- } else if (choiflag == '4') {
- cmb_roomgrdecd.attribute("left") = "303px";
- cmb_roomgrdecd.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = true;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("cmb_roomgrdecd");
- } else if (choiflag == '5') {
- cmb_roomtypecd.attribute("left") = "303px";
- cmb_roomtypecd.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = true;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("cmb_roomtypecd");
- } else if (choiflag == '6') {
- cmb_orddeptcd.attribute("left") = "303px";
- cmb_orddeptcd.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = true;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("cmb_orddeptcd");
- } else if (choiflag == '7') {
- cmb_sex.attribute("left") = "303px";
- cmb_sex.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = true;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("cmb_sex");
- } else if (choiflag == '8') {
- cmb_prmisnroomflag.attribute("left") = "303px";
- cmb_prmisnroomflag.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = true;
- cmb_building.visible = false;
- ipt_basedd.visible = false;
- model.setFocus("cmb_prmisnroomflag");
- }else if (choiflag == '12') {
- cmb_building.attribute("left") = "303px";
- cmb_building.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = true;
- ipt_basedd.visible = false;
- model.setFocus("cmb_building");
- }else if (choiflag == '13') {
- ipt_basedd.attribute("left") = "303px";
- ipt_basedd.attribute("top") = "18px";
- ipt_roomcd.visible = false;
- cmb_wardcd.visible = false;
- cmb_roomgrdecd.visible = false;
- cmb_roomtypecd.visible = false;
- cmb_orddeptcd.visible = false;
- cmb_sex.visible = false;
- cmb_prmisnroomflag.visible = false;
- cmb_building.visible = false;
- ipt_basedd.visible = true;
- model.setFocus("ipt_basedd");
- }
-
- if (choiflag == "13") {
- ipt_basedd.value = getCurrentDate();
- } else {
- ipt_basedd.value = "";
- }
-
- model.refresh();
- }
-
- //그리드 enter key입력시 다음셀로 이동(
- function fSetGridNextCell(keyCode)
- {
- // 현재 event Target이 combo일 경우 처리
- model.setFocus("body");
- model.setFocus("grd_list");
-
- if( keyCode == null) {
- var grdCol = grd_list.col +1;
- grd_list.col = grdCol;
- grd_list.dispatch("onentercell");
- grd_list.editCell();
- }
-
- if( event.keyCode == keyCode ) {
- var grdCol = grd_list.col +1;
- grd_list.col = grdCol;
- grd_list.dispatch("onentercell");
- grd_list.editCell();
- }
- }
-
- function fPrntSeq(){
- var nodeList= instance1.selectNodes("/root/main/gridlist/roominfolistprint");
- if((nodeList != null) && (nodeList.length >0 )){
- exeReportPreview("RPPMB00301", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }else{
-
- }
- }
-
- /* 형태 선택 시 등급 필터링 기능 추가 */
- function fSetRoomgrdecd() {
-
- var typecd = model.getValue("/root/main/roominfo/roomtypecd");
- cmb_roomgrde1.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd='" + typecd + "']";
- cmb_roomgrde1.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,-1;2,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">병실정보관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:11px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="button1" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/gridlist");
- model.makeNode("/root/main/gridlist/roominfolist");
- model.makeNode("/root/main/gridlist/roominfolistprint");
-
- var s_srchcond = model.getValue("/root/send/data1/srchcond");
-
- if (s_srchcond == null || s_srchcond == "" || s_srchcond == " ") {
- messageBox("조회항목을","C002");
- return false;
- } else {
- submit("TRPMB00301");
- // 종료된 병실 표시
- // 요청은 없었으나 만들어둠. 필요하면 풀어서 사용
- /*
- var cnt = instance1.selectNodes("/root/main/gridlist/roominfolist").length;
- for (var i = 1; i <= cnt; i++) {
- if (eval(model.getValue("/root/main/gridlist/roominfolist[" + i + "]/todd")) < eval(getCurrentDate())) {
- grd_list.rowStyle(i, "all", "color") = "#ff5050";
- }
- }
- */
- }
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cm_gubun" ref="/root/send/data1/srchcond" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100px; top:8px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>건물</label>
- <value>12</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>6</value>
- </item>
- <item>
- <label>성별</label>
- <value>7</value>
- </item>
- <item>
- <label>허가병실</label>
- <value>8</value>
- </item>
- <item>
- <label>허가병상</label>
- <value>9</value>
- </item>
- <item>
- <label>가동병실</label>
- <value>10</value>
- </item>
- <item>
- <label>가동병상</label>
- <value>11</value>
- </item>
- <item>
- <label>기준일자</label>
- <value>13</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var choiflag = model.getValue("/root/send/data1/srchcond");
- //검색조건
- fChoiValue(choiflag);
-
- model.removeNodeset("/root/main/gridlist");
- model.makeNode("/root/main/gridlist/roominfolist");
- model.makeNode("/root/main/gridlist/roominfolistprint");
- model.resetInstanceNode("/root/main/gridlist/item");
- model.refresh();
-
- if (choiflag == '1' || choiflag == '9' || choiflag == '10' || choiflag == '11') {
- submit("TRPMB00301");
-
- }
-
- ]]>
- </script>
- </select1>
- <input id="ipt_roomcd" ref="/root/send/data1/srchcondnm" class="input_search" navindex="2" visibility="hidden" style="left:303px; top:8px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //병실조회시 Enter 일 경우 조회 smpark
- if (event.keyCode=='13') {
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- model.resetInstanceNode("/root/main/gridlist/roominfolistprint");
- setInputNodeCurText(); //inputbox 값을 읽어온다 smpark
- submit("TRPMB00301");
- }
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption20" class="tit_2" style="left:5px; top:55px; width:100px; height:14px; ">병실정보내역</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_list" nodeset="/root/main/gridlist/roominfolist" class="datagrid2" caption="건물^관리
구분^wardcd^병동^병실^위치
정보(층)^형태^등급^진료과^성별^병상
수^허가
병상수^재원
병상^추가병상^허가병실
구분^가동병실
구분^OverBed
여부^병실
순서^참고사항^O2
구분^SUCTION
구분^병실
전화번호^폐쇄
병상^면적^화장실
구분^시작일자^종료일자^일련번호^상태^wardcd_old^roomcd_old^todd_old^seqno_old^특수병실구분^인실구분^응급전송
여부^응급전송
병실형태" colsep="^" colwidth="55, 54, 0, 158, 77, 60, 115, 184, 118, 41, 35, 44, 34, 35, 54, 57, 54, 39, 137, 47, 56, 59, 37, 52, 48, 82, 95, 35, 35, 40, 40, 40, 40, 100, 60, 60, 100" dataheight="32" explorerbar="sort" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="listbox" tooltip="true" navindex="1" style="left:0px; top:206px; width:1194px; height:501px; ">
- <col disabled="true" ref="building" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/PK058list/PK058">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="spaceflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>공통</label>
- <value>A</value>
- </item>
- <item>
- <label>암센터</label>
- <value>C</value>
- </item>
- <item>
- <label>BMT</label>
- <value>B</value>
- </item>
- <item>
- <label>VIP</label>
- <value>V</value>
- </item>
- </choices>
- </col>
- <col ref="wardcd"/>
- <!--
- <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
- -->
- <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
- <!--
- <choices>
- <itemset nodeset="/root/hidden/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- -->
- <col ref="wardnm" type="output"/>
- <col disabled="true" ref="roomcd" type="input" style="text-align:center; "/>
- <col disabled="true" imemode="disabled" ref="posinfocd" type="input" 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="roomgrdecd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <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="bedcnt" type="input" style="text-align:center; "/>
- <col disabled="true" ref="basbedcnt" type="input" style="text-align:center; "/>
- <col ref="inpatcnt" style="text-align:center; "/>
- <col disabled="true" ref="tempaddbedcnt" type="input" style="text-align:center; "/>
- <col disabled="true" ref="prmisnroomflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="bedflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0338list/P0338">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="overbedyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomseq" type="input" style="text-align:center; "/>
- <col disabled="true" ref="bedroomrem" type="input"/>
- <col disabled="true" ref="oxyyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suctyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomtelno" type="input" style="text-align:center; "/>
- <col disabled="true" ref="tempclosbedcnt" type="input" style="text-align:center; "/>
- <col disabled="true" ref="area" type="input" style="text-align:center; "/>
- <col disabled="true" ref="wcyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col autonext="false" disabled="true" ref="fromdd" type="inputdate"/>
- <col autonext="false" disabled="true" ref="todd" type="inputdate"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="histstat" visibility="hidden" style="left:1782px; top:32px; width:35px; height:23px; "/>
- <col ref="wardcd_old" visibility="hidden"/>
- <col ref="roomcd_old" visibility="hidden"/>
- <col ref="todd_old" visibility="hidden"/>
- <col ref="seqno_old" visibility="hidden"/>
- <col disabled="true" ref="specialroomflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0480list/P0480">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="psnnoroomflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0478list/P0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ertrsmyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ertrsmtype" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0483list/P0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 리스트 그리드에서 작업하는것이 하나도 없기때문에 일단 주석으로 막아놓음
- // JHP, 20090306
- //var cur_col = grd_list.col;
- //var cur_row = grd_list.row;
-
- //if (cur_col == 6) {
- // result = messageBox("종료일자를 현재 날짜로 종료","S001");
- // if (result == 6) {
- // model.setValue("/root/main/gridlist/roominfolist["+cur_row+"]/todd",getCurrentDate());
- // grd_list.addStatus(cur_row,"update");
- // }
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fSetGridNextCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //fSetGridNextCell(13);
- ]]>
- </script>
- <script type="javascript" ev:event="ondayselect">
- <![CDATA[
- //fSetGridNextCell();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_list.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_list.row;
- if(row > 0){
- model.resetInstanceNode("/root/hidden/roominfo");
- model.resetInstanceNode("/root/main/roominfo");
-
- model.copyNode("/root/hidden/roominfo","/root/main/gridlist/roominfolist[" + row + "]");
- model.copyNode("/root/main/roominfo","/root/main/gridlist/roominfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="cell_2" style="left:236px; top:717px; width:70px; height:21px; vertical-align:middle; ">가동병실</caption>
- <caption id="caption4" class="cell_2" style="left:4px; top:717px; width:70px; height:21px; vertical-align:middle; ">허가병실</caption>
- <caption id="caption14" class="cell_2" style="left:120px; top:717px; width:70px; height:21px; vertical-align:middle; ">허가병상</caption>
- <output id="output1" ref="/root/main/gridlist/item/prmisnroomtot" class="output_fix" style="left:77px; top:718px; width:40px; height:19px; text-align:center; "/>
- <output id="output2" ref="/root/main/gridlist/item/basbedtot" class="output_fix" style="left:193px; top:718px; width:40px; height:19px; text-align:center; "/>
- <output id="output3" ref="/root/main/gridlist/item/usebedtot" class="output_fix" style="left:309px; top:718px; width:40px; height:19px; text-align:center; "/>
- <caption id="caption1" class="cell_2" style="left:352px; top:717px; width:70px; height:21px; vertical-align:middle; ">가동병상</caption>
- <output id="output4" ref="/root/main/gridlist/item/useroomtot" class="output_fix" style="left:425px; top:718px; width:40px; height:19px; text-align:center; "/>
- <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:0px; top:714px; width:469px; height:27px; "/>
- <select1 id="cmb_wardcd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:313px; top:18px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init2/wardlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
- <!--
- <choices>
- <itemset nodeset="/root/hidden/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- -->
- <!--<choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>-->
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_roomgrdecd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:323px; top:18px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_roomtypecd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:333px; top:18px; width:200px; height:19px; ">
- <choices>
- <![CDATA[>]]>
- <itemset nodeset="/root/init/P0026list/P0026">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:343px; top:18px; width:200px; 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[
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sex" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:353px; top:18px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_prmisnroomflag" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:363px; top:18px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_building" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:376px; top:18px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srchPK058list/PK058">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- submit("TRPMB00301");
- ]]>
- </script>
- </select1>
- <input id="ipt_basedd" ref="/root/send/data1/srchcondnm" class="input_search" navindex="2" visibility="hidden" inputtype="date" style="left:390px; top:18px; width:200px; height:19px; "/>
- <caption id="caption5" style="left:178px; top:187px; width:57px; height:15px; ">병실이력</caption>
- <bool id="bool_roomflag" checkvalue="Y,N" ref="/root/send/data1/roomflag" style="left:160px; top:184px; width:20px; height:20px; "/>
- <button id="button4" class="btn2_letter3" style="left:979px; top:181px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updateData/s_wdrm/saveflag","CI");
- var cur_row = grd_list.row;
- var icur_row = cur_row + 1;
- grd_list.insertItem(grd_list.row,"after");
- copyNodeType("/root/main/gridlist/roominfolist["+ icur_row +"]", "/root/main/gridlist/roominfolist["+ cur_row +"]");
- model.setValue("/root/main/gridlist/roominfolist["+ icur_row +"]/wardcd_old", "");
- model.setValue("/root/main/gridlist/roominfolist["+ icur_row +"]/roomcd_old", "");
- model.setValue("/root/main/gridlist/roominfolist["+ icur_row +"]/todd_old", "");
- model.setValue("/root/main/gridlist/roominfolist["+ icur_row +"]/seqno_old", "");
- grd_list.rebuild();
- grd_list.addStatus(icur_row,"insert");
- fflagcheck(2);
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter2" style="left:936px; top:181px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_list.saveExcel(file);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:893px; top:181px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntSeq();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:201px; x2:1194px; y2:201px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:186px; width:140px; height:13px; ">병실정보내역 리스트</caption>
- <caption id="caption9" class="cell_1" style="left:124px; top:75px; width:57px; height:23px; vertical-align:middle; ">병 동</caption>
- <input id="ipt_room1" ref="/root/main/roominfo/roomcd" class="input_default" navindex="12" imemode="disabled" maxlength="6" style="left:182px; top:102px; width:128px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:124px; top:100px; width:57px; height:23px; vertical-align:middle; ">병 실</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:98px; x2:1194px; y2:98px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:123px; x2:1194px; y2:123px; "/>
- <input id="ipt_posinfo1" ref="/root/main/roominfo/posinfocd" class="input_default" navindex="13" imemode="disabled" maxlength="2" style="left:534px; top:102px; width:100px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:476px; top:100px; width:57px; height:23px; vertical-align:middle; ">위치(층)</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:148px; x2:1194px; y2:148px; "/>
- <caption id="caption12" class="cell_1" style="left:476px; top:75px; width:57px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="ipt_fromdd1" ref="/root/main/roominfo/fromdd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:372px; top:77px; width:100px; height:19px; "/>
- <input id="ipt_tel1" ref="/root/main/roominfo/roomtelno" class="input_default" navindex="6" imemode="disabled" style="left:60px; top:127px; width:60px; height:19px; "/>
- <input id="ipt_todd1" ref="/root/main/roominfo/todd" class="input_default" navindex="8" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:534px; top:77px; width:100px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:314px; top:75px; width:57px; height:23px; vertical-align:middle; ">시작일자</caption>
- <caption id="caption16" class="cell_1" style="left:2px; top:125px; width:57px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption17" class="cell_1" style="left:927px; top:150px; width:57px; height:23px; vertical-align:middle; ">응급전송</caption>
- <caption id="caption19" class="cell_1" style="left:314px; top:125px; width:57px; height:23px; vertical-align:middle; ">등 급</caption>
- <caption id="caption21" class="cell_1" style="left:124px; top:125px; width:57px; height:23px; vertical-align:middle; ">형 태</caption>
- <caption id="caption22" class="cell_1" style="left:314px; top:100px; width:57px; height:23px; vertical-align:middle; ">성별</caption>
- <caption id="caption26" class="cell_1" style="left:638px; top:100px; width:57px; height:23px; vertical-align:middle; ">가동병상</caption>
- <caption id="caption29" class="cell_1" style="left:726px; top:100px; width:57px; height:23px; vertical-align:middle; ">추가병상</caption>
- <input id="ipt_tempaddbedcnt1" ref="/root/main/roominfo/tempaddbedcnt" class="input_default" navindex="22" imemode="disabled" style="left:785px; top:102px; width:25px; height:19px; "/>
- <input id="ipt_bedcnt1" ref="/root/main/roominfo/bedcnt" class="input_default" navindex="19" imemode="disabled" style="left:696px; top:102px; width:25px; height:19px; "/>
- <input id="ipt_bedroomrem1" ref="/root/main/roominfo/bedroomrem" class="input_default" navindex="10" style="left:60px; top:152px; width:575px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:2px; top:150px; width:57px; height:23px; vertical-align:middle; ">참고사항</caption>
- <input id="ipt_tempclosbedcnt1" ref="/root/main/roominfo/tempclosbedcnt" class="input_default" navindex="23" imemode="disabled" style="left:784px; top:127px; width:25px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:726px; top:125px; width:57px; height:23px; vertical-align:middle; ">폐쇄병상</caption>
- <input id="ipt_inpatcnt1" ref="/root/main/roominfo/inpatcnt" class="input_default" navindex="21" imemode="disabled" style="left:784px; top:77px; width:25px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:726px; top:75px; width:57px; height:23px; vertical-align:middle; ">재원병상</caption>
- <caption id="caption23" class="cell_1" style="left:638px; top:125px; width:57px; height:23px; vertical-align:middle; ">허가병상</caption>
- <caption id="caption24" class="cell_1" style="left:813px; top:150px; width:60px; height:23px; vertical-align:middle; ">허가병실</caption>
- <input id="ipt_basbedcnt1" ref="/root/main/roominfo/basbedcnt" class="input_default" navindex="20" imemode="disabled" style="left:696px; top:127px; width:25px; height:19px; "/>
- <caption id="caption25" class="cell_1" style="left:638px; top:150px; width:57px; height:23px; vertical-align:middle; ">가동병실</caption>
- <caption id="caption27" class="cell_1" style="left:813px; top:100px; width:60; height:23px; vertical-align:middle; ">O2구분</caption>
- <caption id="caption28" class="cell_1" style="left:813px; top:125px; width:60; height:23px; vertical-align:middle; ">SUCTION</caption>
- <caption id="caption30" class="cell_1" style="left:813px; top:75px; width:60; height:23px; vertical-align:middle; ">화장실</caption>
- <caption id="caption31" class="cell_1" style="left:638px; top:75px; width:57; height:23px; vertical-align:middle; ">병실순서</caption>
- <input id="ipt_roomseq1" ref="/root/main/roominfo/roomseq" class="input_default" navindex="24" imemode="disabled" style="left:696px; top:77px; width:25px; height:19px; "/>
- <select1 id="cmb_ward1" ref="/root/main/roominfo/wardcd" class="combo_search" navindex="5" appearance="minimal" style="left:182px; top:77px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init2/wardlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <!--<choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>-->
- </select1>
- <select1 id="cmb_roomtype1" ref="/root/main/roominfo/roomtypecd" class="combo_search" navindex="14" appearance="minimal" style="left:182px; top:127px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0026list/P0026">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetRoomgrdecd();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_roomgrde1" ref="/root/main/roominfo/roomgrdecd" class="combo_search" navindex="15" appearance="minimal" style="left:372px; top:127px; width:262px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var typecd = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid='" + model.getValue("/root/main/roominfo/roomgrdecd") + "']/typecd");
-
- if (typecd != model.getValue("/root/main/roominfo/roomtypecd")) {
- alert("선택하신 등급은 형태에 맞지않는 등급입니다.\r\n형태에 유효한 등급을 선택하십시오.");
- model.setValue("/root/main/roominfo/roomgrdecd", "");
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_sex1" ref="/root/main/roominfo/sex" class="combo_search" navindex="9" appearance="minimal" style="left:372px; top:102px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd1" ref="/root/main/roominfo/orddeptcd" class="combo_search" navindex="16" appearance="minimal" style="left:985px; top:127px; width:207px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_prmisnroomflag1" ref="/root/main/roominfo/prmisnroomflag" class="combo_search" navindex="25" appearance="minimal" style="left:874px; top:152px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_bedflag1" ref="/root/main/roominfo/bedflag" class="combo_search" navindex="26" appearance="minimal" style="left:696px; top:152px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0338list/P0338">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_oxyyn1" ref="/root/main/roominfo/oxyyn" class="combo_search" navindex="28" appearance="minimal" style="left:874px; top:102px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_suctyn1" ref="/root/main/roominfo/suctyn" class="combo_search" navindex="27" appearance="minimal" style="left:874px; top:127px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_wcyn1" ref="/root/main/roominfo/wcyn" class="combo_search" navindex="29" appearance="minimal" style="left:874px; top:77px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button6" class="btn5_letter4" navindex="30" style="left:1128px; top:50px; width:64px; height:19px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_list.row;
- if(row >= 1){
-
- var rowstatus = grd_list.rowStatus(row);
-
- var sData = grd_list.getUpdateData();
- var sDataArray = sData.split("▩");
-
- model.copyNode("/root/main/gridlist/roominfolist[" + row + "]", "/root/main/roominfo");
-
- if (sDataArray.length <= 2) { // header만있고 실데이터가 없을경우 업데이트로 간주
- if(rowstatus == '0'){
- grd_list.addStatus(row, "update");
- }
- }
-
- model.refresh();
- }
- //그리드 행 번호 가져오기
- var cur_row = grd_list.row;
- // if (grd_list.addStatus == "D"
- if ((model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/wardcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/roomcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/todd") == ""))
- {
- messageBox("병동 병실 종료일자를","C001");
- return false;
- }
- //2007.10.31 층정보는 숫자로 입력해야한다.
- var wdrm_posinfocd = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/posinfocd");
- if (wdrm_posinfocd.isNumber() != true) {
- messageBox("층정보는 숫자형식으로 입력해야 합니다","E999");
- return false;
- }
- var wdrm_bedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/bedcnt");
- var wdrm_tempaddbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempaddbedcnt");
- var wdrm_tempclosbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempclosbedcnt");
- var wdrm_basbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/basbedcnt");
- if (wdrm_bedcnt.isNumber() != true || wdrm_tempaddbedcnt.isNumber() != true ||
- wdrm_tempclosbedcnt.isNumber() != true || wdrm_basbedcnt.isNumber() != true) {
- messageBox("병상수,추가병상,폐쇄병상,허가병상수는 숫자형식으로 입력해야 합니다","E999");
- return false;
- }
- model.setValue("/root/send/updateData/datalist", grd_list.getUpdateData());
- if (submit("TXPMB00301")) {
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- model.resetInstanceNode("/root/main/item");
- model.resetInstanceNode("/root/send/updateData/datalist");
- model.resetInstanceNode("/root/main/roominfo");
- grd_list.clearStatus();
- submit("TRPMB00301");
-
- }
- grd_list.selectionMode = "";
- ]]>
- </script>
- </button>
- <select1 id="cmb_building1" ref="/root/main/roominfo/building" class="combo_search" navindex="4" appearance="minimal" style="left:60px; top:77px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PK058list/PK058">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption32" class="cell_1" style="left:2px; top:75px; width:57px; height:23px; vertical-align:middle; ">건 물</caption>
- <caption id="caption33" class="cell_1" style="left:2px; top:100px; width:57px; height:23px; vertical-align:middle; ">관 리</caption>
- <select1 id="cmb_spaceflag1" ref="/root/main/roominfo/spaceflag" class="combo_search" navindex="11" appearance="minimal" style="left:60px; top:102px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>공통</label>
- <value>A</value>
- </item>
- <item>
- <label>암센터</label>
- <value>C</value>
- </item>
- <item>
- <label>BMT</label>
- <value>B</value>
- </item>
- <item>
- <label>VIP</label>
- <value>V</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_area1" ref="/root/main/roominfo/area" class="input_default" navindex="18" imemode="disabled" style="left:1118px; top:77px; width:74px; height:19px; "/>
- <caption id="caption34" class="cell_1" style="left:1059px; top:75px; width:57px; height:23px; vertical-align:middle; ">면 적</caption>
- <caption id="caption35" class="cell_1" style="left:927px; top:75px; width:57px; height:23px; vertical-align:middle; ">OverBed</caption>
- <select1 id="cmb_overbedyn1" ref="/root/main/roominfo/overbedyn" class="combo_search" navindex="17" appearance="minimal" style="left:986px; top:77px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption36" class="cell_1" style="left:927px; top:125px; width:57px; height:23px; vertical-align:middle; ">진료과</caption>
- <select1 id="combo1" ref="/root/main/roominfo/specialroomflag" class="combo_search" navindex="29" appearance="minimal" style="left:1118px; top:102px; width:74; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0480list/P0480">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/main/roominfo/psnnoroomflag" class="combo_search" navindex="29" appearance="minimal" style="left:985px; top:102px; width:70; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0478list/P0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption37" class="cell_1" style="left:927px; top:100px; width:57px; height:23px; vertical-align:middle; ">인실구분</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:173px; x2:1194px; y2:173px; "/>
- <caption id="caption38" class="cell_1" style="left:1059px; top:100px; width:57px; height:23px; vertical-align:middle; ">특수병실</caption>
- <select1 id="combo3" ref="/root/main/roominfo/ertrsmyn" class="combo_search" navindex="17" appearance="minimal" style="left:986px; top:152px; width:70px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0325list/P0325">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption39" class="cell_1" style="left:1059px; top:150px; width:57px; height:23px; vertical-align:middle; ">전송형태</caption>
- <select1 id="combo4" ref="/root/main/roominfo/ertrsmtype" class="combo_search" navindex="29" appearance="minimal" style="left:1118px; top:152px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0483list/P0483">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/roominfo/todd_old" visibility="hidden" style="left:575px; top:77px; width:70px; height:19px; "/>
- <caption id="caption40" style="left:490px; top:715px; width:480px; height:25px; color:#0000ff; ">병상가동률 계산에서 화학요법실(CHEMO) 와 임상시험센터 UNIT 은 제외됩니다.</caption>
- </group>
- <button id="button52" class="btn2_letter3" style="left:1033px; top:194px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
- // grd_list.addItem();
- // //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
- // grd_list.selectionMode = "free";
- model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
- grd_list.addItem();
-
- var row = grd_list.row;
- if(row > 0){
- model.copyNode("/root/main/roominfo","/root/main/gridlist/roominfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button53" class="btn2_letter3" style="left:1087px; top:194px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_list.row;
- grd_list.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <button id="button54" class="btn2_letter3" style="left:1141px; top:194px; width:53px; height:19px; ">
- <caption>행삽입</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
- // var cur_row = grd_list.row;
- // grd_list.insertItem(cur_row,"after");
- // grd_list.selectionMode = "free";
- model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
- var cur_row = grd_list.row;
- grd_list.insertItem(cur_row,"after");
- var row = grd_list.row;
- if(row > 0){
- model.copyNode("/root/main/roominfo","/root/main/gridlist/roominfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- model.refresh();
- // grd_list.selectionMode = "";
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button3" class="btn4_letter2" visibility="hidden" _auth="X" style="left:1066px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //그리드 행 번호 가져오기
- var cur_row = grd_list.row;
- // if (grd_list.addStatus == "D"
- if ((model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/wardcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/roomcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/todd") == ""))
- {
- messageBox("병동 병실 종료일자를","C001");
- return false;
- }
- //2007.10.31 층정보는 숫자로 입력해야한다.
- var wdrm_posinfocd = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/posinfocd");
- if (wdrm_posinfocd.isNumber() != true) {
- messageBox("층정보는 숫자형식으로 입력해야 합니다","E999");
- return false;
- }
-
- var wdrm_bedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/bedcnt");
- var wdrm_tempaddbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempaddbedcnt");
- var wdrm_tempclosbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempclosbedcnt");
- var wdrm_basbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/basbedcnt");
-
- if (wdrm_bedcnt.isNumber() != true || wdrm_tempaddbedcnt.isNumber() != true ||
- wdrm_tempclosbedcnt.isNumber() != true || wdrm_basbedcnt.isNumber() != true) {
- messageBox("병상수,추가병상,폐쇄병상,허가병상수는 숫자형식으로 입력해야 합니다","E999");
- return false;
- }
-
- model.setValue("/root/send/updateData/datalist",grd_list.getUpdateData());
-
- if (submit("TXPMB00301")) {
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- model.resetInstanceNode("/root/main/item");
- submit("TRPMB00301");
- }
- grd_list.selectionMode = "";
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|