|
@ -24,6 +24,7 @@ using WY.NewJit.MsgTransmission; |
|
|
using Volo.Abp.EventBus.Distributed; |
|
|
using Volo.Abp.EventBus.Distributed; |
|
|
using WY.NewJit.SettleAccountFis; |
|
|
using WY.NewJit.SettleAccountFis; |
|
|
using WY.NewJit.MsgTransmission.PaiGe; |
|
|
using WY.NewJit.MsgTransmission.PaiGe; |
|
|
|
|
|
using WY.NewJit.PrintTable; |
|
|
|
|
|
|
|
|
namespace WY.NewJit.MsgCheck |
|
|
namespace WY.NewJit.MsgCheck |
|
|
{ |
|
|
{ |
|
@ -47,6 +48,7 @@ namespace WY.NewJit.MsgCheck |
|
|
|
|
|
|
|
|
private readonly IRepository<BillR100, Guid> _billR100Repository; |
|
|
private readonly IRepository<BillR100, Guid> _billR100Repository; |
|
|
private readonly IRepository<BillM100, Guid> _billM100Repository; |
|
|
private readonly IRepository<BillM100, Guid> _billM100Repository; |
|
|
|
|
|
private readonly IRepository<WaitPrint, Guid> _waitPrintRepository; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// ERP总成仓储
|
|
|
/// ERP总成仓储
|
|
@ -131,7 +133,8 @@ namespace WY.NewJit.MsgCheck |
|
|
R100CheckDomainService r100CheckDomainSrv, |
|
|
R100CheckDomainService r100CheckDomainSrv, |
|
|
M100CheckDomainService m100CheckDomainService, |
|
|
M100CheckDomainService m100CheckDomainService, |
|
|
IDistributedEventBus distributedEventBus, |
|
|
IDistributedEventBus distributedEventBus, |
|
|
IRepository<PartCfg, Guid> partCfgRepository |
|
|
IRepository<PartCfg, Guid> partCfgRepository, |
|
|
|
|
|
IRepository<WaitPrint, Guid> waitPrintRepository |
|
|
) |
|
|
) |
|
|
{ |
|
|
{ |
|
|
_UnknownAssemblyRepository = UnknownAssemblyRepository; |
|
|
_UnknownAssemblyRepository = UnknownAssemblyRepository; |
|
@ -153,6 +156,7 @@ namespace WY.NewJit.MsgCheck |
|
|
_m100CheckDomainService = m100CheckDomainService; |
|
|
_m100CheckDomainService = m100CheckDomainService; |
|
|
_distributedEventBus = distributedEventBus; |
|
|
_distributedEventBus = distributedEventBus; |
|
|
_partCfgRepository = partCfgRepository; |
|
|
_partCfgRepository = partCfgRepository; |
|
|
|
|
|
_waitPrintRepository = waitPrintRepository; |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
@ -909,6 +913,35 @@ select * from |
|
|
{ |
|
|
{ |
|
|
m100Obj.NeedReplenishPrint = 1; |
|
|
m100Obj.NeedReplenishPrint = 1; |
|
|
await _billM100Repository.UpdateAsync(m100Obj); |
|
|
await _billM100Repository.UpdateAsync(m100Obj); |
|
|
|
|
|
//var waititem=await _waitPrintRepository.GetAsync(r=>r.M100Id== m100Obj.Id);
|
|
|
|
|
|
// if (waititem == null)
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
|
|
|
|
// WaitPrint targetWaitPrint = new WaitPrint(GuidGenerator.Create());
|
|
|
|
|
|
// targetWaitPrint.M100Id = m100Obj.Id;
|
|
|
|
|
|
// //targetWaitPrint.BusinessType = m100Obj.BusinessType;
|
|
|
|
|
|
// //targetWaitPrint.ProductLine = sourceWaitPrint.ProductLine;
|
|
|
|
|
|
// //targetWaitPrint.OnlineTime = sourceWaitPrint.OnlineTime;
|
|
|
|
|
|
// //targetWaitPrint.HostSN = breaknum.ToString().Right(5).TryToIntZero();
|
|
|
|
|
|
// //targetWaitPrint.KNR = null;
|
|
|
|
|
|
// //targetWaitPrint.VIN = null;
|
|
|
|
|
|
// //targetWaitPrint.VehicleModelCode = null;
|
|
|
|
|
|
// //targetWaitPrint.AssemblyID = null;
|
|
|
|
|
|
// //targetWaitPrint.BillStatus = BillStatusEnum.BreakNum;
|
|
|
|
|
|
// //targetWaitPrint.PrintType = PrintTypeEnum.ReplenishPrint;
|
|
|
|
|
|
// //targetWaitPrint.HostSN2 = Convert.ToInt32 (m100Obj.HostSN2);
|
|
|
|
|
|
// //targetWaitPrint.Description = null;
|
|
|
|
|
|
// //targetWaitPrint.ReceiveTime = null;
|
|
|
|
|
|
// //targetWaitPrint.CreationTime = null;
|
|
|
|
|
|
// //targetWaitPrint.CreatorId = null;
|
|
|
|
|
|
// //targetWaitPrint.LastModificationTime = null;
|
|
|
|
|
|
// //targetWaitPrint.LastModifierId = null;
|
|
|
|
|
|
// await _waitPrintRepository.InsertAsync(targetWaitPrint);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// waititem.PrintType =PrintTypeEnum.ReplenishPrint;
|
|
|
|
|
|
// }
|
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
} |
|
|
} |
|
|