public function view_pda_sumbInv() { $InventoryAct = new InventoryAct(); $reasonId = isset($_POST['reasonId']) ? $_POST['reasonId'] : ""; $inv = $InventoryAct->act_sumbInv(); if (!$inv) { $status = $InventoryAct->{$errMsg}; header("location:index.php?mod=pda_inventory&act=pda_inventory&type=error&reasonId={$reasonId}&state=" . $status); exit; } header("location:index.php?mod=pda_inventory&act=pda_inventory&reasonId={$reasonId}&state=操作成功,请盘点下一料号"); exit; }
/** * InventoryAct::act_editInventoryNote() * 修改点货备注信息 * @return void */ public function act_editInventoryNote() { $ids = array_map('trim', $_POST['ids']); $notes = array_map('trim', $_POST['notes']); foreach ($notes as $k => $note) { if (!$note) { continue; } $id = intval($ids[$k]); if ($id) { InvRecordModel::update_note($id, $note); } } self::$errCode = 0; self::$errMsg = "更新备注成功"; return TRUE; }
public function view_export() { $exportXlsAct = new InventoryAct(); $exportXlsAct->act_export(); }