예제 #1
0
 $inoplist = $_POST['inoplist'];
 $onlyinroutecard = $_POST['onlyinroutecard'];
 if ($notation != '') {
     $tmp = explode('-', $notation);
     if ($tmp[0] != $partid) {
         ///if we have not changed operation notation then we do not need to do any thing with it
         $notation = $partid . $notation;
         ///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);
 }