Ejemplo n.º 1
0
 public WareHouseController(IWareHouseService wareHouseService, IUserWareHouseService userWareHouseService, IMapper mapper, IUsersService usersService)
 {
     _wareHouseService     = wareHouseService;
     _userWareHouseService = userWareHouseService;
     _mapper       = mapper;
     _usersService = usersService;
 }
 public FrmOpeningStock()
 {
     _productService = new ProductService();
     _commonservice = new CommonService();
     _wareHouseService = new WareHouseService();
     InitializeComponent();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 构造函数,最终得到新的服务实例
        /// </summary>
        public AutofacConfig()
        {
            if (this.containerBuilder == null)
            {
                Init();
            }
            IContainer container = this.containerBuilder.Build();
            IDbContext db        = container.Resolve <IDbContext>();

            this.customerService         = container.Resolve <ICustomerService>();
            this.vendorService           = container.Resolve <IVendorService>();
            this.wareHouseService        = container.Resolve <IWareHouseService>();
            this.coreUserService         = container.Resolve <IcoreUserService>();
            this.ValidateCodeService     = container.Resolve <IValidateCodeService>();
            this.assTypeService          = container.Resolve <IAssTypeService>();
            this.orderCommonService      = container.Resolve <IOrderCommonService>();
            this.assTransferOrderService = container.Resolve <IAssTransferOrderService>();
            this.SettingService          = container.Resolve <ISettingService>();
            this.ConInventoryService     = container.Resolve <IConInventoryService>();
            this.AssInventoryService     = container.Resolve <IAssInventoryService>();
            this.consumablesService      = container.Resolve <IConsumablesService>();
            this.ConPurchaseOrderService = container.Resolve <IConPurchaseOrderService>();
            this.ConSalesOrderService    = container.Resolve <IConSalesOrderService>();
            this.AssPurchaseOrderService = container.Resolve <IAssPurchaseOrderService>();
            this.AssSalesOrderService    = container.Resolve <IAssSalesOrderService>();
            this.AssAnalysisService      = container.Resolve <IAssAnalysisService>();
        }
Ejemplo n.º 4
0
 public FrmOpeningStock()
 {
     _productService   = new ProductService();
     _commonservice    = new CommonService();
     _wareHouseService = new WareHouseService();
     InitializeComponent();
 }
Ejemplo n.º 5
0
 public StockService(ISupplierService supplierService,
                     IProductService productService, IWareHouseService wareHouseService, IUnitOfWork unitOfWork)
 {
     _unitOfWork       = unitOfWork;
     _supplierService  = supplierService;
     _productService   = productService;
     _wareHouseService = wareHouseService;
 }
Ejemplo n.º 6
0
 public WardService(IRepository <Ward> wardRepository, IRepository <District> districtRepository,
                    IRepository <WareHouse> wareHouseRepository, IWareHouseService wareHouseService)
 {
     _wardRepository      = wardRepository;
     _districtRepository  = districtRepository;
     _wareHouseRepository = wareHouseRepository;
     _wareHouseService    = wareHouseService;
 }
Ejemplo n.º 7
0
 public Statistical_WareHouse()
 {
     InitializeComponent();
     if (_service == null)
     {
         _service = DataFactory.getWareHouseService(modelState, Information.PersistanceStrategy);
     }
     InitData();
 }
Ejemplo n.º 8
0
 public Coupon()
 {
     if (_service == null)
     {
         _service = DataFactory.getWareHouseService(ModelState, Information.PersistanceStrategy);
     }
     InitializeComponent();
     InitData();
 }
Ejemplo n.º 9
0
 public DataStatisticsController(ICommonService commonService, IWareHouseService wareHouseService, IPermissionService permissionService
                                 , IOrderService orderService
                                 , IDeliveriesService deliveriesService)
 {
     this._commonService     = commonService;
     this._wareHouseService  = wareHouseService;
     this._permissionService = permissionService;
     this._orderService      = orderService;
     this._deliveriesService = deliveriesService;
 }
Ejemplo n.º 10
0
 public FrmFinanceDispatchOrder()
 {
     _commonService = new CommonService();
     _financeDispatchDetailService = new FinanceDispatchDetailService();
     _fineDispatchService          = new FinanceDispatchService();
     _productService       = new ProductService();
     _wareHouseService     = new WareHouseService();
     _dispatchOrderService = new DispatchOrderService();
     InitializeComponent();
 }
 public FrmFinanceDispatchOrder()
 {
     _commonService = new CommonService();
     _financeDispatchDetailService = new FinanceDispatchDetailService();
     _fineDispatchService = new FinanceDispatchService();
     _productService = new ProductService();
     _wareHouseService = new WareHouseService();
     _dispatchOrderService = new DispatchOrderService();
     InitializeComponent();
 }
Ejemplo n.º 12
0
 public ChapterController(IHostingEnvironment hostingEnvironment,
                          IChapterService chapterService,
                          IWareHouseService wareHouseService,
                          IMapper mapper,
                          ICourseService courseService)
 {
     _hostingEnvironment = hostingEnvironment;
     _chapterService     = chapterService;
     _courseService      = courseService;
     _wareHouseService   = wareHouseService;
     _mapper             = mapper;
 }
Ejemplo n.º 13
0
 public B2BOrderController(ICommonService commonService
                           , ICustomerService customerService
                           , IOrderService orderService
                           , IUserService userService
                           , IWareHouseService wareHouseService)
 {
     _commonService    = commonService;
     _customerService  = customerService;
     _orderService     = orderService;
     _userService      = userService;
     _wareHouseService = wareHouseService;
 }
Ejemplo n.º 14
0
 public ReportService(IUnitOfWork unitOfWork, ISupplierService supplierService, IWareHouseService wareHouseService, IGrnService grnService, IPurchaseOrderService purchaseOrderService, IDeliveryService deliveryService, IInvoiceService invoiceService,
                      IProductService productService)
 {
     _unitOfWork           = unitOfWork;
     _supplierService      = supplierService;
     _wareHouseService     = wareHouseService;
     _grnService           = grnService;
     _purchaseOrderService = purchaseOrderService;
     _deliveryService      = deliveryService;
     _invoiceService       = invoiceService;
     _productService       = productService;
 }
Ejemplo n.º 15
0
        public async Task Init()
        {
            var options = new DbContextOptionsBuilder <MISDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            this.dbContext = new MISDbContext(options);
            var userService    = new UserService(this.dbContext);
            var companyService = new CompanyService(this.dbContext, userService);
            var company        = await companyService.CreateAsync(CompanyName, CompanyAddress);

            this.warehouseService = new WareHouseService(this.dbContext, companyService);
        }
Ejemplo n.º 16
0
 public PurchasingController(IPermissionService permissionService, IPurchasingService purchasingService, IWareHouseService wareHouseService,
                             ICommonService commonService, IProductService productService, ILogService logService, IUserService userService, IScheduleTaskFuncService scheduleTaskFuncService, IDbAccessor omsAccessor
                             , IHostingEnvironment hostingEnvironment)
 {
     _permissionService       = permissionService;
     _purchasingService       = purchasingService;
     _wareHouseService        = wareHouseService;
     _commonService           = commonService;
     _productService          = productService;
     _logService              = logService;
     _userService             = userService;
     _scheduleTaskFuncService = scheduleTaskFuncService;
     _omsAccessor             = omsAccessor;
     _hostingEnvironment      = hostingEnvironment;
 }
 public FrmWareHouseEntry(WareHouseModel model, Form frmForm)
 {
     InitializeComponent();
     _frmForm = frmForm;
     _wareHouseService = new WareHouseService();
     if (model != null)
     {
         _isNewMode = false;
         _wareHouseId = model.WareHouseId;
         txtWareHouseName.Text = model.WareHouseName;
         cmbType.Text = model.WareHouseType;
         txtRemarks.Text = model.Description;
         btnAdd.Text = @"Update";
     }
     else
     {
         _isNewMode = true;
         btnAdd.Text = @"Save";
     }
 }
Ejemplo n.º 18
0
 public FrmWareHouseEntry(WareHouseModel model, Form frmForm)
 {
     InitializeComponent();
     _frmForm          = frmForm;
     _wareHouseService = new WareHouseService();
     if (model != null)
     {
         _isNewMode            = false;
         _wareHouseId          = model.WareHouseId;
         txtWareHouseName.Text = model.WareHouseName;
         cmbType.Text          = model.WareHouseType;
         txtRemarks.Text       = model.Description;
         btnAdd.Text           = @"Update";
     }
     else
     {
         _isNewMode  = true;
         btnAdd.Text = @"Save";
     }
 }
Ejemplo n.º 19
0
 public WareHouseController(IPermissionService permissionService, IUserContext userContext, IWareHouseService _wareHouseService)
     : base(userContext, permissionService)
 {
     this.wareHouseService = _wareHouseService;
 }
Ejemplo n.º 20
0
 public WareHouseController(IWareHouseService service) //构造注入
 {
     _service = service;
 }
Ejemplo n.º 21
0
 //Khởi tạo data nếu chưa có
 private void InitData()
 {
     ModelState = new ModelStateDictionary();
     _service   = DataFactory.getWareHouseService(ModelState, Information.PersistanceStrategy);
 }
Ejemplo n.º 22
0
 public WareHouseController(IWareHouseService WareHouseService)
 {
     this.WareHouseService = WareHouseService;
 }
Ejemplo n.º 23
0
 public StockTransferService(IUnitOfWork unitOfWork, IWareHouseService warehouseService, IStockService stockService)
 {
     _unitOfWork       = unitOfWork;
     _stockService     = stockService;
     _wareHouseService = warehouseService;
 }
 public WareHouseController(IMapper mapper, IWareHouseService warehouseService, IAccountService accountService)
 {
     _mapper           = mapper;
     _warehouseService = warehouseService;
     _accountService   = accountService;
 }
Ejemplo n.º 25
0
 public WareHouseController(IWareHouseService wareHouseService,
                            UserManager <MISUser> userManager)
 {
     this.wareHouseService = wareHouseService;
     this.userManager      = userManager;
 }
Ejemplo n.º 26
0
 public CategoryService(IWareHouseService wareHouseService, MISDbContext dbContext)
 {
     this.wareHouseService = wareHouseService;
     this.dbContext        = dbContext;
 }
Ejemplo n.º 27
0
 public GeneralHelperService(IGoodsReceivedNoteService gRNService, IWareHouseService wareHouseService, InventoryService inventoryService)
 {
     this.gRNService       = gRNService;
     this.wareHouseService = wareHouseService;
     this.inventoryService = inventoryService;
 }
 public FrmWareHouse()
 {
     _CommonService = new CommonService();
     _wareHouseService = new WareHouseService();
     InitializeComponent();
 }
 public WareHouseController(IWareHouseService wareHouseService)
 {
     _wareHouseService = wareHouseService;
 }
Ejemplo n.º 30
0
 public WareHouseController(IWareHouseService wareHouseService, IAuthenticationService authenticationService, IWareHouseService commonService, IPermissionService permissionService)
 {
     _wareHouseService       = wareHouseService;
     _authenticationsService = authenticationService;
     _permissionService      = permissionService;
 }
Ejemplo n.º 31
0
 public ShipmentController(IWareHouseService wareHouseService, IShipmentService shipmentService, IWarningService warningService)
 {
     this.wareHouseService = wareHouseService;
     this.shipmentService  = shipmentService;
     this.warningService   = warningService;
 }
 public WareHouseController(IWareHouseService wareHouseService, IGoodsService goodService)
 {
     this.wareHouseService = wareHouseService;
     this.goodService      = goodService;
 }
Ejemplo n.º 33
0
 public RightModulaWareHouseClient(string id)
 {
     m_wareHouseSrv = new RightModulaService(id, "192.168.1.22", 103);
     m_wareHouseSrv.ServiceInfoEvent += (s) => Console.WriteLine(s);
 }
 public WareHouse(IWareHouseService service)
     : this()
 {
     _service = service;
 }