This commit is contained in:
2025-07-24 16:43:15 +08:00
parent a1e84577ab
commit ea313cbbba
12 changed files with 83 additions and 12 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ namespace BLL.API
if (!string.IsNullOrEmpty(unitStoreId))
{
q = (from x in db.Weld_WeldInfo
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.UsingAmount ?? 0).Sum() > 0
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.UsingAmount ?? 0).Sum() > 0 && (x.IsLock == null || x.IsLock == false)
orderby x.WeldCode
select x).ToList();
}
@@ -35,6 +35,7 @@ namespace BLL
newWeld.WarnAmount = weld.WarnAmount;
newWeld.SteelType = weld.SteelType;
newWeld.CreateMan = weld.CreateMan;
newWeld.IsLock = weld.IsLock;
db.Weld_WeldInfo.InsertOnSubmit(newWeld);
db.SubmitChanges();
}
@@ -57,6 +58,7 @@ namespace BLL
newWeld.WarnAmount = weld.WarnAmount;
newWeld.SteelType = weld.SteelType;
newWeld.ModifyMan = weld.ModifyMan;
newWeld.IsLock = weld.IsLock;
db.SubmitChanges();
}
}