public CustomerListRadForm(RadForm parent) { InitializeComponent(); this._serviceCustomerBL = new CustomerBL(); this._currentParentForm = parent; this._servicePaidAccountsBL = new PaidAccountsBL(); }
public OrderJualPresenter(IOrderJualView view) { _view = view; _orderJualBL = new OrderJualBL(); _brgBL = new BrgBL(); _customerBL = new CustomerBL(); }
public ManagerMenu(ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, IProductBL productBL, IInventoryBL inventoryBL) { _customerBL = customerBL; _locationBL = locationBL; _orderBL = orderBL; _productBL = productBL; _inventoryBL = inventoryBL; }
// DrinkMenu drinkMenu = new DrinkMenu(); public CustomerMenu(IDrinkBL drinkBL, ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, InventoryBL inventoryBL) { _customerBL = customerBL; _drinkBL = drinkBL; _locationBL = locationBL; _orderBL = orderBL; _inventoryBL = inventoryBL; }
public OrderJualPresenter(IOrderJualView view, IOrderJualBL bl, IBrgBL brgBL, ICustomerBL customerBL) { _view = view; _orderJualBL = bl; _brgBL = brgBL; _customerBL = customerBL; }
public OrderController(ICustomerBL customerBL, IMapper mapper, IOrderBL orderBL, ILocationBL locationBL, IDrinkBL drinkBL, IInventoryBL inventoryBL) { _customerBL = customerBL; _mapper = mapper; _orderBL = orderBL; _locationBL = locationBL; _drinkBL = drinkBL; _inventoryBL = inventoryBL; }
public ProductMenu(IOrderBL orderBL, ICustomerBL customerBL, IVerificationService verify, IInventoryBL inventoryBL, ILocationBL locationBL, IProductBL productBL) { _orderBL = orderBL; _customerBL = customerBL; _verify = verify; _inventoryBL = inventoryBL; _locationBL = locationBL; _productBL = productBL; }
public Menu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IItemBL itemBL, IOrderBL orderBL, IProductOrderBL productOrderBL) { _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _itemBL = itemBL; _orderBL = orderBL; _productOrderBL = productOrderBL; }
public ManagerMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryBL inventoryBL, IOrderBL orderBL, ILineItemBL lineItemBL, IValidationService validate) { _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryBL = inventoryBL; _orderBL = orderBL; _lineItemBL = lineItemBL; _validate = validate; }
public OrderMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryBL inventoryBL, IOrderBL orderBL, IValidationService validate) { _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryBL = inventoryBL; _orderBL = orderBL; _validate = validate; customer = SearchCustomer(); }
public SearchRadForm(SearchEnum search, NewInvoiceRadForm actual) { InitializeComponent(); this._seachForm = search; this._serviceCustomerBL = new CustomerBL(); this._serviceProductBL = new ProductBL(); listOfCustomer = new List <Sp_GetCustomerByParam>(); listOfProduct = new List <ProductToSearch>(); this._actualFormParent = actual; }
public InventoryLineItemController(IInventoryLineItemBL inventoryLineItemBL, IProductBL productBL, ICustomerBL customerBL, ICustomerOrderLineItemBL coliBL, ICustomerCartBL cartBL, IMapper mapper) { _inventoryLineItemBL = inventoryLineItemBL; _productBL = productBL; _customerBL = customerBL; _coliBL = coliBL; _cartBL = cartBL; _mapper = mapper; }
static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(); IUnityContainer container = new UnityContainer(); UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity"); section.Configure(container); IStatisticService sservice = container.Resolve <IStatisticService>(); ICustomerBL cbl = container.Resolve <ICustomerBL>(); Dictionary <InstallationModel, List <Statistic> > slist = sservice.getStatisticPerYear(1, DateTime.Now); /*crepo.Delete(crepo.GetById(0)); * crepo.Save(); * erepo.Delete(erepo.GetById(0)); * erepo.Save();*/ Dictionary <InstallationModel, List <InstallationState> > ilist = sservice.getInstallationState(1); foreach (var item in ilist) { Console.WriteLine("Installation: " + item.Key.installationid); foreach (var states in item.Value) { Console.WriteLine("lastvalue: " + states.lastValue); Console.WriteLine("currentTime: " + states.currentTime); Console.WriteLine("unit: " + states.unit); Console.WriteLine("description: " + states.description); } } /* foreach (var item in slist) * { * Console.WriteLine("Installation: " + item.Key.installationid); * foreach (var stats in item.Value) * { * Console.WriteLine("average: " + stats.average ); * Console.WriteLine("minvalue: " + stats.minvalue); * Console.WriteLine("maxvalue: " + stats.maxvalue); * Console.WriteLine("unit: " + stats.unit); * Console.WriteLine("description: " + stats.description); * } * }*/ Console.ReadLine(); }
public CustomerController(ICustomerBL customerBL, ICustomerCartBL cartBL, ICustomerOrderLineItemBL orderLineItemBL, ILocationBL locationBL, IProductBL productBL, ICustomerOrderHistoryBL customerOrderHistoryBL, IInventoryLineItemBL inventoryLineItemBL, IMapper mapper) { _customerBL = customerBL; _cartBL = cartBL; _orderLineItemBL = orderLineItemBL; _locationBL = locationBL; _productBL = productBL; _customerOrderHistoryBL = customerOrderHistoryBL; _inventoryLineItemBL = inventoryLineItemBL; _mapper = mapper; }
public ManagerLoginMenu(IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL) { _managerBL = managerBL; _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _menu = "\n" + "\n[0] Sign In" + "\n[1] Register as Manager" + "\n{2] Get Managers" + "\n[Back] Previous Menu" + "\n[Exit] Exit App"; }
public CustomerRadForm() { try { InitializeComponent(); this.SetSizeScreen(SizeOfScreen.WIDTH, SizeOfScreen.HEIGHT); _serviceCustomer = new CustomerBL(); } catch (Exception e) { MessageBox.Show(e.Message); return; //throw; } }
public StoreFrontMenu(IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL, ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory) { _managerBL = managerBL; _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _customerCartBL = customerCartBL; _customerOrderLineItem = customerOrderLineItem; _customerOrderHistory = customerOrderHistory; _menu = "\nWelcome to my Store App! \nAre you a customer or manager?" + "\n[0] Customer" + "\n[1] Manager" + "\n[Exit] Exit"; }
public ManagerMenu(ICustomerBL customerBL, IProductBL productBL, ILocationBL locationBL, IInventoryBL inventoryBL, IOrderBL orderBL, ICartBL cartBL, ICartProductsBL cartProductsBL, IOrderItemsBL orderItemsBL) { _customerBL = customerBL; _productBL = productBL; _locationBL = locationBL; _orderBL = orderBL; _inventoryBL = inventoryBL; _cartBL = cartBL; _cartProductsBL = cartProductsBL; _orderItemsBL = orderItemsBL; //generate menus necessary for managermenu access customerSearch = new CustSearch(_customerBL, _orderBL); productSearch = new ProductSearch(_productBL, _cartProductsBL, _inventoryBL); inventorySearch = new InventorySearch(_inventoryBL); orderSearch = new OrderSearch(_orderBL, _orderItemsBL, _productBL); }
protected void Page_Load(object sender, EventArgs e) { IUnityContainer container = new UnityContainer(); UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity"); section.Configure(container); if (Request["user"] != null) { if (Request["user"].ToString().Equals("engineer")) { int engineerid = Int32.Parse(Request["userid"]); IEngineerBL eservice = container.Resolve <IEngineerBL>(); ICustomerBL cservice = container.Resolve <ICustomerBL>(); List <CustomerModel> clist = eservice.showMyCustomers(engineerid); List <InstallationModel> ilist = new List <InstallationModel>(); foreach (var item in clist) { ilist.AddRange(cservice.getInstallations(item)); } StringBuilder str = new StringBuilder(); str.Append("<table border = '1'><tr><th>Id</th><th>Description</th></tr>"); foreach (var item in ilist) { str.Append("<tr><td>" + item.installationid + "</td><td>" + item.description + "</td><td><a href='InstallationDetail.aspx?installation=" + item.installationid + "&user=engineer&userid=" + engineerid + "'>Details</a></td></tr>"); } str.Append("</table>"); divtable.InnerHtml = str.ToString(); } else { int customerid = Int32.Parse(Request["userid"]); ICustomerBL cservice = container.Resolve <ICustomerBL>(); List <InstallationModel> ilist = cservice.getInstallations(cservice.getCustomer(customerid)); StringBuilder str = new StringBuilder(); str.Append("<table border = '1'><tr><th>Id</th><th>Description</th></tr>"); foreach (var item in ilist) { str.Append("<tr><td>" + item.installationid + "</td><td>" + item.description + "</td><td><a href='InstallationDetail.aspx?installation=" + item.installationid + "&user=engineer&userid=" + customerid + "'>Details</a></td></tr>"); } str.Append("</table>"); divtable.InnerHtml = str.ToString(); } } }
public CustomerLoginMenu(ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL, ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory) { _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _customerCartBL = customerCartBL; _customerOrderLineItem = customerOrderLineItem; _customerOrderHistory = customerOrderHistory; _menu = "\n" + "\n[0] Sign In" + "\n[1] Register as Customer" + "\n{2] Get Customers" + "\n[Back] Previous Menu" + "\n[Exit] Exit App"; }
public void InitComponentAndData() { try { _serviceProvince = new ProvinceBL(); _serviceMunicipality = new MunicipalityBL(); _serviceCustomer = new CustomerBL(); InitializeComponent(); ProvinceIDComboBox.DataSource = _serviceProvince.GetAllProvinces(); ProvinceIDComboBox.DisplayMember = "Name"; ProvinceIDComboBox.ValueMember = "ProvinceID"; MunicipalityIDComboBox.Enabled = false; } catch (Exception) { throw; } }
public PenjualanForm() { InitializeComponent(); _penjualanBL = new PenjualanBL(); _brgBL = new BrgBL(); _stokBL = new StokBL(); _customerBL = new CustomerBL(); _brgPriceBL = new BrgPriceBL(); _penjualanBayarDal = new PenjualanBayarDal(); _bpKasBL = new BPKasBL(); _jenisBayarBL = new JenisBayarBL(); _bpHutangBL = new BPHutangBL(); _depositBL = new DepositBL(); _bpStokBL = new BPStokBL(); _brgStokHargaBL = new BrgStokHargaBL(); _bpPiutangBL = new BPPiutangBL(); }
public CustomerLocationMenu(Customer user, ICustomerBL customerBL, Location location, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL, ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItemBL, ICustomerOrderHistoryBL customerOrderHistory) { _locationBL = locationBL; _location = location; _user = user; _customerBL = customerBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _customerCartBL = customerCartBL; _customerOrderLineItemBL = customerOrderLineItemBL; _customerOrderHistory = customerOrderHistory; GetCart(); _menu = "\n" + "\n[View] View Cart and finalize purchase" + "\n[Back] Previous Menu" + "\n[Exit] Exit App"; }
public ManagerMenu(Manager manager, IManagerBL managerBL, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL) { _user = manager; _managerBL = managerBL; _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _menu = "\n" + "\n[0] Find Customer" + "\n[1] View Customers" + "\n[2] View Locations" + "\n[3] Add Locations" + "\n[4] View Products" + "\n[5] Add Product" + "\n[6] Choose Location" + "\n[Back] Previous Menu" + "\n[Exit] Exit App"; }
public CustomerMenu(Customer user, ICustomerBL customerBL, ILocationBL locationBL, IProductBL productBL, IInventoryLineItemBL inventoryLineItemsBL, ICustomerCartBL customerCartBL, ICustomerOrderLineItemBL customerOrderLineItem, ICustomerOrderHistoryBL customerOrderHistory) { _user = user; _customerBL = customerBL; _locationBL = locationBL; _productBL = productBL; _inventoryLineItemsBL = inventoryLineItemsBL; _customerCartBL = customerCartBL; _customerOrderLineItem = customerOrderLineItem; _customerOrderHistory = customerOrderHistory; _menu = $"Account Info--\n\tName:\t\t{_user.CustomerName}\n\tEmail:\t\t{_user.CustomerEmail}\n\tPhone:\t\t{_user.CustomerPhone}\n\tAddress:\t{_user.CustomerAddress}" + "\n" + "\n[1] View My Cart and Finalize Purchase" + "\n[2] View My Order History" + "\n[3] Choose Location and Shop" + "\n[Back] Previous Menu" + "\n[Exit] Exit App"; }
protected void btnlogin_Click(object sender, EventArgs e) { IUnityContainer container = new UnityContainer(); UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity"); section.Configure(container); IEngineerBL eservice = container.Resolve <IEngineerBL>(); ICustomerBL cservice = container.Resolve <ICustomerBL>(); if (eservice.validateEngineer(txtbenutzername.Value, txtpasswort.Value) >= 0) { Response.Redirect("~/InstallationList.aspx?user=engineer&userid=" + eservice.validateEngineer(txtbenutzername.Value, txtpasswort.Value)); } else if (cservice.validateCustomer(txtbenutzername.Value, txtpasswort.Value) >= 0) { Response.Redirect("~/InstallationList.aspx?user=customer&userid=" + cservice.validateCustomer(txtbenutzername.Value, txtpasswort.Value)); } else { loginresponse.InnerText += "Falscher Benutzername bzw. Passwort"; } }
public MainMenu(ICustomerBL customerBL, ILocationBL locationBL, IOrderBL orderBL, IProductBL productBL, IInventoryBL inventoryBL) { customerMenu = new CustomerMenu(customerBL, locationBL, orderBL, productBL, inventoryBL); _customerBL = customerBL; managerMenu = new ManagerMenu(customerBL, locationBL, orderBL, productBL, inventoryBL); }
public CustomersController(ICustomerBL customerBL) { _customerBL = customerBL; }
// IConfiguration configuration; public CustomerDetailsController(ICustomerBL customerBL) { this.customerBL = customerBL; // this.configuration = configuration; }
public CustSearch(ICustomerBL customerBL, IOrderBL orderBL) { _customerBL = customerBL; _orderBL = orderBL; }