Commit 0d1488b8 LN

bug修改。D7增加当前库位号上传。

1 个父辈 3120190e
......@@ -8,7 +8,6 @@
<add key="App_AutoRun" value="0" />
<add key="App_Title" value="流水线客户端" />
<!--Server address-->
<!--<add key="http.server" value="http://192.168.100.14/myproject/service/store/emptyPosForPutin"/>-->
<add key="http.server" value="http://192.168.100.14/myproject/" />
<!--storeType-->
<add key="Line_moveEquip_count" value="7" />
......
......@@ -648,6 +648,8 @@ namespace OnlineStore.DeviceLibrary
if (OnlyProOutTray)
{
InLog("出料移栽 " + MoveInfo.SLog + ",提前通知出料机构取料");
LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
string code = MoveInfo.MoveParam.WareCode;
if (MoveInfo.MoveParam.IsNG)
{
......@@ -661,8 +663,6 @@ namespace OnlineStore.DeviceLibrary
string msg = SServerManager.arrive3fRobotLocation(Name, 1, code);
afterPutCutOK = true;
}
InLog("出料移栽 " + MoveInfo.SLog + ",提前通知出料机构取料");
LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
}
else
{
......
......@@ -101,7 +101,7 @@ namespace OnlineStore.DeviceLibrary
lineList.Add(line);
}
}
FileEncoding.WritteFile(FilePath, lineList.ToArray());
FileEncoding.WriteFile(FilePath, lineList.ToArray());
}
catch (Exception ex)
{
......
......@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
lineList.Add(line);
}
}
FileEncoding.WritteFile(FilePath, lineList.ToArray());
FileEncoding.WriteFile(FilePath, lineList.ToArray());
}
catch (Exception ex)
{
......
......@@ -72,5 +72,10 @@ namespace OnlineStore.DeviceLibrary
public int HasTray { get; set; }
public List<string> WaitInStoreList = new List<string>();
/// <summary>
/// 当前出入库的库位号
/// </summary>
public string CurrPosId { get; set; }
}
}
......@@ -98,7 +98,8 @@ namespace OnlineStore.DeviceLibrary
LineRunStatus runs = (LineRunStatus)box.SRunStatus;
if (runs.Equals(LineRunStatus.Busy))
{
if (status.Equals(LineStatus.OutStoreExecute) || status.Equals(LineStatus.OutStoreBoxEnd) || box.WaitInStoreList.Contains(posId))
bool isOutP = status.Equals(LineStatus.OutStoreExecute) || status.Equals(LineStatus.OutStoreBoxEnd);
if ((isOutP && box.CurrPosId.Equals(posId)) || box.WaitInStoreList.Contains(posId))
{
return true;
}
......
......@@ -9,7 +9,7 @@ namespace OnlineStore.LoadCSVLibrary
{
public class FileEncoding
{
public static bool WritteFile(string filePath, string[] lines)
public static bool WriteFile(string filePath, string[] lines)
{
try
{
......@@ -45,11 +45,10 @@ namespace OnlineStore.LoadCSVLibrary
}
File.WriteAllLines(filePath, lines, Encoding.UTF8);
}
catch (Exception ex)
{
LogUtil.error(ex.ToString());
LogUtil.error("WriteFile ["+filePath+"] error :" +ex.ToString());
return false;
}
return true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!