/** * @desc : ???? ???? ???? event * @ ?????? ?? ????(????, ????, ????, ????, ????) ??????, ???? event???? * @param : ???? id (btnID) * @return : * @--------------------------------------------------- */ function fInitialize(){ model.setFocus("ipt_reqdata"); model.toggle("itemlist"); model.setValue("/root/init/today", getDate()); model.setValue("/root/main/condition/reqflag", "itemnm"); fSetCtrlDisabled(true); model.refresh(); } /** * @desc : ?????? ???? ?? error check * @param : * @return : 0 : error 1 : no error * @--------------------------------------------------- */ function fChkError(){ var errcd = model.getValue("/root/temp/errmsg/errcd"); if(errcd == "err01"){ // insert error var itemnm = model.getValue("/root/main/newitem/itemnm"); var useYN = messageBox(itemnm + "??(??) ?????? ?????????? ??????????.????", "S001"); }else if(errcd == "err02"){ var termnm = model.getValue("/root/main/newterm/termnm"); var useYN = messageBox(termnm + "??(??) ?????? ???????? ??????????.????", "S001"); } if(useYN == 6){ return 1; }else{ return 0; } } /** * @desc : ???? input box disabled ???? * @param : * @return : 0 : error 1 : no error * @--------------------------------------------------- */ function fSetCtrlDisabled(bool){ //ipt_itemnm.disabled = bool; //ipt_itemdesc.disabled = bool; //cmb_cntrtype.disabled = bool; //cmb_ipttype.disabled = bool; //cmb_datatype.disabled = bool; //ipt_deflval.disabled = bool; //ipt_fromdd.disabled = bool; //ipt_todd.disabled = bool; //ipt_maxlgth.disabled = bool; // cmb_valiflag.disabled = bool; //ipt_rem.disabled = bool; //ipt_updtrsn.disabled = bool; // radio3.disabled = bool; // button7.disabled = bool; // button2.disabled = bool; // button5.disabled = bool; // button3.disabled = bool; // button6.disabled = bool; // chkmaster.disabled = bool; } function fSetCtrlDisabled2(bool){ combo5.disabled = bool; ipt_termnm.disabled = bool; input9.disabled = bool; input12.disabled = bool; //combo6.disabled = bool; input10.disabled = bool; input13.disabled = bool; term_chktermmaster.disabled = bool; } /* ???? */ function removeBlank(str){ str = str.replace(/\s/g,''); return str; }