コード例 #1
0
ファイル: purchaseorder.php プロジェクト: sknagesh/divyaeng2
         $po->setValue('invoiceno', $invno[$i]);
         if (isset($pomatid[$i])) {
             $po->setValue('pomatid', $pomatid[$i]);
         } else {
             $po->setValue('pomatid', '');
         }
         $po->saveReceivedMaterial();
         $i++;
     }
 } else {
     if (isset($_GET['ui'])) {
         if (isset($_GET['poid'])) {
             $po->setValue('poid', $_GET['poid']);
         }
         $po->setValue('supplierid', $_GET['sid']);
         $po->showPurchaseOrderUI();
     }
     if (isset($_GET['newtmrow'])) {
         $po->addItemRow($_GET['id']);
     }
     if (isset($_GET['getlist'])) {
         $po->setValue('supplierid', $_GET['sid']);
         $po->getSuppliedItemList();
     }
     if (isset($_GET['scope'])) {
         $any = new Anylist();
         $any->createlist('Supplier_Scope');
         $sel = new selectlist("Scope_ID", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', '', '', '1');
     }
     if (isset($_GET['pregister'])) {
         if (isset($_GET['sid'])) {