From c78de54cc66df1fc8d68e23858b37e50d1178a02 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 18 十月 2025 17:11:12 +0800
Subject: [PATCH] 报工逻辑优化
---
Services/MesInvItemBarcodesManager.cs | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Services/MesInvItemBarcodesManager.cs b/Services/MesInvItemBarcodesManager.cs
index 421e99c..6b5e122 100644
--- a/Services/MesInvItemBarcodesManager.cs
+++ b/Services/MesInvItemBarcodesManager.cs
@@ -300,8 +300,10 @@
// BgPerson = strings[0],
AddressCode = womdaa.AddressCode,
MachineNo = womdaa.MachineNo,
- BfQty = query.bf,
- // OkQty = print,
+ BfQty = query.bf,//涓嶈壇鏁伴噺
+ OkQty = query.currentCjNum - query.initCjNum - query.bf,//鑹搧鏁伴噺
+ CsQty = query.initCjNum,//鍒濆閲囬泦鏁�
+ JtQty = query.currentCjNum,//鎶ュ伐鏃堕噰闆嗘暟
ItemNo = womdaa.Daa002,
BillNo = womdaa.Daa001,
BgPerson = query.staffNo // 鏂板锛氭姤宸ヤ汉缂栧彿
@@ -363,8 +365,8 @@
// 鏇存柊鎶ュ伐璁板綍
Db.Updateable<MesReporting>()
.SetColumns(a => a.BlQty == BlQty.ToString())
- .SetColumns(a => a.CsQty == anchors.InitialValue.ToString())
- .SetColumns(a => a.JtQty == jt.ToString())
+ .SetColumns(a => a.CsQty == (anchors.InitialValue ?? 0))
+ .SetColumns(a => a.JtQty == jt)
// .SetColumns(a => a.BfQty == bfQty)
.SetColumns(a => a.CjQty == ljcj.ToString())
.SetColumns(a => a.DyQty == DyQty.ToString())
--
Gitblit v1.9.3