日期:2014-05-17 浏览次数:20403 次
sList = sObj.GetListInfo(condition, "");
string b = sList[0].Remark.Length > 10 ? sList[0].Remark.ToString().Substring(0, 10) + "..." : sList[0].Remark;
var result = from a in sList
select new
{
a.ID,
a.GoodsName,
a.StartTime,
a.endTime,
a.StartingPrice,
a.SuggestPrice,
a.AuctionNumber,
a.State,
Remark = a.Remark.Length > 10 ? a.Remark.ToString().Substring(0, 10) + "..." : a.Remark
};
anp.RecordCount = result.Count();
this.gv.DataSource = result.Skip((anp.CurrentPageIndex - 1) * anp.PageSize).Take(anp.PageSize);