| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Model.InterFaceModel; |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取需要质检的批次号 |
| | | /// </summary> |
| | | /// <param name="pageIndex">页码</param> |
| | | /// <param name="pageSize">页大小</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<string> GetInspectLotNoList(int pageIndex, int pageSize) |
| | | { |
| | | int index = (pageIndex <= 1) ? 1 : pageIndex; |
| | | int size = (pageSize <= 100) ? 100 : pageSize; |
| | | |
| | | string lotnoSql = $@"select LotNo |
| | | from DataStockDetail |
| | | where isnull(InspectStatus,'')='0' and isnull(ASNNo,'')!='' and isnull(SkuNo,'')!='' |
| | | group by LotNo |
| | | order by LotNo |
| | | offset {(index - 1) * size} rows fetch next {size} rows only"; |
| | | DataTable lotnoDt = Db.Ado.GetDataTable(lotnoSql); |
| | | |
| | | var result = lotnoDt.Rows.Cast<DataRow>().Select(e => e["LotNo"] + ""); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 添加物料质检信息 |
| | | /// </summary> |
| | | /// <param name="model">质检信息实体模型</param> |