namespace WIDESEA_StorageBasicService; public class StockInfoService : ServiceBase, IStockInfoService { public StockInfoService(IStockInfoRepository BaseDal) : base(BaseDal) { } public override PageGridData GetPageData(PageDataOptions options) { var data = base.GetPageData(options); foreach (var item in data.Rows) { if (item.IsFull) item.Remark = item.StockInfoDetails.Count().ToString(); else item.Remark = "0"; } return data; } }