Commit 8fd8c936 顾剑亮

debug

1 个父辈 ab3dd788
......@@ -14,7 +14,7 @@ namespace BLL
public MoveJob(string mission)
{
IsEnd = false;
this._mission = mission;
_mission = mission;
moveStep = new JobStep<MoveStep>(MoveStep.Send);
}
......@@ -71,7 +71,7 @@ namespace BLL
rtn = Common.mir.Get_MissionState(_info.IP, _info.Authorization, _id, out state);
if (rtn)
{
Common.log.Debug("MoveJob To:" + _info.Name + ", " + _mission + state.ToString());
Common.log.Debug("MoveJob To:" + _info.Name + ", " + _mission + ", " + state.ToString());
if (state == MissionState.Done.ToString())
moveStep.NextStep(MoveStep.End);
else if (state == MissionState.Aborted.ToString())
......@@ -106,7 +106,8 @@ namespace BLL
{
Aborted,
Executing,
Done
Done,
Pending
}
}
}
......@@ -78,7 +78,7 @@ namespace BLL
move = new MoveJob(mission);
move.Execute(_info);
standbyStep.NextStep(StandbyStep.MoveStandby);
standbyStep.Msg = _info.Name + "发送任务" + mission;
standbyStep.Msg = _info.Name + ",发送任务," + mission;
}
private void PassDoor()
......
......@@ -371,15 +371,15 @@ namespace BLL
private static bool GetWash(AgvInfo info)
{
int index = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (index == -1) return false;
int lineIdx = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (lineIdx == -1) return false;
bool find = false;
for (int i = 0; i < newSteelWork.Count; i++)
{
if (newSteelWork[i].From == newSteelWork[i].Place)
{
index = Array.FindIndex(Common.agvLines[index].Lines, s => s == oldSteelWork[i].Place);
int index = Array.FindIndex(Common.agvLines[lineIdx].Lines, s => s == oldSteelWork[i].Place);
if (index > -1)
{
find = true;
......@@ -392,13 +392,13 @@ namespace BLL
private static bool GetOldSteel(AgvInfo info)
{
int index = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (index == -1) return false;
int lineIdx = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (lineIdx == -1) return false;
bool find = false;
for (int i = 0; i < oldSteelWork.Count; i++)
{
index = Array.FindIndex(Common.agvLines[index].Lines, s => s == oldSteelWork[i].Place);
int index = Array.FindIndex(Common.agvLines[lineIdx].Lines, s => s == oldSteelWork[i].Place);
if (index > -1)
{
find = true;
......@@ -410,13 +410,13 @@ namespace BLL
private static bool GetStorage(AgvInfo info)
{
int index = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (index == -1) return false;
int lineIdx = Common.agvLines.FindIndex(s => s.Workshop == info.Workshop);
if (lineIdx == -1) return false;
bool find = false;
for (int i = 0; i < storageWork.Count; i++)
{
index = Array.FindIndex(Common.agvLines[index].Lines, s => s == storageWork[i].Place);
int index = Array.FindIndex(Common.agvLines[lineIdx].Lines, s => s == storageWork[i].Place);
if (index > -1)
{
find = true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!