コード例 #1
0
 public SystemSettingService(ISystemSettingRepository repo, IUnitOfWork unitOfWork
                             , IMemoryCache memoryCache, IClientNotifier clientNotifier) : base(repo, unitOfWork)
 {
     _repo           = repo;
     _memoryCache    = memoryCache;
     _clientNotifier = clientNotifier;
 }
コード例 #2
0
 public GetAllSystemSettingGroupParamCommand(
     ISystemSettingRepository systemSettingRepository,
     IMapper <Models.SystemSetting, SystemSetting> systemSettingMapper)
 {
     _systemSettingRepository = systemSettingRepository;
     _systemSettingMapper     = systemSettingMapper;
 }
コード例 #3
0
 public GetSystemSettingCommand(
     ISystemSettingRepository systemSettingRepository,
     IMapper <Models.SystemSetting, SystemSetting> systemSettingMapper)
 {
     _systemSettingRepository = systemSettingRepository;
     _systemSettingMapper     = systemSettingMapper;
 }
コード例 #4
0
 public PostSystemSettingCommand(
     ISystemSettingRepository systemSettingRepository,
     ISystemSettingGroupRepository systemSettingGroupRepository,
     IMapper <Models.SystemSetting, SystemSetting> systemSettingToSystemSettingMapper,
     IMapper <SaveSystemSetting, Models.SystemSetting> saveSystemSettingToSystemSettingMapper,
     IHttpContextAccessor httpContextAccessor)
 {
     _systemSettingRepository                = systemSettingRepository;
     _systemSettingGroupRepository           = systemSettingGroupRepository;
     _systemSettingToSystemSettingMapper     = systemSettingToSystemSettingMapper;
     _saveSystemSettingToSystemSettingMapper = saveSystemSettingToSystemSettingMapper;
     _httpContextAccessor = httpContextAccessor;
 }
コード例 #5
0
        private void SetSystemSetting()
        {
            _unitOfWork = UnityInit.UnitOfWork;
            _systemSettingRepository = _unitOfWork.GetRepository <SystemSettingRepository>();

            setting = _systemSettingRepository.Query().Where(x => x.IsEnable).ToList();

            _systemSetting.MemberPointsRate =
                setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.MemberPointsRate).ToString()).SettingValue;
            _systemSetting.SOProduceGeneralMangerMaxDiscountPrice = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.SOProduceGeneralMangerMaxDiscountPrice).ToString()).SettingValue;
            _systemSetting.ReportMerchantsName = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportMerchantsName).ToString()).SettingValue;
            _systemSetting.ReportPhone         = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportPhone).ToString()).SettingValue;
            _systemSetting.ReportAddress       = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportAddress).ToString()).SettingValue;
            _systemSetting.ReportPrintName     = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportPrintName).ToString()).SettingValue;
            _systemSetting.ReportHealthline    = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportHealthline).ToString()).SettingValue;
            _systemSetting.ReportWebSiteUrl    = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.ReportWebSiteUrl).ToString()).SettingValue;
            _systemSetting.DefaultMemberCardPW = setting.Single(x => x.SettingCode == ((short)DataType.SystemSettingCode.DefaultMemberCardPW).ToString()).SettingValue;
        }
コード例 #6
0
        public Login()
        {
            InitializeComponent();
            _userRepository          = UnityInit.UnitOfWork.GetRepository <UserRepository>();
            _systemSettingRepository = UnityInit.UnitOfWork.GetRepository <SystemSettingRepository>();

            TxtVersion.Text         = string.Format("当前版本号 : V{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
            CheckBoxLogin.IsChecked = !string.IsNullOrEmpty(Settings.Default.Login);
            TextLogin.Text          = Settings.Default.Login;
            if (string.IsNullOrEmpty(TextLogin.Text))
            {
                TextLogin.Focus();
            }
            else
            {
                TextPassword.Focus();
            }
        }
コード例 #7
0
 public BillService(IAccountTransactionRepository accountTransactionRepository, IBillRepository billRepository,
                    IBillAccountTransactionRepository billAccountTransactionRepository,
                    IBillChargeRepository billChargeRepository, IBillDiscountRepository billDiscountRepository,
                    IBillItemRepository billItemRepository, IChargeRepository chargeRepository,
                    IChargeDiscountRepository chargeDiscountRepository, IDiscountRepository discountRepository,
                    IStudentChargeRepository studentChargeRepository, IStudentDiscountRepository studentDiscountRepository,
                    ISystemSettingRepository settingRepository)
 {
     _accountTransactionRepository = accountTransactionRepository;
     _billRepository = billRepository;
     _billAccountTransactionRepository = billAccountTransactionRepository;
     _billChargeRepository             = billChargeRepository;
     _billDiscountRepository           = billDiscountRepository;
     _billItemRepository        = billItemRepository;
     _chargeRepository          = chargeRepository;
     _chargeDiscountRepository  = chargeDiscountRepository;
     _discountRepository        = discountRepository;
     _studentChargeRepository   = studentChargeRepository;
     _studentDiscountRepository = studentDiscountRepository;
     _settingRepository         = settingRepository;
 }
コード例 #8
0
 public DeleteSystemSettingCommand(ISystemSettingRepository systemSettingRepository)
 {
     _systemSettingRepository = systemSettingRepository;
 }
コード例 #9
0
 public CategoryController(ICategoryRepository categoryRepository, ISystemSettingRepository systemSettingRepository)
 {
     _categoryRepository      = categoryRepository;
     _systemSettingRepository = systemSettingRepository;
 }
コード例 #10
0
 public SystemSettingsService(ISystemSettingRepository repository)
 {
     this.repository = repository;
 }
コード例 #11
0
 public SystemSettingService(IUnitOfWork unitOfWork, ISystemSettingRepository systemSettingRepository) : base(unitOfWork, systemSettingRepository)
 {
     this._unitOfWork = unitOfWork;
     this._systemSettingRepository = systemSettingRepository;
 }
コード例 #12
0
 public SystemSettingServiceTests(PaymentGatewayContextFactory paymentGatewayContextFactory)
 {
     _systemSettingRepository = new SystemSettingRepository(paymentGatewayContextFactory.ContextInstance);
     _systemSettingMapper     = paymentGatewayContextFactory.SystemSettingMapper;
 }
コード例 #13
0
 public AppSettingsService(ISystemSettingRepository systemSettings, ICacheService cacheService)
 {
     _systemSettings = systemSettings;
     _cacheService   = cacheService;
 }
コード例 #14
0
 public SystemSettingService(ISystemSettingRepository appsRepository, IUnitofWork unitOfWork)
 {
     _roleRepository = appsRepository;
     _unitOfWork     = unitOfWork;
 }
コード例 #15
0
 public SystemSettingService(ISystemSettingRepository systemsettingRepository)
 {
     this._systemsettingRepository = systemsettingRepository;
 }
コード例 #16
0
 public SystemSettingService(ISystemSettingRepository systemSettingRepository, IUnitOfWork unitOfWork)
 {
     this._systemSettingRepository = systemSettingRepository;
     this._unitOfWork = unitOfWork;
 }
コード例 #17
0
 public SystemSettingService(IUnitOfWork unitOfWork, ISystemSettingRepository systemSettingRepository
                             , ICacheManager cacheManager) : base(unitOfWork, systemSettingRepository)
 {
     _systemSettingRepository = systemSettingRepository;
     _cacheManager            = cacheManager;
 }