//OBTENER LA SELECCION DEL COMBO
        protected void cmbPuestos_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RequisicionNegocio nrequisicion = new RequisicionNegocio();
            PuestoNegocio      nPuestos     = new PuestoNegocio();

            pID_PUESTO = int.Parse(e.Value);
            var vpuesto = nPuestos.Obtener_M_PUESTO(ID_PUESTO: pID_PUESTO).FirstOrDefault();

            txtClPuesto.Text = vpuesto.CL_PUESTO;
            txtArea.Text     = vpuesto.NB_DEPARTAMENTO;
            SPE_OBTIENE_SUELDO_PROMEDIO_PUESTO_Result Vsueldo = nrequisicion.Obtener_Sueldo_Promedio_Puesto(ID_PUESTO: int.Parse(cmbPuestos.SelectedValue));

            txtSueldo.Text = Vsueldo.MN_SUELDO_PROMEDIO + "";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            DepartamentoNegocio negocio      = new DepartamentoNegocio();
            RequisicionNegocio  nRequisicion = new RequisicionNegocio();

            if (!IsPostBack)
            {
                CatalogoListaNegocio nlista = new CatalogoListaNegocio();
                var vCatalogoVacantes       = nlista.Obtener_C_CATALOGO_LISTA(ID_CATALOGO_LISTA: ContextoApp.IdCatalogoCausaVacantes).FirstOrDefault();

                if (vCatalogoVacantes != null)
                {
                    CatalogoValorNegocio nvalor = new CatalogoValorNegocio();
                    var vCausas = nvalor.Obtener_C_CATALOGO_VALOR(ID_CATALOGO_LISTA: vCatalogoVacantes.ID_CATALOGO_LISTA);

                    if (vCausas != null)
                    {
                        cmbCausas.DataSource     = vCausas;
                        cmbCausas.DataTextField  = "NB_CATALOGO_VALOR";
                        cmbCausas.DataValueField = "CL_CATALOGO_VALOR";
                        cmbCausas.DataBind();
                    }
                }


                EmpleadoNegocio nEmpleado  = new EmpleadoNegocio();
                var             vEmpleados = nEmpleado.Obtener_M_EMPLEADO();
                if (vEmpleados != null)
                {
                    cmbAutoriza.DataSource     = vEmpleados;
                    cmbAutoriza.DataTextField  = "NB_EMPLEADO_COMPLETO";
                    cmbAutoriza.DataValueField = "ID_EMPLEADO";
                    cmbAutoriza.DataBind();
                    txtSolicitado.Text     = vClUsuario.ToString();
                    txtSolicitado.ReadOnly = true;
                }

                PuestoNegocio nPuestos = new PuestoNegocio();
                var           Vpuestos = nPuestos.Obtener_M_PUESTO();
                if (Vpuestos != null)
                {
                    cmbPuestos.DataSource     = Vpuestos;//LLENAMOS DE DATOS EL GRID
                    cmbPuestos.DataTextField  = "CL_PUESTO";
                    cmbPuestos.DataTextField  = "NB_PUESTO";
                    cmbPuestos.DataValueField = "ID_PUESTO";
                    cmbPuestos.DataBind();
                }

                if (Request.Params["ID"] != null)
                {
                    pID_REQUISICION = int.Parse(Request.Params["ID"]);
                    var vRequisicion = nRequisicion.Obtener_K_REQUISICION(ID_REQUISICION: pID_REQUISICION).FirstOrDefault();

                    txtNo_requisicion.Text        = vRequisicion.NO_REQUISICION;
                    Fe_solicitud.SelectedDate     = vRequisicion.FE_SOLICITUD;
                    Fe_Requerimiento.SelectedDate = vRequisicion.FE_REQUERIMIENTO;
                    cmbPuestos.SelectedValue      = vRequisicion.ID_PUESTO + "";
                    // VRequisicionAgregar.CL_ESTADO = "VIGENTE";

                    cmbCausas.SelectedValue = vRequisicion.CL_CAUSA;
                    txtEspecifique.Text     = vRequisicion.DS_CAUSA;
                    PuestoNegocio npuesto = new PuestoNegocio();
                    var           vpuesto = npuesto.Obtener_M_PUESTO(ID_PUESTO: vRequisicion.ID_PUESTO).FirstOrDefault();
                    txtArea.Text             = vpuesto.NB_DEPARTAMENTO;
                    cmbPuestos.SelectedValue = vpuesto.ID_PUESTO.ToString();
                    txtClPuesto.Text         = vpuesto.CL_PUESTO.ToString();

                    SPE_OBTIENE_SUELDO_PROMEDIO_PUESTO_Result Vsueldo = nRequisicion.Obtener_Sueldo_Promedio_Puesto(ID_PUESTO: int.Parse(cmbPuestos.SelectedValue));
                    txtSueldo.Text = Vsueldo.MN_SUELDO_PROMEDIO + "";
                    Fe_Requerimiento.SelectedDate = vRequisicion.FE_REQUERIMIENTO;
                    Fe_solicitud.SelectedDate     = vRequisicion.FE_SOLICITUD;
                    cmbAutoriza.SelectedValue     = vRequisicion.ID_AUTORIZA.ToString();
                    txtVistoBueno.Text            = "";
                }
            }
        }