コード例 #1
0
 private static List <StrawmanDBLibray.Entities.USERS_ROLES> Roles(bool cache)
 {
     return((List <StrawmanDBLibray.Entities.USERS_ROLES>)StrawmanDBLibrayData.Get(StrawmanDBLibray.Classes.StrawmanDataTables.USERS_ROLES, cache));
 }
コード例 #2
0
        public static decimal?GetGroupTypeByView(string view)
        {
            List <StrawmanDBLibray.Entities.WRK_VIEWS_VARIABLES> vars = (List <StrawmanDBLibray.Entities.WRK_VIEWS_VARIABLES>)StrawmanDBLibrayData.Get(StrawmanDBLibray.Classes.StrawmanDataTables.WRK_VIEWS_VARIABLES, true);

            if (!vars.Exists(m => m.VIEW == view))
            {
                return(null);
            }
            string  type  = vars.FirstOrDefault(m => m.VIEW == view).VALUE;
            decimal _type = 0;

            if (type == null || !decimal.TryParse(type, out _type))
            {
                return(null);
            }
            return(_type);
        }
コード例 #3
0
 private static List <StrawmanDBLibray.Entities.USERS_PERMISSIONS> CheckPermissions(bool cache)
 {
     return((List <StrawmanDBLibray.Entities.USERS_PERMISSIONS>)StrawmanDBLibrayData.Get(StrawmanDBLibray.Classes.StrawmanDataTables.USERS_PERMISSIONS, cache));
 }