private void bunifuImageButton1_Click(object sender, EventArgs e)
        {
            this.Close();
            FormTrangChu FTC = new FormTrangChu();

            FTC.Show();
        }
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Close();
            FormTrangChu FTT = new FormTrangChu();

            FTT.Show();
        }
        private void gunaControlBox1_Click(object sender, EventArgs e)
        {
            FormTrangChu FTC = new FormTrangChu();

            FTC.Show();
            this.Close();
        }
示例#4
0
        private void btnQuayLai_Click(object sender, EventArgs e)
        {
            var kiemtrahdx = dt.selectTTHDX(Convert.ToInt32(lbMaHD.Text)).FirstOrDefault();

            if (kiemtrahdx == null)
            {
                FormKhachHangMoi.TTKHM.Ma     = 0;
                FormKiemTraKhachHang.TTKHC.Ma = 0;
                FormTrangChu FTC = new FormTrangChu();
                FTC.Show();
                this.Close();
            }
            else if (kiemtrahdx != null)
            {
                DialogResult a = MessageBox.Show("Bạn có muốn hủy hóa đơn này không ???", "Hủy", MessageBoxButtons.YesNo);
                if (a == DialogResult.Yes)
                {
                    TTMHDX.MoFormGhiChuHuyHDX = 1;
                    FormGhiChuHuyHDX FGCHHDX = new FormGhiChuHuyHDX();
                    FGCHHDX.ShowDialog();
                    if (FormGhiChuHuyHDX.TTDongForm.HuyHDX == 1)
                    {
                        FormKhachHangMoi.TTKHM.Ma     = 0;
                        FormKiemTraKhachHang.TTKHC.Ma = 0;
                        FormTrangChu FTC = new FormTrangChu();
                        FTC.Show();
                        FormGhiChuHuyHDX.TTDongForm.HuyHDX = 0;
                        this.Close();
                    }
                }
            }
        }
        private void btnThoat_Click(object sender, EventArgs e)
        {
            FormTrangChu FTC = new FormTrangChu();

            FTC.Show();
            this.Close();
        }
示例#6
0
        private void btnQuayLai_Click(object sender, EventArgs e)
        {
            this.Close();
            FormTrangChu ftc = new FormTrangChu();

            ftc.Show();
        }
        private void btnKhachHangMoi_Click(object sender, EventArgs e)
        {
            this.Close();
            FormTrangChu FTC = new FormTrangChu();

            FTC.Hide();
            FormKhachHangMoi f1 = new FormKhachHangMoi();

            f1.Show();
        }
 private void btnQuayLai_Click(object sender, EventArgs e)
 {
     if (FormNhapHang.MoFormTTNCC.MoFormNCC == 1)
     {
         FormNhapHang.MoFormTTNCC.MoFormNCC = 0;
         FormNhapHang FNH = new FormNhapHang();
         FNH.Show();
         this.Close();
     }
     else if (FormNhapHang.MoFormTTNCC.MoFormNCC != 1)
     {
         FormTrangChu ftc = new FormTrangChu();
         ftc.Show();
         this.Close();
     }
 }
示例#9
0
 private void btnQuayLai_Click(object sender, EventArgs e)
 {
     if (FormDuLieuNV.MoFormThongTinNV.phanbietthemsua == 1 || FormDuLieuNV.MoFormThongTinNV.phanbietthemsua == 2)
     {
         FormDuLieuNV.MoFormThongTinNV.phanbietthemsua = 0;
         FormDuLieuNV f1 = new FormDuLieuNV();
         f1.Show();
         this.Close();
     }
     else
     {
         FormTrangChu.ThongTinCaNhan.SuaTTCaNhan = 0;
         FormTrangChu ftt = new FormTrangChu();
         ftt.Show();
         this.Close();
     }
 }
 private void gunaControlBox1_Click(object sender, EventArgs e)
 {
     if (FormThanhToan.TTTT.MoFormRP == 1)
     {
         FormThanhToan.TTTT.MoFormRP = 0;
         FormTrangChu FTC = new FormTrangChu();
         FTC.Show();
         this.Close();
     }
     else if (FormHDX.TTHDX.MoFormRP == 1)
     {
         FormHDX.TTHDX.MoFormRP = 0;
         this.Close();
     }
     else if (FormQuetQRTimKiemHDX.TTTK.MoFormRP == 1)
     {
         FormQuetQRTimKiemHDX.TTTK.MoFormRP = 0;
         FormQuetQRTimKiemHDX.TTTK.Load     = 1;
         this.Close();
         //FormHDX FHDX = new FormHDX();
         //FHDX.Show();
     }
 }
        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            NhanVien nv = dt.NhanViens.Where(s => s.taikhoan == txtTaiKhoan.Text.Trim()).Where(s => s.matkhau == MaHoa(txtMatKhau.Text.Trim())).FirstOrDefault();

            if (nv == null)
            {
                MessageBox.Show("Tài khoản hoặc mật khẩu không đúng\nVui lòng kiểm tra lại");
            }
            else
            {
                if (nv.HoatDong == Convert.ToBoolean("False"))
                {
                    MessageBox.Show("Tài khoản của bạn đã bị khóa\nLiên hệ quản lý để được hỗ trợ", "Lỗi");
                }
                else if (nv.HoatDong == Convert.ToBoolean("True"))
                {
                    ThongTinNVDangNhap.MaNVDangNhap = nv.Ma;
                    MessageBox.Show("Chào mừng bạn đến DHV Sport");
                    this.Hide();
                    FormTrangChu f1 = new FormTrangChu();
                    f1.Show();
                }
            }
        }