admin
2 天以前 2b35a7bc0ee4cae4016692386a9d073870becdf6
Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model.InterFaceModel;
@@ -87,6 +88,30 @@
        /// <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>