private static int InsertUpdateDelete(PalletInfo palletInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_Pallet, "", palletInfo.ID, palletInfo.Pallet, palletInfo.Tray_Number, palletInfo.ReposityID, palletInfo.ContID, palletInfo.Empty_Pallet, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(PalletInfo palletInfo) { return(InsertUpdateDelete(palletInfo, DataProviderAction.Delete)); }