| | |
| | | namespace WIDESEA_StorageBasicService; |
| | | |
| | | namespace WIDESEA_StorageBasicService; |
| | | |
| | | public class StockInfoService : ServiceBase<DtStockInfo, IStockInfoRepository>, IStockInfoService |
| | | { |
| | | public StockInfoService(IStockInfoRepository BaseDal) : base(BaseDal) |
| | | { |
| | | } |
| | | |
| | | public override PageGridData<DtStockInfo> 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; |
| | | } |
| | | } |