public PriceTypeCommandHandlers(IUnitOfWork uow, IPriceTypeRepository repository,
                                 IPriceTypePolicy policy, IEventBus bus)
 {
     _uow        = uow ?? throw new ArgumentNullException(nameof(uow));
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _policy     = policy ?? throw new ArgumentNullException(nameof(policy));
     _bus        = bus ?? throw new ArgumentNullException(nameof(bus));
 }
        public PriceTypeController(IPriceTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.PriceTypeRepository = repository;
        }
Beispiel #3
0
        public PriceTypeController(IPriceTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.PriceTypeRepository = repository;
        }
Beispiel #4
0
 public ProductCommandHandlers(
     IUnitOfWork uow,
     IProductRepository repository,
     IProductPolicy policy,
     IPriceTypeRepository priceTypeRepository)
 {
     _uow                 = uow;
     _repository          = repository;
     _policy              = policy;
     _priceTypeRepository = priceTypeRepository;
 }
        public PriceTypeController()
        {
            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.PriceTypeRepository = new MixERP.Net.Schemas.Core.Data.PriceType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Beispiel #6
0
        public PriceTypeController()
        {
            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.PriceTypeRepository = new MixERP.Net.Schemas.Core.Data.PriceType
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }