|
@ -780,6 +780,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
var data = ms.ToArray(); |
|
|
var data = ms.ToArray(); |
|
|
var tupleList = this.ImportInternal<VmiLog>(data); |
|
|
var tupleList = this.ImportInternal<VmiLog>(data); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tupleList.Any(o => o.Item2.Count > 0)) |
|
|
if (tupleList.Any(o => o.Item2.Count > 0)) |
|
|
{ |
|
|
{ |
|
|
using var workbook = new XLWorkbook(new MemoryStream(data)); |
|
|
using var workbook = new XLWorkbook(new MemoryStream(data)); |
|
@ -874,10 +876,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var result = await CheckBusinessJISLocation(seDetails,businessType).ConfigureAwait(false); |
|
|
var result = await CheckBusinessJISLocation(seDetails,businessType).ConfigureAwait(false); |
|
|
if (result != "ok") |
|
|
if (result != "ok") |
|
|
{ |
|
|
{ |
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
return new JsonResult(new { code = 400, message = "发运数据有不在" + result + "库位中" }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -970,6 +973,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
var result = await CheckBusinessJISLocation(seDetails, businessType).ConfigureAwait(false); |
|
|
|
|
|
if (result != "ok") |
|
|
|
|
|
{ |
|
|
|
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
|
|
|
} |
|
|
|
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (businessType == EnumBusinessType.ZhiGongJianBBAC) |
|
|
if (businessType == EnumBusinessType.ZhiGongJianBBAC) |
|
@ -1008,7 +1017,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetail.Remark = "期初初始化"; |
|
|
seDetail.Remark = "期初初始化"; |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
var result = await CheckBusinessPUBLocation(seDetails, businessType).ConfigureAwait(false); |
|
|
|
|
|
if (result != "ok") |
|
|
|
|
|
{ |
|
|
|
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
} |
|
|
} |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
@ -1049,6 +1062,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
var result = await CheckBusinessPUBLocation(seDetails, businessType).ConfigureAwait(false); |
|
|
|
|
|
if (result != "ok") |
|
|
|
|
|
{ |
|
|
|
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
|
|
|
} |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
if (businessType == EnumBusinessType.BeiJian) |
|
|
if (businessType == EnumBusinessType.BeiJian) |
|
@ -1088,6 +1106,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
var result = await CheckBusinessPUBLocation(seDetails, businessType).ConfigureAwait(false); |
|
|
|
|
|
if (result != "ok") |
|
|
|
|
|
{ |
|
|
|
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
|
|
|
} |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -1128,6 +1151,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
seDetails.Add(seDetail); |
|
|
seDetails.Add(seDetail); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
var result = await CheckBusinessPUBLocation(seDetails, businessType).ConfigureAwait(false); |
|
|
|
|
|
if (result != "ok") |
|
|
|
|
|
{ |
|
|
|
|
|
return new JsonResult(new { code = 400, message = "发运数据有不再" + result + "库位中" }); |
|
|
|
|
|
} |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
return await BeginTran(seDetails, logList).ConfigureAwait(false); |
|
|
} |
|
|
} |
|
|
return new JsonResult(new { code = 200, message = "ok" }); |
|
|
return new JsonResult(new { code = 200, message = "ok" }); |
|
@ -1209,18 +1237,18 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
case EnumBusinessType.MaiDanJianHBPO: |
|
|
case EnumBusinessType.MaiDanJianHBPO: |
|
|
locList = locList.Where(p => p.Value == "MaiDanJianHBPO").ToList(); |
|
|
locList = locList.Where(p => p.Value == "MaiDanJianHBPO").ToList(); |
|
|
break; |
|
|
break; |
|
|
case EnumBusinessType.ZhiGongJianBBAC: |
|
|
//case EnumBusinessType.ZhiGongJianBBAC:
|
|
|
locList = locList.Where(p => p.Value == "ZhiGongJianBBAC顺义" || p.Value == "ZhiGongJianBBAC").ToList(); |
|
|
// locList = locList.Where(p => p.Value == "ZhiGongJianBBAC顺义" || p.Value == "ZhiGongJianBBAC").ToList();
|
|
|
break; |
|
|
// break;
|
|
|
case EnumBusinessType.ZhiGongJianHBPO: |
|
|
//case EnumBusinessType.ZhiGongJianHBPO:
|
|
|
locList = locList.Where(p => p.Value == "ZhiGongJianHBPO").ToList(); |
|
|
// locList = locList.Where(p => p.Value == "ZhiGongJianHBPO").ToList();
|
|
|
break; |
|
|
// break;
|
|
|
case EnumBusinessType.BeiJian: |
|
|
//case EnumBusinessType.BeiJian:
|
|
|
locList = locList.Where(p => p.Value =="BeiJian").ToList(); |
|
|
// locList = locList.Where(p => p.Value =="BeiJian").ToList();
|
|
|
break; |
|
|
// break;
|
|
|
case EnumBusinessType.YinDuJian: |
|
|
//case EnumBusinessType.YinDuJian:
|
|
|
locList = locList.Where(p => p.Value == "YinDuJian").ToList(); |
|
|
// locList = locList.Where(p => p.Value == "YinDuJian").ToList();
|
|
|
break; |
|
|
// break;
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
var locs = locList.Select(p => p.Description).ToList(); |
|
|
var locs = locList.Select(p => p.Description).ToList(); |
|
@ -1237,28 +1265,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
/// <param name="p_list"></param>
|
|
|
/// <param name="p_list"></param>
|
|
|
/// <param name="enumBusinessType"></param>
|
|
|
/// <param name="enumBusinessType"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
private async Task<string> CheckBusinessPUBLocation<T>(List<PUB_SE_DETAIL> p_list, EnumBusinessType enumBusinessType) |
|
|
private async Task<string> CheckBusinessPUBLocation(List<PUB_SE_DETAIL> p_list, EnumBusinessType enumBusinessType) |
|
|
{ |
|
|
{ |
|
|
var locList = _codeRepository.Where(p => p.Project == "库位").ToList(); |
|
|
var locList = _codeRepository.Where(p => p.Project == "库位").ToList(); |
|
|
switch (enumBusinessType) |
|
|
switch (enumBusinessType) |
|
|
{ |
|
|
{ |
|
|
case EnumBusinessType.JisBBAC: |
|
|
|
|
|
locList = locList.Where(p => |
|
|
|
|
|
p.Value == "JisBBAC顺义" || |
|
|
|
|
|
p.Value == "JisBBAC" || |
|
|
|
|
|
p.Value == "MaiDanJianBBAC" || |
|
|
|
|
|
p.Value == "MaiDanJianBBAC顺义" |
|
|
|
|
|
).ToList(); |
|
|
|
|
|
break; |
|
|
|
|
|
case EnumBusinessType.JisHBPO: |
|
|
|
|
|
locList = locList.Where(p => |
|
|
|
|
|
p.Value == "JisHBPO" |
|
|
|
|
|
).ToList(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case EnumBusinessType.MaiDanJianHBPO: |
|
|
|
|
|
locList = locList.Where(p => p.Value == "MaiDanJianHBPO").ToList(); |
|
|
|
|
|
break; |
|
|
|
|
|
case EnumBusinessType.ZhiGongJianBBAC: |
|
|
case EnumBusinessType.ZhiGongJianBBAC: |
|
|
locList = locList.Where(p => p.Value == "ZhiGongJianBBAC顺义" || p.Value == "ZhiGongJianBBAC").ToList(); |
|
|
locList = locList.Where(p => p.Value == "ZhiGongJianBBAC顺义" || p.Value == "ZhiGongJianBBAC").ToList(); |
|
|
break; |
|
|
break; |
|
@ -1322,302 +1334,302 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
} |
|
|
} |
|
|
var logList = tupleList.Select(o => o.Item1).ToList(); |
|
|
var logList = tupleList.Select(o => o.Item1).ToList(); |
|
|
logList.AsParallel().ForEach(Update); |
|
|
logList.AsParallel().ForEach(Update); |
|
|
List<BBAC_SE_DETAIL> seDetails = new List<BBAC_SE_DETAIL>(); |
|
|
//List<BBAC_SE_DETAIL> seDetails = new List<BBAC_SE_DETAIL>();
|
|
|
List<HBPO_SE_DETAIL> hbpo_seDetails=new List<HBPO_SE_DETAIL>(); |
|
|
//List<HBPO_SE_DETAIL> hbpo_seDetails=new List<HBPO_SE_DETAIL>();
|
|
|
List<PUB_SE_DETAIL> pub_seDetails=new List<PUB_SE_DETAIL>(); |
|
|
//List<PUB_SE_DETAIL> pub_seDetails=new List<PUB_SE_DETAIL>();
|
|
|
|
|
|
|
|
|
foreach (var item in logList) |
|
|
//foreach (var item in logList)
|
|
|
{ |
|
|
//{
|
|
|
if(item.DeliverBillType== EnumDeliverBjBmpBillType.JIS件&&item.DeliverSubBillType== EnumDeliverSubBillType.保险杠BBAC) |
|
|
// if(item.DeliverBillType== EnumDeliverBjBmpBillType.JIS件&&item.DeliverSubBillType== EnumDeliverSubBillType.保险杠BBAC)
|
|
|
{ |
|
|
// {
|
|
|
BBAC_SE_DETAIL seDetail = new BBAC_SE_DETAIL(); |
|
|
// BBAC_SE_DETAIL seDetail = new BBAC_SE_DETAIL();
|
|
|
seDetail.SetId(item.Id); |
|
|
// seDetail.SetId(item.Id);
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
seDetail.IsDeleted = false; |
|
|
// seDetail.IsDeleted = false;
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
seDetail.IsHaveEdiData = false; |
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
seDetail.BusinessType = EnumBusinessType.JisBBAC; |
|
|
// seDetail.BusinessType = EnumBusinessType.JisBBAC;
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
seDetail.BillType = 0; |
|
|
// seDetail.BillType = 0;
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
seDetail.ProType = 0; |
|
|
// seDetail.ProType = 0;
|
|
|
seDetail.State = 0; |
|
|
// seDetail.State = 0;
|
|
|
seDetail.SubBillType = 0; |
|
|
// seDetail.SubBillType = 0;
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
seDetail.UID = 000; |
|
|
// seDetail.UID = 000;
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
seDetail.ErpToLoc= item.ErpToLoc; |
|
|
// seDetail.ErpToLoc= item.ErpToLoc;
|
|
|
seDetail.Qty=item.Qty; |
|
|
// seDetail.Qty=item.Qty;
|
|
|
seDetail.VinCode= item.VinCode; |
|
|
// seDetail.VinCode= item.VinCode;
|
|
|
seDetail.PN = item.VinCode; |
|
|
// seDetail.PN = item.VinCode;
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
seDetail.BillTime= item.BillTime; |
|
|
// seDetail.BillTime= item.BillTime;
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
|
|
|
|
|
|
|
|
|
seDetails.Add(seDetail); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.买单件小件BBAC) |
|
|
|
|
|
{ |
|
|
|
|
|
BBAC_SE_DETAIL seDetail = new BBAC_SE_DETAIL(); |
|
|
|
|
|
seDetail.SetId(item.Id); |
|
|
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
|
|
|
seDetail.IsDeleted = false; |
|
|
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.IsHaveEdiData = false; |
|
|
|
|
|
seDetail.BusinessType = EnumBusinessType.MaiDanJianBBAC; |
|
|
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
|
|
|
seDetail.BillType = 0; |
|
|
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
|
|
|
seDetail.ProType = 0; |
|
|
|
|
|
seDetail.State = 0; |
|
|
|
|
|
seDetail.SubBillType = 0; |
|
|
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
|
|
|
seDetail.UID = 000; |
|
|
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
|
|
|
seDetail.ErpToLoc = item.ErpToLoc; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.VinCode = item.VinCode; |
|
|
|
|
|
seDetail.PN = item.VinCode; |
|
|
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
|
|
|
|
|
|
|
|
|
seDetails.Add(seDetail); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.保险杠HBPO) |
|
|
|
|
|
{ |
|
|
|
|
|
HBPO_SE_DETAIL seDetail = new HBPO_SE_DETAIL(); |
|
|
|
|
|
seDetail.SetId(item.Id); |
|
|
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
|
|
|
seDetail.IsDeleted = false; |
|
|
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.IsHaveEdiData = false; |
|
|
|
|
|
seDetail.BusinessType = EnumBusinessType.JisHBPO; |
|
|
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
|
|
|
seDetail.BillType = 0; |
|
|
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
|
|
|
seDetail.ProType = 0; |
|
|
|
|
|
seDetail.State = 0; |
|
|
|
|
|
seDetail.SubBillType = 0; |
|
|
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
|
|
|
seDetail.UID = 000; |
|
|
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
|
|
|
seDetail.ErpToLoc = item.ErpToLoc; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.VinCode = item.VinCode; |
|
|
|
|
|
seDetail.PN = item.VinCode; |
|
|
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
|
|
|
|
|
|
|
|
|
hbpo_seDetails.Add(seDetail); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.买单件小件HBPO) |
|
|
|
|
|
{ |
|
|
|
|
|
HBPO_SE_DETAIL seDetail = new HBPO_SE_DETAIL(); |
|
|
|
|
|
seDetail.SetId(item.Id); |
|
|
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
|
|
|
seDetail.IsDeleted = false; |
|
|
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.IsHaveEdiData = false; |
|
|
|
|
|
seDetail.BusinessType = EnumBusinessType.MaiDanJianHBPO; |
|
|
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
|
|
|
seDetail.BillType = 0; |
|
|
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
|
|
|
seDetail.ProType = 0; |
|
|
|
|
|
seDetail.State = 0; |
|
|
|
|
|
seDetail.SubBillType = 0; |
|
|
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
|
|
|
seDetail.UID = 000; |
|
|
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
|
|
|
seDetail.ErpToLoc = item.ErpToLoc; |
|
|
|
|
|
seDetail.Qty = item.Qty; |
|
|
|
|
|
seDetail.VinCode = item.VinCode; |
|
|
|
|
|
seDetail.PN = item.VinCode; |
|
|
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
hbpo_seDetails.Add(seDetail); |
|
|
// seDetails.Add(seDetail);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIT直供件 && item.DeliverSubBillType == EnumDeliverSubBillType.JIT直供件BBAC) |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.买单件小件BBAC)
|
|
|
{ |
|
|
// {
|
|
|
PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL(); |
|
|
// BBAC_SE_DETAIL seDetail = new BBAC_SE_DETAIL();
|
|
|
seDetail.SetId(item.Id); |
|
|
// seDetail.SetId(item.Id);
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
seDetail.IsDeleted = false; |
|
|
// seDetail.IsDeleted = false;
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
seDetail.BusinessType = EnumBusinessType.ZhiGongJianBBAC; |
|
|
// seDetail.BusinessType = EnumBusinessType.MaiDanJianBBAC;
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
seDetail.BillType = 0; |
|
|
// seDetail.BillType = 0;
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
seDetail.ProType = 0; |
|
|
// seDetail.ProType = 0;
|
|
|
seDetail.State = 0; |
|
|
// seDetail.State = 0;
|
|
|
seDetail.SubBillType = 0; |
|
|
// seDetail.SubBillType = 0;
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
seDetail.UID = 000; |
|
|
// seDetail.UID = 000;
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
seDetail.ToErpLocCode = item.ErpToLoc; |
|
|
// seDetail.ErpToLoc = item.ErpToLoc;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
seDetail.PN = item.VinCode; |
|
|
// seDetail.PN = item.VinCode;
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
pub_seDetails.Add(seDetail); |
|
|
// seDetails.Add(seDetail);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIT直供件 && item.DeliverSubBillType == EnumDeliverSubBillType.JIT直供件HBPO) |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.保险杠HBPO)
|
|
|
{ |
|
|
// {
|
|
|
PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL(); |
|
|
// HBPO_SE_DETAIL seDetail = new HBPO_SE_DETAIL();
|
|
|
seDetail.SetId(item.Id); |
|
|
// seDetail.SetId(item.Id);
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
seDetail.IsDeleted = false; |
|
|
// seDetail.IsDeleted = false;
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
seDetail.BusinessType = EnumBusinessType.ZhiGongJianHBPO; |
|
|
// seDetail.BusinessType = EnumBusinessType.JisHBPO;
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
seDetail.BillType = 0; |
|
|
// seDetail.BillType = 0;
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
seDetail.ProType = 0; |
|
|
// seDetail.ProType = 0;
|
|
|
seDetail.State = 0; |
|
|
// seDetail.State = 0;
|
|
|
seDetail.SubBillType = 0; |
|
|
// seDetail.SubBillType = 0;
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
seDetail.UID = 000; |
|
|
// seDetail.UID = 000;
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
seDetail.ToErpLocCode = item.ErpToLoc; |
|
|
// seDetail.ErpToLoc = item.ErpToLoc;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
seDetail.PN = item.VinCode; |
|
|
// seDetail.PN = item.VinCode;
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
pub_seDetails.Add(seDetail); |
|
|
// hbpo_seDetails.Add(seDetail);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.北汽4S备件 && item.DeliverSubBillType == EnumDeliverSubBillType.北汽4S备件BBAC) |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIS件 && item.DeliverSubBillType == EnumDeliverSubBillType.买单件小件HBPO)
|
|
|
{ |
|
|
// {
|
|
|
PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL(); |
|
|
// HBPO_SE_DETAIL seDetail = new HBPO_SE_DETAIL();
|
|
|
seDetail.SetId(item.Id); |
|
|
// seDetail.SetId(item.Id);
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
seDetail.IsDeleted = false; |
|
|
// seDetail.IsDeleted = false;
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
// seDetail.IsHaveEdiData = false;
|
|
|
seDetail.BusinessType = EnumBusinessType.BeiJian; |
|
|
// seDetail.BusinessType = EnumBusinessType.MaiDanJianHBPO;
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
seDetail.BillType = 0; |
|
|
// seDetail.BillType = 0;
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
seDetail.ProType = 0; |
|
|
// seDetail.ProType = 0;
|
|
|
seDetail.State = 0; |
|
|
// seDetail.State = 0;
|
|
|
seDetail.SubBillType = 0; |
|
|
// seDetail.SubBillType = 0;
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
seDetail.UID = 000; |
|
|
// seDetail.UID = 000;
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
seDetail.ToErpLocCode = item.ErpToLoc; |
|
|
// seDetail.ErpToLoc = item.ErpToLoc;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
// seDetail.VinCode = item.VinCode;
|
|
|
seDetail.PN = item.VinCode; |
|
|
// seDetail.PN = item.VinCode;
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
pub_seDetails.Add(seDetail); |
|
|
// hbpo_seDetails.Add(seDetail);
|
|
|
} |
|
|
// }
|
|
|
|
|
|
|
|
|
if (item.DeliverBillType == EnumDeliverBjBmpBillType.印度件 && item.DeliverSubBillType == EnumDeliverSubBillType.印度件BBAC) |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIT直供件 && item.DeliverSubBillType == EnumDeliverSubBillType.JIT直供件BBAC)
|
|
|
{ |
|
|
// {
|
|
|
PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL(); |
|
|
// PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL();
|
|
|
seDetail.SetId(item.Id); |
|
|
// seDetail.SetId(item.Id);
|
|
|
seDetail.BeginDate = DateTime.Now; |
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
seDetail.CreationTime = DateTime.Now; |
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
seDetail.IsDeleted = false; |
|
|
// seDetail.IsDeleted = false;
|
|
|
seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM")); |
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
seDetail.ShippingDate = (DateTime)item.BillTime; |
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
//seDetail.IsHaveEdiData = false;
|
|
|
// //seDetail.IsHaveEdiData = false;
|
|
|
seDetail.BusinessType = EnumBusinessType.YinDuJian; |
|
|
// seDetail.BusinessType = EnumBusinessType.ZhiGongJianBBAC;
|
|
|
seDetail.AssembleData = (DateTime)item.AssembleData; |
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
seDetail.BillType = 0; |
|
|
// seDetail.BillType = 0;
|
|
|
seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType; |
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType; |
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
seDetail.ProType = 0; |
|
|
// seDetail.ProType = 0;
|
|
|
seDetail.State = 0; |
|
|
// seDetail.State = 0;
|
|
|
seDetail.SubBillType = 0; |
|
|
// seDetail.SubBillType = 0;
|
|
|
seDetail.TransType = EnumDelTransType.发货; |
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
seDetail.UID = 000; |
|
|
// seDetail.UID = 000;
|
|
|
seDetail.FactoryPartCode = item.RealPartCode; |
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", ""); |
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
seDetail.ToErpLocCode = item.ErpToLoc; |
|
|
// seDetail.ToErpLocCode = item.ErpToLoc;
|
|
|
seDetail.Qty = item.Qty; |
|
|
// seDetail.Qty = item.Qty;
|
|
|
//seDetail.VinCode = item.VinCode;
|
|
|
// //seDetail.VinCode = item.VinCode;
|
|
|
seDetail.PN = item.VinCode; |
|
|
// seDetail.PN = item.VinCode;
|
|
|
seDetail.LU = item.CustPartCode; |
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
seDetail.CustPartCode = item.CustPartCode; |
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
seDetail.BillTime = item.BillTime; |
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
|
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
|
|
|
// pub_seDetails.Add(seDetail);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
seDetail.Remark = "期初初始化"; |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.JIT直供件 && item.DeliverSubBillType == EnumDeliverSubBillType.JIT直供件HBPO)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL();
|
|
|
|
|
|
// seDetail.SetId(item.Id);
|
|
|
|
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
|
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
|
|
|
// seDetail.IsDeleted = false;
|
|
|
|
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
|
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.IsHaveEdiData = false;
|
|
|
|
|
|
// seDetail.BusinessType = EnumBusinessType.ZhiGongJianHBPO;
|
|
|
|
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
|
|
|
// seDetail.BillType = 0;
|
|
|
|
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
|
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
|
|
|
// seDetail.ProType = 0;
|
|
|
|
|
|
// seDetail.State = 0;
|
|
|
|
|
|
// seDetail.SubBillType = 0;
|
|
|
|
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
|
|
|
// seDetail.UID = 000;
|
|
|
|
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
|
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
|
|
|
// seDetail.ToErpLocCode = item.ErpToLoc;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.VinCode = item.VinCode;
|
|
|
|
|
|
// seDetail.PN = item.VinCode;
|
|
|
|
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
|
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
|
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
|
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
|
|
|
// pub_seDetails.Add(seDetail);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
pub_seDetails.Add(seDetail); |
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.北汽4S备件 && item.DeliverSubBillType == EnumDeliverSubBillType.北汽4S备件BBAC)
|
|
|
} |
|
|
// {
|
|
|
|
|
|
// PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL();
|
|
|
|
|
|
// seDetail.SetId(item.Id);
|
|
|
|
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
|
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
|
|
|
// seDetail.IsDeleted = false;
|
|
|
|
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
|
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.IsHaveEdiData = false;
|
|
|
|
|
|
// seDetail.BusinessType = EnumBusinessType.BeiJian;
|
|
|
|
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
|
|
|
// seDetail.BillType = 0;
|
|
|
|
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
|
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
|
|
|
// seDetail.ProType = 0;
|
|
|
|
|
|
// seDetail.State = 0;
|
|
|
|
|
|
// seDetail.SubBillType = 0;
|
|
|
|
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
|
|
|
// seDetail.UID = 000;
|
|
|
|
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
|
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
|
|
|
// seDetail.ToErpLocCode = item.ErpToLoc;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.VinCode = item.VinCode;
|
|
|
|
|
|
// seDetail.PN = item.VinCode;
|
|
|
|
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
|
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
|
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
|
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
|
|
|
// pub_seDetails.Add(seDetail);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// if (item.DeliverBillType == EnumDeliverBjBmpBillType.印度件 && item.DeliverSubBillType == EnumDeliverSubBillType.印度件BBAC)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// PUB_SE_DETAIL seDetail = new PUB_SE_DETAIL();
|
|
|
|
|
|
// seDetail.SetId(item.Id);
|
|
|
|
|
|
// seDetail.BeginDate = DateTime.Now;
|
|
|
|
|
|
// seDetail.CreationTime = DateTime.Now;
|
|
|
|
|
|
// seDetail.IsDeleted = false;
|
|
|
|
|
|
// seDetail.Version = int.Parse(item.BillTime?.ToString("yyyyMM"));
|
|
|
|
|
|
// seDetail.ShippingDate = (DateTime)item.BillTime;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.IsHaveEdiData = false;
|
|
|
|
|
|
// seDetail.BusinessType = EnumBusinessType.YinDuJian;
|
|
|
|
|
|
// seDetail.AssembleData = (DateTime)item.AssembleData;
|
|
|
|
|
|
// seDetail.BillType = 0;
|
|
|
|
|
|
// seDetail.DeliverBillType = (EnumDeliverBjBmpBillType)item.DeliverBillType;
|
|
|
|
|
|
// seDetail.DeliverSubBillType = (EnumDeliverSubBillType)item.DeliverSubBillType;
|
|
|
|
|
|
// seDetail.ProType = 0;
|
|
|
|
|
|
// seDetail.State = 0;
|
|
|
|
|
|
// seDetail.SubBillType = 0;
|
|
|
|
|
|
// seDetail.TransType = EnumDelTransType.发货;
|
|
|
|
|
|
// seDetail.UID = 000;
|
|
|
|
|
|
// seDetail.FactoryPartCode = item.RealPartCode;
|
|
|
|
|
|
// seDetail.CustomerPartCodeNoSpace = item.RealPartCode.Replace("-", "");
|
|
|
|
|
|
// seDetail.ToErpLocCode = item.ErpToLoc;
|
|
|
|
|
|
// seDetail.Qty = item.Qty;
|
|
|
|
|
|
// //seDetail.VinCode = item.VinCode;
|
|
|
|
|
|
// seDetail.PN = item.VinCode;
|
|
|
|
|
|
// seDetail.LU = item.CustPartCode;
|
|
|
|
|
|
// seDetail.CustPartCode = item.CustPartCode;
|
|
|
|
|
|
// seDetail.BillTime = item.BillTime;
|
|
|
|
|
|
|
|
|
|
|
|
// seDetail.Remark = "期初初始化";
|
|
|
|
|
|
|
|
|
|
|
|
// pub_seDetails.Add(seDetail);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
//var messageList = logList.Select(log => new VmiMessage { Message = JsonSerializer.Serialize(log) }).ToList();
|
|
|
//var messageList = logList.Select(log => new VmiMessage { Message = JsonSerializer.Serialize(log) }).ToList();
|
|
|
var connectionString = this._serviceProvider.GetRequiredService<IConfiguration>().GetConnectionString("SettleAccountService"); |
|
|
var connectionString = this._serviceProvider.GetRequiredService<IConfiguration>().GetConnectionString("SettleAccountService"); |
|
@ -1640,9 +1652,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
|
|
|
|
|
await context.BulkInsertAsync(logList).ConfigureAwait(false); |
|
|
await context.BulkInsertAsync(logList).ConfigureAwait(false); |
|
|
//await context.BulkInsertAsync(messageList).ConfigureAwait(false);
|
|
|
//await context.BulkInsertAsync(messageList).ConfigureAwait(false);
|
|
|
await context.BulkInsertAsync(seDetails).ConfigureAwait(false); |
|
|
//await context.BulkInsertAsync(seDetails).ConfigureAwait(false);
|
|
|
await context.BulkInsertAsync(hbpo_seDetails).ConfigureAwait(false); |
|
|
//await context.BulkInsertAsync(hbpo_seDetails).ConfigureAwait(false);
|
|
|
await context.BulkInsertAsync(pub_seDetails).ConfigureAwait(false); |
|
|
//await context.BulkInsertAsync(pub_seDetails).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
transaction.Commit(); |
|
|
transaction.Commit(); |
|
|
} |
|
|
} |
|
|