Example #1
0
<?php

require_once 'autoload.php';
date_default_timezone_set('Asia/Kolkata');
$rou = new Routecard();
$_SESSION['LAST_ACTIVITY'] = time();
if (isset($_POST['save']) && $_POST['save'] == '1') {
    print_r($_POST);
    //print_r($_FILES);
    if (isset($_POST['Operation_ID'])) {
        $rou->setValue('operationid', $_POST['Operation_ID']);
    }
    if (isset($_POST['Batch_ID'])) {
        $rou->setValue('batchid', $_POST['Batch_ID']);
    }
    if (isset($_POST['Commit_ID'])) {
        $rou->setValue('commitid', $_POST['Commit_ID']);
        $commitid = $_POST['Commit_ID'];
    }
    if (isset($_POST['acceptedqty'])) {
        $rou->setValue('acceptedqty', $_POST['acceptedqty']);
    }
    if (isset($_POST['rejectedqty'])) {
        $rou->setValue('rejectedqty', $_POST['rejectedqty']);
    }
    if (isset($_POST['ncqty'])) {
        $rou->setValue('ncqty', $_POST['ncqty']);
    }
    if (isset($_POST['doneby'])) {
        $rou->setValue('inspectedby', $_POST['doneby']);
    }
Example #2
0
            }
        }
    } else {
        if (isset($_GET['ui'])) {
            $bn->setPartID($_GET['did']);
            if (isset($_GET['bid'])) {
                $bn->setBatchID($_GET['bid']);
            }
            $bn->showBatchUI();
        }
        if (isset($_GET['bdetails'])) {
            $bn->setPartID($_GET['did']);
            $bn->showBatchDetails();
        }
        if (isset($_GET['filter'])) {
            if (isset($_GET['e'])) {
                $bn->showCommitmentDateUI($_GET['filter'], $_GET['e']);
            } else {
                $bn->showCommitmentDateUI($_GET['filter']);
            }
        }
        if (isset($_GET['showbatch'])) {
            $bn->showBatchNos();
        }
        if (isset($_GET['closebatch'])) {
            $rc = new Routecard();
            $rc->setValue('batchid', $_GET['bid']);
            $rc->checkInspected();
        }
    }
}