public Graph(System.Windows.Forms.CheckedListBox.CheckedItemCollection data, DateTime minDate, DateTime maxDate, ISaleService iSaleService, int mode, IReportService iReportService, ITimeSettingService iTimeSettingService, IProgramService iProgramService) { InitializeComponent(); fillColor(colorList); _data = data; _minDate = minDate; _maxDate = maxDate; _iSaleService = iSaleService; _iReportService = iReportService; _iTimeSettingService = iTimeSettingService; _iProgramService = iProgramService; this.chart1.ChartAreas[0].AxisX.MajorGrid.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; chart1.ChartAreas.Add("area"); chart1.ChartAreas[0].AxisX.LabelStyle.Format = "dd-MM"; chart1.ChartAreas["area"].AxisX.Interval = 1; chart1.ChartAreas["area"].AxisX.IntervalType = DateTimeIntervalType.Days; chart1.ChartAreas["area"].AxisX.IntervalOffset = 1; chart1.ChartAreas["area"].AxisX.Minimum = minDate.ToOADate(); chart1.ChartAreas["area"].AxisX.Maximum = maxDate.ToOADate(); if (mode == 1) { drawQuantity(); label1.Text = "Quantity"; } else { drawEfficiency(); label1.Text = "Efficiency"; } }
public LeadController( ILeadService LeadService, IContactService contactService, IMembershipService membershipService, IRoleService roleService, INoteService noteService, IActivityService activityService, ISaleService saleService, ITaskService taskService, ViewDataHelper viewdataHelper, ICampaignService campaignService, ITagService tagService) { _leadService = LeadService; _contactService = contactService; _membershipService = membershipService; _roleService = roleService; _noteService = noteService; _activityService = activityService; _saleService = saleService; _taskService = taskService; _viewdataHelper = viewdataHelper; _campaignService = campaignService; _tagService = tagService; }
public SalesController( ISaleService saleService, ICustomerService customerService, IServiceTypeRepository serviceTypeRepository) { this.saleService = saleService; this.customerService = customerService; this.serviceTypeRepository = serviceTypeRepository; }
public SaleController(ISaleService saleService, IQueryableRepository <Sale> queryableRepository, IQueryableRepository <vwRP_StockCount> totalRowsRepository, IUserService userService, IProductService productService, IQueryableRepository <Product> productQueryableRepository, IQueryableRepository <User> userQueryableRepository, IScoreService scoreService) { _saleService = saleService; _queryableRepository = queryableRepository; _totalRowsRepository = totalRowsRepository; _userService = userService; _productService = productService; _productQueryableRepository = productQueryableRepository; _userQueryableRepository = userQueryableRepository; _scoreService = scoreService; }
public frmPointofSale(ISaleService saleService, IProductService productService, ISaleProductService saleProductService, ICustomerService customerService) { InitializeComponent(); _saleService = saleService; _productService = productService; _transactionProductService = saleProductService; _customerService = customerService; gridList.CellValueChanged += GridList_CellValueChanged; txtCustomerName.GotFocus += TxtCustomerName_GotFocus; }
//decimal _descountInPercentage = 0; //decimal _discountAmount = 0; //decimal _vatInPercentage = 0; //decimal _vatAmount = 0; //decimal _serviceCharge = 0; //decimal _netAmount = 0; #endregion #region Constructor public SaleForm() { InitializeComponent(); IKernel kernel = BootStrapper.Initialize(); _saleService = kernel.GetService(typeof(SaleService)) as SaleService; _saleDetailService = kernel.GetService(typeof(SaleDetailService)) as SaleDetailService; _sale = new SaleModel(); _saleDetail = new SaleDetailModel(); _saleDetailList = new List <SaleDetailModel>(); }
public MobileShopSaleController( ISaleService saleService, ICompanyService companyService, IBranchService branchService, IRawSqlService rawSqlService ) { _saleService = saleService; _companyService = companyService; _branchService = branchService; _rawSqlService = rawSqlService; }
public ShoppingController( IDistributedLockFactory lockFactory, IProductService service, IOrderService orderService, ISaleService saleService) { _lockFactory = lockFactory; _productService = service; _orderService = orderService; _saleService = saleService; _redisDb = ConnectionMultiplexer.Connect("127.0.0.1:6379").GetDatabase(1); }
public SalesApplication( IUserService userService, IProductService productService, ICarrierService carrierService, ISaleService saleService) { this.userService = userService; this.productService = productService; this.carrierService = carrierService; this.saleService = saleService; random = new Random(); }
public AbstractSaleController( ApiSettings settings, ILogger <AbstractSaleController> logger, ITransactionCoordinator transactionCoordinator, ISaleService saleService, IApiSaleModelMapper saleModelMapper ) : base(settings, logger, transactionCoordinator) { this.SaleService = saleService; this.SaleModelMapper = saleModelMapper; }
private void Init() { _customer = new CustomerService(); _sale = new SaleService(); _saleDetail = new SaleDetailService(); _product = new ProductService(); _paymentMode = new PaymentModeService(); _tax = new TaxService(); _logger = new ErrorLogService(); company = new GenericService <Company>().GetAll().FirstOrDefault(); }
public CustomerController ( ILoginService loginService, ICustomerService customerService, IUserService userService, ISaleService saleService ) { _loginService = loginService; _customerService = customerService; _userService = userService; _saleService = saleService; }
public CreateSaleDTOValidator(ISaleService saleService) { _saleService = saleService; RuleFor(x => x.CPF).NotNull().WithMessage("CPF é obrigratório") .Must(ValidateCPF).WithMessage("Cpf inválido") .MaximumLength(11); RuleFor(x => x.Code).NotNull().MaximumLength(20) .Must(ValidateCode).WithMessage("Código já cadastrado"); RuleFor(x => x.Value).GreaterThan(0); }
public SuperShopSaleController( ISaleService saleService, ICompanyService companyService, IBranchService branchService, IRawSqlService rawSqlService, ICustomerService customerService ) { _saleService = saleService; _companyService = companyService; _branchService = branchService; _rawSqlService = rawSqlService; _customerService = customerService; }
public SaleWindow(ISaleService saleService, IOptions <AppSettings> settings, IMapper mapper, IBasketOwnService basketOwnService, IBasketService basketService, IGoodsInMarketService goodsInMarketService, IGoodsInMarketOwnService goodsInMarketOwnService) { _saleService = saleService; _settings = settings.Value; _mapper = mapper; _basketOwnService = basketOwnService; _basketService = basketService; _goodsInMarketService = goodsInMarketService; _goodsInMarketOwnService = goodsInMarketOwnService; InitializeComponent(); }
public SalesController (ISaleService saleService, IProductService productService, ICountryService countryService, IPaymentMethodService paymentMethodService, ICartService cartService, IUserService userService, IMapper mapper, SessionService sessionService) { this.saleService = saleService; this.productService = productService; this.countryService = countryService; this.paymentMethodService = paymentMethodService; this.cartService = cartService; this.userService = userService; this.mapper = mapper; this.sessionService = sessionService; }
public SalePage(ISaleService saleService, IClientService clientService, IEmployeeService employeeService, IOptions <AppSettings> settings, IMapper mapper, SimpleNavigationService navigationService, IMarketService marketService) { _saleService = saleService; _clientService = clientService; _employeeService = employeeService; _settings = settings.Value; _mapper = mapper; _navigationService = navigationService; _marketService = marketService; InitializeComponent(); }
public SaleController( ISaleService service, ISaleDetailsService salesDetailsService, IProductService productService, IPurchaseService purchaseService, ICompanyService companyService ) { _service = service; _salesDetailsService = salesDetailsService; _productService = productService; _purchaseService = purchaseService; _companyService = companyService; }
public SalesViewModel( IConfigHelper config, IMapper mapper, IProductService productService, ISaleService saleService, StatusInfoViewModel status, IWindowManager window) { _config = config; _productService = productService; _saleService = saleService; _mapper = mapper; _status = status; _window = window; }
public Facade(string configFilePath = "../../../config.json") { string json; using (var reader = new StreamReader(configFilePath)) { json = reader.ReadToEnd(); } _saleUnitOfWork = new SaleUnitOfWork(new SalesInfoContext(), new ReaderWriterLockSlim()); _mapper = Classes.AutoMapper.AutoMapper.CreateConfiguration().CreateMapper(); _saleService = new SaleService(); _config = new DirectoryWatcherConfig(JsonConvert.DeserializeObject <Dictionary <string, string> >(json)); _facade = new DirectoryWatcher.Facade(_config); _facade.FileProcessedEvent += FileProcessed; }
public SaleController( ApiSettings settings, ILogger <SaleController> logger, ITransactionCoordinator transactionCoordinator, ISaleService saleService, IApiSaleServerModelMapper saleModelMapper ) : base(settings, logger, transactionCoordinator) { this.SaleService = saleService; this.SaleModelMapper = saleModelMapper; this.BulkInsertLimit = 250; this.MaxLimit = 1000; this.DefaultLimit = 250; }
public SupportService(ISupportRepository supportRepository, ICustomerRepository customerRepository, IEmployeeRepository employeeRepository, IUnitOfWork uow, ISupportStatusRepository supportRelationRepository, ISupportExpertDispatchRepository supportExpertDispatchRepository , ISaleService saleService, IEmployeeService employeeService ) { _supportRepository = supportRepository; _customerRepository = customerRepository; _employeeRepository = employeeRepository; _supportStatusRepository = supportRelationRepository; _supportExpertDispatchRepository = supportExpertDispatchRepository; _employeeService = employeeService; _saleService = saleService; _uow = uow; }
public async Task Cannot_Get_Sale_That_Does_Not_Exist() { // ARRANGE // Service provider/scope using IServiceScope scope = this.Fixture.Services.CreateScope(); IServiceProvider services = scope.ServiceProvider; // Services ISaleService saleService = services.GetRequiredService <ISaleService>(); // ACT Func <Task> task = async() => await saleService.GetSaleAsync(Guid.NewGuid().ToString("N", null)).ConfigureAwait(false); // ASSERT await Assert.ThrowsAsync <SaleExceptions.NotFound>(task); }
public SaleStatisticService(IBaseObjectService <Category> categoryService, ISalesAmountService saleAmountService, ITurnOverService turnOverService, IMarginService marginService, ISaleInfoService saleInfoService, ISaleService saleService, IBaseObjectService <InfoMoney> infoMoneyService) { _categoryService = categoryService; _saleAmountService = saleAmountService; _turnOverService = turnOverService; _marginService = marginService; _saleInfoService = saleInfoService; _saleService = saleService; _infoMoneyService = infoMoneyService; }
public GeneralLibraryLogic() { SQLiteCreation.InitializeDatabase(); _userRep = new UserRepository(); _saleRep = new SaleRepository(); _saleService = new SaleService(_saleRep); _genreRep = new GenreRepository(); _generalRep = new GeneralRepository(_genreRep); _bookRep = new BookRepository(_genreRep); _journalRep = new JournalRepository(_genreRep); _userValidity = new UserValidity(_userRep, _generalRep); _bookService = new BookService(_bookRep, _genreRep, _saleService); _journalService = new JournalService(_journalRep, _genreRep, _saleService); _genereService = new GenreService(_genreRep, _generalRep); _libraryQueries = new LibraryQueries(_bookRep, _journalRep); }
public GeneralLibraryLogic(IUserRepository userRep, IGenreRepository genreRep, IGeneralRepository generalRep, IBookRepository bookRep, IJournalRepository journalRep, ISaleRepository saleRep) { _generalRep = generalRep; _userRep = userRep; _generalRep = generalRep; _genreRep = genreRep; _bookRep = bookRep; _journalRep = journalRep; _saleRep = saleRep; _saleService = new SaleService(_saleRep); _userValidity = new UserValidity(_userRep, _generalRep); _bookService = new BookService(_bookRep, _genreRep, _saleService); _journalService = new JournalService(_journalRep, _genreRep, _saleService); _genereService = new GenreService(_genreRep, _generalRep); _libraryQueries = new LibraryQueries(_bookRep, _journalRep); }
public HomeController(ICommentService _commentService, IContactService _contactService, ISaleService _saleService, IApplicationUserManager _userManager, IPackageService _packageService, ILabelService _labelService, IProductService _productService) { this._commentService = _commentService; this._contactService = _contactService; this._userManager = _userManager; this._saleService = _saleService; this._packageService = _packageService; this._labelService = _labelService; this._productService = _productService; }
public AdminController(ICategoryService categoryService, IAdminService adminService, IUserService userService, IProductService productService, ICupponService cuppon, IOffertService offertService, ISaleService saleService) { _categoryService = categoryService; _service = adminService; _userService = userService; _productService = productService; _offertService = offertService; _cupponService = cuppon; _saleService = saleService; }
public SaleController(ISaleService saleService, IMapper mapper, IUserService userService, IExceptionService exceptionService, IHostingEnvironment environment, IAttachmentTypeService attachmentTypeService, IAttachmentService attachmentService, IMemoryCache memorycache) : base(userService, exceptionService, environment, attachmentTypeService, attachmentService, memorycache) { _saleService = saleService; _mapper = mapper; }
public ManagerController(IBaseObjectService <Partner> partnerService, IBaseObjectService <User> userService, ISaleService saleService, IInfoMoneyService infoMoneyService, IProductService productService, IBaseObjectService <Booking> bookingService, IShopService shopService, IBaseObjectService <BookingProduct> bookingProductService, IBaseObjectService <Category> categoryService, IBaseObjectService <SupplyProduct> supplyProduct, IBaseObjectService <SaleProduct> saleProductService, IBaseObjectService <SaleInformation> saleInformationService, IBaseObjectService <ExpenseCategory> expenseCategoryService, IBaseObjectService <Expense> expenseService, IBaseObjectService <ProductInformation> productInformation, ShopContext db, IProductOperationService productOperationService, IMoneyOperationService moneyOperationService, IMoneyStatisticService moneyStatisticService, IBookingProductInformationService bookingProductInformationService, ISaleInfoService saleInfoService, PostgresContext postgresContext) { _partnerService = partnerService; _userService = userService; _saleService = saleService; _infoMoneyService = infoMoneyService; _productService = productService; _bookingService = bookingService; _shopService = shopService; _bookingProductService = bookingProductService; _categoryService = categoryService; _supplyProduct = supplyProduct; _saleProductService = saleProductService; _saleInformationService = saleInformationService; _expenseCategoryService = expenseCategoryService; _expenseService = expenseService; _productInformation = productInformation; _productOperationService = productOperationService; _db = db; _moneyOperationService = moneyOperationService; _moneyStatisticService = moneyStatisticService; _bookingProductInformationService = bookingProductInformationService; _saleInfoService = saleInfoService; _postgresContext = postgresContext; }
public UserHomeController(ISaleService saleService, IProductService productService, ICustomerService customerService, IUserService userService, IGiftService giftService, IBuyService buyService, ICampaignService campaignService, IQueryableRepository <Sale> saleQueryableRepository, IQueryableRepository <Product> productQueryableRepository, IQueryableRepository <Customer> customerQueryableRepository, IQueryableRepository <Gift> giftQueryableRepository, IQueryableRepository <Buy> buyQueryableRepository, IQueryableRepository <User> userQueryableRepository, IQueryableRepository <Campaign> campaignQueryableRepository, IQueryableRepository <Score> scroreQueryableRepository) { _saleService = saleService; _productService = productService; _customerService = customerService; _userService = userService; _giftService = giftService; _buyService = buyService; _campaignService = campaignService; _productQueryableRepository = productQueryableRepository; _customerQueryableRepository = customerQueryableRepository; _giftQueryableRepository = giftQueryableRepository; _buyQueryableRepository = buyQueryableRepository; _userQueryableRepository = userQueryableRepository; _campaignQueryableRepository = campaignQueryableRepository; _scroreQueryableRepository = scroreQueryableRepository; _saleQueryableRepository = saleQueryableRepository; }
public ManageController(IApplicationUserManager userManager, IApplicationRoleManager roleManager, ICityService cityService, IProvinceService provinceService, IUnitOfWork unitOfWork, ICommentService commentService, ISaleService saleService, IAuthenticationManager authenticationManager) { this._userManager = userManager; this._roleManager = roleManager; this._cityService = cityService; this._provinceService = provinceService; this._unitOfWork = unitOfWork; this._commentService = commentService; this._saleService = saleService; this._authenticationManager = authenticationManager; }
public HomeController( ILeadService leadService, ITaskService taskService, IContactService contactService, IMembershipService membershipService, IRoleService roleService, IActivityService activityService, ISaleService saleService, ViewDataHelper initHelper) { _leadService = leadService; _taskService = taskService; _contactService = contactService; _membershipService = membershipService; _roleService = roleService; _activityService = activityService; _saleService = saleService; _initHelper = initHelper; }
public InvoiceController( ILeadService LeadService, IContactService contactService, IMembershipService membershipService, IRoleService roleService, INoteService noteService, IActivityService activityService, IInvoiceService invoiceService, ISaleService saleService, ViewDataHelper initHelper) { _leadService = LeadService; _contactService = contactService; _membershipService = membershipService; _roleService = roleService; _noteService = noteService; _activityService = activityService; _saleService = saleService; _invoiceService = invoiceService; _initHelper = initHelper; }
public SaleController( ILeadService LeadService, IContactService contactService, IMembershipService membershipService, IRoleService roleService, INoteService noteService, IActivityService activityService, ISaleService saleService, ViewDataHelper initHelper, ITagService tagService) { _leadService = LeadService; _contactService = contactService; _membershipService = membershipService; _roleService = roleService; _noteService = noteService; _activityService = activityService; _saleService = saleService; _initHelper = initHelper; _tagService = tagService; }
public SyncService() { saleRepository = new JSONSaleRepository(); saleService = new SaleService(); }
public SaleController(ISaleService iSaleService) { _iSaleService = iSaleService; }
public Form1(IProgramService iProgramService, IScheduleService iScheduleService, ISaleService iSaleService, IReportService iReportService, ILevelService iLevelService, ITimeSettingService iTimeSettingService) { InitializeComponent(); _iProgramService = iProgramService; _iScheduleService = iScheduleService; _iSaleService = iSaleService; _iReportService = iReportService; _iLevelService = iLevelService; _iTimeSettingService = iTimeSettingService; dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker2.Format = DateTimePickerFormat.Custom; dateTimePicker3.Format = DateTimePickerFormat.Custom; dateTimePicker4.Format = DateTimePickerFormat.Custom; dateTimePicker6.Format = DateTimePickerFormat.Custom; dateTimePicker7.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "dd-MM-yyyy"; dateTimePicker1.CustomFormat = "dd-MM-yyyy"; dateTimePicker2.CustomFormat = "dd-MM-yyyy"; dateTimePicker3.CustomFormat = "dd-MM-yyyy"; dateTimePicker4.CustomFormat = "dd-MM-yyyy"; dateTimePicker6.CustomFormat = "dd-MM-yyyy"; dateTimePicker7.CustomFormat = "dd-MM-yyyy"; dateTimePicker5.Format = DateTimePickerFormat.Time; dateTimePicker5.ShowUpDown = true; var all = _iProgramService.GetAll().ToList(); start = DateTime.Today; end = DateTime.Today; reportStart = DateTime.Today; reportEnd = DateTime.Today; culture = new System.Globalization.CultureInfo("fr-FR", true); var levelList = _iLevelService.GetAll().ToList(); var a = levelList.Where(x => x.Name == "A").OrderByDescending(x=>x.UpdateDate).FirstOrDefault(); if (a != null && a.Begin.HasValue) { textBox4.Text = a.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); textBox7.Text = a.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); var b = levelList.Where(x => x.Name == "B").OrderByDescending(x => x.UpdateDate).FirstOrDefault(); textBox5.Text = b.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); textBox8.Text = b.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); var c = levelList.Where(x => x.Name == "C").OrderByDescending(x => x.UpdateDate).FirstOrDefault(); textBox6.Text = c.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); textBox9.Text = c.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US")); } var timesetting = _iTimeSettingService.GetAll().OrderByDescending(x=>x.UpdateDate).FirstOrDefault(); if (timesetting != null) { dateTimePicker5.Value = timesetting.time; } else { dateTimePicker5.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 6, 0, 0); } changeTimeGraph(); ComboboxItem item1 = new ComboboxItem(); item1.Text = "Quantity"; item1.Value = 1; ComboboxItem item2 = new ComboboxItem(); item2.Text = "Efficiency"; item2.Value = 2; comboBox1.Items.Add(item1); comboBox1.Items.Add(item2); comboBox1.SelectedIndex = 0; mode = 1; }