예제 #1
0
        public static Rol Rol_Leer(int idRol, string nombreRol)
        {
            DTRol      dtRol    = new DTRol();
            Rol        DatosRol = new Rol();
            List <Rol> RolLeer  = dtRol.Rol_Leer(idRol, nombreRol);

            foreach (Rol rol in RolLeer)
            {
                DatosRol = rol;
            }
            return(DatosRol);
        }
        public void llenarcmbIDRol()
        {
            DTRol dta = new DTRol();
            List <Entidades.Rol> listacmb = new List <Entidades.Rol>();

            listacmb = dta.ListarRoles();

            foreach (Entidades.Rol a in listacmb)
            {
                cmRol.AppendValues(a.Nombre.ToString());
            }
            cmbRol.Model = cmRol;
        }
예제 #3
0
        public static string Rol_Eliminar(int idRol)
        {
            DTRol dtRol = new DTRol();

            return(dtRol.Rol_Eliminar(idRol));
        }
예제 #4
0
        public static List <Rol> Rol_LeerTodo(int idRol, string nombreRol)
        {
            DTRol dtRol = new DTRol();

            return(dtRol.Rol_Leer(idRol, nombreRol));
        }
예제 #5
0
        public static string Rol_Modificar(int idRol, string nombreRol, string descripcionRol, string estadoRol, string tipoPermiso, string modificadoPor)
        {
            DTRol dtRol = new DTRol();

            return(dtRol.Rol_Modificar(idRol, nombreRol, descripcionRol, estadoRol, tipoPermiso, modificadoPor, DateTime.Now));
        }
예제 #6
0
        public static string Rol_Registrar(string nombreRol, string descripcionRol, string estadoRol, string tipoPermiso, string creadoPor)
        {
            DTRol dtRol = new DTRol();

            return(dtRol.Rol_Registrar(nombreRol, descripcionRol, estadoRol, tipoPermiso, creadoPor, DateTime.Now));
        }