修正错误
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user