public SalesController(IItemService itemService, IPartyService partyService, ISaleService saleService, ITaxService taxService, ISaleDetailService saleDetailService) { _itemService = itemService; _partyService = partyService; _saleService = saleService; _taxService = taxService; _saleDetailService = saleDetailService; }
private void Init() { _customer = new CustomerService(); _sale = new SaleService(); _saleDetail = new SaleDetailService(); _product = new ProductService(); _paymentMode = new PaymentModeService(); _tax = new TaxService(); _logger = new ErrorLogService(); }
private void Init() { _customer = new CustomerService(); _sale = new SaleService(); _saleDetail = new SaleDetailService(); _product = new ProductService(); _paymentMode = new PaymentModeService(); _tax = new TaxService(); _company = new GenericService <Company>().GetAll().FirstOrDefault(); _logger = new ErrorLogService(); }
//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 DashboardController(ISaleHeaderService SaleHeaderService, ICustomerService customerService, IProductService productService, ISaleDetailService saleDetailService, IUnitOfWorkAsync unitOfWork) { _SaleHeaderService = SaleHeaderService; _SaleDetailService = saleDetailService; _unitOfWork = unitOfWork; _CustomerService = customerService; _ProductService = productService; }
private void Init() { _customer = new CustomerService(); _sale = new SaleService(); _saleDetail = new SaleDetailService(); _product = new ProductService(); _paymentMode = new PaymentModeService(); _tax = new TaxService(); company = new GenericService <Company>().GetAll().FirstOrDefault(); _logger = new ErrorLogService(); SuscribeToEvent(); btnAddRow.Enabled = false; btnRemoveRow.Enabled = false; btnDone.Enabled = false; btnCancel.Enabled = false; btnSave.Enabled = false; }
public Sale_DetailsController(ISaleDetailService saleDetailService, IMapper mapper) { _mapper = mapper; _saleDetailService = saleDetailService; }