コード例 #1
0
 public PurchaseOrderService(
     IPurchaseOrderRepository purchaseOrderRepository,
     IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
     IPurchaseTypeRepository purchaseTypeRepository,
     IPaymentTypeRepository paymentTypeRepository,
     ISupplierRepository supplierRepository,
     IProductRepository productRepository,
     IArrivalNoticeRepository arrivalNoticeRepository,
     IWorkflowActivityService workflowActivityService,
     IUsersRepository usersRepository,
     IIdGenerator <PurchaseOrder, string> purchaseOrderIdGenerator,
     IUnitOfWork uow
     )
 {
     this._purchaseOrderRepository       = purchaseOrderRepository;
     this._purchaseOrderDetailRepository = purchaseOrderDetailRepository;
     this._purchaseTypeRepository        = purchaseTypeRepository;
     this._paymentTypeRepository         = paymentTypeRepository;
     this._supplierRepository            = supplierRepository;
     this._productRepository             = productRepository;
     this._arrivalNoticeRepository       = arrivalNoticeRepository;
     this._workflowActivityService       = workflowActivityService;
     this._usersRepository          = usersRepository;
     this._purchaseOrderIdGenerator = purchaseOrderIdGenerator;
     this._uow = uow;
 }
コード例 #2
0
        public PurchaseOrderTests()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._purchaseOrderRepoistroy       = new PurchaseOrderRepository(uow);
            this._purchaseOrderDetailRepoistroy = new PurchaseOrderDetailRepository(uow);
            this._purchaseTypeRepoistroy        = new PurchaseTypeRepository(uow);
        }
コード例 #3
0
 public PurchaseOrderDetailService(
     ILogger <IPurchaseOrderDetailRepository> logger,
     IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
     IApiPurchaseOrderDetailRequestModelValidator purchaseOrderDetailModelValidator,
     IBOLPurchaseOrderDetailMapper bolpurchaseOrderDetailMapper,
     IDALPurchaseOrderDetailMapper dalpurchaseOrderDetailMapper)
     : base(logger,
            purchaseOrderDetailRepository,
            purchaseOrderDetailModelValidator,
            bolpurchaseOrderDetailMapper,
            dalpurchaseOrderDetailMapper)
 {
 }
コード例 #4
0
 public MainViewModel(
     IProductRepository productRepository,
     ISupplierRepository supplierRepository,
     IPurchaseOrderRepository purchaseOrderRepository,
     IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
     IEventAggregator ea)
 {
     ProductMainViewModel       = new ProductMainViewModel(productRepository, ea);
     SupplierMainViewModel      = new SupplierMainViewModel(supplierRepository, ea);
     PurchaseOrderMainViewModel = new PurchaseOrderMainViewModel(productRepository, supplierRepository, purchaseOrderRepository, purchaseOrderDetailRepository, ea);
     ea.GetEvent <Messanger>().Subscribe(OnMessageChanged);
     Glyph = TickGlyph;
 }
コード例 #5
0
 public AbstractPurchaseOrderDetailService(
     ILogger logger,
     IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
     IApiPurchaseOrderDetailRequestModelValidator purchaseOrderDetailModelValidator,
     IBOLPurchaseOrderDetailMapper bolPurchaseOrderDetailMapper,
     IDALPurchaseOrderDetailMapper dalPurchaseOrderDetailMapper)
     : base()
 {
     this.purchaseOrderDetailRepository     = purchaseOrderDetailRepository;
     this.purchaseOrderDetailModelValidator = purchaseOrderDetailModelValidator;
     this.bolPurchaseOrderDetailMapper      = bolPurchaseOrderDetailMapper;
     this.dalPurchaseOrderDetailMapper      = dalPurchaseOrderDetailMapper;
     this.logger = logger;
 }
コード例 #6
0
        public PurchaseOrderTest()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._purchaseOrderRepository       = new PurchaseOrderRepository(uow);
            this._purchaseOrderDetailRepository = new PurchaseOrderDetailRepository(uow);
            this._purchaseTypeRepository        = new PurchaseTypeRepository(uow);
            this._paymentTypeRepository         = new PaymentTypeRepository(uow);
            this._supplierRepository            = new SupplierRepository(uow);
            this._productRepository             = new ProductRepository(uow);
            this._uersRepository = new UsersRepository(uow);

            this._purchaseTypeService  = new PurchaseTypeService(this._purchaseTypeRepository, this._uersRepository, uow);
            this._purchaseOrderService = new PurchaseOrderService(this._purchaseOrderRepository, _purchaseOrderDetailRepository, this._purchaseTypeRepository, this._paymentTypeRepository, this._supplierRepository, this._productRepository, null, null, null, null, uow);

            this._purchaseOrderDetailService = new PurchaseOrderDetailService(this._purchaseOrderDetailRepository, uow);
            AutoMapperBootStrapper.ConfigureAutoMapper();
        }
コード例 #7
0
        public PurchaseOrderMainViewModel(
            IProductRepository productRepository,
            ISupplierRepository supplierRepository,
            IPurchaseOrderRepository purchaseOrderRepository,
            IPurchaseOrderDetailRepository purchaseOrderDetailRepository,
            IEventAggregator ea)
        {
            ProductLocatingViewModel   = new ProductLocatingViewModel(productRepository, ea);
            PurchaseOrderListViewModel = new PurchaseOrderListViewModel(ea);
            SupplierSelectionViewModel = new SupplierSelectionViewModel(supplierRepository, ea);
            PurchaseAllOrdersViewModel = new PurchaseAllOrdersViewModel(purchaseOrderRepository, ea);

            SubmitCommand                  = new DelegateCommand(Submit, CanSubmit);
            _productRepository             = productRepository;
            _supplierRepository            = supplierRepository;
            _purchaseOrderDetailRepository = purchaseOrderDetailRepository;
            EA = ea;
            EA.GetEvent <CanSubmitEvent>().Subscribe(RaiseCanSubmitEvent);
            EA.GetEvent <UpdatePurchaseDetails>().Subscribe(OnUpdatePurchaseDetails);
        }
 public AbstractApiPurchaseOrderDetailRequestModelValidator(IPurchaseOrderDetailRepository purchaseOrderDetailRepository)
 {
     this.purchaseOrderDetailRepository = purchaseOrderDetailRepository;
 }
コード例 #9
0
 public PurchaseOrderDetailService(IPurchaseOrderDetailRepository purchaseOrderRepository, IUnitOfWork unitOfWork)
 {
     this._purchaseOrderRepository = purchaseOrderRepository;
     this._unitOfWork = unitOfWork;
 }
コード例 #10
0
 public PurchaseOrderDetailService(IPurchaseOrderDetailRepository _purchaseOrderDetailRepository, IPurchaseOrderDetailValidator _purchaseOrderDetailValidator)
 {
     _repository = _purchaseOrderDetailRepository;
     _validator  = _purchaseOrderDetailValidator;
 }
コード例 #11
0
 public PurchaseOrderDetailService(IPurchaseOrderDetailRepository PurchaseOrderDetailRepository, IUnitOfWork uow)
 {
     this._purchaseOrderDetailRepository = PurchaseOrderDetailRepository;
     this._uow = uow;
 }
コード例 #12
0
 public ApiPurchaseOrderDetailRequestModelValidator(IPurchaseOrderDetailRepository purchaseOrderDetailRepository)
     : base(purchaseOrderDetailRepository)
 {
 }
コード例 #13
0
 public PurchaseOrderDetailService(IPurchaseOrderDetailRepository purchaseOrderDetailRepository)
     : base(purchaseOrderDetailRepository)
 {
     this.purchaseOrderDetailRepository = purchaseOrderDetailRepository;
 }