Exemplo n.º 1
0
        protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Select")
            {
                Session["TaiSanThaoTac"] = e.CommandArgument.ToString();
                if (Session["LoaiHoSo"] == "DuBi")
                {
                    tblThongTinTaiSanGanLienVoiDatTrongBienDongDuBi taisandangxet = don.TaiSanDuBiDangXet(Session["TaiSanThaoTac"].ToString());

                    txtLoaiTaiSan1.Text  = taisandangxet.LoaiTaiSan;
                    txtDienTich1.Text    = taisandangxet.DienTichXayDung;
                    txtNoiDungKhac1.Text = taisandangxet.NoiDungThayDoi;

                    txtLoaiTaiSan2.Text  = taisandangxet.LoaiTaiSanMoi;
                    txtDienTich2.Text    = taisandangxet.DienTichXayDungMoi;
                    txtNoiDungKhac2.Text = taisandangxet.NoiDungThayDoiMoi;
                }
                else if (Session["LoaiHoSo"] == "ChinhThuc")
                {
                    tblThongTinTaiSanGanLienVoiDatTrongBienDong taisandangxet = don.TaiSanDangXet(Session["TaiSanThaoTac"].ToString());

                    txtLoaiTaiSan1.Text  = taisandangxet.LoaiTaiSan;
                    txtDienTich1.Text    = taisandangxet.DienTichXayDung;
                    txtNoiDungKhac1.Text = taisandangxet.NoiDungThayDoi;

                    txtLoaiTaiSan2.Text  = taisandangxet.LoaiTaiSanMoi;
                    txtDienTich2.Text    = taisandangxet.DienTichXayDungMoi;
                    txtNoiDungKhac2.Text = taisandangxet.NoiDungThayDoiMoi;
                }
                else
                {
                    return;
                }
            }
        }