public ShopController(ILogger <ShopController> logger, IUnitOfWork unitofwork, ISearchSortService service)
 {
     _logger     = logger;
     _unitofwork = unitofwork;
     _service    = service;
     items       = _unitofwork.ItemRepos.GetAllNotCombo();
     combos      = _unitofwork.ItemRepos.GetAllCombo();
 }
Example #2
0
 public HomeController(IUnitOfWork unitOfWork, ILogger <HomeController> logger, IWebHostEnvironment webHostEnvironment,
                       ISearchSortService service)
 {
     _unitOfWork         = unitOfWork;
     _logger             = logger;
     _webHostEnvironment = webHostEnvironment;
     _service            = service;
 }
Example #3
0
 public LogController(IUnitOfWork unitOfWork, ILogger <HomeController> logger, ISearchSortService service)
 {
     _unitOfWork = unitOfWork;
     _logger     = logger;
     _service    = service;
     userIds     = new SelectList(_unitOfWork.Users.GetListId());
     taskIds     = new SelectList(_unitOfWork.ToDoTasks.GetListId());
     userNames   = new SelectList(_unitOfWork.Users.GetListName());
 }
        public OrderPnl(IUnitOfWork unitOfWork, ISearchSortService searchSortService, IOrderService orderService)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;

            _unitOfWork        = unitOfWork;
            _searchSortService = searchSortService;
            _orderService      = orderService;
            _statuses          = ListEnum.GetListOrderStatus(true);
            LoadComboStatus();
            LoadOrderData();
            LoadGridOrder();

            this.dateEnd.MinDate = dateStart.Value.Date;
        }
Example #5
0
        public MainForm(IUnitOfWork unitOfWork, ISearchSortService searchSortService, IAnalyzeService analyzeService, IOrderService orderService)
        {
            InitializeComponent();

            _unitOfWork        = unitOfWork;
            _searchSortService = searchSortService;
            _orderService      = orderService;
            _analyzeService    = analyzeService;

            pnItem = new ItemPnl(_unitOfWork, _searchSortService);
            tabItem.Controls.Add(pnItem);

            pnOrder = new OrderPnl(_unitOfWork, _searchSortService, _orderService);
            tabOrder.Controls.Add(pnOrder);

            pnAnalyze = new AnalyzePnl(_unitOfWork, _searchSortService, _analyzeService);
            tabAnalyze.Controls.Add(pnAnalyze);
        }
Example #6
0
        public ItemPnl(IUnitOfWork unitOfWork, ISearchSortService searchSortService)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;

            _unitOfWork        = unitOfWork;
            _searchSortService = searchSortService;
            _types             = ListEnum.GetListItemType();
            LoadCheckBoxType();
            LoadItemData();
            LoadGridItem();


            this.numberFrom.Minimum = 0;
            this.numberTo.Minimum   = 0;
            this.numberFrom.Maximum = decimal.MaxValue;
            this.numberTo.Maximum   = Decimal.MaxValue;
            this.numberTo.Value     = 100000000;
        }
        public AnalyzePnl(IUnitOfWork unitOfWork, ISearchSortService searchSortService, IAnalyzeService analyzeService)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;

            _unitOfWork        = unitOfWork;
            _searchSortService = searchSortService;
            _analyzeService    = analyzeService;
            _logs = _analyzeService.Logs();
            LoadCheckBoxType();
            LoadItemData();
            LoadGridItem();

            this.numberFrom.Minimum = 0;
            this.numberTo.Minimum   = 0;
            this.numberFrom.Maximum = decimal.MaxValue;
            this.numberTo.Maximum   = Decimal.MaxValue;
            this.numberTo.Value     = 100000000;

            this.dateEnd.MinDate = this.dateStart.Value.Date;
        }