删除无用代码
This commit is contained in:
@@ -48,49 +48,6 @@ namespace Tnb.WarehouseMgr
|
|||||||
//齐套分拣
|
//齐套分拣
|
||||||
var setSortingService = App.GetRequiredService<IWmsSetSortingService>();
|
var setSortingService = App.GetRequiredService<IWmsSetSortingService>();
|
||||||
await TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds);
|
await TimedTask(cts => setSortingService.PackSortingByAdd(cts), setSortingCts, toUserIds);
|
||||||
|
|
||||||
#region 老的方式
|
|
||||||
//TimedTask(withOutParamAction: () => Task.Run(async () =>
|
|
||||||
//{
|
|
||||||
// while (!genTaskToken.IsCancellationRequested)
|
|
||||||
// {
|
|
||||||
// await wareHouseService.GenTaskExecute(genTaskCTS).Catch(ex =>
|
|
||||||
// {
|
|
||||||
|
|
||||||
// });
|
|
||||||
// await Task.Delay(1000);
|
|
||||||
// }
|
|
||||||
//}, genTaskToken));
|
|
||||||
|
|
||||||
|
|
||||||
//CancellationTokenSource kittingOutAddCts = new();
|
|
||||||
//CancellationToken kittingOutAddToken = kittingOutAddCts.Token;
|
|
||||||
|
|
||||||
|
|
||||||
//var kittingOutService = App.GetRequiredService<IWmskittingOutService>();
|
|
||||||
//TimedTask(withOutParamAction: () => Task.Run(async () =>
|
|
||||||
//{
|
|
||||||
// while (!kittingOutAddToken.IsCancellationRequested)
|
|
||||||
// {
|
|
||||||
// await kittingOutService.KittingOutByAdd(kittingOutAddCts);
|
|
||||||
// await Task.Delay(1000);
|
|
||||||
// }
|
|
||||||
//}, kittingOutAddToken));
|
|
||||||
|
|
||||||
|
|
||||||
//CancellationTokenSource kittingOutShippedCts = new();
|
|
||||||
//CancellationToken kittingOutShippedToken = kittingOutShippedCts.Token;
|
|
||||||
|
|
||||||
//TimedTask(withOutParamAction: () => Task.Run(async () =>
|
|
||||||
//{
|
|
||||||
// while (!kittingOutShippedToken.IsCancellationRequested)
|
|
||||||
// {
|
|
||||||
// await kittingOutService.KittingOutByIsToBeShipped(kittingOutShippedCts);
|
|
||||||
// await Task.Delay(1000);
|
|
||||||
// }
|
|
||||||
//}, kittingOutShippedToken));
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user