|
@ -3489,10 +3489,14 @@ namespace ICSSoft.DataProject |
|
|
/// <param name="TaskID"></param>
|
|
|
/// <param name="TaskID"></param>
|
|
|
/// <param name="cmd"></param>
|
|
|
/// <param name="cmd"></param>
|
|
|
/// <param name="language"></param>
|
|
|
/// <param name="language"></param>
|
|
|
public static void ActionForkLiftTaskEnd(string TaskID, SqlCommand cmd, Dictionary<string, string> language) |
|
|
|
|
|
|
|
|
public static void ActionForkLiftTaskEnd(string TaskID, string TaskType, string DestBin, SqlCommand cmd, Dictionary<string, string> language) |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (TaskType == "PTWY上架") |
|
|
|
|
|
{ |
|
|
|
|
|
#region 入库
|
|
|
|
|
|
|
|
|
#region 获取任务ID相关的料架条码及目标库位信息
|
|
|
#region 获取任务ID相关的料架条码及目标库位信息
|
|
|
string ContainerCode = ""; |
|
|
string ContainerCode = ""; |
|
|
string StartLocation = ""; |
|
|
string StartLocation = ""; |
|
@ -3712,6 +3716,23 @@ namespace ICSSoft.DataProject |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
} |
|
|
|
|
|
else if (TaskType == "PICK出库") |
|
|
|
|
|
{ |
|
|
|
|
|
#region 出库(仅记录叉车搬运到的出库点位,用于后面的回库)
|
|
|
|
|
|
|
|
|
|
|
|
string sql = @" Update ICSForkLiftTaskLog SET EndLocation='{0}'
|
|
|
|
|
|
where ReqCode='{1}'";
|
|
|
|
|
|
sql = string.Format(sql, DestBin, TaskID); |
|
|
|
|
|
if (!DBHelper.ExecuteNonQuery(sql, cmd)) |
|
|
|
|
|
{ |
|
|
|
|
|
//throw new Exception("任务编码:" + TaskCode + ",日志记录失败");//料架状态更新失败
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
|