public OrganizationService(CacheManager cacheManager, CryptoHelper cryptoHelper,
                                   ISignUpUnitOfWork signUpUnitOfWork,
                                   ILogOnUnitOfWork logOnUnitOfWork,
                                   IUserRepository userRepository, UserFactory userFactory,
                                   IOrganizationRepository organizationRepository,
                                   LabelFactory labelFactory,
                                   OrganizationFactory organizationFactory,
                                   IUserLoginLogRepository userLoginLogRepository, UserLoginLogFactory userLoginLogFactory,
                                   IntegrationFactory integrationFactory,
                                   ILabelRepository labelRepository,
                                   IntegrationClientFactory integrationClientFactory,
                                   ProjectFactory projectFactory,
                                   ILanguageRepository languageRepository)
        {
            _cacheManager = cacheManager;
            _cryptoHelper = cryptoHelper;

            _signUpUnitOfWork         = signUpUnitOfWork;
            _logOnUnitOfWork          = logOnUnitOfWork;
            _userRepository           = userRepository;
            _userFactory              = userFactory;
            _organizationRepository   = organizationRepository;
            _labelFactory             = labelFactory;
            _organizationFactory      = organizationFactory;
            _userLoginLogRepository   = userLoginLogRepository;
            _userLoginLogFactory      = userLoginLogFactory;
            _integrationFactory       = integrationFactory;
            _labelRepository          = labelRepository;
            _integrationClientFactory = integrationClientFactory;
            _projectFactory           = projectFactory;
            _languageRepository       = languageRepository;
        }
Example #2
0
 public UnitOfWork(SimpleMusicStoreDbContext db,
                   IAddressRepository addresses,
                   IArtistFollowRepository artistFollows,
                   IArtistRepository artists,
                   ILabelFollowRepository labelFollows,
                   ILabelRepository labels,
                   IOrderRepository orders,
                   IRecordRepository records,
                   IWishRepository wishes,
                   IUserRepository users,
                   ICommentRepository comments,
                   IStockRepository stocks)
 {
     _db           = db;
     Addresses     = addresses;
     ArtistFollows = artistFollows;
     Artists       = artists;
     LabelFollows  = labelFollows;
     Labels        = labels;
     Orders        = orders;
     Records       = records;
     Wishes        = wishes;
     Users         = users;
     Comments      = comments;
     Stocks        = stocks;
 }
Example #3
0
        private string GetLotNumber(int orderId)
        {
            var context = new OmsContext();

            _orderRepository = new OrderRepository(context);
            _labelRepository = new LabelRepository(context);
            var order = _orderRepository.Get(orderId);

            if (order.LotNumber != null)
            {
                return(order.LotNumber);
            }
            var year  = DateTime.Now.Year;
            var today = year + DateTime.Now.DayOfYear.ToString(CultureInfo.InvariantCulture).PadLeft(3, '0');
            var max   = _labelRepository.Query().Include(x => x.LotNumber)
                        .Where(x => x.LotNumber.StartsWith(today))
                        .Select(x => x.LotNumber)
                        .DefaultIfEmpty(today + "00")
                        .Max();

            var lotNumber = (int.Parse(max) + 1).ToString(CultureInfo.InvariantCulture);

            order.LotNumber = lotNumber;
            _orderRepository.Update(order);
            context.Dispose();
            return(lotNumber);
        }
 public ReleasesController(ILabelRepository labelRepository, IArtistRepository artistRepository, IReleaseRepository releaseRepository, IReleaseService releaseService)
 {
     _labelRepository   = labelRepository;
     _artistRepository  = artistRepository;
     _releaseRepository = releaseRepository;
     _releaseService    = releaseService;
 }
Example #5
0
 public WindyLabelCrawler(IHttpClientFactory httpClientFactory, IConfiguration configuration, ILogger <WindyLabelCrawler> logger, ILabelRepository labelRepository)
 {
     _httpClientFactory = httpClientFactory;
     _logger            = logger;
     _labelRepository   = labelRepository;
     _webBaseAddress    = configuration["LabelPath:Windy"];
 }
Example #6
0
 public LabelService(ILabelRepository repository
                     , IMapper mapper
                     , INotesRepository notesRepository)
 {
     _repository      = repository;
     _mapper          = mapper;
     _notesRepository = notesRepository;
 }
Example #7
0
 public LabelService(ILabelRepository labelRepository, IOrderRepository orderRepository,
                     IOrderDetailRepository orderDetailRepository, ICustomerRepository customerRepository)
 {
     _labelRepository       = labelRepository;
     _orderRepository       = orderRepository;
     _orderDetailRepository = orderDetailRepository;
     _customerRepository    = customerRepository;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="categoryRepository"></param>
 /// <param name="contentRepository"></param>
 /// <param name="labelRepository"></param>
 public ApiResponseBuilder(
     ICategoryRepository categoryRepository,
     IContentRepository contentRepository,
     ILabelRepository labelRepository)
 {
     this.mCategoryRepository = categoryRepository;
     this.mContentRepository  = contentRepository;
     this.mLabelRepository    = labelRepository;
 }
Example #9
0
 public LabelService
 (
     ILabelRepository labelRepository,
     IMapper mapper
 )
 {
     _labelRepository = labelRepository;
     _mapper          = mapper;
 }
Example #10
0
 public LabelLineProcessor(ILabelRepository defineRepository)
 {
     _labelRepository = defineRepository;
     _replacements.Add(new TokenMatchReplacement());
     _replacements.Add(new TokenLiteralReplacement());
     _replacements.Add(new TokenIndirectReplacement());
     _replacements.Add(new TokenIndirectParenthesisReplacement());
     _replacements.Add(new TokenAbsoluteReplacement());
     _replacements.Add(new TokenHighLowByteReplacement());
 }
Example #11
0
 public PhotosController(ILogger<PhotosController> logger, IMapper mapper, IPhotoRepository photoRepository, ILabelRepository labelRepository, IUserRepository userRepository, IConfiguration configuration, IHttpContextAccessor httpContextAccessor)
 {
     _logger = logger;
     _mapper = mapper;
     _photoRepository = photoRepository;
     _labelRepository = labelRepository;
     _userRepository = userRepository;
     _configuration = configuration;
     _httpContextAccessor = httpContextAccessor;
 }
Example #12
0
 public LabelControllerTest()
 {
     //Arrange
     repository = new FakeLabelRepository();
     controller = new LabelController(repository)
     {
         ControllerContext = new ControllerContext()
     };
     controller.ControllerContext.HttpContext = new DefaultHttpContext();
     controller.ControllerContext.HttpContext.Items.Add("UserID", "0");
 }
 public GroupController(IGroupRepository groupRepository,
                        IParticipantRepository participantRepository,
                        IInvitationRepository invitationRepository,
                        ILabelRepository labelRepository,
                        IPostRepository postRepository)
 {
     _groupRepository       = groupRepository;
     _participantRepository = participantRepository;
     _invitationRepository  = invitationRepository;
     _labelRepository       = labelRepository;
     _postRepository        = postRepository;
 }
Example #14
0
 public ProjectUnitOfWork(PostgreSQLTransactionalExecutor transactionalExecutor,
                          IOrganizationRepository organizationRepository,
                          IProjectRepository projectRepository,
                          ILabelRepository labelRepository,
                          ILabelTranslationRepository labelTranslationRepository)
 {
     _transactionalExecutor      = transactionalExecutor;
     _organizationRepository     = organizationRepository;
     _projectRepository          = projectRepository;
     _labelRepository            = labelRepository;
     _labelTranslationRepository = labelTranslationRepository;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="fileMappingInfoRepository"></param>
 /// <param name="categoryRepository"></param>
 /// <param name="contentRepository"></param>
 /// <param name="thumbnailBuilder"></param>
 public FileUpdateRunner(IFileMappingInfoRepository fileMappingInfoRepository, ICategoryRepository categoryRepository, IContentRepository contentRepository, IThumbnailBuilder thumbnailBuilder, IAppAppMetaInfoRepository appAppMetaInfoRepository, ILabelRepository labelRepository, IMessagingManager messagingManager,
                         IEventLogRepository eventLogRepository)
 {
     this.mFileMappingInfoRepository = fileMappingInfoRepository;
     this.mCategoryRepository        = categoryRepository;
     this.mContentRepository         = contentRepository;
     this.mTumbnailBuilder           = thumbnailBuilder;
     this.mAppAppMetaInfoRepository  = appAppMetaInfoRepository;
     this.mLabelRepository           = labelRepository;
     this.mMessagingManager          = messagingManager;
     this.mEventLogRepository        = eventLogRepository;
 }
Example #16
0
 public LabelService(
     ILabelRepository repository,
     IGroupService groupService,
     // IExpenseService expenseService,
     IUnitOfWork unitOfWork,
     IMapper mapper)
 {
     _repository   = repository;
     _groupService = groupService;
     // _expenseService = expenseService;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
Example #17
0
 public TaskService
 (
     ITaskRepository taskRepository,
     IMapper mapper,
     IProjectRepository projectRepository,
     ILabelRepository labelRepository
 )
 {
     _taskRepository    = taskRepository;
     _mapper            = mapper;
     _projectRepository = projectRepository;
     _labelRepository   = labelRepository;
 }
Example #18
0
 public LabelStore(
     ILabelDataStore <LabelData> labelDataStore,
     ILabelRepository <TLabel> labelRepository,
     ITypedModuleProvider typedModuleProvider,
     ILogger <LabelStore <TLabel> > logger,
     IDbQueryConfiguration dbQuery,
     ICacheManager cacheManager)
 {
     _typedModuleProvider = typedModuleProvider;
     _labelRepository     = labelRepository;
     _labelDataStore      = labelDataStore;
     _cacheManager        = cacheManager;
     _dbQuery             = dbQuery;
     _logger = logger;
 }
Example #19
0
 public ProjectService(CacheManager cacheManager,
                       IProjectUnitOfWork projectUnitOfWork,
                       IProjectRepository projectRepository, ProjectFactory projectFactory,
                       IOrganizationRepository organizationRepository,
                       ILabelRepository labelRepository,
                       LabelFactory labelFactory)
 {
     _cacheManager           = cacheManager;
     _projectUnitOfWork      = projectUnitOfWork;
     _projectRepository      = projectRepository;
     _projectFactory         = projectFactory;
     _organizationRepository = organizationRepository;
     _labelRepository        = labelRepository;
     _labelFactory           = labelFactory;
 }
 public LabelController(ILogger <IssueController> logger,
                        UserManager <ApplicationUser> userManager,
                        SignInManager <ApplicationUser> signInManager,
                        RoleManager <IdentityRole> roleManager,
                        ILabelRepository labelRepository,
                        IHttpContextAccessor httpContextAccessor,
                        IUserService userService)
 {
     _logger              = logger;
     _userManager         = userManager;
     _signInManager       = signInManager;
     _roleManager         = roleManager;
     _userService         = userService;
     _labelRepository     = labelRepository;
     _httpContextAccessor = httpContextAccessor;
 }
Example #21
0
        private string GetSerialNumber()
        {
            var context = new OmsContext();

            _labelRepository = new LabelRepository(context);
            var today = DateTime.Now.DayOfYear.ToString(CultureInfo.InvariantCulture).PadLeft(3, '0');
            var max   = _labelRepository.Query().Include(x => x.SerialNumber)
                        .Where(x => x.SerialNumber.StartsWith(today))
                        .Select(x => x.SerialNumber)
                        .DefaultIfEmpty(today + "0000")
                        .Max();

            var result = (int.Parse(max) + 1).ToString(CultureInfo.InvariantCulture).PadLeft(7, '0');

            context.Dispose();
            return(result);
        }
Example #22
0
        private void Init()
        {
            var context = new OmsContext();

            _labelRepository                 = new LabelRepository(context);
            _orderRepository                 = new OrderRepository(context);
            _orderDetailRepository           = new OrderDetailRepository(context);
            _coldWeightEntryRepository       = new ColdWeightEntryRepository(context);
            _coldWeightEntryDetailRepository = new ColdWeightEntryDetailRepository(context);
            _customerLocationRepository      = new CustomerLocationRepository(context);
            _animalOrderDetailRepository     = new AnimalOrderDetailRepository(context);
            _productRepository               = new ProductRepository(context);
            _customerRepository              = new CustomerRepository(context);
            _labelCreateService              = new LabelCreateService();
            _primalCutRepository             = new PrimalCutRepository(context);
            _speciesRepository               = new SpeciesRepository(context);
        }
Example #23
0
 public SignUpUnitOfWork(PostgreSQLTransactionalExecutor transactionalExecutor,
                         IOrganizationRepository organizationRepository,
                         IUserRepository userRepository,
                         IUserLoginLogRepository userLoginLogRepository,
                         IIntegrationRepository integrationRepository,
                         IIntegrationClientRepository integrationClientRepository,
                         IProjectRepository projectRepository,
                         ILabelRepository labelRepository,
                         ILabelTranslationRepository labelTranslationRepository)
 {
     _transactionalExecutor       = transactionalExecutor;
     _organizationRepository      = organizationRepository;
     _userRepository              = userRepository;
     _userLoginLogRepository      = userLoginLogRepository;
     _integrationRepository       = integrationRepository;
     _integrationClientRepository = integrationClientRepository;
     _projectRepository           = projectRepository;
     _labelRepository             = labelRepository;
     _labelTranslationRepository  = labelTranslationRepository;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="fileMappingInfoRepository"></param>
 /// <param name="categoryRepository"></param>
 /// <param name="contentRepository"></param>
 /// <param name="thumbnailBuilder"></param>
 public FileUpdateRunner(
     IFileMappingInfoRepository fileMappingInfoRepository,
     ICategoryRepository categoryRepository,
     IContentRepository contentRepository,
     IThumbnailBuilder thumbnailBuilder,
     IAppAppMetaInfoRepository appAppMetaInfoRepository,
     ILabelRepository labelRepository,
     IMessagingScopeContext messagingScopeContext,
     IEventLogRepository eventLogRepository,
     IVirtualFileSystemService virtualFileSystemService)
 {
     this.mFileMappingInfoRepository = fileMappingInfoRepository;
     this.mCategoryRepository        = categoryRepository;
     this.mContentRepository         = contentRepository;
     this.mTumbnailBuilder           = thumbnailBuilder;
     this.mAppAppMetaInfoRepository  = appAppMetaInfoRepository;
     this.mLabelRepository           = labelRepository;
     this.mMessagingScopeContext     = messagingScopeContext;
     this.mEventLogRepository        = eventLogRepository;
     this.mVirtualFileSystemService  = virtualFileSystemService;
 }
Example #25
0
 public LabelService(CacheManager cacheManager,
                     ILabelUnitOfWork labelUnitOfWork,
                     ILabelRepository labelRepository, LabelFactory labelFactory,
                     ILabelTranslationRepository labelTranslationRepository, LabelTranslationFactory labelTranslationFactory,
                     IProjectRepository projectRepository, ProjectFactory projectFactory,
                     IOrganizationRepository organizationRepository,
                     ILanguageRepository languageRepository,
                     ITokenRepository tokenRepository)
 {
     _cacheManager               = cacheManager;
     _labelUnitOfWork            = labelUnitOfWork;
     _labelRepository            = labelRepository;
     _labelFactory               = labelFactory;
     _labelTranslationRepository = labelTranslationRepository;
     _labelTranslationFactory    = labelTranslationFactory;
     _projectRepository          = projectRepository;
     _projectFactory             = projectFactory;
     _organizationRepository     = organizationRepository;
     _languageRepository         = languageRepository;
     _tokenRepository            = tokenRepository;
 }
Example #26
0
 public OrdersController(IColdWeightEntryRepository coldWeightEntryRepository,
                         IOrderSearchService orderSearchService, IOrderRepository orderRepository,
                         IOrderDetailRepository orderDetailRepository, ILabelRepository labelRepository,
                         ILookupService lookupService, IOrderService orderService, IOrderDetailService orderDetailService,
                         IOrderReportService orderReportService, IColdWeightEntryService coldWeightEntryService,
                         ICustomerRepository customerRepository, IProductRepository productRepository,
                         ICustomerLocationRepository customerLocationRepository, ISteakTypeRepository steakTypeRepository,
                         IOrganMeatTypeRepository organMeatTypeRepository, IPackageSizeRepository packageSizeRepository, IRibTypeRepository ribTypeRepository,
                         IChuckTypeRepository chuckTypeRepository, IAnimalOrderDetailRepository animalOrderDetailRepository,
                         IColdWeightEntryDetailRepository coldWeightEntryDetailRepository, IAnimalLabelRepository animalLabelRepository,
                         ILabelService laveLabelService, ICustomerProductDataRepository customerProductDataRepository)
 {
     _orderSearchService              = orderSearchService;
     _orderRepository                 = orderRepository;
     _orderDetailRepository           = orderDetailRepository;
     _labelRepository                 = labelRepository;
     _lookupService                   = lookupService;
     _orderService                    = orderService;
     _orderDetailService              = orderDetailService;
     _orderReportService              = orderReportService;
     _coldWeightEntryService          = coldWeightEntryService;
     _coldWeightEntryRepository       = coldWeightEntryRepository;
     _productRepository               = productRepository;
     _customerLocationRepository      = customerLocationRepository;
     _steakTypeRepository             = steakTypeRepository;
     _organMeatTypeRepository         = organMeatTypeRepository;
     _packageSizeRepository           = packageSizeRepository;
     _ribTypeRepository               = ribTypeRepository;
     _chuckTypeRepository             = chuckTypeRepository;
     _animalOrderDetailRepository     = animalOrderDetailRepository;
     _coldWeightEntryDetailRepository = coldWeightEntryDetailRepository;
     _animalLabelRepository           = animalLabelRepository;
     _customerProductDataRepository   = customerProductDataRepository;
     Customers = new List <Customer>(lookupService.GetCustomers().Select(x => new Customer()
     {
         Name = x.Name,
         Id   = x.Id
     }));
 }
Example #27
0
 public LabelController(ApiResponseBuilder builder, ILabelRepository labelRepository)
 {
     this.mBuilder         = builder;
     this.mLabelRepository = labelRepository;
 }
 public LabelService(ILabelRepository labelrepository)
 {
     repository = labelrepository;
 }
Example #29
0
 public LabelService(ILabelRepository repository, IExpenseService expenseService)
     : base(repository)
 {
     _expenseService = expenseService;
 }
Example #30
0
 public LabelController(ILabelRepository labelRepository)
 {
     _labelRepository = labelRepository;
 }
		public ProjectRepository(Gateway gateway, ILabelRepository label)
		{
			Gateway = gateway;
			Label = label;
		}