protected void GridViewRCV01Det_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!VerificarPagina(true))
            {
                return;
            }
            DropDownListItemRCV01.Enabled = false;
            TextBoxIdItemRCV01.Text       = string.Empty;
            TextBoxIdItemRCV01.Text       = GridViewRCV01Det.SelectedRow.Cells[1].Text.Substring(0, 8);
            string vTextoItemRCV01 = GridViewRCV01Det.SelectedRow.Cells[2].Text;

            DropDownListItemRCV01.ClearSelection();
            DropDownListItemRCV01.Items.FindByValue(TextBoxIdItemRCV01.Text).Selected = true;

            TextBoxCompraRCV01.Text          = GridViewRCV01Det.SelectedRow.Cells[3].Text;
            CheckBoxInstalacionRCV01.Checked = (GridViewRCV01Det.SelectedRow.Cells[4].Controls[0] as CheckBox).Checked;
            CheckBoxPinturaRCV01.Checked     = (GridViewRCV01Det.SelectedRow.Cells[5].Controls[0] as CheckBox).Checked;
            CheckBoxMecanicoRCV01.Checked    = (GridViewRCV01Det.SelectedRow.Cells[6].Controls[0] as CheckBox).Checked;

            string vTempoCadena = string.Empty;

            vTempoCadena = GridViewRCV01Det.SelectedRow.Cells[7].Text.Trim();
            DropDownListChaperioRCV01.ClearSelection();
            DropDownListChaperioRCV01.Items.FindByText(vTempoCadena).Selected = true;

            vTempoCadena = string.Empty;
            vTempoCadena = GridViewRCV01Det.SelectedRow.Cells[8].Text.Trim();
            DropDownListRepPreviaRCV01.ClearSelection();
            DropDownListRepPreviaRCV01.Items.FindByText(vTempoCadena).Selected = true;
            TextBoxObservacionesRCV01.Text = GridViewRCV01Det.SelectedRow.Cells[9].Text;
            ButtonNuevoRCV01.Enabled       = false;
            ButtonGrabarRCV01.Enabled      = true;
            ButtonBorrarRCV01.Enabled      = true;
        }
        //private void ValidaRoboParcial(int pIdInspeccion)
        //{
        //    AccesoDatos vAccesodatos = new AccesoDatos();

        //    bool vSeleccionado = false;
        //    int vResul = 0;
        //    vSeleccionado = vAccesodatos.FInspeccionTieneRCV01ICRL(pIdInspeccion);

        //    if (vSeleccionado)
        //    {
        //        TabPanelRoboParcial.Enabled = true;
        //        TabPanelRoboParcial.Visible = true;
        //        CheckBoxRoboParcial.Checked = vSeleccionado;
        //        vResul = FlTraeDatosRoboParcial(pIdInspeccion);
        //    }
        //}

        private int FlTraeNomenChaperio()
        {
            int vResultado = 0;

            using (LBCDesaEntities db = new LBCDesaEntities())
            {
                var vLst = from n in db.Nomenclador
                           where n.categoriaNomenclador == "Nivel de DaƱo"
                           orderby n.descripcion
                           select new
                {
                    n.codigo,
                    n.descripcion,
                };

                DropDownListChaperioRCV01.DataValueField = "codigo";
                DropDownListChaperioRCV01.DataTextField  = "descripcion";
                DropDownListChaperioRCV01.DataSource     = vLst.ToList();
                DropDownListChaperioRCV01.DataBind();
            }

            return(vResultado);
        }