Exemplo n.º 1
0
        private void DashBoard_Click(object sender, EventArgs e)
        {
            this.groupBox1.Visible = false;
            this.groupBox2.Visible = true;

            this.dataGrid.Visible  = false;
            this.dataGrid1.Visible = false;

            AccountingRepository ar = new AccountingRepository();

            this.totalCashLabel.Text = "totalCash : " + Convert.ToString(ar.countTotalCash());
        }
Exemplo n.º 2
0
        public Accounting()
        {
            InitializeComponent();

            this.groupBox1.Visible = false;
            this.groupBox2.Visible = true;

            this.dataGrid.Visible  = false;
            this.dataGrid1.Visible = false;

            AccountingRepository ar = new AccountingRepository();

            this.totalCashLabel.Text = "totalCash : " + Convert.ToString(ar.countTotalCash());

            showChart();
        }
Exemplo n.º 3
0
        public AdminDashboard()
        {
            InitializeComponent();

            //marketing Info
            MarketingRepository mr = new MarketingRepository();

            this.totalCampaigns.Text = "Total Campaigns : " + Convert.ToString(mr.countAllCampaigns());

            this.appCampaign.Text = "Approved Campaigns : " + Convert.ToString(mr.countAllApprovedCampaigns("Approved"));



            //Hr Info
            EmployeeRepository m = new EmployeeRepository();

            this.label123.Text += Convert.ToString(m.countAllEmployee());
            this.label129.Text += Convert.ToString(m.countEmployee("Admin"));
            this.label125.Text += Convert.ToString(m.countEmployee("Sales"));
            this.label127.Text += Convert.ToString(m.countEmployee("Marketing"));
            this.label124.Text += Convert.ToString(m.countEmployee("Human Resource"));
            this.label126.Text += Convert.ToString(m.countEmployee("Accounting"));
            this.label128.Text += Convert.ToString(m.countEmployee("Finance"));

            this.label120.Text += Convert.ToString(m.countAllStatus("Full Time"));
            this.label119.Text += Convert.ToString(m.countAllStatus("Probationary"));
            this.label118.Text += Convert.ToString(m.countAllStatus("Intern"));

            //sales Info



            //get all the data
            // count the total order in groupBox3

            OrderRepository or = new OrderRepository();

            this.label117.Text = "Total Order : " + Convert.ToString(or.countAllOrder());
            this.label114.Text = "Bike : " + Convert.ToString(or.countOrder("Bike"));
            this.label108.Text = "Car : " + Convert.ToString(or.countOrder("Car"));
            this.label111.Text = "Cng : " + Convert.ToString(or.countOrder("Cng"));
            this.label112.Text = "Microbus : " + Convert.ToString(or.countOrder("Microbus"));
            this.label92.Text  = "Pickup : " + Convert.ToString(or.countOrder("Pickup"));
            this.label90.Text  = "Truck : " + Convert.ToString(or.countOrder("Truck"));


            //count the total Inventory in groupBox4

            InventoryRepository ir = new InventoryRepository();

            this.label73.Text  = "Total Inventory : " + Convert.ToString(ir.countAllInventory());
            this.label138.Text = "Bike :" + Convert.ToString(ir.countInventory("Bike"));
            this.label135.Text = "Car :" + Convert.ToString(ir.countInventory("Car"));
            this.label136.Text = "Cng :" + Convert.ToString(ir.countInventory("Cng"));
            this.label137.Text = "Microbus :" + Convert.ToString(ir.countInventory("Microbus"));
            this.label134.Text = "Pickup :" + Convert.ToString(ir.countInventory("Pickup"));
            this.label133.Text = "Truck :" + Convert.ToString(ir.countInventory("Truck"));


            //count all shipment

            ShipmentRepository sr = new ShipmentRepository();

            this.label52.Text = "Total Shipment : " + Convert.ToString(sr.countAllShipment());
            this.label72.Text = "At Origin : " + Convert.ToString(sr.countShipment("At Origin"));
            this.label66.Text = "On the Way : " + Convert.ToString(sr.countShipment("On the Way"));
            this.label70.Text = "Stucked : " + Convert.ToString(sr.countShipment("Stuked"));
            this.label71.Text = "At Destination : " + Convert.ToString(sr.countShipment("At Destination"));
            this.label68.Text = "Shipped : " + Convert.ToString(sr.countShipment("Shipped"));

            //accounting

            AccountingRepository ar = new AccountingRepository();

            this.totalCashLabel.Text = "totalCash : " + Convert.ToString(ar.countTotalCash());
        }