Exemple #1
0
        private static int InsertUpdateDelete(Report_Customer_ComplaintInfo report_Customer_ComplaintInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_Report_Customer_Complaints,
                "@" + TableReport_Customer_Complaints.ID,
                report_Customer_ComplaintInfo.ID, report_Customer_ComplaintInfo.Technical_staff, report_Customer_ComplaintInfo.Customer_A_Quantity, report_Customer_ComplaintInfo.Customer_A_Times, report_Customer_ComplaintInfo.Customer_B_Quantity, report_Customer_ComplaintInfo.Customer_B_Times, report_Customer_ComplaintInfo.Customer_C_Quantity, report_Customer_ComplaintInfo.Customer_C_Times, report_Customer_ComplaintInfo.Customer_D_Quantity, report_Customer_ComplaintInfo.Customer_D_Times, report_Customer_ComplaintInfo.Result, report_Customer_ComplaintInfo.InformationID, report_Customer_ComplaintInfo.OrderID,
                (int)action);

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