Exemplo n.º 1
0
        public static bool RunRestrictions(FieldConfigShow rest, TableInfo tableInfo, Info info, string propertyName, EOperation opList)
        {
            switch (rest)
            {
            case FieldConfigShow.ShowAll:
                return(RestrictionBlock(tableInfo, info, propertyName, opList));

            case FieldConfigShow.HideAll:
                return(RestrictionAllow(tableInfo, info, propertyName, opList));
            }
            return(false);
        }
Exemplo n.º 2
0
 public static TableInfo AndConfigureShow(this TableInfo source, FieldConfigShow fieldConfigShow)
 {
     source.FieldsConfigShow = fieldConfigShow;
     return(source);
 }