protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["pIdEmpleadoBaja"] != null)
                {
                    vIdBajaEmpleado = int.Parse(Request.Params["pIdEmpleadoBaja"].ToString());
                    vIdEmpleado     = int.Parse(Request.Params["pIdEmpleado"].ToString());
                    RotacionPersonalNegocio nRotacion = new RotacionPersonalNegocio();
                    var vEmpleadoBaja = nRotacion.ObtieneBajasPendientes(vIdBajaEmpleado).FirstOrDefault();
                    txtNbEmpleado.InnerText   = vEmpleadoBaja.CL_EMPLEADO + " - " + vEmpleadoBaja.NB_EMPLEADO;
                    txtNbPuesto.InnerText     = vEmpleadoBaja.CL_PUESTO + " - " + vEmpleadoBaja.NB_PUESTO;
                    rdpFechaBaja.SelectedDate = vEmpleadoBaja.FE_BAJA_EFECTIVA;
                    XElement xmlComentarios = XElement.Parse(vEmpleadoBaja.DS_COMENTARIOS);
                    reComentarios.Content = xmlComentarios.Value;
                    CatalogoListaNegocio negocio = new CatalogoListaNegocio();
                    SPE_OBTIENE_C_CATALOGO_LISTA_Result vCatalogo = new SPE_OBTIENE_C_CATALOGO_LISTA_Result();
                    vCatalogo       = negocio.ObtieneCatalogoLista().Where(w => w.NB_CATALOGO_LISTA == "Causas de baja").FirstOrDefault();
                    vIdCatalogoBaja = vCatalogo.ID_CATALOGO_LISTA;
                    vDsMensaje      = ContextoApp.EO.Configuracion.MensajeCapturaResultados.dsMensaje;
                    vDsMensajeE     = ContextoApp.EO.Configuracion.MensajeImportantes.dsMensaje;
                    vDsMensajeME    = ContextoApp.EO.Configuracion.MensajeBajaNotificador.dsMensaje;
                    vDsMensajeEv    = ContextoApp.EO.Configuracion.MensajeImportantes.dsMensaje;
                    vDsMensajeMEv   = ContextoApp.EO.Configuracion.MensajeBajaNotificador.dsMensaje;
                }
            }

            vClUsuario  = ContextoUsuario.oUsuario.CL_USUARIO;
            vNbPrograma = ContextoUsuario.nbPrograma;
        }
Пример #2
0
        protected void rgBajasPendientes_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            RotacionPersonalNegocio nRotacion = new RotacionPersonalNegocio();

            rgBajasPendientes.DataSource = nRotacion.ObtieneBajasPendientes(pIdEmpresa: vIdEmpresa, pIdRol: vIdRol);
        }