修正错误

This commit is contained in:
gongxh
2021-05-21 13:57:49 +08:00
parent d7515bb2a1
commit e6fb223adf
2 changed files with 4 additions and 4 deletions

View File

@@ -29,12 +29,12 @@ namespace NX.ERP.Model.Request
private string workCenter;
private DateTime dueDate;
private IEnumerable<MaterialAppProvideDetail> Detail = new List<MaterialAppProvideDetail>();
private IEnumerable<MaterialAppProvideDetail> detail = new List<MaterialAppProvideDetail>();
public string OrderCode { get => orderCode; set => orderCode = value; }
public int OrderDetailId { get => orderDetailId; set => orderDetailId = value; }
public IEnumerable<MaterialAppProvideDetail> Detail1 { get => Detail; set => Detail = value; }
public IEnumerable<MaterialAppProvideDetail> Detail { get => detail; set => detail = value; }
public string WorkCenter { get => workCenter; set => workCenter = value; }
public DateTime DueDate { get => dueDate; set => dueDate = value; }
}

View File

@@ -149,10 +149,10 @@ FROM MaterialAppVouch a
{
var strSql = @"update MaterialAppVouchs set dDueDate=@DueDate,cDefine22='是',cDefine23=@SN,cDefine24=@WorkCenter";
if (provide.Detail1.Count() != 0)
if (provide.Detail.Count() != 0)
{
var mappDetails = this.GetDetailByMoCode(provide.OrderCode, provide.OrderDetailId).ToDictionary(m => m.AllocateId);
foreach (var item in provide.Detail1)
foreach (var item in provide.Detail)
{
if (mappDetails.TryGetValue(item.AllocateId, out var _mappDetails))
{