Browse Source

移库任务校验是否是同一巷道的任务

master
志铭 吕 3 weeks ago
parent
commit
7ca38f1856
  1. 6
      webapi/WindowsFormsApp1/APIChannel.cs

6
webapi/WindowsFormsApp1/APIChannel.cs

@ -848,7 +848,7 @@ namespace WindowsFormsApp1
{ {
error_code.Append(";").Append("终点").Append(all_checking["CELL_NOT_EXIST"].des); //终点货位不存在 error_code.Append(";").Append("终点").Append(all_checking["CELL_NOT_EXIST"].des); //终点货位不存在
} }
//移库任务如果不同层,校验不要移 存疑 //移库任务如果不同层,校验不要移 存疑
if (startdevice.Substring(6, 2) != enddevice.Substring(6, 2)) if (startdevice.Substring(6, 2) != enddevice.Substring(6, 2))
{ {
@ -858,7 +858,9 @@ namespace WindowsFormsApp1
{ {
error_code.Append(";").Append("移库任务起点终点相同"); 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
#endregion #endregion

Loading…
Cancel
Save