MaxDate(); ?> if($method=="edit" && $xv != 1){ $oC->BeginTrans(); $oDp->SearchByKey($deptId); $oDp->GetRecord(); $oDp->Edit(); $oDp->deptName=$deptName; $oDp->deptDesc=$deptDesc; $oDp->depttypeId=$depttypeId; $oDp->Save(); $oC->CommitTrans(); ?>