Example #1
0
        public IParamBuilder GetListSql(ListDataRightEventArgs e)
        {
            if (e.User.MainOrgId == null)
            {
                return(SqlParamBuilder.NoResult);
            }

            return(SqlParamBuilder.CreateEqualSql(e.Context, fField, e.User.MainOrgId));
        }
Example #2
0
        public IParamBuilder GetListSql(ListDataRightEventArgs e)
        {
            PageStyleClass         style = (PageStyleClass)PageStyle.List;
            CompositeDataRightItem item;

            if (fDictionary.TryGetValue(style, out item))
            {
                return(item.DataRight.CreateObject(e.FieldIndexer).GetListSql(e));
            }
            else
            {
                if (HasRightIfNoItem)
                {
                    return(null);
                }
                else
                {
                    return(SqlParamBuilder.NoResult);
                }
            }
        }
Example #3
0
 public IParamBuilder GetListSql(ListDataRightEventArgs e)
 {
     return(AllowAll ? null : SqlParamBuilder.NoResult);
 }