123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671 |
- /**
- * @---------------------------------------------------
- * @desc : 비임상 조회시 기본정보 setting
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize_00800(){
- zbcfGetCodeList( new Array("M0438", "M0439", "M0440", "M0444", "M0441", "M0442"),
- new Array("/root/init/fire/suprinst", "/root/init/healcaregas/brktm", "/root/init/handcaptermcd", "/root/init/loosinstcd" , "/root/init/actpsn", "/root/init/losspsn"),
- true );
- model.refresh();
- chk_healgaschkkind.refresh();
- chk_healgaspatlossyn.refresh();
-
- if(parent.model.getValue("/root/main/condition/acptno") != ""){
- model.setValue("/root/main/cond/genrplce" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/genrplce" ) );
- model.setValue("/root/main/cond/etcreptcnts" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/etcreptcnts" ) );
- model.setValue("/root/main/cond/tretinstcd" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/tretinstcd" ) );
-
- var lossyn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/lossyn" );
- model.setValue("/root/main/cond/lossyn" , lossyn );
- if(lossyn == "N"){
- ipt_firelosscnt.disabled = true;
- }
- else{
- model.setValue("/root/main/cond/losscnt" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losscnt" ) );
- ipt_firelosscnt.disabled = false;
- }
-
- var locktmcd = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/locktmcd" );
- model.setValue("/root/main/cond/locktmcd" , locktmcd );
- if(locktmcd == "04"){
- model.setValue("/root/main/cond/locktmetccnts" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/locktmetccnts" ) );
- ipt_healgaslockmetccnts.visible = true;
- }
- model.setValue("/root/main/cond/chkkind" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/chkkind" ) );
- model.setValue("/root/main/cond/patlossyn" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/patlossyn" ) );
- model.setValue("/root/main/cond/handcaptermcd" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/handcaptermcd" ) );
- model.setValue("/root/main/cond/lossitem" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/lossitem" ) );
-
- var tranyn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/tranyn" );
- model.setValue("/root/main/cond/tranyn" , tranyn );
- if(tranyn == "N"){
- model.setValue("/root/main/cond/trannotoccrplce" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/trannotoccrplce" ) );
- ipt_breakouttrannotoccrplce.disabled = false;
- }
-
- var actpsn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpsn" );
- model.setValue("/root/main/cond/actpsn" , actpsn );
- if(actpsn == "01"){
- model.setValue("/root/tmp/actpnm" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpnm" ) );
- model.setValue("/root/main/cond/actpid" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/actpid" ) );
- ipt_actpnm.visible = true;
- btn_actpnm.visible = true;
- opt_actpnm.visible = true;
- }
-
- var losspsn = parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspsn" )
- model.setValue("/root/main/cond/losspsn" , losspsn );
- if(losspsn == "01"){
- model.setValue("/root/tmp/losspnm" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspnm" ) );
- model.setValue("/root/main/cond/losspid" , parent.model.getValue("/root/tmp/reptinfo/nonclincinfo/losspid" ) );
- ipt_losspnm.visible = true;
- btn_losspnm.visible = true;
- opt_losspnm.visible = true;
- }
-
- model.setValue("/root/main/cond/detlcnts", parent.model.getValue("/root/main/condition/detlcnts"));
- model.setValue("/root/main/cond/detlcnts_why", parent.model.getValue("/root/main/condition/detlcnts_why"));
- model.setValue("/root/main/cond/detlcnts_how", parent.model.getValue("/root/main/condition/detlcnts_how"));
-
- }
- model.refresh();
-
- }
- /**
- * @---------------------------------------------------
- * @desc : 중분류에따라 control속성을 설정
- * @param : clincetckind 중분류
- * @return :
- * @---------------------------------------------------
- */
- function fSetDisabled(mdl){
- model.resetInstanceNode("/root/main/cond");
- if(mdl == "01"){ // 화재
- //화재
- ipt_firegenrplce.disabled = false;
- cmb_fireinstcd.disabled = false;
- ipt_firelosscnt.disabled = false;
- chk_firelossyn.disabled = false;
- tar_fireetcreptcnts.disabled = false;
-
- ipt_firegenrplce.attribute("ref") = "/root/main/cond/genrplce";
- cmb_fireinstcd.attribute("ref") = "/root/main/cond/tretinstcd";
- ipt_firelosscnt.attribute("ref") = "/root/main/cond/losscnt";
- chk_firelossyn.attribute("ref") = "/root/main/cond/lossyn";
- tar_fireetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
- ipt_actpnm.disabled = true;
- ipt_losspnm.disabled = true;
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
- ipt_actpnm.attribute("ref") = "";
- ipt_losspnm.attribute("ref") = "";
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
-
- }
- if(mdl == "02"){ //의료가스/의료전기
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = false;
- cmb_healgaslocktmcd.disabled = false;
- ipt_healgaslockmetccnts.disabled = false;
- chk_healgaschkkind.disabled = false;
- chk_healgaspatlossyn.disabled = false;
- tar_healgasetc.disabled = false;
-
- ipt_healgasgenrplce.attribute("ref") = "/root/main/cond/genrplce";
- cmb_healgaslocktmcd.attribute("ref") = "/root/main/cond/locktmcd";
- ipt_healgaslockmetccnts.attribute("ref") = "/root/main/cond/locktmetccnts";
- chk_healgaschkkind.attribute("ref") = "/root/main/cond/chkkind";
- chk_healgaspatlossyn.attribute("ref") = "/root/main/cond/patlossyn";
- tar_healgasetc.attribute("ref") = "/root/main/cond/etcreptcnts";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
- }
- if(mdl == "03"){ //전산장애
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = false;
- cmb_handcaphandcaptermcd.disabled = false;
- tar_handcapetcreptcnts.disabled = false;
-
- ipt_handcapgenrplce.attribute("ref") = "/root/main/cond/genrplce";
- cmb_handcaphandcaptermcd.attribute("ref") = "/root/main/cond/handcaptermcd";
- tar_handcapetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
- }
- if(mdl == "04"){ //도난
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = false;
- cmb_lossinstcd.disabled = false;
- tar_losetcreptcnts.disabled = false;
-
- ipt_lossitem.attribute("ref") = "/root/main/cond/lossitem";
- cmb_lossinstcd.attribute("ref") = "/root/main/cond/tretinstcd";
- tar_losetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
- }
- if(mdl == "05"){ //탈원
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = false;
- //ipt_breakouttrannotoccrplce.disabled = false;
- tar_breakoutetcreptcnts.disabled = false;
-
- cmb_breakouttranyn.attribute("ref") = "/root/main/cond/tranyn";
- ipt_breakouttrannotoccrplce.attribute("ref") = "/root/main/cond/trannotoccrplce";
- tar_breakoutetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
-
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
-
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
- }
- if(mdl == "06"){ //폭력/난동/성폭력
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = false;
- cmb_assaultlosspsn.disabled = false;
- tar_assaultetcreptcnts.disabled = false;
-
-
- cmb_assaultactpsn.attribute("ref") = "/root/main/cond/actpsn";
- cmb_assaultlosspsn.attribute("ref") = "/root/main/cond/losspsn";
- tar_assaultetcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
- ipt_actpnm.attribute("ref") = "/root/main/cond/actpid";
- ipt_losspnm.attribute("ref") = "/root/main/cond/losspid";
-
- //기타
- ipt_genrplce.disabled = true;
- tar_etcreptcnts.disabled = true;
-
- ipt_genrplce.attribute("ref") = "";
- tar_etcreptcnts.attribute("ref") = "";
- }
- if(mdl == "07"){ //기타
- //화재
- ipt_firegenrplce.disabled = true;
- cmb_fireinstcd.disabled = true;
- ipt_firelosscnt.disabled = true;
- chk_firelossyn.disabled = true;
- tar_fireetcreptcnts.disabled = true;
-
- ipt_firegenrplce.attribute("ref") = "";
- cmb_fireinstcd.attribute("ref") = "";
- ipt_firelosscnt.attribute("ref") = "";
- chk_firelossyn.attribute("ref") = "";
- tar_fireetcreptcnts.attribute("ref") = "";
-
- //의료가스/의료전기
- ipt_healgasgenrplce.disabled = true;
- cmb_healgaslocktmcd.disabled = true;
- ipt_healgaslockmetccnts.disabled = true;
- chk_healgaschkkind.disabled = true;
- chk_healgaspatlossyn.disabled = true;
- tar_healgasetc.disabled = true;
-
- ipt_healgasgenrplce.attribute("ref") = "";
- cmb_healgaslocktmcd.attribute("ref") = "";
- ipt_healgaslockmetccnts.attribute("ref") = "";
- chk_healgaschkkind.attribute("ref") = "";
- chk_healgaspatlossyn.attribute("ref") = "";
- tar_healgasetc.attribute("ref") = "";
-
- //전산장애
- ipt_handcapgenrplce.disabled = true;
- cmb_handcaphandcaptermcd.disabled = true;
- tar_handcapetcreptcnts.disabled = true;
-
- ipt_handcapgenrplce.attribute("ref") = "";
- cmb_handcaphandcaptermcd.attribute("ref") = "";
- tar_handcapetcreptcnts.attribute("ref") = "";
-
- //도난
- ipt_lossitem.disabled = true;
- cmb_lossinstcd.disabled = true;
- tar_losetcreptcnts.disabled = true;
-
- ipt_lossitem.attribute("ref") = "";
- cmb_lossinstcd.attribute("ref") = "";
- tar_losetcreptcnts.attribute("ref") = "";
-
- //탈원
- cmb_breakouttranyn.disabled = true;
- ipt_breakouttrannotoccrplce.disabled = true;
- tar_breakoutetcreptcnts.disabled = true;
-
- cmb_breakouttranyn.attribute("ref") = "";
- ipt_breakouttrannotoccrplce.attribute("ref") = "";
- tar_breakoutetcreptcnts.attribute("ref") = "";
-
- //폭력/난동/성폭력
- cmb_assaultactpsn.disabled = true;
- cmb_assaultlosspsn.disabled = true;
- tar_assaultetcreptcnts.disabled = true;
-
- cmb_assaultactpsn.attribute("ref") = "";
- cmb_assaultlosspsn.attribute("ref") = "";
- tar_assaultetcreptcnts.attribute("ref") = "";
-
- //기타
- ipt_genrplce.disabled = false;
- tar_etcreptcnts.disabled = false;
- ipt_genrplce.attribute("ref") = "/root/main/cond/genrplce";
- tar_etcreptcnts.attribute("ref") = "/root/main/cond/etcreptcnts";
- }
- model.refresh();
- }
- /**
- * @---------------------------------------------------
- * @desc : 필수입력 콘트롤에 값이 입력되어있는지 체크
- * @param :
- * @return : true or false
- * @---------------------------------------------------
- */
- function fDetlCheck(){
- var mdl = parent.model.getValue("/root/main/condition/mdl")
- if(mdl == "01"){ //화재
- if(!isRequiredControls("ipt_firegenrplce", "cmb_fireinstcd", "ipt_firelosscnt")){
- return false;
- }
- }
- if(mdl == "02"){ //의료가스/의료전기
- if(!isRequiredControls("ipt_healgasgenrplce", "cmb_healgaslocktmcd", "chk_healgaschkkind", "chk_healgaspatlossyn")){
- return false;
- }
- var locktmcd = model.getValue("/root/main/cond/locktmcd");
- if(locktmcd == "04"){
- if(!isRequiredControls("ipt_healgaslockmetccnts")){
- return false;
- }
- }
- }
- if(mdl == "03"){ //전산장애
- if(!isRequiredControls("ipt_handcapgenrplce", "cmb_handcaphandcaptermcd")){
- return false;
- }
- }
- if(mdl == "04"){ //도난
- if(!isRequiredControls("ipt_lossitem", "cmb_lossinstcd")){
- return false;
- }
- }
- if(mdl == "05"){ //탈원
- if(!isRequiredControls("cmb_breakouttranyn")){
- return false;
- }
- }
- if(mdl == "06"){ //폭력/난동/성폭력
- if(!isRequiredControls("cmb_assaultactpsn", "cmb_assaultlosspsn")){
- return false;
- }
- var actpid = model.getValue("/root/main/cond/actpid");
- var actpnm = model.getValue("/root/tmp/actpnm");
- if(actpid != ""){
- if(actpnm == ""){
- messageBox("환자 ID가 조회되지 ", "E007");
- return false;
- }
- }
- var losspid = model.getValue("/root/main/cond/losspid");
- var losspnm = model.getValue("/root/tmp/losspnm");
- if(losspid != ""){
- if(losspnm == ""){
- messageBox("환자 ID가 조회되지 ", "E007");
- return false;
- }
- }
- }
- if(mdl == "07"){ //기타
- if(!isRequiredControls("ipt_genrplce")){
- return false;
- }
- }
- return true;
- }
|