From 04504670fcafceb4e9d8a660d5db3f65bc135455 Mon Sep 17 00:00:00 2001
From: chr <chr@chr.com>
Date: 星期三, 21 八月 2024 19:16:06 +0800
Subject: [PATCH] 新增非审核人员的送审记录查询;
---
PdmSwPlugin.PDM/PdmControl.xaml.cs | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/PdmSwPlugin.PDM/PdmControl.xaml.cs b/PdmSwPlugin.PDM/PdmControl.xaml.cs
index d4b28ac..b6ccdbe 100644
--- a/PdmSwPlugin.PDM/PdmControl.xaml.cs
+++ b/PdmSwPlugin.PDM/PdmControl.xaml.cs
@@ -1080,7 +1080,7 @@
// 涓嶆槸鍘嗗彶鏁版嵁骞朵笖鏈夋湭閫氳繃鐨勶紝鏍囪涓篺alse
allSuccess = false;
}
-
+
if (!properties[key].HistoryData && msgs != null && msgs.Count > 0)
{
foreach (string msg in msgs)
@@ -1245,6 +1245,7 @@
ConcurrentQueue<string> errs = new ConcurrentQueue<string>();
CountdownEvent counter = new CountdownEvent(boms.Count);
+ int successCount = 0;
foreach (PdmBom bom in boms)
{
Task.Run(() =>
@@ -1275,6 +1276,7 @@
Result<DrawAudit> res = Client.PostSyncAction<DrawAudit>("drawAudit/add", httpContent);
DrawAudit da = res.HandleResult();
+ Interlocked.Increment(ref successCount);
}
catch (Exception ex)
{
@@ -1289,18 +1291,22 @@
}
counter.Wait();
counter.Dispose();
- try
+ if (successCount > 0)
{
- var param = new DrawAudit
+ try
{
- count = boms.Count
- };
- var msgRes = Client.PostSyncAction<object>(param, "drawAudit/sendToAuditor");
- msgRes.HandleResult();
- }
- catch (Exception ig)
- {
- Logger.Error("鍙戦�侀�佸娑堟伅寮傚父", ig);
+ var param = new DrawAudit
+ {
+ orderId = daOrder.id,
+ count = successCount
+ };
+ var msgRes = Client.PostSyncAction<object>(param, "drawAudit/sendToAuditor");
+ msgRes.HandleResult();
+ }
+ catch (Exception ig)
+ {
+ Logger.Error("鍙戦�侀�佸娑堟伅寮傚父", ig);
+ }
}
// 鍒锋柊鏈嶅姟鍣ㄤ笂鐨凚OM淇℃伅
RefreshWebBomInfo();
--
Gitblit v1.9.1