Example #1
0
 public ItemGroupService(IItemGroupAggregate itemGroupAggregate, ICurrentUserService currentUserService, IItemGroupRepository itemGroupRepository, ITaskRepository taskRepository)
 {
     _itemGroupRepository = itemGroupRepository;
     _taskRepository      = taskRepository;
     _itemGroupAggregate  = itemGroupAggregate;
     _currentUserService  = currentUserService;
 }
        public ItemGroupController(IItemGroupRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.ItemGroupRepository = repository;
        }
        public ItemGroupController(IItemGroupRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.ItemGroupRepository = repository;
        }
        public ItemGroupController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.ItemGroupRepository = new MixERP.Net.Schemas.Core.Data.ItemGroup
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
        public ItemGroupController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.ItemGroupRepository = new MixERP.Net.Schemas.Core.Data.ItemGroup
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Example #6
0
        public ItemService(IUnitOfWork unitOfWork,
                           IItemRepository itemRepository,
                           ICurrencyRepository currencyRepository,
                           IBusinessPartnerRepository businessPartnerRepository,
                           IItemGroupRepository itemGroupRepository)
        {
            _itemRepository            = itemRepository;
            _itemRepository.UnitOfWork = unitOfWork;

            _currencyRepository            = currencyRepository;
            _currencyRepository.UnitOfWork = unitOfWork;

            _businessPartnerRepository            = businessPartnerRepository;
            _businessPartnerRepository.UnitOfWork = unitOfWork;

            _itemGroupRepository            = itemGroupRepository;
            _itemGroupRepository.UnitOfWork = unitOfWork;
        }
Example #7
0
 public ItemsController(
     ILanguageManager languageManager,
     IPeriodManager periodManager,
     IItemGroupRepository itemGroupRepo,
     IItemRepository itemRepo,
     IUnitRepository unitRepo,
     IItemUnitRepository itemUnitRepo,
     IPriceRepository priceRepo,
     IItemUnitPriceRepository itemUnitPriceRepo,
     IStoreItemUnitRepository storeItemUnitRepo,
     IModelFactory modelFactory) : base(languageManager)
 {
     _periodManager     = periodManager;
     _itemRepo          = itemRepo;
     _unitRepo          = unitRepo;
     _itemUnitRepo      = itemUnitRepo;
     _itemGroupRepo     = itemGroupRepo;
     _priceRepo         = priceRepo;
     _itemUnitPriceRepo = itemUnitPriceRepo;
     _storeItemUnitRepo = storeItemUnitRepo;
     _modelFactory      = modelFactory;
 }
Example #8
0
 public ItemRepository(ERPContext context, IItemGroupRepository itemGroupRepo) : base(context)
 {
     _itemGroupRepo = itemGroupRepo;
 }
 public ItemGroupService(IUnitOfWork unitOfWork,
                         IItemGroupRepository itemGroupRepository)
 {
     _itemGroupRepository            = itemGroupRepository;
     _itemGroupRepository.UnitOfWork = unitOfWork;
 }
 public ItemGroupServices(IItemGroupRepository ItemGroupRes)
 {
     _res = ItemGroupRes;
 }
Example #11
0
 public ItemGroupBusiness(IItemGroupRepository ItemGroupRes)
 {
     _res = ItemGroupRes;
 }
 public ItemGroupsController(ILanguageManager languageManager, IItemGroupRepository itemGroupRepo) : base(languageManager)
 {
     _itemGroupRepo = itemGroupRepo;
 }
Example #13
0
 public EntityValidator(IItemGroupRepository itemGroupRepository)
 {
     _itemGroupRepository = itemGroupRepository;
 }
 public ItemGroupBusiness(IItemGroupRepository ItemGroupRes, IConfiguration configuration)
 {
     Secret = configuration["AppSettings:Secret"];
     _res   = ItemGroupRes;
 }
Example #15
0
 public ItemGroupService(IItemGroupRepository itemGroupRepository, IUnitOfWork unitOfWork)
 {
     this.itemGroupRepository = itemGroupRepository;
     this.unitOfWork          = unitOfWork;
 }
Example #16
0
 public ItemGroupsController(IItemGroupRepository itemGroupRepository, IMapper mapper)
 {
     _itemGroupRepository = itemGroupRepository ?? throw new ArgumentNullException(nameof(itemGroupRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }