Example #1
0
        private void QL_DDH_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
            this.Hide();
        }
Example #2
0
        private void iconButton2_Click(object sender, EventArgs e)
        {
            string tk        = textBox1.Text;
            string mk        = textBox2.Text;
            bool   checktkmk = BLL_QuanLy.Instance.Bll_CheckTKMK(tk, mk);

            if (checktkmk == true)
            {
                if (BLL_QuanLy.Instance.Bll_CheckAdmin(tk) == false)
                {
                    NhanVien f = new NhanVien();

                    f.maNV = tk;
                    f.Show();
                }
                else
                {
                    QuanLy f = new QuanLy();
                    f.Show();
                }
            }
            else
            {
                MessageBox.Show("Sai");
            }
        }
Example #3
0
        private void qUẢNLÝToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
            this.Hide();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            //quay trở lại trang trước
            QuanLy ql = new QuanLy();

            this.Close();
            ql.Show();
        }
Example #5
0
        private void bt_dangnhap_Click(object sender, EventArgs e)
        {
            if (txt_taikhoan.TextLength == 0)
            {
                lbtrangthai.ForeColor = Color.Red;
                lbtrangthai.Text      = "Chưa điền tên tài khoản.";
                // MessageBox.Show("Chưa điền tên tài khoản", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txt_taikhoan.Focus();
            }
            else if (txt_matkhau.TextLength == 0)
            {
                lbtrangthai.ForeColor = Color.Red;
                lbtrangthai.Text      = "Chưa điền mật khẩu.";
                //  MessageBox.Show("Chưa điền mật khẩu", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txt_matkhau.Focus();
            }
            else
            {
                DTO_TAIKHOAN taikhoan_public = new DTO_TAIKHOAN();
                taikhoan_public.TENTK   = txt_taikhoan.Text;
                taikhoan_public.MATKHAU = txt_matkhau.Text;
                int trangthaitaikhoan = 0;
                trangthaitaikhoan = taikhoan_bul.check_dangnhap(taikhoan_public);

                if (trangthaitaikhoan == 1)
                {
                    QuanLy dk = new QuanLy();
                    this.Hide();
                    dk.ShowDialog();
                }
                else if (trangthaitaikhoan == 0)
                {
                    lbtrangthai.ForeColor = Color.Red;
                    lbtrangthai.Text      = "Sai tên tài khoản hoặc mật khẩu.";
                    txt_taikhoan.Focus();
                    // MessageBox.Show("Sai tên tài khoản hoặc mật khẩu.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    // txt_taikhoan.Focus();
                }
            }
        }
Example #6
0
        private void frmHopDong_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
        }
Example #7
0
        private void frmNhanTinQC_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
        }
Example #8
0
        private void NVQL_comment_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
        }
Example #9
0
        private void btnquanly_Click(object sender, EventArgs e)
        {
            QuanLy quanly = new QuanLy(TenDangNhap, Quyen);

            quanly.ShowDialog();
        }
Example #10
0
        private void XacNhanNhapHang_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
        }
Example #11
0
        private void ThongKeHangHoa_FormClosed(object sender, FormClosedEventArgs e)
        {
            QuanLy ql = new QuanLy();

            ql.Show();
        }