|
@ -106,32 +106,61 @@ public class JitSeSyncAppService : ApplicationService, IInvocable |
|
|
await _syncPositionFlagRepository.InsertAsync(syncPositionFlag); |
|
|
await _syncPositionFlagRepository.InsertAsync(syncPositionFlag); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
pubSeDetails.ForEach(pubSeDetail => |
|
|
foreach (var pubSeDetail in pubSeDetails) |
|
|
{ |
|
|
{ |
|
|
var vmiBalance = new VmiBalance() |
|
|
if (pubSeDetail.TransType == EnumDelTransType.发货) |
|
|
{ |
|
|
{ |
|
|
PartCode = pubSeDetail.PartCode, |
|
|
var vmiBalance = new VmiBalance() |
|
|
VinCode = pubSeDetail.PN, |
|
|
{ |
|
|
CustomerPartCode = default, |
|
|
PartCode = pubSeDetail.PartCode, |
|
|
CodeType = default, |
|
|
VinCode = pubSeDetail.PN, |
|
|
BillType = pubSeDetail.DeliverBillType, |
|
|
CustomerPartCode = default, |
|
|
Qty = pubSeDetail.Qty, |
|
|
CodeType = default, |
|
|
BillTime = pubSeDetail.BillTime, |
|
|
BillType = pubSeDetail.DeliverBillType, |
|
|
DeliverTime = pubSeDetail.DnBillTime, |
|
|
Qty = pubSeDetail.Qty, |
|
|
ErpToLoc = pubSeDetail.ToErpLocCode, |
|
|
BillTime = pubSeDetail.BillTime, |
|
|
Seq = default, |
|
|
DeliverTime = pubSeDetail.DnBillTime, |
|
|
OrderNum = pubSeDetail.DnBillNum, |
|
|
ErpToLoc = pubSeDetail.ToErpLocCode, |
|
|
UniqueCode = default, |
|
|
Seq = default, |
|
|
MatchNumber = default, |
|
|
OrderNum = pubSeDetail.DnBillNum, |
|
|
PjsNum = default, |
|
|
UniqueCode = default, |
|
|
Configcode = default, |
|
|
MatchNumber = default, |
|
|
factory = default, |
|
|
PjsNum = default, |
|
|
SubBillType = pubSeDetail.DeliverSubBillType, |
|
|
Configcode = default, |
|
|
RealCode = default, |
|
|
factory = default, |
|
|
ReMark = pubSeDetail.Remark, |
|
|
SubBillType = pubSeDetail.DeliverSubBillType, |
|
|
}; |
|
|
RealCode = default, |
|
|
_vmiService.In(logType: Vmi.VmiLogType.Type100, changedNumber: pubSeDetail.DnBillNum, data: vmiBalance); |
|
|
ReMark = pubSeDetail.Remark, |
|
|
}); |
|
|
}; |
|
|
|
|
|
await _vmiService.In(logType: Vmi.VmiLogType.Type100, changedNumber: pubSeDetail.DnBillNum, data: vmiBalance); |
|
|
|
|
|
} |
|
|
|
|
|
else if (pubSeDetail.TransType == EnumDelTransType.退货) |
|
|
|
|
|
{ |
|
|
|
|
|
var vmiLog = new VmiLog() |
|
|
|
|
|
{ |
|
|
|
|
|
PartCode = pubSeDetail.PartCode, |
|
|
|
|
|
VinCode = pubSeDetail.PN, |
|
|
|
|
|
CustomerPartCode = default, |
|
|
|
|
|
CodeType = default, |
|
|
|
|
|
BillType = pubSeDetail.DeliverBillType, |
|
|
|
|
|
Qty = pubSeDetail.Qty, |
|
|
|
|
|
BillTime = pubSeDetail.BillTime, |
|
|
|
|
|
DeliverTime = pubSeDetail.DnBillTime, |
|
|
|
|
|
ErpToLoc = pubSeDetail.ToErpLocCode, |
|
|
|
|
|
Seq = default, |
|
|
|
|
|
OrderNum = pubSeDetail.DnBillNum, |
|
|
|
|
|
UniqueCode = default, |
|
|
|
|
|
MatchNumber = default, |
|
|
|
|
|
PjsNum = default, |
|
|
|
|
|
Configcode = default, |
|
|
|
|
|
factory = default, |
|
|
|
|
|
SubBillType = pubSeDetail.DeliverSubBillType, |
|
|
|
|
|
RealCode = default, |
|
|
|
|
|
ReMark = pubSeDetail.Remark, |
|
|
|
|
|
}; |
|
|
|
|
|
await _vmiService.Out(VmiLogType.Type400, pubSeDetail.DnBillNum, vmiLog); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|