13,347
社区成员
发帖
与我相关
我的任务
分享
return diantou.dataProxy.questionTopic.getLinkIds(id)
.getArray(value => diantou.dataProxy.question.get(value))
.getHash(value => value.bestAnswerId)
.getArray(value => diantou.dataProxy.answer.get(value))
.getFind(value => value != null)
.group(value => value.userId)
.getArray(value => new KeyValuePair<diantou.dataProxy.user, int>(diantou.dataProxy.user.get(value.Key), value.Value.Count))
.group(value => value.Key.grade0)
.getArray(value => new userStat
{
grade0 = value.Key,
count = value.Value.Count,
path = topic.path.bestAnswer,
users = value.Value.rangeSort((left, right) => right.Value - left.Value, 0, 6)
.getArray(user => diantou.dataProxy.user.get(user.Key, userId))
});
public enum enumType
{
[showjim.config.tcpCall.server(Register = showjim.config.setup.register.DataProxy, IsRegisterOnly = true, VerifyFileName = showjim.config.setup.pub.VerifyFileName, ClientCount = 500, IsAsynchronous = false, IsCompress = false)]
DataProxy,
}
[showjim.setup.attribute.tcpCall(server = showjim.config.tcpCall.server.enumType.DataProxy)]
public partial class favorite : diantou.dataModel.favorite.showjimCode.proxy<favorite>, showjim.sys.setup.Copy<favorite>
{
[showjim.setup.attribute.tcpCall]
private static favorite[] GetUser(int id, int pageSize, int currentPage, int userId, out int count)
{
favorite[] values = GetUsers(id, userId);
array.page page = new array.page(count = values.length(), pageSize, currentPage);
return values.sub(page.SkipCount, page.CurrentPageSize).toArray()
.getArray(value => value.setUser(userId));
}
}
protected diantou.dataProxy.favorite[] MyFavorite
{
get
{
return diantou.dataProxy.favorite.tcpCall.client.GetUser(CurrentUser.id, PageSize, query.page, CurrentUserId, out ItemCount);
}
}
javascript:alert(Showjim.PageView.SkinValue.header.Set({focus:{count:1,isCurrent:1}}));
Showjim.PageView.SkinValue.header.Set({focus:{count:1,isCurrent:1}});