Commit 56a72d0b LN

出入库调试修改

1 个父辈 b91313f5
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<add key="HumitureControllerType" value="0" /> <add key="HumitureControllerType" value="0" />
<add key="UseAIOBOX" value="1" /> <add key="UseAIOBOX" value="1" />
<!--流水线地址和端口配置--> <!--流水线地址和端口配置-->
<add key="LineServerIp" value="192.168.101.11" /> <add key="LineServerIp" value="192.168.204.88" />
<add key="LineServerPort" value="5246" /> <add key="LineServerPort" value="5246" />
<!--是否调试状态--> <!--是否调试状态-->
<add key="IsInDebug" value="1" /> <add key="IsInDebug" value="1" />
......
...@@ -81,16 +81,22 @@ namespace OnlineStore.Common ...@@ -81,16 +81,22 @@ namespace OnlineStore.Common
{ {
if (lastErrorLogTime.ContainsKey(type)) if (lastErrorLogTime.ContainsKey(type))
{ {
TimeSpan span = DateTime.Now - lastErrorLogTime[type]; try
if (span.TotalSeconds < spanSeconds)
{ {
return; TimeSpan span = DateTime.Now - lastErrorLogTime[type];
} if (span.TotalSeconds < spanSeconds)
else {
return;
}
else
{
lastErrorLogTime.Remove(type);
lastErrorLogTime.Add(type, DateTime.Now);
error(log, errorMsg);
}
}catch(Exception ex)
{ {
lastErrorLogTime.Remove(type);
lastErrorLogTime.Add(type, DateTime.Now);
error(log, errorMsg);
} }
} }
else else
......
...@@ -33,7 +33,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -33,7 +33,7 @@ namespace OnlineStore.DeviceLibrary
WareNumber = wareNo; WareNumber = wareNo;
PositionNum = posId; PositionNum = posId;
MoveP = null; MoveP = null;
IsSolderPaste = false; IsSolderPaste = false;
} }
public InOutStoreParam(string wareNo, string posId,string plateH,string plateW) public InOutStoreParam(string wareNo, string posId,string plateH,string plateW)
{ {
...@@ -54,6 +54,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -54,6 +54,12 @@ namespace OnlineStore.DeviceLibrary
PositionNum = posId; PositionNum = posId;
MoveP = linePosition; MoveP = linePosition;
IsSolderPaste = false; IsSolderPaste = false;
ACStorePosition p = GetACPosition();
if (p != null)
{
PlateH = p.BagHigh.ToString();
PlateW = p.BagWidth.ToString();
}
} }
//public InOutStoreParam(string wareNo, string posId, ACStorePosition movep) //public InOutStoreParam(string wareNo, string posId, ACStorePosition movep)
//{ //{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!