protected void btnLuuThongTinThuaCanTach_Click(object sender, EventArgs e) { if (don.LayMaThuaDeNghiTach(Session["DangKyBienDong"].ToString()) == "0") { if (Session["LoaiHoSo"] == "DuBi") { bool success = don.ThemThuaDatDeNghiTachThuaTrongBienDongTheoDon(Session["DangKyBienDong"].ToString(), txtSoThuaTachRa.Text, txtToBanDo.Text, txtSoThua.Text, txtDiaChiThua.Text, txtSoPhatHanhGCN.Text, txtSoVaoSoCapGCN.Text, txtNgayCapGCN.Text, txtTT_DienTichThua1.Text, txtTT_DienTichThua2.Text); } else if (Session["LoaiHoSo"] == "ChinhThuc") { bool success = don.ThemThuaDatDeNghiTachThuaTrongBienDong(Session["DangKyBienDong"].ToString(), txtSoThuaTachRa.Text, txtToBanDo.Text, txtSoThua.Text, txtDiaChiThua.Text, txtSoPhatHanhGCN.Text, txtSoVaoSoCapGCN.Text, txtNgayCapGCN.Text, txtTT_DienTichThua1.Text, txtTT_DienTichThua2.Text); } } else { if (Session["LoaiHoSo"] == "DuBi") { bool success = don.SuaThuaDatDeNghiTachThuaTrongBienDongTheoDon(don.LayMaThuaDeNghiTach(Session["DangKyBienDong"].ToString()), txtSoThuaTachRa.Text, txtToBanDo.Text, txtSoThua.Text, txtDiaChiThua.Text, txtSoPhatHanhGCN.Text, txtSoVaoSoCapGCN.Text, txtNgayCapGCN.Text, txtTT_DienTichThua1.Text, txtTT_DienTichThua2.Text); } else if (Session["LoaiHoSo"] == "ChinhThuc") { bool success = don.SuaThuaDatDeNghiTachThuaTrongBienDong(don.LayMaThuaDeNghiTach(Session["DangKyBienDong"].ToString()), txtSoThuaTachRa.Text, txtToBanDo.Text, txtSoThua.Text, txtDiaChiThua.Text, txtSoPhatHanhGCN.Text, txtSoVaoSoCapGCN.Text, txtNgayCapGCN.Text, txtTT_DienTichThua1.Text, txtTT_DienTichThua2.Text); } } EnableTachThua(false); Session["ThaoTac"] = ThaoTac.KhongNhap; ApDungTrangThai(); }