public static TSubmitChangesResult SavePostcodeRegionsTDS(ref PostcodeRegionsTDS AInspectDS) { PostcodeRegionsTDSAccess.SubmitChanges(AInspectDS); // Update the Cacheable DataTable in the Servers' // Cache and inform all other Clients that they need to reload this Cacheable DataTable // the next time something in the Client accesses it. TCacheableTablesManager.GCacheableTablesManager.MarkCachedTableNeedsRefreshing( TCacheableMailingTablesEnum.PostcodeRegionList.ToString()); TCacheableTablesManager.GCacheableTablesManager.MarkCachedTableNeedsRefreshing( TCacheableMailingTablesEnum.PostcodeRegionRangeList.ToString()); return(TSubmitChangesResult.scrOK); }
public static TSubmitChangesResult SavePostcodeRegionsTDS(ref PostcodeRegionsTDS AInspectDS) { PostcodeRegionsTDSAccess.SubmitChanges(AInspectDS); // Update the Cacheable DataTable in the Servers' // Cache and inform all other Clients that they need to reload this Cacheable DataTable // the next time something in the Client accesses it. TCacheableTablesManager.GCacheableTablesManager.MarkCachedTableNeedsRefreshing( TCacheableMailingTablesEnum.PostcodeRegionList.ToString()); TCacheableTablesManager.GCacheableTablesManager.MarkCachedTableNeedsRefreshing( TCacheableMailingTablesEnum.PostcodeRegionRangeList.ToString()); return TSubmitChangesResult.scrOK; }
// save data private TSubmitChangesResult StoreManualCode(ref PostcodeRegionsTDS ASubmitDS, out TVerificationResultCollection AVerificationResult) { AVerificationResult = null; TSubmitChangesResult Result = TRemote.MPartner.Mailroom.WebConnectors.SavePostcodeRegionsTDS(ref ASubmitDS); if (ASubmitDS.PPostcodeRegion != null) { ASubmitDS.PPostcodeRegion.AcceptChanges(); } if (ASubmitDS.PPostcodeRegionRange != null) { ASubmitDS.PPostcodeRegionRange.AcceptChanges(); } return(Result); }
// save data private TSubmitChangesResult StoreManualCode(ref PostcodeRegionsTDS ASubmitDS, out TVerificationResultCollection AVerificationResult) { AVerificationResult = null; TSubmitChangesResult Result = TRemote.MPartner.Mailroom.WebConnectors.SavePostcodeRegionsTDS(ref ASubmitDS); if (ASubmitDS.PPostcodeRegion != null) { ASubmitDS.PPostcodeRegion.AcceptChanges(); } if (ASubmitDS.PPostcodeRegionRange != null) { ASubmitDS.PPostcodeRegionRange.AcceptChanges(); } return Result; }