///if we have edited it then addpart id to notation } $operation->setValue('openotation', $notation); } $operation->setPartID($partid); $operation->setOperationID($operationid); $operation->setOperationDesc($operationdescription); $operation->setSetupTime($setuptime); $operation->setClampingTime($clampingtime); $operation->setMachiningTime($machiningtime); $operation->setMainProgNO($mainprogramno); $operation->setOpeNotes($operationnotes); $operation->setInToolList($intoollist); $operation->setInOpList($inoplist); $operation->setInRouteCard($onlyinroutecard); $operation->setFixtureNos($fixturenos); $operation->setValue('altfxtnos', $altfixturenos); $operation->setValue('displayorder', $displayorder); $operation->setValue('program', $program); $operation->setValue('ncprogpath', $ncprogpath); $operation->saveOperation($operationid); if ($pimg != '') { $operation->delPreview($pimg); } ///delete part preview images from server and db if ($drawbkp != '') { $operation->bkpDrawings($drawbkp); } ///back up drawings. Backed up drawings do not show in list while editing a part if ($draw != '') { $operation->delDrawings($draw);