代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
+5 -6
View File
@@ -3,7 +3,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BLL
@@ -130,13 +129,13 @@ namespace BLL
/// <param name="WarehouseCode"></param>
/// <param name="inOutType"></param>
/// <param name="StockNum"></param>
public static void UpdateStockNum(string ProjectId, string MaterialCode, string WarehouseCode,TwConst.InOutType inOutType , decimal? StockNum)
public static void UpdateStockNum(string ProjectId, string MaterialCode, string WarehouseCode, TwConst.InOutType inOutType, decimal? StockNum)
{
Model.Tw_MaterialStock table = Funs.DB.Tw_MaterialStock.FirstOrDefault(x => x.ProjectId == ProjectId && x.PipeLineMatCode == MaterialCode && x.WarehouseCode == WarehouseCode);
//如果是入库,则库存数量加上,如果是出库,则库存数量减去
if (inOutType==TwConst.InOutType.)
if (inOutType == TwConst.InOutType.)
{
StockNum=-StockNum;//出库,库存数量减去
StockNum = -StockNum;//出库,库存数量减去
}
if (table != null)
{
@@ -147,12 +146,12 @@ namespace BLL
else
{
Model.Tw_MaterialStock newtable = new Model.Tw_MaterialStock
{
{
Id = Guid.NewGuid().ToString(),
ProjectId = ProjectId,
PipeLineMatCode = MaterialCode,
WarehouseCode = WarehouseCode,
StockNum = StockNum??0,
StockNum = StockNum ?? 0,
};
Funs.DB.Tw_MaterialStock.InsertOnSubmit(newtable);
Funs.DB.SubmitChanges();