private void btnDisplayHistory_Click(object sender, EventArgs e) { try { WareHouseCntrl.GetHistoricalData(this.chartProductHistory, this.cmbSelectStoreForHistory.SelectedItem.ToString(), this.cmbSelectHisotryProduct.SelectedItem.ToString()); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnDisplayProducts_Click(object sender, EventArgs e) { int selectedType = this.cmbStorageSelect.SelectedIndex; switch (selectedType) { case 0: WareHouseCntrl.PopulateGridData(this.dgvProductStock, StorageTypes.GLOBAL); break; case -1: MessageBox.Show("Select a type first!"); break; default: WareHouseCntrl.PopulateGridData(this.dgvProductStock, StorageTypes.LOCAL, this.cmbStorageSelect.SelectedItem.ToString()); break; } }
private void tabModules_TabIndexChanged(object sender, EventArgs e) { switch (tabModules.SelectedIndex) { case 0: //visitors this.VisitorCntrlrInit(); this.tmrVisCDataPrt.Start(); break; case 1: //warehouse this.tmrVisCDataPrt.Stop(); // just so that the arguments fit Label[] lbls = { this.lblTotPurchVal, this.lblGrossAmPaidVal, this.lblHotHourVal }; WareHouseCntrl WHC = new WareHouseCntrl(this.cmbStorageSelect, this.cmbSelectStoreForHistory, this.lbTopPopProd, lbls); //WareHouseCntrl.PopulateComboBox(this.cmbStorageSelect); break; case 2: //finance this.tmrVisCDataPrt.Stop(); Finance.PupulateGlobalData(financialLabels); break; } }
private void cmbSelectStoreForHistory_SelectedIndexChanged(object sender, EventArgs e) { WareHouseCntrl.PopulateProdOfStoreComboBox(this.cmbSelectHisotryProduct, this.cmbSelectStoreForHistory.SelectedItem.ToString()); this.cmbSelectStoreForHistory.Enabled = false; this.cmbSelectHisotryProduct.Enabled = true; }
private void btnRefreshGeneralOverview_Click(object sender, EventArgs e) { WareHouseCntrl.UpdateOverview(this.lbTopPopProd, this.lblTotPurchVal, this.lblGrossAmPaidVal, this.lblHotHourVal); }