protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (((ThaoTac)Session["ThaoTac"] != ThaoTac.ChiXem) && ((ThaoTac)Session["ThaoTac"] != ThaoTac.KhongCo))
            {
                if (e.CommandName == "Select")
                {
                    Session["ThuaDatThaoTac"] = e.CommandArgument.ToString();
                    if (Session["LoaiHoSo"] == "DuBi")
                    {
                        tblThuaDatDeNghiHopThuaTrongBienDongTheoDon thuadangxet = don.LayThuaDatDeNghiHopThuaTheoDon(Session["ThuaDatThaoTac"].ToString());
                        string s = Session["ThuaDatThaoTac"].ToString();
                        if (thuadangxet != null)
                        {
                            txtHT_ThuaDatSo.Text  = thuadangxet.SoThua;
                            txtHT_ToBanDo.Text    = thuadangxet.ToBanDo;
                            txtHT_DiaChiThua.Text = thuadangxet.DiaChi;
                            txtHT_SoPhatHanh.Text = thuadangxet.SoPhatHanhGCN;
                            txtHT_SoVaoSo.Text    = thuadangxet.SoVaoSoCapGCN;

                            Session["ThaoTac"] = ThaoTac.DangSua;
                            ApDungTrangThai();
                            EnableHopThua(true);
                        }
                    }
                    else if (Session["LoaiHoSo"] == "ChinhThuc")
                    {
                        tblThuaDatDeNghiHopThuaTrongBienDong thuadangxet = don.LayThuaDatDeNghiHopThua(Session["ThuaDatThaoTac"].ToString());
                        string s = Session["ThuaDatThaoTac"].ToString();
                        if (thuadangxet != null)
                        {
                            txtHT_ThuaDatSo.Text  = thuadangxet.SoThua;
                            txtHT_ToBanDo.Text    = thuadangxet.ToBanDo;
                            txtHT_DiaChiThua.Text = thuadangxet.DiaChi;
                            txtHT_SoPhatHanh.Text = thuadangxet.SoPhatHanhGCN;
                            txtHT_SoVaoSo.Text    = thuadangxet.SoVaoSoCapGCN;

                            Session["ThaoTac"] = ThaoTac.DangSua;
                            ApDungTrangThai();
                            EnableHopThua(true);
                        }
                    }
                    else
                    {
                        return;
                    }
                }
            }
        }