/** * @--------------------------------------------------- * @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; }