public ProductSliderPane(InventoryView inventory, Panel panel, MasterController masterController) : base(masterController, panel, DOCKSTYLE_TYPE) { InitializeComponent(); this.inventoryView = inventory; this.dbController = masterController.DataBaseController; }
public LoginControl(LoginPane loginPane, MasterController masterController, Panel panel) : base(masterController, panel, true) { InitializeComponent(); this.loginPane = loginPane; base.masterController.EmployeeLogout += masterController_EmployeeLogout; }
public UserAdministration(MasterController masterController, int index) : base(masterController) { InitializeComponent(); changedTab(index); dbController = masterController.DataBaseController; }
public StaffMenuList(MasterController masterController, MenuBar menuBar):base(masterController) { menuControls = new List<MenuControl> { new MenuControl(new CustomerInformationView(masterController), menuBar), new MenuControl(new OrdersView(masterController), menuBar), }; }
public Orders(MasterController masterController) : base(masterController) { InitializeComponent(); this.dbController = masterController.DataBaseController; initTable(); }
public UserSettingsControl(Panel panel, MasterController masterController) : base(masterController, panel, false) { InitializeComponent(); this.masterController.setUserSettingsControl = this; masterController.EmployeeLogin += masterController_EmployeeLogin; TabStop = false; }
public UserSettingsControl(Panel panel, MasterController masterController):base(masterController, panel, false) { InitializeComponent(); this.masterController.setUserSettingsControl = this; masterController.EmployeeLogin += masterController_EmployeeLogin; TabStop = false; }
public StaffMenuList(MasterController masterController, MenuBar menuBar) : base(masterController) { menuControls = new List <MenuControl> { new MenuControl(new CustomerInformationView(masterController), menuBar), new MenuControl(new OrdersView(masterController), menuBar), }; }
public frmMain() { InitializeComponent(); // Initialize the panels masterController = new MasterController(this, mainPanel); titleBar = new Titlebar(panelHeader, masterController); menuBar = new MenuBar(panelSidebar, masterController); userSettingsControl = new UserSettingsControl(userControlPanel, masterController); loginPane = new LoginPane(masterController); back1.accessMasterController = masterController; // EventHandler hooking masterController.EmployeeLogin += masterController_EmployeeLogin; masterController.EmployeeLogout += masterController_EmployeeLogout; masterController.ContentChanged += new EventHandler <ContentArgs>(masterController_ContentChange); // Initialize DatabaseController try { BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += worker_DoWork; worker.RunWorkerAsync(); } catch (InvalidOperationException iex) { ErrorLog.Log(iex); } catch (Exception ex) { ErrorLog.Log(ex); } displayOnSmall(); }
public CustomerInformationView(MasterController masterController) : base(masterController) { InitializeComponent(); dbController = masterController.DataBaseController; orderSliderPane1.accessMasterController = masterController; existingClientTable = new DataTable(); }
public frmMain() { InitializeComponent(); // Initialize the panels masterController = new MasterController(this, mainPanel); titleBar = new Titlebar(panelHeader, masterController); menuBar = new MenuBar(panelSidebar, masterController); userSettingsControl = new UserSettingsControl(userControlPanel, masterController); loginPane = new LoginPane(masterController); // EventHandler hooking masterController.EmployeeLogin += masterController_EmployeeLogin; masterController.EmployeeLogout += masterController_EmployeeLogout; masterController.ContentChange += new EventHandler<ContentArgs>(masterController_ContentChange); // Initialize DatabaseController try { BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += worker_DoWork; worker.RunWorkerAsync(); } catch (InvalidOperationException iex) { ErrorLog.Log(iex); } catch (Exception ex) { ErrorLog.Log(ex); } displayOnSmall(); }
public SliderPane(MasterController masterController, Panel panel, DockStyle dockStyle) : base(masterController, panel, dockStyle) { InitializeComponent(); width = min_width; StateChange += SliderPane_StateChange; }
public Home(MasterController masterController) : base(masterController) { InitializeComponent(); this.dbController = masterController.DataBaseController; critical = new DataGridViewCellStyle() { BackColor = rectangleShape1.BackColor, SelectionBackColor = rectangleShape1.BackColor, }; warning = new DataGridViewCellStyle() { BackColor = rectangleShape2.BackColor, SelectionBackColor = rectangleShape2.BackColor, }; normal = new DataGridViewCellStyle() { Font = new Font("Times New Roman", 14, FontStyle.Regular), SelectionBackColor = Color.White, SelectionForeColor = Color.Black, }; cellHeader = new DataGridViewCellStyle() { Font = new Font("Times New Roman", 14, FontStyle.Regular), WrapMode = DataGridViewTriState.True, }; }
public MyUserControl(MasterController masterController, Panel panel, DockStyle dockStyle) { InitializeComponent(); this.container = panel; this.masterController = masterController; appear(dockStyle); }
public MenuBar(Panel panel, MasterController masterController) : base(masterController, panel, true) { InitializeComponent(); this.masterController.setMenuBar = this; masterController.EmployeeLogin += masterController_EmployeeLogin; masterController.EmployeeLogout += masterController_EmployeeLogout; }
public ServiceScrollPane(InventoryView inventoryView, Panel panel, MasterController masterController) : base(masterController, panel, DockStyle.Bottom) { InitializeComponent(); this.dbController = masterController.DataBaseController; this.inventoryView = inventoryView; base.maxHeight = 215; }
public AddServices(MasterController masterController, Panel panel) : base(masterController, panel, false) { InitializeComponent(); dbController = masterController.DataBaseController; initLayoutPanel(); activate(false); }
public AdminMenuList(MasterController masterController, MenuBar menuBar) : base(masterController) { menuControls = new List <MenuControl> { new MenuControl(new Home(masterController), menuBar), //ew MenuControl(new InventoryView(masterController), menuBar), new MenuControl(new Sales(masterController), menuBar), new MenuControl(new UserAdministration(masterController), menuBar), }; }
public AdminMenuList(MasterController masterController, MenuBar menuBar):base(masterController) { menuControls = new List<MenuControl> { new MenuControl(new Home(masterController), menuBar), new MenuControl(new Sales(masterController), menuBar), new MenuControl(new UserAdministration(masterController), menuBar), new MenuControl(new InventoryView(masterController), menuBar), new MenuControl(new CustomerInformationView(masterController), menuBar), }; }
public MyUserControl(MasterController masterController, Panel panel, bool isVisible) { InitializeComponent(); this.container = panel; this.masterController = masterController; if (isVisible) appear(DockStyle.Fill); }
public AdminMenuList(MasterController masterController, MenuBar menuBar) : base(masterController) { menuControls = new List <MenuControl> { new MenuControl(new Home(masterController), menuBar), new MenuControl(new Sales(masterController), menuBar), new MenuControl(new SystemOperation(masterController), menuBar), new MenuControl(new InventoryView(masterController), menuBar), new MenuControl(new CustomerInformationView(masterController), menuBar), }; }
public MyUserControl(MasterController masterController, Panel panel, bool isVisible) { InitializeComponent(); this.container = panel; this.masterController = masterController; if (isVisible) { appear(DockStyle.Fill); } }
//public ProductInventoryDomain getProductInventoryThroughBarcode(string barcode) //{ // Product product = new Product(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true); // Inventory inventory = new Inventory(getEntityWhere(string.Format("Barcode = '{0}'", barcode)),true); // return new ProductInventoryDomain(product, inventory); //} public void checkProductCriticalLevel(Product product, MasterController masterController) { string condition = string.Format("Name = '{0}'", product.Description); decimal qty_received = (decimal)readScalar("Qty_Received", condition); decimal qty_onhand = (decimal)readScalar("Qty_On_Hand", condition); if (qty_onhand <= (qty_received * .10M)) { masterController.displayCriticalNotif(product, (int)qty_onhand); } }
public DatabaseController(MasterController masterController) { this.mySqlDB = new MySqlDB(); this.masterController = masterController; this.employeeMapper = new EmployeeMapper(mySqlDB); this.userMapper = new UserMapper(mySqlDB); this.loginTrailMapper = new LoginTrailMapper(mySqlDB); this.productMapper = new ProductMapper(mySqlDB); this.inventoryMapper = new InventoryMapper(mySqlDB); this.productInventory = new ProductInventory(mySqlDB); this.invoiceMapper = new InvoiceMapper(mySqlDB); this.productInvoiceMapper = new ProductInvoiceMapper(mySqlDB); <<<<<<< HEAD this.transactionResult = new TransactionResult(mySqlDB); ======= this.receipt = new Receipt(mySqlDB); >>>>>>> origin/master this.purchasedProductMapper = new PurchasedProductMapper(mySqlDB); this.todaySalesMapper = new TodaySalesMapper(mySqlDB); this.dailySalesReportMapper = new DailySalesReportMapper(mySqlDB); this.weeklySalesReportMapper = new WeeklySalesReport(mySqlDB); this.monthlySalesReportMapper = new MonthlySaleReportMapper(mySqlDB); this.categoryMapper = new CategoryMapper(mySqlDB); this.groomingMapper = new GroomingMapper(mySqlDB); this.medicalMapper = new MedicalMapper(mySqlDB); this.gppMapper = new GroomingPetsizePriceMapper(mySqlDB); this.groomingViewMapper = new GroomingView(mySqlDB); this.gppTransactionMapper = new GppTransactionMapper(mySqlDB); this.serviceRenderedMapper = new ServiceRenderedMapper(mySqlDB); this.auditTrailMapper = new AuditTrailMapper(mySqlDB); this.auditTrailView = new AuditTrailView(mySqlDB); this.productTransactionView = new ProductTransactionView(mySqlDB); this.loginTrailViewMapper = new LoginTrailViewMapper(mySqlDB); this.petsizeMapper = new PetsizeMapper(mySqlDB); this.medicalTransactionMapper = new MedicalTransactionMapper(mySqlDB); this.productReturnViewMapper = new ProductReturnViewMapper(mySqlDB); this.customerInformationMapper = new CustomerInformationMapper(mySqlDB); // Events hooking this.masterController.EmployeeLogin += masterController_EmployeeLogin; this.masterController.EmployeeLogout += masterController_EmployeeLogout; }
public Titlebar(Panel panel, MasterController masterController) : base(masterController, panel, true) { InitializeComponent(); this.masterController = masterController; this.masterController.setTitleBar = this; this.masterController.ContentChange += new EventHandler <ContentArgs>(masterController_ContentChange); this.masterController.EmployeeLogin += masterController_EmployeeLogin; this.masterController.EmployeeLogout += masterController_EmployeeLogout; masterController.getFrmMain.Resize += getFrmMain_Resize; TabStop = false; whenNotLogin(); }
public void checkProductCriticalLevel(Product product, MasterController masterController) { string condition = string.Format("Name = '{0}'", product.Description); decimal qty_received = (decimal)readScalar("Qty_Received", condition); decimal qty_onhand = (decimal)readScalar("Qty_on_Hand", condition); if (qty_onhand <= (qty_received * .10M)) { CriticalNotif notif = new CriticalNotif(product, (int)qty_onhand); notif.Location = new Point(masterController.getFrmMain.Height - notif.Height, masterController.getFrmMain.Width - notif.Width ); notif.Show(); } }
public Titlebar(Panel panel, MasterController masterController) : base(masterController, panel, true) { InitializeComponent(); this.masterController = masterController; this.masterController.setTitleBar = this; this.masterController.ContentChange += new EventHandler<ContentArgs>(masterController_ContentChange); this.masterController.EmployeeLogin += masterController_EmployeeLogin; this.masterController.EmployeeLogout += masterController_EmployeeLogout; masterController.getFrmMain.Resize += getFrmMain_Resize; TabStop = false; whenNotLogin(); }
public DatabaseController(MasterController masterController) { this.mySqlDB = new MySqlDB(); this.masterController = masterController; this.employeeMapper = new EmployeeMapper(mySqlDB); this.userMapper = new UserMapper(mySqlDB); this.loginTrailMapper = new LoginTrailMapper(mySqlDB); this.productMapper = new ProductMapper(mySqlDB); this.inventoryMapper = new InventoryMapper(mySqlDB); this.productInventory = new ProductInventory(mySqlDB); this.invoiceMapper = new InvoiceMapper(mySqlDB); this.productInvoiceMapper = new ProductInvoiceMapper(mySqlDB); this.receipt = new Receipt(mySqlDB); this.purchasedProductMapper = new PurchasedProductMapper(mySqlDB); this.todaySalesMapper = new TodaySalesMapper(mySqlDB); this.dailySalesReportMapper = new DailySalesReportMapper(mySqlDB); this.weeklySalesReportMapper = new WeeklySalesReport(mySqlDB); this.monthlySalesReportMapper = new MonthlySaleReportMapper(mySqlDB); this.categoryMapper = new CategoryMapper(mySqlDB); this.groomingMapper = new GroomingMapper(mySqlDB); this.medicalMapper = new MedicalMapper(mySqlDB); this.gppMapper = new GroomingPetsizePriceMapper(mySqlDB); this.groomingViewMapper = new GroomingView(mySqlDB); this.gppTransactionMapper = new GppTransactionMapper(mySqlDB); this.serviceRenderedMapper = new ServiceRenderedMapper(mySqlDB); this.auditTrailMapper = new AuditTrailMapper(mySqlDB); this.auditTrailView = new AuditTrailView(mySqlDB); this.productTransactionView = new ProductTransactionView(mySqlDB); this.loginTrailViewMapper = new LoginTrailViewMapper(mySqlDB); this.petsizeMapper = new PetsizeMapper(mySqlDB); this.medicalTransactionMapper = new MedicalTransactionMapper(mySqlDB); this.productReturnViewMapper = new ProductReturnViewMapper(mySqlDB); this.customerInformationMapper = new CustomerInformationMapper(mySqlDB); this.fallbackMapper = new FallbackMapper(mySqlDB); this.productInspectionMapper = new ProductInspectionMapper(mySqlDB); // Events hooking this.masterController.EmployeeLogin += masterController_EmployeeLogin; this.masterController.EmployeeLogout += masterController_EmployeeLogout; }
public ProductPaneScroll(InventoryView inventory, Panel panel, MasterController masterController) : base(masterController, panel, DOCKSTYLE_TYPE) { InitializeComponent(); this.inventoryView = inventory; base.maxHeight = 250; this.dbController = masterController.DataBaseController; textboxes = new TextBox[] { txtBarcode, txtCompany, txtDescription, txtPrice, txtQuantity, }; }
public AddUserPane(Panel panel, MasterController masterController, UserAdministration userAdministration) : base(masterController, panel, true) { InitializeComponent(); this.userAdministration = userAdministration; textboxes = new List<TextBox>() { txtUsername, txtPassword, txtLastname, txtFirstname, txtMiddlename, txtMobno, txtImagepath, txtAddress, txtRepassword, }; dbController = masterController.DataBaseController; }
public AddUserPane(Panel panel, MasterController masterController, UserAdministration userAdministration) : base(masterController, panel, true) { InitializeComponent(); this.userAdministration = userAdministration; textboxes = new List <TextBox>() { txtUsername, txtPassword, txtLastname, txtFirstname, txtMiddlename, txtMobno, txtImagepath, txtAddress, txtRepassword, }; dbController = masterController.DataBaseController; }
public InventoryView(MasterController masterController) : base(masterController) { InitializeComponent(); this.dbController = masterController.DataBaseController; sliderPane = productSliderPane1; sliderPane.accessMasterController = masterController; sliderPane.dbController = masterController.DataBaseController; sliderPane.inventoryView = this; using (Font timesNewRoman = new Font("Times New Roman", 12, FontStyle.Regular)) { critical = new DataGridViewCellStyle() { Font = timesNewRoman, BackColor = Color.DarkRed, ForeColor = Color.White, SelectionBackColor = SystemColors.inventoryRosy, SelectionForeColor = Color.Black, }; normal = new DataGridViewCellStyle() { Font = timesNewRoman, BackColor = Color.White, ForeColor = Color.Black, SelectionBackColor = Color.Silver, SelectionForeColor = Color.White, }; } highlighted = new DataGridViewCellStyle() { Font = new Font("Arial Rounded MT", 12, FontStyle.Bold), }; dgInventory.DefaultCellStyle.ApplyStyle(normal); }
public UserMenuList(MasterController masterController, MenuBar menuBar):base(masterController) { menuControls = new List<MenuControl> { new MenuControl(new POS(masterController), menuBar), }; }
public ProductReturnControl(MasterController masterController) : base(masterController) { InitializeComponent(); }
public FBUser(Fallback fallback, MasterController masterController, Panel panel) : base(masterController, panel, true) { InitializeComponent(); this.fallback = fallback; }
public Sales(MasterController masterController):base(masterController) { InitializeComponent(); this.dbController = masterController.DataBaseController; }
public MyUserControl(MasterController masterController) { this.masterController = masterController; }
public UserAdministration(MasterController masterController) : base(masterController) { InitializeComponent(); dbController = masterController.DataBaseController; }
public InventoryPersonnelMenuList(MasterController masterController, MenuBar menuBar):base(masterController) { menuControls = new List<MenuControl> { new MenuControl(new InventoryView(masterController), menuBar), }; }
public Back(MasterController masterController) : base(masterController) { InitializeComponent(); }
public MenuList(MasterController masterController) { this.masterController = masterController; }
public Sales(MasterController masterController) : base(masterController) { InitializeComponent(); this.dbController = masterController.DataBaseController; }