Example #1
0
        protected void btnLuuChu_Click(object sender, EventArgs e)
        {
            bool HoSoChinhThuc = false;

            if (Session["LoaiHoSo"] == "DuBi")
            {
                HoSoChinhThuc = false;
            }
            else if (Session["LoaiHoSo"] == "ChinhThuc")
            {
                HoSoChinhThuc = true;
            }



            if ((ThaoTac)Session["ThaoTac"] == ThaoTac.ThemMoi)
            {
                bool kq = don.ThemChu(HoSoChinhThuc, Session["DangKyBienDong"].ToString(), drDanhXung.Text, txtHoTen.Text, txtNamSinh.Text, txtDiaChi.Text, txtDinhDanh.Text, txtSoDinhDanh.Text, txtNoiCap.Text, txtNgayCap.Text, txtQuocTich.Text);
            }
            else if ((ThaoTac)Session["ThaoTac"] == ThaoTac.DangSua)
            {
                bool kq = don.SuaChu(HoSoChinhThuc, lblMaChu.Text.Replace("Mã chủ: ", " ").Trim(), drDanhXung.Text, txtHoTen.Text, txtNamSinh.Text, txtDiaChi.Text, txtDinhDanh.Text, txtSoDinhDanh.Text, txtNoiCap.Text, txtNgayCap.Text, txtQuocTich.Text);
            }

            LoadgrvChu();

            Session["ThaoTac"] = ThaoTac.KhongNhap;
            ApDungTrangThai();
        }