コード例 #1
0
ファイル: purchaseorder.php プロジェクト: sknagesh/divyaeng2
     $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'])) {
         $po->setValue('supplierid', $_GET['sid']);
     }
     if (isset($_GET['scopeid'])) {
         $po->setValue('scopeid', $_GET['scopeid']);
     }
     $po->listPurchases();
 }
 if (isset($_GET['mlist'])) {
     if (isset($_GET['poid'])) {
         $po->setValue('poid', $_GET['poid']);
     }
     $po->listItems();
 }
 if (isset($_GET['receipt'])) {
     if (isset($_GET['poitemid'])) {
         $po->setValue('poitemid', $_GET['poitemid']);
     }
     $po->receiveMaterialUI();
 }
 if (isset($_GET['receiptrow'])) {
     $data[0] = array('id' => $_GET['id'], 'poitemid' => $_GET['poitemid']);