This commit is contained in:
40
OI/MinutaDetalle.aspx.cs
Normal file
40
OI/MinutaDetalle.aspx.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Extensiones;
|
||||
|
||||
public partial class OI_MinutaDetalle : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
DdlRoles.DataSource = get_GlobalDTRoles(UsuarioActual.CveEmpresa);
|
||||
DdlRoles.DataBind();
|
||||
DdlRoles.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||
DdlSucursales.DataSource = get_GlobalDTSubProyectos(-1, -1, UsuarioActual.CveEmpresa);
|
||||
DdlSucursales.DataBind();
|
||||
DdlSucursales.Items.Insert(0, new ListItem("Todos", "-1"));
|
||||
GVUsuarios.DataSource = get_GlobalDTUsuarios(CveEmpresa: UsuarioActual.CveEmpresa).FiltraParametros("Estatus =1 ", "Rol ASC");
|
||||
GVUsuarios.DataBind();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void GVUsuarios_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
string CveRol = e.Row.DBCampo("CveRol");
|
||||
string CveSubProyecto = e.Row.DBCampo("CveSubProyecto");
|
||||
e.Row.CssClass = "items";
|
||||
e.Row.Attributes.Add("data-rol", CveRol);
|
||||
e.Row.Attributes.Add("data-sucursal", CveRol);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user