Varios
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");
<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.SettingsPager.Mode = GridViewPagerMode.ShowAllRecords;
CODIGO PARA COLOREAR FILAS Y COLUMNAS DEL GRIDVIEW
FILAS
settings.HtmlRowPrepared = (s, e) =>
{
if (e.RowType != GridViewRowType.Data) return;
string name = Convert.ToString(e.GetValue("Nombrereasignada"));
if (name == "Completada")
e.Row.BackColor = System.Drawing.Color.Green;
if (name == "Asignada")
e.Row.ForeColor = System.Drawing.Color.DarkRed;
if (name == "Planificada")
e.Row.ForeColor = System.Drawing.Color.MediumBlue;
e.Row.Cells[5].BackColor = System.Drawing.Color.MediumBlue;
};
CELDAS
https://supportcenter.devexpress.com/ticket/details/t249769/gridview-set-command-column-background-color
settings.HtmlDataCellPrepared = (sender, e) =>
{
if (e.DataColumn.FieldName == "Nombrereasignada")
{
string name = Convert.ToString(e.GetValue("Nombrereasignada"));
if (name == "Completada")
e.Cell.BackColor = System.Drawing.Color.Green;
e.Cell.ForeColor = System.Drawing.Color.White;
}
};
settings.HtmlDataCellPrepared = (sender, e) => { if (e.DataColumn.FieldName == "ProductName") { if ((bool)e.GetValue("Discontinued")) e.Cell.BackColor = System.Drawing.Color.Orange; } };
CODIGO PARA RETENER LA SESION A 2 HORAS
CODIGO PARA EL ENVIO DE EMAIL

VALIDACION EN LA ASIGNACION: Gerente Ti a Jefe de Departamento
PARA LA VISTA DE GRIDVIEW PARA GERENTES Y USUARIOS SOLICITANTES
public ActionResult GridViewSolicitudServicio() LINEA 65
PARA ACTIVAR Y DESACTIVAR EL RECONOCIMIENTO DEL PASSWORD
PARA MODIFICAR EL FROM DE LOS EMAILS ASIGNADOS A LOS JEFES Y REASIGNADOS A LOS TECNICOS
PARA EDITAR LA VENTANA DE EDICION DE CADA SOL. REASIGNADA
Para cuando en el Edit no guarde la fecha actual (fecha de edicion) sino que mantenga la fecha de la creacion de la Solicitud.








Comentarios
Publicar un comentario