代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user