using Sarand.BusinessMgr.Net.Standard.Base.App; using Sarand.BusinessMgr.Net.Standard.Base.Core; using Sarand.Net.Standard.Base.Core; using System.Collections.Generic; namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr { //======================================================================= public abstract partial class SbmAccountMgr : SbmCoreMgr { //------------------------------------------------------------------- // Data members. // Code types. private List supportedCodeTypes = new List() { Sbm.ApplCodeType.AccountHandler, Sbm.ApplCodeType.AccountManager, Sbm.ApplCodeType.AccountType, Sbm.ApplCodeType.AccountRating, Sbm.ApplCodeType.ContactArea, Sbm.ApplCodeType.ContactHandler, Sbm.ApplCodeType.ContactMethod, Sbm.ApplCodeType.ContactCallCycle, Sbm.ApplCodeType.DeliveryCourier, Sbm.ApplCodeType.SeasonalCategory, Sbm.ApplCodeType.OrderLeadTime, Sbm.ApplCodeType.DeliveryType, Sbm.ApplCodeType.DeliveryMethod, Sbm.ApplCodeType.DeliveryBookIn, Sbm.ApplCodeType.CommodityCategory, Sbm.ApplCodeType.CommodityPromotion, Sbm.ApplCodeType.PostcodeArea, Sbm.ApplCodeType.JobTrade }; //------------------------------------------------------------------- // Construction. protected SbmAccountMgr(SbmInternals internals) : base(internals) { } protected SbmAccountMgr(ISbmUserOrganisationContext userContext) : base(userContext) { } protected override void Dispose(bool disposing) { if (disposing) { } base.Dispose(disposing); } //------------------------------------------------------------------- // Properties. public abstract bool SystemAccountDatabaseIsValid { get; } // System codes. protected List AffiliateTypes { get { return GetSystemCodes(Sbm.SystemCode.AffiliateType); } } protected List AssociationTypes { get { return GetSystemCodes(Sbm.SystemCode.AssociationType); } } protected List AddressTypes { get { return GetSystemCodes(Sbm.SystemCode.AddressType); } } protected List SysParamCategories { get { return GetSystemCodes(Sbm.SystemCode.SysParamCategory); } } protected List TransactionStatusCats { get { return GetSystemCodes(Sbm.SystemCode.TransactionStatusCat); } } protected List DiscountTypes { get { return GetSystemCodes(Sbm.SystemCode.DiscountType); } } protected List SystemAccountTypes { get { return GetSystemCodes(Sbm.SystemCode.SystemAccountType); } } // Code types. public override List SupportedCodeTypes { get { return new List(supportedCodeTypes); } } //------------------------------------------------------------------- // Utilities. //------------------------------------------------------------------- } //======================================================================= }