From 7ca38f18563fc5156c8bdbc8928409425db59ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E9=93=AD=20=E5=90=95?= <896951544@qq.com> Date: Thu, 15 May 2025 14:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=BA=93=E4=BB=BB=E5=8A=A1=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E6=98=AF=E5=90=A6=E6=98=AF=E5=90=8C=E4=B8=80=E5=B7=B7?= =?UTF-8?q?=E9=81=93=E7=9A=84=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapi/WindowsFormsApp1/APIChannel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapi/WindowsFormsApp1/APIChannel.cs b/webapi/WindowsFormsApp1/APIChannel.cs index 1486f31..f6b9e8b 100644 --- a/webapi/WindowsFormsApp1/APIChannel.cs +++ b/webapi/WindowsFormsApp1/APIChannel.cs @@ -848,7 +848,7 @@ namespace WindowsFormsApp1 { error_code.Append(";").Append("终点").Append(all_checking["CELL_NOT_EXIST"].des); //终点货位不存在 } - + //移库任务如果不同层,校验不要移 存疑 if (startdevice.Substring(6, 2) != enddevice.Substring(6, 2)) { @@ -858,7 +858,9 @@ namespace WindowsFormsApp1 { error_code.Append(";").Append("移库任务起点终点相同"); } - + if (Convert.ToInt32(startdevice.Substring(0, 2) + 3) / 4 != Convert.ToInt32(startdevice.Substring(0, 2) + 3) / 4) { + error_code.Append(";").Append("移库任务起点终点不是同一个巷道"); + } } #endregion #endregion