Entradas

Mostrando entradas de febrero, 2021

Varios - FICHA PERSONAL Y SOLICITUD DE SERVICIOS

Imagen
26/JULIO/2023 Agregar los campos: Estatura varchar 50-null Primero que nada ponerlo en la tabla del proyecto en este caso sera en la tabla Personal: Add-migration AddFieldsEstatura Luego vamos a Paquet Manager y agregamos cada campo con el comando add-migration y luego update-database Agregar las tablas Habitacion y TipoSanguineo Proyecto: Model, boton dereecho agregar clase. Habitacion Luego hacer la migrations para que se ejecute en el SQL Server. Luego agregar la tabla en el contexto ctxIntranet LUEGO AGREGAR LOS CAMPOS EN EL FORMULARIO: VIEW/PERSONAL/CREATE: AHORA LO AGREGAMOS EN EL Metodo Guardar  y Edit en el controller Personal Controller: GET [HttpGet]         [Route("Create")] Luego en el Post //Guardar los campos en la tabla Personal         [HttpPost]         [ValidateAntiForgeryToken] En el controller, ademas adicionar los campos para los combox: 28/marzo/2022 Reporte con parametros de fecha REPORTE C...

Varios

Imagen
PARA AGREGAR LA COLUMNA DEL GRIDVIEW-GERENTE TI (GERENCIA SOLICITANTE) 1. Identificar como se llama el campo desde el CREATE (NombreDeGerencia). 2. Ver de donde se toma: public ActionResult GridViewSolicitud_Aprob() del controller: SolicitudServicioController.cs desde la vista vw_Solicitudes:      - Agregarlo en el select new : Gerencia = sol.GERENCIA 3. Agregar el campo en la columna del Gridview:       settings.Columns.Add("Gerencia", "Gerencia"); EN EL WEB.CONFIG PARA 10 HORAS ACTIVAS LA SESION <authentication mode="Forms">       <forms name="Alumno" cookieless="UseCookies" protection="All" timeout="600" slidingExpiration="true" path="/"></forms>       </authentication> CODIGO PARA MOSTRAR TODOS LOS REGISTROS EN EL GRIDVIEW DEVEXPRESS https://supportcenter.devexpress.com/ticket/details/t307936/how-to-set-default-pagesize-to-all-records-in-aspxgridview settings.SettingsPa...