出库增加箱信息填写
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using WMS.Web.Core;
|
||||
using WMS.Web.Core.Internal.Results;
|
||||
using WMS.Web.Domain.Values;
|
||||
|
||||
namespace WMS.Web.Domain.Entitys
|
||||
@@ -207,5 +209,31 @@ namespace WMS.Web.Domain.Entitys
|
||||
}
|
||||
this.BillNo = "CK" + idStr;
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改箱信息
|
||||
/// </summary>
|
||||
/// <param name="boxDetailsId"></param>
|
||||
/// <param name="boxLength"></param>
|
||||
/// <param name="boxWide"></param>
|
||||
/// <param name="boxHigh"></param>
|
||||
/// <param name="boxWeight"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
public Result EditBoxInfo(int boxDetailsId, decimal? boxLength, decimal? boxWide, decimal? boxHigh, decimal? boxWeight, int userId)
|
||||
{
|
||||
var boxDetail = this.Details.SelectMany(s => s.BoxsDetails).FirstOrDefault(f => f.Id == boxDetailsId);
|
||||
if (boxDetail == null) return Result.ReFailure(ResultCodes.NoDateError);
|
||||
if (boxDetail.BoxLength != boxLength || boxDetail.BoxWide != boxWide ||
|
||||
boxDetail.BoxHigh != boxHigh || boxDetail.BoxWeight != boxWeight)
|
||||
{
|
||||
boxDetail.BoxLength = boxLength;
|
||||
boxDetail.BoxWide = boxWide;
|
||||
boxDetail.BoxHigh = boxHigh;
|
||||
boxDetail.BoxWeight = boxWeight;
|
||||
boxDetail.UpdateId = userId;
|
||||
boxDetail.UpdateDate = DateTime.Now;
|
||||
}
|
||||
return Result.ReSuccess();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user