Exemple #1
0
        void BCTonKho_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            ucBaoCaoTonKho bctonkho = new ucBaoCaoTonKho();

            bctonkho.bcMucTonToiThieuToiDa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcTonKhoTheoKho.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcTonKhoTheoNhomHang.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcXNTTheoKho.MouseDown          += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcXNTTheoLoaiHang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcXNTTheoNhomHang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            bctonkho.bcXNTTheoPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
            elementHost_BaoCao.Child = bctonkho;
        }
Exemple #2
0
 private void frmBaoCao_Load(object sender, EventArgs e)
 {
     try
     {
                 this.WindowState = FormWindowState.Maximized;
                 switch (BaoCao)
                 {
                     case "DoanhThu":
                         {
                             //DoanhThu = new string[5];
                             //DoanhThu[0] = "Báo cáo doanh thu theo thời gian";
                             //DoanhThu[1] = "Báo cáo doanh thu theo nhân viên";
                             //DoanhThu[2] = "Báo cáo doanh thu theo nhóm hàng";
                             //DoanhThu[3] = "Báo cáo doanh thu theo hàng hóa";
                             //DoanhThu[4] = "Báo cáo lãi lỗ";
                             //Load_Label(DoanhThu);
                             ucBaoCaoDoanhThu doanhthu = new ucBaoCaoDoanhThu();
                             doanhthu.bcDTTheoHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             doanhthu.bcDTTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             doanhthu.bcDTTheoNV.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             doanhthu.bcDTTheoTG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             doanhthu.bcLaiLo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             elementHost_BaoCao.Child = doanhthu;
                             break;
                         }
                     case "CongNo":
                         {
                             ucBaoCaoCongNo bccongn = new ucBaoCaoCongNo();
                             bccongn.bcCNTheoKH.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bccongn.bcCNTheoNCC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             elementHost_BaoCao.Child = bccongn;
                             break;
                         }
                     case "XuatHang":
                         {
                             ucBaoCaoXuatHang bcxuathang = new ucBaoCaoXuatHang();
                             bcxuathang.bcXHTheoHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcxuathang.bcXHTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcxuathang.bcXHTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcxuathang.bcXHTheoTG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             elementHost_BaoCao.Child = bcxuathang;
                             break;
                         }
                     case "NhapHang":
                         {
                             ucBaoCaoNhapHang bcnhaphang = new ucBaoCaoNhapHang();
                             bcnhaphang.bcNHTheoHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcnhaphang.bcNHTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcnhaphang.bcNHTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bcnhaphang.bcNHTheoTG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             elementHost_BaoCao.Child = bcnhaphang;
                             break;
                         }
                     case "TonKho":
                         {
                             ucBaoCaoTonKho bctonkho = new ucBaoCaoTonKho();
                             bctonkho.bcMucTonToiThieuToiDa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcTonKhoTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcTonKhoTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcXNTTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcXNTTheoLoaiHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcXNTTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             bctonkho.bcXNTTheoPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                             elementHost_BaoCao.Child = bctonkho;
                             break;
                         }
                 }
                     int Heights = Screen.PrimaryScreen.Bounds.Height;
                     int Widths = Screen.PrimaryScreen.Bounds.Width;
                     this.Location = new Point(0, 0);
                     this.Width = Widths - 4;
                     this.Height = Heights - 64;
     }
     catch
     {
     }
 }
Exemple #3
0
 void BCTonKho_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     ucBaoCaoTonKho bctonkho = new ucBaoCaoTonKho();
     bctonkho.bcMucTonToiThieuToiDa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcTonKhoTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcTonKhoTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcXNTTheoKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcXNTTheoLoaiHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcXNTTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     bctonkho.bcXNTTheoPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
     elementHost_BaoCao.Child = bctonkho;
 }
Exemple #4
0
        private void frmBaoCao_Load(object sender, EventArgs e)
        {
            try
            {
                this.WindowState = FormWindowState.Maximized;
                switch (BaoCao)
                {
                case "DoanhThu":
                {
                    //DoanhThu = new string[5];
                    //DoanhThu[0] = "Báo cáo doanh thu theo thời gian";
                    //DoanhThu[1] = "Báo cáo doanh thu theo nhân viên";
                    //DoanhThu[2] = "Báo cáo doanh thu theo nhóm hàng";
                    //DoanhThu[3] = "Báo cáo doanh thu theo hàng hóa";
                    //DoanhThu[4] = "Báo cáo lãi lỗ";
                    //Load_Label(DoanhThu);
                    ucBaoCaoDoanhThu doanhthu = new ucBaoCaoDoanhThu();
                    doanhthu.bcDTTheoHangHoa.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    doanhthu.bcDTTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    doanhthu.bcDTTheoNV.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    doanhthu.bcDTTheoTG.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    doanhthu.bcLaiLo.MouseDown          += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    elementHost_BaoCao.Child             = doanhthu;
                    break;
                }

                case "CongNo":
                {
                    ucBaoCaoCongNo bccongn = new ucBaoCaoCongNo();
                    bccongn.bcCNTheoKH.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bccongn.bcCNTheoNCC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    elementHost_BaoCao.Child       = bccongn;
                    break;
                }

                case "XuatHang":
                {
                    ucBaoCaoXuatHang bcxuathang = new ucBaoCaoXuatHang();
                    bcxuathang.bcXHTheoHangHoa.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcxuathang.bcXHTheoKho.MouseDown      += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcxuathang.bcXHTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcxuathang.bcXHTheoTG.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    elementHost_BaoCao.Child = bcxuathang;
                    break;
                }

                case "NhapHang":
                {
                    ucBaoCaoNhapHang bcnhaphang = new ucBaoCaoNhapHang();
                    bcnhaphang.bcNHTheoHangHoa.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcnhaphang.bcNHTheoKho.MouseDown      += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcnhaphang.bcNHTheoNhomHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bcnhaphang.bcNHTheoTG.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    elementHost_BaoCao.Child = bcnhaphang;
                    break;
                }

                case "TonKho":
                {
                    ucBaoCaoTonKho bctonkho = new ucBaoCaoTonKho();
                    bctonkho.bcMucTonToiThieuToiDa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcTonKhoTheoKho.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcTonKhoTheoNhomHang.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcXNTTheoKho.MouseDown          += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcXNTTheoLoaiHang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcXNTTheoNhomHang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    bctonkho.bcXNTTheoPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(temp_Click);
                    elementHost_BaoCao.Child = bctonkho;
                    break;
                }
                }
                int Heights = Screen.PrimaryScreen.Bounds.Height;
                int Widths  = Screen.PrimaryScreen.Bounds.Width;
                this.Location = new Point(0, 0);
                this.Width    = Widths - 4;
                this.Height   = Heights - 64;
            }
            catch
            {
            }
        }