Commit 0e1429fb 刘韬

完成出库任务时清空队列中同名任务

1 个父辈 8df519a3
......@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore 9d8c3922bd46e1f1f4a849ae9b7c4946bc7c9e4d")]
[assembly: AssemblyProduct("SO951-HC-ACSingleStore 8df519a3f541e9b5045e30ff7459067dc3f30f8a")]
[assembly: AssemblyCopyright("Copyright ? 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
......
......@@ -983,6 +983,7 @@ namespace OnlineStore.DeviceLibrary
string warecode = StoreMove.MoveParam != null ? StoreMove.MoveParam.WareNumber : "";
storeStatus = StoreStatus.StoreOnline;
LogUtil.info(LOGGER, StoreName + " 【" + posId + "】出库结束[" + FormUtil.GetSpanStr(span) + "]", storeMoveColor);
DelWaitOutInfo(posId);
StoreMove.EndMove();
storeRunStatus = StoreRunStatus.Runing;
InOutEndProcess(StoreMoveType.OutStore, warecode, posId);
......@@ -1058,6 +1059,15 @@ namespace OnlineStore.DeviceLibrary
waitOutStoreList.Add(code);
}
}
public void DelWaitOutInfo(string PosId)
{
lock (waitOutListLock)
{
// 移除所有匹配 PosId 的 FixtureCodeInfo 对象
int removedCount = waitOutStoreList.RemoveAll(fx => fx.PosId == PosId);
Console.WriteLine($"Deleted {removedCount} items with PosId: {PosId}");
}
}
/// <summary>
/// PosId, InOut,isSuccess
/// </summary>
......
......@@ -32,6 +32,9 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\ACSingleStore\bin\Debug\log4net.dll</HintPath>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!