Browse Source

no message

master
陆晔 2 years ago
parent
commit
5947a58641
  1. 15
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs
  2. 1
      ICSSoft.WMS.WebAPI/ICSSoft.Entity/AGVResult.cs

15
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs

@ -2896,7 +2896,7 @@ namespace ICSSoft.DataProject
(SELECT ID FROM ICSContainer WHERE ContainerCode='{1}' AND WorkPoint='{2}') (SELECT ID FROM ICSContainer WHERE ContainerCode='{1}' AND WorkPoint='{2}')
END END
"; ";
sql = string.Format(sql, LotNo, ContainerCode, WorkPoint, User, ContainerType, LocationCode);
sql = string.Format(sql, LotNo, ContainerCode, WorkPoint, User, LocationCode);
if (!DBHelper.ExecuteNonQuery(sql, cmd)) if (!DBHelper.ExecuteNonQuery(sql, cmd))
{ {
@ -2925,7 +2925,7 @@ namespace ICSSoft.DataProject
(SELECT ID FROM ICSContainer WHERE ContainerCode='{1}' AND WorkPoint='{2}') (SELECT ID FROM ICSContainer WHERE ContainerCode='{1}' AND WorkPoint='{2}')
END END
"; ";
sql = string.Format(sql, LotNo, ContainerCode, WorkPoint, User, ContainerType, LocationCode);
sql = string.Format(sql, LotNo, ContainerCode, WorkPoint, User, LocationCode);
if (!DBHelper.ExecuteNonQuery(sql, cmd)) if (!DBHelper.ExecuteNonQuery(sql, cmd))
{ {
@ -3234,15 +3234,10 @@ namespace ICSSoft.DataProject
{ {
try try
{ {
string sql = @"Insert into ICSAGVTaskLog
(ID,TaskCode,ContainerCode,LocationCode,UserCode,MTIME,WorkPoint)
select NEWID(),'{0}','{1}','{2}','{3}',GETDATE(),'{4}'";
sql = string.Format(sql, TaskCode, ContainerCode, Location, User, WorkPoint);
#region 根据任务ID查询是否需要超托入库
string sql = @"";
DataTable dt = DBHelper.SQlReturnData(sql, cmd); DataTable dt = DBHelper.SQlReturnData(sql, cmd);
if (dt.Rows.Count == 0)
{
throw new Exception("已存在相同的任务ID,请勿重复下任务!");
}
#endregion
} }
catch (Exception ex) catch (Exception ex)
{ {

1
ICSSoft.WMS.WebAPI/ICSSoft.Entity/AGVResult.cs

@ -11,6 +11,7 @@ namespace ICSSoft.Entity
{ {
public AGVResult() public AGVResult()
{ {
} }
public AGVResult(string Code, string Message, string ReqCode) public AGVResult(string Code, string Message, string ReqCode)
{ {

Loading…
Cancel
Save