123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/**
- * @---------------------------------------------------
- * @desc : 비임상 조회시 기본정보 setting
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize_00800(){
-
- var arrParam = [{dsNm: "ds_init_fire_suprinst_M0438", cdGrpId: "M0438"}
- ,{dsNm: "ds_init_healcaregas_brktm_M0439", cdGrpId: "M0439"}
- ,{dsNm: "ds_init_handcaptermcd_M0440", cdGrpId: "M0440"}
- ,{dsNm: "ds_init_loosinstcd_M0444", cdGrpId: "M0444"}
- ,{dsNm: "ds_init_actpsn_M0441", cdGrpId: "M0441"}
- ,{dsNm: "ds_init_losspsn_M0442", cdGrpId: "M0442"}]
- appf_getCodeList(arrParam);
-
- //trace(ds_main_cond.saveXML());
- if( !utlf_isNull(ds_main_condition.getColumn(0, "acptno")) ){
- ds_main_cond.setColumn(0, "genrplce", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "genrplce"));
- ds_main_cond.setColumn(0, "etcreptcnts", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "etcreptcnts"));
- ds_main_cond.setColumn(0, "tretinstcd", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "tretinstcd"));
- //trace(ds_main_cond.saveXML());
- var lossyn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "lossyn");
- ds_main_cond.setColumn(0, "lossyn", lossyn);
- if(lossyn == "N"){
- group1.ipt_firelosscnt.enable = false;
- }
- else{
- ds_main_cond.setColumn(0, "losscnt", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losscnt"));
- group1.ipt_firelosscnt.enable = true;
- }
-
- var locktmcd = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "locktmcd");
- ds_main_cond.setColumn(0, "locktmcd", locktmcd);
- if(locktmcd == "04"){
- ds_main_cond.setColumn(0, "locktmetccnts", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "locktmetccnts"));
- group1.ipt_healgaslockmetccnts.visible = true;
- }
- ds_main_cond.setColumn(0, "chkkind", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "chkkind"));
- ds_main_cond.setColumn(0, "patlossyn", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "patlossyn"));
- ds_main_cond.setColumn(0, "handcaptermcd", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "handcaptermcd"));
- ds_main_cond.setColumn(0, "lossitem", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "lossitem"));
-
- var tranyn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "tranyn");
- ds_main_cond.setColumn(0, "tranyn", tranyn);
- if(tranyn == "N"){
- ds_main_cond.setColumn(0, "trannotoccrplce", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "trannotoccrplce"));
- group1.ipt_breakouttrannotoccrplce.enable = true;
- }
-
- var actpsn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpsn");
- ds_main_cond.setColumn(0, "actpsn", actpsn);
- if(actpsn == "01"){
- ds_tmp.setColumn(0, "actpnm", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpnm"));
- ds_main_cond.setColumn(0, "actpid", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "actpid"));
- group1.ipt_actpnm.visible = true;
- group1.btn_actpnm.visible = true;
- group1.opt_actpnm.visible = true;
- }
-
- var losspsn = ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspsn");
- ds_main_cond.setColumn(0, "losspsn", losspsn);
- if(losspsn == "01"){
- ds_tmp.setColumn(0, "losspnm", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspnm"));
- ds_main_cond.setColumn(0, "losspid", ds_tmp_reptinfo_nonclincinfo.getColumn(0, "losspid"));
- group1.ipt_losspnm.visible = true;
- group1.btn_losspnm.visible = true;
- group1.opt_losspnm.visible = true;
- }
-
- ds_main_cond.setColumn(0, "detlcnts", ds_main_condition.getColumn(0, "detlcnts"));
- ds_main_cond.setColumn(0, "detlcnts_why", ds_main_condition.getColumn(0, "detlcnts_why"));
- ds_main_cond.setColumn(0, "detlcnts_how", ds_main_condition.getColumn(0, "detlcnts_how"));
-
- }
- }
- /**
- * @---------------------------------------------------
- * @desc : 중분류에따라 control속성을 설정
- * @param : clincetckind 중분류
- * @return :
- * @---------------------------------------------------
- */
- function fSetDisabled(mdl){
- //ds_main_cond.reset();
- if(mdl == "01"){ // 화재
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_01,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = true;
- group1.cmb_fireinstcd.enable = true;
- group1.ipt_firelosscnt.enable = true;
- group1.chk_firelossyn.enable = true;
- group1.tar_fireetcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item107", "group1.ipt_firegenrplce", "value", "ds_main_cond", "genrplce");
- this.addChild("item107", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item108", "group1.cmb_fireinstcd", "value", "ds_main_cond", "tretinstcd");
- this.addChild("item108", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item9", "group1.ipt_firelosscnt", "value", "ds_main_cond", "losscnt");
- this.addChild("item9", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item10", "group1.chk_firelossyn", "value", "ds_main_cond", "lossyn");
- this.addChild("item10", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item11", "group1.tar_fireetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item11", objBindItem);
- objBindItem.bind();
-
- //ds_main_cond.deleteAll();
- //sysf_trace(ds_main_cond_01.saveXML())
- //ds_main_cond.copyData(ds_main_cond_01);
- //ds_main_cond.clear();
- //dsf_copyDs(ds_main_cond,ds_main_cond_01,"replace");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
- group1.ipt_actpnm.enable = false;
- group1.ipt_actpnm.value = "";
- group1.ipt_losspnm.enable = false;
- group1.ipt_losspnm.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
- this.removeChild("item26");
- this.removeChild("item28");
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
- }
- if(mdl == "02"){ //의료가스/의료전기
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_02,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = true;
- group1.cmb_healgaslocktmcd.enable = true;
- group1.ipt_healgaslockmetccnts.enable = true;
- group1.chk_healgaschkkind.setEnbale(true);
- group1.chk_healgaschkkind.background = "";
- group1.chk_healgaspatlossyn.setEnbale(true);
- group1.chk_healgaspatlossyn.background = "";
- group1.tar_healgasetc.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item12", "group1.ipt_healgasgenrplce", "value", "ds_main_cond", "genrplce");
- this.addChild("item12", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item13", "group1.cmb_healgaslocktmcd", "value", "ds_main_cond", "locktmcd");
- this.addChild("item13", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item14", "group1.ipt_healgaslockmetccnts", "value", "ds_main_cond", "locktmetccnts");
- this.addChild("item14", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item15", "group1.tar_healgasetc", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item15", objBindItem);
- objBindItem.bind();
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
-
- //ds_main_cond.reset();
- //ds_main_cond.copyData(ds_main_cond_02);
-
- }
- if(mdl == "03"){ //전산장애
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_03,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
-
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = true;
- group1.cmb_handcaphandcaptermcd.enable = true;
- group1.tar_handcapetcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item16", "group1.ipt_handcapgenrplce", "value", "ds_main_cond", "genrplce");
- this.addChild("item16", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item17", "group1.cmb_handcaphandcaptermcd", "value", "ds_main_cond", "handcaptermcd");
- this.addChild("item17", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item18", "group1.tar_handcapetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item18", objBindItem);
- objBindItem.bind();
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
-
- //ds_main_cond.reset();
- //ds_main_cond.copyData(ds_main_cond_03);
-
- }
- if(mdl == "04"){ //도난
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_04,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
-
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = true;
- group1.cmb_lossinstcd.enable = true;
- group1.tar_losetcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item19", "group1.ipt_lossitem", "value", "ds_main_cond", "lossitem");
- this.addChild("item19", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item20", "group1.cmb_lossinstcd", "value", "ds_main_cond", "tretinstcd");
- this.addChild("item20", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item21", "group1.tar_losetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item21", objBindItem);
- objBindItem.bind();
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
-
- //ds_main_cond.reset();
- //ds_main_cond.copyData(ds_main_cond_04);
-
- }
- if(mdl == "05"){ //탈원
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_05,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = true;
- //ipt_breakouttrannotoccrplce.enable = true;
- group1.tar_breakoutetcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item22", "group1.cmb_breakouttranyn", "value", "ds_main_cond", "tranyn");
- this.addChild("item22", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item23", "group1.ipt_breakouttrannotoccrplce", "value", "ds_main_cond", "trannotoccrplce");
- this.addChild("item23", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item24", "group1.tar_breakoutetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item24", objBindItem);
- objBindItem.bind();
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
-
- //ds_main_cond.reset();
- //ds_main_cond.copyData(ds_main_cond_05);
-
- }
- if(mdl == "06"){ //폭력/난동/성폭력
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_06,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
-
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
-
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = true;
- group1.cmb_assaultlosspsn.enable = true;
- group1.tar_assaultetcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item25", "group1.cmb_assaultactpsn", "value", "ds_main_cond", "actpsn");
- this.addChild("item25", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item27", "group1.cmb_assaultlosspsn", "value", "ds_main_cond", "losspsn");
- this.addChild("item27", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item29", "group1.tar_assaultetcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item29", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item26", "group1.ipt_actpnm", "value", "ds_main_cond", "actpid");
- this.addChild("item26", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item28", "group1.ipt_losspnm", "value", "ds_main_cond", "losspid");
- this.addChild("item28", objBindItem);
- objBindItem.bind();
-
- //기타
- group1.ipt_genrplce.enable = false;
- group1.ipt_genrplce.value = "";
- group1.tar_etcreptcnts.enable = false;
- group1.tar_etcreptcnts.value = "";
-
- this.removeChild("item30");
- this.removeChild("item31");
-
- //ds_main_cond.reset();
- //ds_main_cond.copyData(ds_main_cond_06);
-
- }
- if(mdl == "07"){ //기타
- //화재
- /*
- ds_main_cond_01.clear();
- ds_main_cond_02.clear();
- ds_main_cond_03.clear();
- ds_main_cond_04.clear();
- ds_main_cond_05.clear();
- ds_main_cond_06.clear();
- ds_main_cond_07.clear();
- dsf_copyDs(ds_main_cond_07,ds_main_cond,"replace");
- */
- //
- group1.ipt_firegenrplce.enable = false;
- group1.ipt_firegenrplce.value = "";
- group1.cmb_fireinstcd.enable = false;
- group1.cmb_fireinstcd.value = "";
- group1.ipt_firelosscnt.enable = false;
- group1.ipt_firelosscnt.value = "";
- group1.chk_firelossyn.enable = false;
- group1.chk_firelossyn.value = "";
- group1.tar_fireetcreptcnts.enable = false;
- group1.tar_fireetcreptcnts.value = "";
-
- this.removeChild("item107");
- this.removeChild("item108");
- this.removeChild("item9");
- this.removeChild("item10");
- this.removeChild("item11");
-
- //의료가스/의료전기
- group1.ipt_healgasgenrplce.enable = false;
- group1.ipt_healgasgenrplce.value = "";
- group1.cmb_healgaslocktmcd.enable = false;
- group1.cmb_healgaslocktmcd.value = "";
- group1.ipt_healgaslockmetccnts.enable = false;
- group1.ipt_healgaslockmetccnts.value = "";
- group1.chk_healgaschkkind.setEnbale(false);
- group1.chk_healgaschkkind.background = "gainsboro";
- //group1.chk_healgaschkkind.value = "";
-
- group1.chk_healgaschkkind.setCheckAll(false);
- ds_main_cond.setColumn(0, "chkkind", "");
-
- group1.chk_healgaspatlossyn.setCheckAll(false);
- ds_main_cond.setColumn(0, "patlossyn", "");
-
- group1.chk_healgaspatlossyn.setEnbale(false);
- group1.chk_healgaspatlossyn.background = "gainsboro";
- //group1.chk_healgaspatlossyn.value = "";
- group1.tar_healgasetc.enable = false;
- group1.tar_healgasetc.value = "";
-
- this.removeChild("item12");
- this.removeChild("item13");
- this.removeChild("item14");
- this.removeChild("item15");
-
- //전산장애
- group1.ipt_handcapgenrplce.enable = false;
- group1.ipt_handcapgenrplce.value = "";
- group1.cmb_handcaphandcaptermcd.enable = false;
- group1.cmb_handcaphandcaptermcd.value = "";
- group1.tar_handcapetcreptcnts.enable = false;
- group1.tar_handcapetcreptcnts.value = "";
-
- this.removeChild("item16");
- this.removeChild("item17");
- this.removeChild("item18");
-
- //도난
- group1.ipt_lossitem.enable = false;
- group1.ipt_lossitem.value = "";
- group1.cmb_lossinstcd.enable = false;
- group1.cmb_lossinstcd.value = "";
- group1.tar_losetcreptcnts.enable = false;
- group1.tar_losetcreptcnts.value = "";
-
- this.removeChild("item19");
- this.removeChild("item20");
- this.removeChild("item21");
-
- //탈원
- group1.cmb_breakouttranyn.enable = false;
- group1.cmb_breakouttranyn.value = "";
- group1.ipt_breakouttrannotoccrplce.enable = false;
- group1.ipt_breakouttrannotoccrplce.value = "";
- group1.tar_breakoutetcreptcnts.enable = false;
- group1.tar_breakoutetcreptcnts.value = "";
-
- this.removeChild("item22");
- this.removeChild("item23");
- this.removeChild("item24");
-
- //폭력/난동/성폭력
- group1.cmb_assaultactpsn.enable = false;
- group1.cmb_assaultactpsn.value = "";
- group1.cmb_assaultlosspsn.enable = false;
- group1.cmb_assaultlosspsn.value = "";
- group1.tar_assaultetcreptcnts.enable = false;
- group1.tar_assaultetcreptcnts.value = "";
-
- this.removeChild("item25");
- this.removeChild("item27");
- this.removeChild("item29");
-
- //기타
- group1.ipt_genrplce.enable = true;
- group1.tar_etcreptcnts.enable = true;
-
- var objBindItem = new BindItem();
- objBindItem.init("item30", "group1.ipt_genrplce", "value", "ds_main_cond", "genrplce");
- this.addChild("item30", objBindItem);
- objBindItem.bind();
-
- var objBindItem = new BindItem();
- objBindItem.init("item31", "group1.tar_etcreptcnts", "value", "ds_main_cond", "etcreptcnts");
- this.addChild("item31", objBindItem);
- objBindItem.bind();
-
- //ds_main_cond.clear();
- //dsf_copyDs(ds_main_cond,ds_main_cond_07,"replace");
-
- }
- }
- /**
- * @---------------------------------------------------
- * @desc : 필수입력 콘트롤에 값이 입력되어있는지 체크
- * @param :
- * @return : true or false
- * @---------------------------------------------------
- */
- function fDetlCheck(){
- var mdl = ds_main_condition.getColumn(0, "mdl");
- if(mdl == "01"){ //화재
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_firegenrplce", "group5.iviewer_rept.group1.cmb_fireinstcd", "group5.iviewer_rept.group1.ipt_firelosscnt");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- if(mdl == "02"){ //의료가스/의료전기
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_healgasgenrplce", "group5.iviewer_rept.group1.cmb_healgaslocktmcd");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
-
- if( utlf_isNull(ds_main_cond.getColumn(0, "chkkind")) ){
-
- sysf_messageBox("종류", "I003");
- return false;
- }
-
- if( utlf_isNull(ds_main_cond.getColumn(0, "patlossyn")) ){
-
- sysf_messageBox("환자피해 여부", "I003");
- return false;
- }
-
- var locktmcd = ds_main_cond.getColumn(0, "locktmcd");
- if(locktmcd == "04"){
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_healgaslockmetccnts");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- }
- if(mdl == "03"){ //전산장애
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_handcapgenrplce", "group5.iviewer_rept.group1.cmb_handcaphandcaptermcd");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- if(mdl == "04"){ //도난
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_lossitem", "group5.iviewer_rept.group1.cmb_lossinstcd");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- if(mdl == "05"){ //탈원
- var arrCompId = new Array("group5.iviewer_rept.group1.cmb_breakouttranyn");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- if(mdl == "06"){ //폭력/난동/성폭력
- var arrCompId = new Array("group5.iviewer_rept.group1.cmb_assaultactpsn", "group5.iviewer_rept.group1.cmb_assaultlosspsn");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- var actpid = ds_main_cond.getColumn(0, "actpid");
- var actpnm = ds_tmp.getColumn(0, "actpnm");
- if( !utlf_isNull(actpid) ){
- if( utlf_isNull(actpnm) ){
- sysf_messageBox("환자 ID가 조회되지 ", "E007");
- return false;
- }
- }
- var losspid = ds_main_cond.getColumn(0, "losspid");
- var losspnm = ds_tmp.getColumn(0, "losspnm");
- if( !utlf_isNull(losspid) ){
- if( utlf_isNull(losspnm) ){
- sysf_messageBox("환자 ID가 조회되지 ", "E007");
- return false;
- }
- }
- }
- if(mdl == "07"){ //기타
- var arrCompId = new Array("group5.iviewer_rept.group1.ipt_genrplce");
-
- if( !frmf_isRequiredControls(arrCompId) ){
- return false;
- }
- }
- return true;
- }
- ]]></Script>
|