コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public CustomBaseController(IMasterData <T, U> iMasterData, ILogger iLogger, string className)
     : base(iMasterData, iLogger, className)
 {
     this.iMasterData = iMasterData;
     this._iLogger    = iLogger;
     this._className  = className;
 }
コード例 #5
0
 public MasterDataController(IMasterData iMasterData)
 {
     this.iMasterData = iMasterData;
     if (continentResultFromCache == null || continentResultFromCache.Result.Count <= 0)
     {
         this.GetContinents().ConfigureAwait(false);
     }
 }
コード例 #6
0
 public Entity(IMasterData entity)
 {
     if (entity != null)
     {
         Id       = entity.Id;
         UpdateAt = entity.UpdateAt;
     }
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
 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;
 }
コード例 #10
0
 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";
 }
コード例 #11
0
ファイル: SupplierController.cs プロジェクト: antcorpinc/Dew
 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;
 }
コード例 #12
0
        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);
        }
コード例 #13
0
        /// <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);
            }
        }
コード例 #14
0
 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;
 }
コード例 #15
0
ファイル: Script.cs プロジェクト: yoship1639/MikuMikuWorld
 /// <summary>
 /// スクリプトが破棄される時に呼ばれる
 /// </summary>
 public virtual void OnUnload(IMasterData data)
 {
 }
コード例 #16
0
 public AgentsController(IMasterData <Models.Request.Agent, int> iMasterData, ILogger iLogger, IAgent agentRepository)
     : base(iMasterData, iLogger, "Agents")
 {
     _iLogger          = iLogger;
     _iAgentRepository = agentRepository;
 }
コード例 #17
0
 public EntityBaseController(IMasterData <T, U> iMasterData, ILogger iLogger, string className)
 {
     this._iMasterData = iMasterData;
     this._iLogger     = iLogger;
     this._className   = className;
 }
コード例 #18
0
 // Concern: Constructor receives dependencies
 public LocationController(IStorage storage, IMasterData masterDataService)
 {
     _storage           = storage;
     _masterDataService = masterDataService;
 }
コード例 #19
0
 public OccupancyCombinationsController(IMasterData <Core.Model.CacheBuilder.OccupancyCombinations, int> iMasterData, ILogger iLogger)
     : base(iMasterData, iLogger, "OccupancyCombinationsController")
 {
     this._iLogger   = iLogger;
     this._className = "OccupancyCombinationsController";
 }
コード例 #20
0
 public MasteDataController(IMasterData _masterdatacontext)
 {
     this._masterDataContext = _masterdatacontext;
 }
コード例 #21
0
ファイル: Script.cs プロジェクト: yoship1639/MikuMikuWorld
 /// <summary>
 /// メッシュ描画処理時に呼ばれる
 /// </summary>
 public virtual void OnMeshDraw(IMasterData data, IDrawer drawer)
 {
 }
コード例 #22
0
 public RoomController(IRoom iRoom, IMasterData iMasterData, IRatesCategory iRatesCategory)
 {
     this.iRoom          = iRoom;
     this.iMasterData    = iMasterData;
     this.iRatesCategory = iRatesCategory;
 }
コード例 #23
0
 public CurrencyConversionController(IMasterData <CurrencyConversion, int> iMasterData, ILogger iLogger)
     : base(iMasterData, iLogger, "CurrencyConversionController")
 {
     this._iMasterData = iMasterData;
     this._iLogger     = iLogger;
 }
コード例 #24
0
 public SupplierConfigurationController(IMasterData <XMLConfiguration, int> iMasterData, ILogger iLogger)
     : base(iMasterData, iLogger, "SupplierConfigurationController")
 {
     _iMasterData = iMasterData;
     _iLogger     = iLogger;
 }
コード例 #25
0
 public ChargeTypeController(IMasterData <ChargeTypes, int> iMasterData, ILogger iLogger)
     : base(iMasterData, iLogger, "ChargeTypeController")
 {
 }
コード例 #26
0
 public RoomController(IRoom iRoom, IMasterData iMasterData)
 {
     this.iRoom       = iRoom;
     this.iMasterData = iMasterData;
 }
コード例 #27
0
ファイル: Script.cs プロジェクト: yoship1639/MikuMikuWorld
 /// <summary>
 /// 更新前の処理
 /// </summary>
 public virtual void OnBeforeUpdate(IMasterData data)
 {
 }
コード例 #28
0
ファイル: Script.cs プロジェクト: yoship1639/MikuMikuWorld
 /// <summary>
 /// 更新後の処理
 /// </summary>
 public virtual void OnAfterUpdate(IMasterData data)
 {
 }
コード例 #29
0
 public CurrenciesController(IMasterData <Currency, int> iMasterData, ILogger iLogger)
     : base(iMasterData, iLogger, "CurrenciesController")
 {
 }