function act_deleteTmpProsById() { $id = intval($_POST['id']); if ($id <= 0) { self::$errCode = '101'; self::$errMsg = '��Ч��¼��ɾ��ʧ��'; return false; } $tName = 'pc_tmp_products_return'; $where = "WHERE id={$id}"; OmAvailableModel::deleteTNameRow($tName, $where); self::$errCode = '200'; self::$errMsg = "ɾ���ɹ�"; return true; }
public function view_clearModReturnBill() { $tmpReturnProsAct = new TmpReturnProsAct(); $where = "WHERE returnType=3 "; $tmpReturnProsAct->act_deleteTmpReturnPros($where); header("Location: index.php?mod=products&act=tmpModReturnPros"); exit; }
public function view_clearReturnBill() { if (!isset($_SESSION['userId'])) { header('Location:index.php?mod=login&act=index'); } $tmpReturnProsAct = new TmpReturnProsAct(); $where = ""; $tmpReturnProsAct->act_deleteTmpReturnPros($where); header("Location: index.php?mod=TmpReturnPros&act=tmpReturnPros"); }