Beispiel #1
0
        private static int InsertUpdateDelete(Customer_ComplaintInfo customer_ComplaintInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_Customer_Complaint,
                "@" + TableCustomer_Complaint.ID,
                customer_ComplaintInfo.ID, customer_ComplaintInfo.CustomerID, customer_ComplaintInfo.Grower_Claim, customer_ComplaintInfo.ItemID, customer_ComplaintInfo.SupplierID, customer_ComplaintInfo.Lot, customer_ComplaintInfo.Certificate, customer_ComplaintInfo.Import_Quantity, customer_ComplaintInfo.Delivery_Quantity, customer_ComplaintInfo.Selling_Date, customer_ComplaintInfo.ContID, customer_ComplaintInfo.Dmg_QTY_Before, customer_ComplaintInfo.Dmg_QTY_After, customer_ComplaintInfo.Checked_Date, customer_ComplaintInfo.Grower_Before, customer_ComplaintInfo.Grower_After, customer_ComplaintInfo.Conclusion_Before, customer_ComplaintInfo.Conclusion_After, customer_ComplaintInfo.Technical, customer_ComplaintInfo.Solution, customer_ComplaintInfo.Status, customer_ComplaintInfo.Claiming_Supplier, customer_ComplaintInfo.Note,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Beispiel #2
0
 public static int Delete(Customer_ComplaintInfo customer_ComplaintInfo)
 {
     return(InsertUpdateDelete(customer_ComplaintInfo, DataProviderAction.Delete));
 }