Exemplo n.º 1
0
require_once 'autoload.php';
$mi = new PartMaterial();
if (isset($_POST['exchallanno']) || isset($_POST['prefno'])) {
    //print_r($_POST);
    //var_dump($_FILES);
    if (isset($_POST['Material_Inward_ID'])) {
        $mi->setInwardID($_POST['Material_Inward_ID']);
    }
    if (isset($_POST['exchallanno'])) {
        $mi->setExchallanNo($_POST['exchallanno']);
    }
    if (isset($_POST['exchallandatedb'])) {
        $mi->setExchallanDate($_POST['exchallandatedb']);
    }
    if (isset($_POST['dano'])) {
        $mi->setDano($_POST['dano']);
    }
    if (isset($_POST['dadatedb'])) {
        $mi->setDaDate($_POST['dadatedb']);
    }
    if (isset($_POST['gpno'])) {
        $mi->setGpno($_POST['gpno']);
    }
    if (isset($_POST['gpdatedb'])) {
        $mi->setGpDate($_POST['gpdatedb']);
    }
    if (isset($_POST['prefno'])) {
        $mi->setPurchaseRef($_POST['prefno']);
    }
    if (isset($_POST['prefdatedb'])) {
        $mi->setPurchaseRefDate($_POST['prefdatedb']);