예제 #1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            frmPhieuXuat frm = new frmPhieuXuat();

            frm.ShowDialog();
        }
예제 #2
0
        //Bắt sự kiên click cho btn trong menu con trong form main
        private void bt_Click(object sender, EventArgs e)
        {
            SimpleButton sd = new SimpleButton();

            sd = (SimpleButton)sender;
            if (sd.Text == rdn)
            {
                this.Close();
                frmDN.Show();
            }

            if (sd.Text == dmk)
            {
                frmDMK.ShowDialog();
                btnHeThong.PerformClick();
            }
            if (sd.Text == ttct)
            {
                frmThongTinCTy frm = new frmThongTinCTy();
                GoiShow(frm);
            }
            if (sd.Text == ttsp)
            {
                frmSanPham frm = new frmSanPham();
                GoiShow(frm);
            }
            if (sd.Text == nk)
            {
                frmPhieuNhap frm = new frmPhieuNhap();
                GoiShow(frm);
            }
            if (sd.Text == xk)
            {
                frmPhieuXuat frm = new frmPhieuXuat();
                GoiShow(frm);
            }
            if (sd.Text == ck)
            {
                frmChuyenKho frm = new frmChuyenKho();
                GoiShow(frm);
            }
            if (sd.Text == lsp)
            {
                frmLoaiSanPham frm = new frmLoaiSanPham();
                GoiShow(frm);
            }
            if (sd.Text == nsx)
            {
                frmNhaSanXuat frm = new frmNhaSanXuat();
                GoiShow(frm);
            }
            if (sd.Text == ncc)
            {
                frmNhaCungCap frm = new frmNhaCungCap();
                GoiShow(frm);
            }
            if (sd.Text == ttkh)
            {
                frmKhachHang frm = new frmKhachHang();
                GoiShow(frm);
            }
            if (sd.Text == nv)
            {
                frmNhanVien frm = new frmNhanVien();
                GoiShow(frm);
            }
            if (sd.Text == ttkm)
            {
                frmThemNguoiDung frm = new frmThemNguoiDung();
                GoiShow(frm);
            }
            if (sd.Text == kho)
            {
                frmKhoHang frm = new frmKhoHang();
                GoiShow(frm);
            }
            if (sd.Text == dsnk)
            {
                frmDSPhieuNhap frm = new frmDSPhieuNhap();
                GoiShow(frm);
            }
            if (sd.Text == dsxk)
            {
                frmDSPhieuXuat frm = new frmDSPhieuXuat();
                GoiShow(frm);
            }
            if (sd.Text == bcnxt)
            {
                frmThongKeTheoKho frm = new frmThongKeTheoKho();
                GoiShow(frm);
            }
            if (sd.Text == rpdm)
            {
                frmReportTheoMuc frm = new frmReportTheoMuc();
                GoiShow(frm);
            }
        }