Пример #1
0
        private static int InsertUpdateDelete(Monitoring_Seed_QuantityInfo monitoring_Seed_QuantityInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_Monitoring_Seed_Quantity,
                "@" + TableMonitoring_Seed_Quantity.ID,
                monitoring_Seed_QuantityInfo.ID, monitoring_Seed_QuantityInfo.Date_Added, monitoring_Seed_QuantityInfo.ContID, monitoring_Seed_QuantityInfo.ItemID, monitoring_Seed_QuantityInfo.SupplierID, monitoring_Seed_QuantityInfo.Lot, monitoring_Seed_QuantityInfo.Certificate, monitoring_Seed_QuantityInfo.Status, monitoring_Seed_QuantityInfo.CustomerID, monitoring_Seed_QuantityInfo.Export_Quantity, monitoring_Seed_QuantityInfo.Export_Date, monitoring_Seed_QuantityInfo.Damaged_Quantity, monitoring_Seed_QuantityInfo.Customer_Feedback, monitoring_Seed_QuantityInfo.Damaged_Status, monitoring_Seed_QuantityInfo.Checked_Date, monitoring_Seed_QuantityInfo.Note, monitoring_Seed_QuantityInfo.Process_Status_Customer, monitoring_Seed_QuantityInfo.Process_Status_Supplier, monitoring_Seed_QuantityInfo.InformationID, monitoring_Seed_QuantityInfo.OrderID,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Пример #2
0
 public static int Delete(Monitoring_Seed_QuantityInfo monitoring_Seed_QuantityInfo)
 {
     return(InsertUpdateDelete(monitoring_Seed_QuantityInfo, DataProviderAction.Delete));
 }