22
schangxiang@126.com
2024-12-12 1daeb924fb62c47ae8fc4f9fed710d19b8ea113e
22
已修改3个文件
47 ■■■■■ 文件已修改
CC/iWareCC_ASRS/ThreadService/01_BZ01工位(清灰,洗板后工位)/DataProcess_BZ01.cs 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Pda/manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Configuration/App.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
CC/iWareCC_ASRS/ThreadService/01_BZ01¹¤Î»£¨Çå»Ò£¬Ï´°åºó¹¤Î»£©/DataProcess_BZ01.cs
@@ -119,9 +119,50 @@
                                        }
                                        else
                                        {
                                            //还需要验证在这些区域中,是否正确排队,如果没有正确排队,那么就认为不齐套 ã€Editby shaocx,2024-12-12】
                                            var queueList = wmsDB.mes_upi_linequeue.Where(x => x.PackageCode == upiObj.PackageCode && x.AreaCode == queryAreaCode)
                                                .OrderBy(x => x.Id).ToList();
                                            var fisrtId = queueList.OrderBy(x => x.Id).First().Id;
                                            var endId = queueList.OrderByDescending(x => x.Id).First().Id;
                                            //继续查询这个时间段内的队列数据
                                            //重写该队列
                                            queueList = wmsDB.mes_upi_linequeue.Where(x => x.Id >= fisrtId && x.Id <= endId).OrderBy(x => x.Id).ToList();
                                            var syCount = allList.Where(x => x.Shelf >= upiObj.Shelf).Count();
                                            if (queueList.Count() != syCount)
                                            {
                                                qitaoReault = false;
                                                upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                            }
                                            else
                                            {
                                                //判断是否乱序
                                                bool isLuanXuan = false;
                                                int temp_shelf = 0;
                                                for (int i = 0; i < queueList.Count; i++)
                                                {
                                                    if (i == 0)
                                                    {
                                                        temp_shelf = queueList[i].Shelf;
                                                    }
                                                    else
                                                    {
                                                        if ((temp_shelf + 1) != queueList[i].Shelf)
                                                        {//认为乱序了
                                                            qitaoReault = false;
                                                            isLuanXuan = true;
                                                            upiObj.AreaCode = (int)AreaCodeEnum.缓存分拣区;
                                                            break;//跳出循环
                                                        }
                                                    }
                                                }
                                                if (isLuanXuan == false)
                                                {
                                            qitaoReault = true;
                                            upiObj.AreaCode = (int)AreaCodeEnum.码垛区域;
                                        }
                                            }
                                        }
                                        //注意:要删除该队列数据哦
                                        wmsDB.mes_upi_linequeue.Remove(lastUpiLineQueue);
LA24030_LuLiPackageLine_Pda/manifest.json
@@ -1,8 +1,8 @@
{
    "name" : "LuLiMuYe_Package_Pda",
    "appid" : "__UNI__28D87EB",
    "description" : "2024.12.1",
    "versionName" : "1.0.2",
    "description" : "2024.12.12",
    "versionName" : "1.0.3",
    "versionCode" : "100",
    "transformPx" : false,
    "app-plus" : {
LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Configuration/App.json
@@ -7,7 +7,7 @@
  "AllowedHosts": "*",
  "AppSettings": {
    "FilePreviewUrl": "http://172.17.1.111:5005/", //ly-0805文件预览前缀和app更新下载
    "FilePreviewUrl": "http://172.17.1.111:5007/", //ly-0805文件预览前缀和app更新下载
    "InjectSpecificationDocument": true, // ç”Ÿäº§çŽ¯å¢ƒæ˜¯å¦å¼€å¯Swagger
    "ExternalAssemblies": [ "plugins" ] // æ’件目录
  },