12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214 |
- <?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>
- </srchcond>
- <srchcondnm/>
- <roomflag>N</roomflag>
- </data1>
- <updateData>
- <datalist/>
- <s_wdrm>
- <saveflag/>
- </s_wdrm>
- </updateData>
- <sess_posinstcd/>
- <ioflag/>
- </send>
- <main>
- <gridlist>
- <bedinfolist>
- <building/>
- <wardcd/>
- <roomcd/>
- <bedcd/>
- <bednm/>
- <orddeptcd/>
- <suborddeptcd1/>
- <suborddeptcd2/>
- <suborddeptcd3/>
- <suborddeptcd4/>
- <suborddeptcd5/>
- <bedrem/>
- <fromdd/>
- <todd/>
- <seqno/>
- <histstat/>
- <wardcd_old/>
- <roomcd_old/>
- <bedcd_old/>
- <bednm_old/>
- <todd_old/>
- <seqno_old/>
- </bedinfolist>
- <roominfolistprint/>
- <item>
- <prmisnroomtot/>
- <basbedtot/>
- <usebedtot/>
- <useroomtot/>
- </item>
- </gridlist>
- <griddata>
- <building/>
- <wardcd/>
- <roomcd/>
- <bedcd/>
- <bednm/>
- <orddeptcd/>
- <suborddeptcd1/>
- <suborddeptcd2/>
- <suborddeptcd3/>
- <suborddeptcd4/>
- <suborddeptcd5/>
- <bedrem/>
- <fromdd/>
- <todd/>
- <seqno/>
- <histstat/>
- </griddata>
- <bedinfo>
- <building/>
- <wardcd/>
- <roomcd/>
- <bedcd/>
- <bednm/>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <suborddeptcd1/>
- <suborddeptcd2/>
- <suborddeptcd3/>
- <suborddeptcd4/>
- <suborddeptcd5/>
- <bedrem/>
- <wardcd_old/>
- <roomcd_old/>
- <bedcd_old/>
- <bednm_old/>
- <todd_old/>
- <seqno_old/>
- <extrbedyn/>
- </bedinfo>
- </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>
- <roomlist>
- <wd/>
- <cd/>
- <nm/>
- </roomlist>
- </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>
- <orddeptcd>
- <cd>0000000000</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="TXPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updateData" resultref="/root/main/griddata"/>
- <submission id="TRPMB00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/gridlist"/>
- <submission id="TRPMB00305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init2"/>
- <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="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("TRPMB00304");
- }
-
- //진료과에 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/bedinfo/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)
- {
- //ready시 "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{
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,-1;2,2;" 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/bedinfolist");
- model.makeNode("/root/main/gridlist/bedinfolistprint");
-
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- model.resetInstanceNode("/root/main/gridlist/roominfolistprint");
-
- //setInputNodeCurText(); //inputbox 값을 읽어온다 smpark
- model.refresh();
- var s_srchcond = model.getValue("/root/send/data1/srchcond");
-
- if (s_srchcond == null || s_srchcond == "" || s_srchcond == " ") {
- messageBox("조회항목을","C002");
- return false;
- } else {
- submit("TRPMB00304");
-
- // 종료된 병상 표시
- // 요청은 없었으나 만들어둠. 필요하면 풀어서 사용
- /*
- var cnt = instance1.selectNodes("/root/main/gridlist/bedinfolist").length;
- for (var i = 1; i <= cnt; i++) {
- if (eval(model.getValue("/root/main/gridlist/bedinfolist[" + 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>2</value>
- </item>
- <item>
- <label>병실호수</label>
- <value>3</value>
- </item>
- <item>
- <label>진료과</label>
- <value>6</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("TRPMB00304");
-
- }
-
- ]]>
- </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') {
-
- button1.dispatch("DOMActivate");
- }
- ]]>
- </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/bedinfolist" class="datagrid2" caption="건물^wardcd^병동^병실^병상^병상명^진료과^부진료과1^부진료과2^부진료과3^부진료과4^부진료과5^참고사항^시작일자^종료일자^일련번호^상태^병상
구분^wardcd_old^roomcd_old^bedcd_old^bednm_old^todd_old^seqno_old" colsep="^" colwidth="55, 0, 158, 77, 77, 100, 120, 100, 100, 100, 100, 100, 170, 90, 90, 35, 35, 50, 40, 40, 40, 41, 40, 40" 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:181px; width:1194px; height:559px; ">
- <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 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="wardcd"/>
- <col ref="wardnm" style="text-align:center; "/>
- <col disabled="true" ref="roomcd" style="text-align:center; "/>
- <col ref="bedcd"/>
- <col ref="bednm"/>
- <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="suborddeptcd1" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suborddeptcd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suborddeptcd3" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suborddeptcd4" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="suborddeptcd5" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="bedrem" type="input"/>
- <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 type="combo">
- <choices>
- <item>
- <label>추가</label>
- <value>Y</value>
- </item>
- <item>
- <label>정규</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="wardcd_old" visibility="hidden"/>
- <col ref="roomcd_old" visibility="hidden"/>
- <col ref="bedcd_old" visibility="hidden"/>
- <col ref="bednm_old" visibility="hidden"/>
- <col ref="todd_old" visibility="hidden"/>
- <col ref="seqno_old" visibility="hidden"/>
- <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/bedinfo");
- model.resetInstanceNode("/root/main/bedinfo");
-
- model.copyNode("/root/hidden/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
- model.copyNode("/root/main/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
-
- model.refresh();
-
- cmb_ward1.dispatch("xforms-select");
- }
- ]]>
- </script>
- </datagrid>
- <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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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[
- button1.dispatch("DOMActivate");
- ]]>
- </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; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:161px; width:140px; height:13px; ">병상정보내역 리스트</caption>
- <caption id="caption9" class="cell_1" style="left:204px; top:75px; width:66; height:23px; vertical-align:middle; ">병 동</caption>
- <caption id="caption8" class="cell_1" style="left:406px; top:75px; width:66; 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; "/>
- <caption id="caption12" class="cell_1" style="left:204px; top:125px; width:66px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="ipt_fromdd1" ref="/root/main/bedinfo/fromdd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:71px; top:127px; width:128px; height:19px; "/>
- <input id="ipt_todd1" ref="/root/main/bedinfo/todd" class="input_default" navindex="8" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:273px; top:127px; width:128px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:2px; top:125px; width:66px; height:23px; vertical-align:middle; ">시작일자</caption>
- <input id="ipt_bedroomrem1" ref="/root/main/bedinfo/bedrem" class="input_default" navindex="10" style="left:475px; top:127px; width:717px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:405px; top:125px; width:66px; height:23px; vertical-align:middle; ">참고사항</caption>
- <select1 id="cmb_ward1" ref="/root/main/bedinfo/wardcd" class="combo_search" navindex="5" appearance="minimal" style="left:273px; top:77px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init2/wardlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_room.choices.itemset.attribute("nodeset") = "/root/init2/roomlist[wd = '"+ cmb_ward1.value +"']";
- cmb_room.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddeptcd1" ref="/root/main/bedinfo/orddeptcd" class="combo_search" navindex="16" appearance="minimal" style="left:71px; top:102px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </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;
- var rowstatus = grd_list.rowStatus(row);
- if( row < 1) {
- messageBox("신규등록시 행추가 선택 후 저장 \n " , "E999");
- return false;
- }
- model.copyNode("/root/main/gridlist/bedinfolist[" + row + "]", "/root/main/bedinfo");
- if(rowstatus == '0'){
- grd_list.addStatus(row, "update");
- }
- //건물 기본값 세팅
- if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/building") == ""){
- model.setValue("/root/main/gridlist/bedinfolist["+row+"]/building", "M")
- }
-
- //종료일자 기본값 세팅
- if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/todd") == ""){
- model.setValue("/root/main/gridlist/bedinfolist["+row+"]/todd", "99991231")
- }
-
- //시작일자 기본값 세팅
- if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/fromdd") == ""){
- model.setValue("/root/main/gridlist/bedinfolist["+row+"]/fromdd", getCurrentDate())
- }
- if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bednm") == ""){
- model.setValue("/root/main/gridlist/bedinfolist["+row+"]/bednm" , model.getValue("/root/main/bedinfo/bednm"))
- }
-
- //필수 입력값 체크
- if ((model.getValue("/root/main/gridlist/bedinfolist["+row+"]/wardcd") == "") || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/roomcd") == "")
- || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bedcd") == "") || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bednm") == "")
- || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/orddeptcd") == ""))
- {
- messageBox("병동, 병실, 병상, 병상명, 진료과 및 종료일자 정보를","C001");
- return false;
- }
-
- model.refresh();
- model.setValue("/root/send/updateData/datalist", grd_list.getUpdateData());
- if (submit("TXPMB00302")) {
- model.resetInstanceNode("/root/main/gridlist/bedinfolist");
- model.resetInstanceNode("/root/main/item");
- model.resetInstanceNode("/root/send/updateData/datalist");
- model.resetInstanceNode("/root/main/bedinfo");
- grd_list.clearStatus();
- submit("TRPMB00304");
- }
- grd_list.selectionMode = "";
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_building1" ref="/root/main/bedinfo/building" class="combo_search" navindex="4" appearance="minimal" style="left:71px; top:77px; width:128px; 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:66px; height:23px; vertical-align:middle; ">건 물</caption>
- <caption id="caption36" class="cell_1" style="left:2px; top:100px; width:66; height:23px; vertical-align:middle; ">진료과</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:147px; x2:1194px; y2:147px; "/>
- <input id="input1" ref="/root/main/bedinfo/bedcd" class="input_default" navindex="12" imemode="disabled" maxlength="6" style="left:677px; top:77px; width:128px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:608px; top:75px; width:66px; height:23px; vertical-align:middle; ">병 상</caption>
- <caption id="caption10" class="cell_1" style="left:204px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과1</caption>
- <select1 id="combo1" ref="/root/main/bedinfo/suborddeptcd1" class="combo_search" navindex="16" appearance="minimal" style="left:273px; top:102px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="cell_1" style="left:406px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과2</caption>
- <select1 id="combo2" ref="/root/main/bedinfo/suborddeptcd2" class="combo_search" navindex="16" appearance="minimal" style="left:475px; top:102px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:608px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과3</caption>
- <select1 id="combo3" ref="/root/main/bedinfo/suborddeptcd3" class="combo_search" navindex="16" appearance="minimal" style="left:677px; top:102px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/main/bedinfo/suborddeptcd4" class="combo_search" navindex="16" appearance="minimal" style="left:879px; top:102px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" class="cell_1" style="left:810px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과4</caption>
- <caption id="caption18" class="cell_1" style="left:1002px; top:75px; width:66px; height:23px; vertical-align:middle; ">병상구분</caption>
- <button id="button4" class="btn2_letter3" style="left:977px; top:156px; 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;
-
- if( cur_row < 1 ){
- messageBox("복사할 행을 선택해 주세요!", "E999");
- return false;
- }
-
- var icur_row = cur_row + 1;
- grd_list.insertItem(grd_list.row,"after");
- copyNodeType("/root/main/gridlist/bedinfolist["+ icur_row +"]", "/root/main/gridlist/bedinfolist["+ cur_row +"]");
- model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/wardcd_old", "");
- model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/roomcd_old", "");
- model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/bedcd_old", "");
- model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/todd_old", "");
- model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/seqno_old", "");
- grd_list.rebuild();
- grd_list.addStatus(icur_row,"insert");
- fflagcheck(2);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" visibility="hidden" style="left:891px; top:156px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntSeq();
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter2" style="left:934px; top:156px; 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="button52" class="btn2_letter3" style="left:1031px; top:156px; 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/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button53" class="btn2_letter3" style="left:1085px; top:156px; 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:1139px; top:156px; 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/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_room" ref="/root/main/bedinfo/roomcd" class="combo_search" navindex="5" appearance="minimal" style="left:475px; top:77px; width:128px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init2/roomlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:810px; top:75px; width:66px; height:23px; vertical-align:middle; ">병상명</caption>
- <input id="input2" ref="/root/main/bedinfo/bednm" class="input_default" navindex="12" maxlength="6" style="left:879px; top:77px; width:118px; height:19px; "/>
- <select1 id="radio1" ref="/root/main/bedinfo/extrbedyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:1075px; top:76px; width:115px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>N</value>
- </item>
- <item>
- <label>추가</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/main/bedinfo/todd_old" visibility="hidden" inputtype="date" style="left:305px; top:127px; width:110px; height:19px; "/>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/data1/roomflag" style="left:155px; top:160px; width:15px; height:15px; "/>
- <caption id="caption3" style="left:170px; top:160px; width:70px; height:15px; text-align:left; ">병실이력</caption>
- <select1 id="combo5" ref="/root/main/bedinfo/suborddeptcd5" class="combo_search" navindex="16" appearance="minimal" style="left:1071px; top:102px; width:118px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell_1" style="left:1002px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과5</caption>
- </group>
- <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("TXPMB00302")) {
- model.resetInstanceNode("/root/main/gridlist/roominfolist");
- model.resetInstanceNode("/root/main/item");
- submit("TRPMB00304");
- }
- grd_list.selectionMode = "";
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|