示例#1
0
 public EstatusPermiso Rellenar()
 {
     try
     {
         PermisosDeAreas = PermisoAreaDAO.Listar().Where(p => p.ClaveEstatus == Clave).ToList();
         return(this);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
示例#2
0
文件: Area.cs 项目: fade-m/podaBrecha
 public Area Rellenar()
 {
     try
     {
         Zona         = ZonaDAO.Get(ClaveZona);
         Usuarios     = UsuarioDAO.Listar().Where(u => u.ClaveArea == Clave).ToList();
         Presupuestos = PresupuestoAreaDAO.Listar().Where(p => p.ClaveArea == Clave).ToList();
         Permisos     = PermisoAreaDAO.Listar().Where(p => p.ClaveArea == Clave).ToList();
         Circuitos    = CircuitoDAO.Listar().Where(c => c.ClaveArea == Clave).ToList();
         Necesidades  = NecesidadDAO.Listar().Where(n => n.ClaveArea == Clave).ToList();
         return(this);
     }
     catch (Exception e)
     {
         throw e;
     }
 }