| | |
| | | using Tiger.IBusiness; |
| | | using Tiger.Model.MES.Yada; |
| | | using Tiger.Model.Entitys.MES.U9C; |
| | | using System.Security.Policy; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | |
| | | namespace Tiger.Business.WMS.Transaction |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取本次已清点的物料列表 |
| | | /// 获取本次已清点的物料列表(带分页) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public async Task<PageAble<BIZ_U9_ASN_SN>> GetScannedList() |
| | | public async Task<ApiAction<PageAble<BIZ_U9_ASN_SN>>> GetScannedList(BaseInputWithPage input) |
| | | { |
| | | return await Task.FromResult(new PageAble<BIZ_U9_ASN_SN>() |
| | | { |
| | | data = ScanList, |
| | | totals = ScanList.Count(), |
| | | }); |
| | | } |
| | | var action = new ApiAction<PageAble<BIZ_U9_ASN_SN>>(); |
| | | action.Data = new PageAble<BIZ_U9_ASN_SN>(); |
| | | action.Data.pageSize = input.pageSize; |
| | | action.Data.pageIndex = input.pageIndex; |
| | | action.Data.totals = ScanList.Count; |
| | | action.Data.data = ScanList.Skip((input.pageIndex - 1) * input.pageSize).Take(input.pageSize).ToList(); |
| | | //action.Data = query; |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取当前所有单据信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public async Task<List<BIZ_U9_ASN>> GetOrderList() |
| | | /// <summary> |
| | | /// 获取当前所有单据信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<BIZ_U9_ASN>>> GetOrderList() |
| | | { |
| | | var Orders = await Biz.Db.Queryable<BIZ_U9_ASN>().Where(q => OrderList.Contains(q.ORDER_NO)).IncludesAllFirstLayer().ToListAsync(); |
| | | if (!Orders.IsNullOrEmpty()) |
| | | var action = new ApiAction<List<BIZ_U9_ASN>>(); |
| | | action.Data = await Biz.Db.Queryable<BIZ_U9_ASN>().Where(q => OrderList.Contains(q.ORDER_NO)).IncludesAllFirstLayer().ToListAsync(); |
| | | if (!action.Data.IsNullOrEmpty()) |
| | | { |
| | | foreach (var order in Orders) |
| | | foreach (var order in action.Data) |
| | | { |
| | | foreach (var dtl in order.Details) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | return Orders; |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |