public CountriesController(IMasterData <Core.Model.MasterData.Country, int> iMasterData, ILogger iLogger, IMapping <Core.Model.Mappings.Country> mappingRepository) : base(iMasterData, iLogger, "CountriesController") { this._iLogger = iLogger; this._className = "CountriesController"; this._mappingRepository = mappingRepository; }
public AgencyController(IMasterData <Models.Request.Agency, int> iMasterData, ILogger iLogger, IConnection <Core.Model.Agency.Agency> iAgency, IConfiguration configuration, IConnection <AgencyContacts> iAgencyContacts, IConnection <IncludedCountryRelation> iAgencyIncludedCountry, IConnection <ExcludedCountryRelation> iAgencyExcludedCountry, IConnection <Payment> iAgencyPayment, IConnection <Bank> iAgencyBank, IConnection <AgencySupplierRelation> iAgencySupplierRelation, IConnection <Agents> iAgencySuperUser, IConnection <Branch> iAgencyBranch, IConnection <BranchAgentRelation> iBranchAgentRelation, IAgency agencyRepository) : base(iMasterData, iLogger, "AgencyController") { _iAgency = iAgency; _configuration = configuration; _iAgencyContact = iAgencyContacts; _iAgencyIncludedCountry = iAgencyIncludedCountry; _iAgencyExcludedCountry = iAgencyExcludedCountry; _iAgencySupplierRelation = iAgencySupplierRelation; _iAgencyBank = iAgencyBank; _iAgencyPayment = iAgencyPayment; _iAgencySuperUser = iAgencySuperUser; _iAgencyBranch = iAgencyBranch; _iAgencyBranchAgentRelation = iBranchAgentRelation; _iLogger = iLogger; _iAgencyRepository = agencyRepository; }
public NationalitiesController(IMasterData <Core.Model.MasterData.Nationality, int> iMasterData, ILogger iLogger, IMapping <Core.Model.Mappings.Nationality> mappingRepository) : base(iMasterData, iLogger, "NationalitiesController") { this._iLogger = iLogger; this._className = "NationalitiesController"; this._mappingRepository = mappingRepository; }
public CustomBaseController(IMasterData <T, U> iMasterData, ILogger iLogger, string className) : base(iMasterData, iLogger, className) { this.iMasterData = iMasterData; this._iLogger = iLogger; this._className = className; }
public MasterDataController(IMasterData iMasterData) { this.iMasterData = iMasterData; if (continentResultFromCache == null || continentResultFromCache.Result.Count <= 0) { this.GetContinents().ConfigureAwait(false); } }
public Entity(IMasterData entity) { if (entity != null) { Id = entity.Id; UpdateAt = entity.UpdateAt; } }
public ContractTemplatesController(IMasterData iMasterData, IContract iContract, IConfiguration configuration, IAmenities iamenities, ITemplate iTemplate) { this.iMasterData = iMasterData; this.iContract = iContract; this.iconfiguration = configuration; this.iamenities = iamenities; this.iTemplate = iTemplate; }
public BranchController(IMasterData <Models.Request.Branch, int> iMasterData, ILogger iLogger, IBranch iBranchRepository) : base(iMasterData, iLogger, "BranchController") { //this.iBranch = iBranch; //this.iBranchContacts = iBranchContacts; _iLogger = iLogger; this._iBranchRepository = iBranchRepository; }
public AgencyMarkupController(IMasterData <Models.Request.AgencyMarkup, int> iMasterData, ILogger iLogger, IAgencyMarkup _iAgencyMarkupRepository, IMasterData <Core.Model.Markup.AgencyMarkupRule, int> _iMarkupDataAgencyMarkupRule, IMasterData <Core.Model.MasterData.AgencyMarkup, int> _iMasterDataAgencyMarkup) : base(iMasterData, iLogger, "AgencyMarkupController") { _iLogger = iLogger; this._iAgencyMarkupRepository = _iAgencyMarkupRepository; this._iMarkupDataAgencyMarkupRule = _iMarkupDataAgencyMarkupRule; this._iMasterDataAgencyMarkup = _iMasterDataAgencyMarkup; }
public RevenueMarkupController(IMasterData <Models.Request.RevenueMarkup, int> iMasterData, ILogger iLogger, IRevenueMarkup RevenueMarkupRepository, IMasterData <Core.Model.Markup.RevenueMarkupRule, int> iMarkupDataRevenueMarkupRule, IMasterData <Core.Model.MasterData.RevenueMarkup, int> iMasterDataRevenueMarkup) : base(iMasterData, iLogger, "RevenueMarkupController") { _iLogger = iLogger; this._iRevenueMarkupRepository = RevenueMarkupRepository; this._iMarkupDataRevenueMarkupRule = iMarkupDataRevenueMarkupRule; this._iMasterDataRevenueMarkup = iMasterDataRevenueMarkup; this._className = "RevenueMarkupController"; }
public SupplierController(IMasterData <Models.Request.Supplier, int> iMasterData, ILogger iLogger, Core.DAL.Interfaces.IConnection <Bank> iBank, Core.DAL.Interfaces.IConnection <Contacts> iContacts , Core.DAL.Interfaces.IConnection <Payment> iPayment, Core.DAL.Interfaces.IConnection <Suppliers> iSuppliers, Core.DAL.Interfaces.IConnection <FunctionSupplierRelation> iSuppliersFunctionsMapping, Core.DAL.Interfaces.IConnection <Functions> iFunctions, Core.DAL.Interfaces.IConnection <UserRelation> iUserRelation, ISupplier supplier) : base(iMasterData, iLogger, "Supplier") { this.iBank = iBank; this.iContacts = iContacts; this.iPayment = iPayment; this.iSuppliers = iSuppliers; this.iSuppliersFunctionsMapping = iSuppliersFunctionsMapping; this.iFunctions = iFunctions; this.iUserRelation = iUserRelation; this._iLogger = iLogger; this._iSupplierRepository = supplier; }
public MasterDataRepositoryTest() { var host = WebHost.CreateDefaultBuilder() .UseStartup <Startup>() .Build(); iHotelTypeLibrary = new Mock <IConnection <HotelType> >(); iCityLibrary = new Mock <IConnection <City> >(); iCountryLibrary = new Mock <IConnection <Country> >(); iHotelBrandLibrary = new Mock <IConnection <HotelBrand> >(); iHotelChainLibrary = new Mock <IConnection <HotelChain> >(); iStarRatingLibrary = new Mock <IConnection <StarRating> >(); iContinentLibrary = new Mock <IConnection <Continent> >(); masterDataRepository = new MasterDataRepository( iHotelTypeLibrary.Object, iCityLibrary.Object, iCountryLibrary.Object, iHotelBrandLibrary.Object, iHotelChainLibrary.Object, iStarRatingLibrary.Object, iContinentLibrary.Object); }
/// <summary>マスタデータ名の収集</summary> /// <param name="parentCtrl"></param> /// <param name="masterDataNames"></param> public static void GetMasterDataNames(Control parentCtrl, List <string> masterDataNames) { if (masterDataNames == null) { masterDataNames = new List <string>(); } // 対象のコントロールなら、 if (parentCtrl is WinCustomDropDownList)// || WinCustomXXXX.etc) { // 新規か? bool isNew = true; // マスタデータ名を取得 IMasterData im = (IMasterData)parentCtrl; foreach (string mdn in masterDataNames) { if (mdn == im.MasterDataName) { // 一致 → 新規でない。 isNew = false; } } // 新規か? if (isNew) { // 新規の場合は追加する。 masterDataNames.Add(im.MasterDataName); } } // コントロールを再起検索する。 foreach (Control childctrl in parentCtrl.Controls) { CmnMasterDatasForList.GetMasterDataNames(childctrl, masterDataNames); } }
public ChannelManagerController(IMasterData <Models.Request.ChannelManager, int> iMasterData, ILogger iLogger, IConnection <Bank> banks, IConnection <Contacts> contacts, IConnection <Payment> payment, IConnection <EmailAddresses> emailAddresses, IConnection <Core.Model.ChannelManager.ChannelManager> channelManager, IConnection <FunctionChannelManagerRelation> functionChannelManagerRelation, IConnection <Functions> functions, IConnection <UserRelation> userRelation, IChannelManager iChannelManagerRepository) : base(iMasterData, iLogger, "ChannelManager") { this._bank = banks; this._contacts = contacts; this._payment = payment; this._channelManager = channelManager; this._functionChannelManagerRelation = functionChannelManagerRelation; this._functions = functions; this._userRelation = userRelation; this._emailAddresses = emailAddresses; this._logger = iLogger; this._iChannelManagerRepository = iChannelManagerRepository; }
/// <summary> /// スクリプトが破棄される時に呼ばれる /// </summary> public virtual void OnUnload(IMasterData data) { }
public AgentsController(IMasterData <Models.Request.Agent, int> iMasterData, ILogger iLogger, IAgent agentRepository) : base(iMasterData, iLogger, "Agents") { _iLogger = iLogger; _iAgentRepository = agentRepository; }
public EntityBaseController(IMasterData <T, U> iMasterData, ILogger iLogger, string className) { this._iMasterData = iMasterData; this._iLogger = iLogger; this._className = className; }
// Concern: Constructor receives dependencies public LocationController(IStorage storage, IMasterData masterDataService) { _storage = storage; _masterDataService = masterDataService; }
public OccupancyCombinationsController(IMasterData <Core.Model.CacheBuilder.OccupancyCombinations, int> iMasterData, ILogger iLogger) : base(iMasterData, iLogger, "OccupancyCombinationsController") { this._iLogger = iLogger; this._className = "OccupancyCombinationsController"; }
public MasteDataController(IMasterData _masterdatacontext) { this._masterDataContext = _masterdatacontext; }
/// <summary> /// メッシュ描画処理時に呼ばれる /// </summary> public virtual void OnMeshDraw(IMasterData data, IDrawer drawer) { }
public RoomController(IRoom iRoom, IMasterData iMasterData, IRatesCategory iRatesCategory) { this.iRoom = iRoom; this.iMasterData = iMasterData; this.iRatesCategory = iRatesCategory; }
public CurrencyConversionController(IMasterData <CurrencyConversion, int> iMasterData, ILogger iLogger) : base(iMasterData, iLogger, "CurrencyConversionController") { this._iMasterData = iMasterData; this._iLogger = iLogger; }
public SupplierConfigurationController(IMasterData <XMLConfiguration, int> iMasterData, ILogger iLogger) : base(iMasterData, iLogger, "SupplierConfigurationController") { _iMasterData = iMasterData; _iLogger = iLogger; }
public ChargeTypeController(IMasterData <ChargeTypes, int> iMasterData, ILogger iLogger) : base(iMasterData, iLogger, "ChargeTypeController") { }
public RoomController(IRoom iRoom, IMasterData iMasterData) { this.iRoom = iRoom; this.iMasterData = iMasterData; }
/// <summary> /// 更新前の処理 /// </summary> public virtual void OnBeforeUpdate(IMasterData data) { }
/// <summary> /// 更新後の処理 /// </summary> public virtual void OnAfterUpdate(IMasterData data) { }
public CurrenciesController(IMasterData <Currency, int> iMasterData, ILogger iLogger) : base(iMasterData, iLogger, "CurrenciesController") { }