public IParamBuilder GetListSql(ListDataRightEventArgs e) { if (e.User.MainOrgId == null) { return(SqlParamBuilder.NoResult); } return(SqlParamBuilder.CreateEqualSql(e.Context, fField, e.User.MainOrgId)); }
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); } } }
public IParamBuilder GetListSql(ListDataRightEventArgs e) { return(AllowAll ? null : SqlParamBuilder.NoResult); }