using BiskLog_Point_Of_Sale.Multiple_Login; using BiskLog_Point_Of_Sale.OPS_Report.Sales; using BiskLog_Point_Of_Sale.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BiskLog_Point_Of_Sale.OPS_Report { public partial class ReportsMain : Form { Form Active; public ReportsMain() { InitializeComponent(); reportTabs.ForeColor = Color.FromArgb(0, 52, 6); reportTabs.Cursor = Cursors.Hand; pictureBox1.Left = (content.Width - pictureBox1.Width) / 2; } private void BestOrWorstSellersToolStripMenuItem_Click(object sender, EventArgs e) { bestworst sellers = new bestworst(); sellers.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = sellers; content.Controls.Add(sellers); sellers.BringToFront(); sellers.Show(); } private void CategorySummaryToolStripMenuItem_Click(object sender, EventArgs e) { CategorySummary summary = new CategorySummary(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void MobileSalesToolStripMenuItem_Click(object sender, EventArgs e) { TruckSummary summary = new TruckSummary(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void SummaryToolStripMenuItem_Click(object sender, EventArgs e) { InventorySummary summary = new InventorySummary(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void ProductsListToolStripMenuItem_Click(object sender, EventArgs e) { ItemList summary = new ItemList(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void InventoryValuationToolStripMenuItem_Click(object sender, EventArgs e) { InventoryValuation summary = new InventoryValuation(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void TruckInventoryToolStripMenuItem_Click(object sender, EventArgs e) { TruckSummary summary = new TruckSummary(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void CategorySummaryToolStripMenuItem1_Click(object sender, EventArgs e) { TruckInventoryValuation summary = new TruckInventoryValuation(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void RestockSummaryToolStripMenuItem_Click(object sender, EventArgs e) { RestockAdjustment summary = new RestockAdjustment(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void PriceAdjustmentSummaryToolStripMenuItem_Click(object sender, EventArgs e) { PriceAdjustment summary = new PriceAdjustment(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void ToolStripMenuItem1_Click(object sender, EventArgs e) { DriversList summary = new DriversList(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void EmployeeListToolStripMenuItem_Click(object sender, EventArgs e) { EmployeeList summary = new EmployeeList(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void EmployeeSalesToolStripMenuItem_Click(object sender, EventArgs e) { EmployeeSales summary = new EmployeeSales(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void CustomerListToolStripMenuItem_Click(object sender, EventArgs e) { CustomerList summary = new CustomerList(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void CustomerSalesSummaryToolStripMenuItem_Click(object sender, EventArgs e) { CustomerSales summary = new CustomerSales(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void EmployeeSalesGraphToolStripMenuItem_Click(object sender, EventArgs e) { EmployeeSalesChart summary = new EmployeeSalesChart(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void DailySalesSummaryToolStripMenuItem_Click(object sender, EventArgs e) { DailySales summary = new DailySales(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void DailySalesDetailedToolStripMenuItem_Click(object sender, EventArgs e) { DailySalesDetailed summary = new DailySalesDetailed(); summary.TopLevel = false; if (Active != null) { content.Controls.Remove(Active); } Active = summary; content.Controls.Add(summary); summary.BringToFront(); summary.Show(); } private void ReportsMain_Load(object sender, EventArgs e) { if (String.IsNullOrEmpty(Settings.Default.ReportPrinter)) { string title = "Default Printer"; string message = "Default report printer has not been set, to be able to print reports you would have to set a default report print. Would you like to " + "do that now ?"; Confirmation confirmation = new Confirmation(title, message); confirmation.BringToFront(); confirmation.ShowDialog(); if (confirmation.DialogResult == DialogResult.Yes) { HardwareSetupWizardDirect hardwareSetup = new HardwareSetupWizardDirect(); Active = hardwareSetup; hardwareSetup.BringToFront(); hardwareSetup.ShowDialog(); Active = null; } } } } }