Exemple #1
0
if (isset($_POST['ToolStock_ID'])) {
    //print_r($_POST);
    //print_r($_FILES);
    $toolstock->setToolStockID($_POST['ToolStock_ID']);
    $toolstockid = $_POST['ToolStock_ID'];
    if (isset($_POST['cdiameter'])) {
        $toolstock->setCdiameter($_POST['cdiameter']);
    }
    if (isset($_POST['ndiameter'])) {
        $toolstock->setNdiameter($_POST['ndiameter']);
    }
    if (isset($_POST['sdiameter'])) {
        $toolstock->setSdiameter($_POST['sdiameter']);
    }
    if (isset($_POST['flutelength'])) {
        $toolstock->setFluteLength($_POST['flutelength']);
    }
    if (isset($_POST['cornerradius'])) {
        $toolstock->setCornerRadius($_POST['cornerradius']);
    }
    if (isset($_POST['cornerchamfer'])) {
        $toolstock->setCornerChamfer($_POST['cornerchamfer']);
    }
    if (isset($_POST['chamferangle'])) {
        $toolstock->setChamferAngle($_POST['chamferangle']);
    }
    if (isset($_POST['reach'])) {
        $toolstock->setReach($_POST['reach']);
    }
    if (isset($_POST['coating'])) {
        $toolstock->setCoating($_POST['coating']);