Exemplo n.º 1
0
 private void listaFuncionesHabilitadasSegunRol()
 {
     GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter adaptador =
         new GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter();
     this.listaFuncionalidades.AddRange(adaptador.listaDeFunciones(this.IdRol).AsEnumerable().Select(
                                            elemento => elemento.Field <String>("metodo")
                                            ).ToList());
 }
Exemplo n.º 2
0
 protected List <FuncionalidadSegunRol> obtenerListaFuncionesAsociadas()
 {
     GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter adaptador =
         new GD1C2017DataSetTableAdapters.LISTAR_FUNC_X_ROLTableAdapter();
     return(adaptador.listaDeFunciones(
                Convert.ToInt32((this.comboRol.SelectedValue)))
            .AsEnumerable().Select(
                elemento => new FuncionalidadSegunRol()
     {
         id = elemento.Field <int>("id"),
         nombreFuncion = elemento.Field <String>("nombreFuncion"),
     }).ToList());
 }