|
@ -1,65 +1,57 @@ |
|
|
|
|
|
using System; |
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
using System.Reflection; |
|
|
using AutoMapper; |
|
|
using AutoMapper; |
|
|
using Win.Sfs.SettleAccount.EstimatedStockDiffReports; |
|
|
using Newtonsoft.Json; |
|
|
|
|
|
using SettleAccount.Domain.BQ; |
|
|
using Win.Sfs.SettleAccount.Boms; |
|
|
using Win.Sfs.SettleAccount.Boms; |
|
|
|
|
|
using Win.Sfs.SettleAccount.BTNotConsignReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.BTSeqKBDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities; |
|
|
using Win.Sfs.SettleAccount.Entities.Boms; |
|
|
using Win.Sfs.SettleAccount.Entities.Boms; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos.SettleAccount.Domain.BQ; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Syncs; |
|
|
using Win.Sfs.SettleAccount.Entities.CodeSettings; |
|
|
using Win.Sfs.SettleAccount.Entities.CodeSettings; |
|
|
using Win.Sfs.SettleAccount.FISes; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Materials; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.SettleAccounts; |
|
|
|
|
|
|
|
|
|
|
|
using Win.Sfs.SettleAccount.Inventories; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Items; |
|
|
|
|
|
using Win.Sfs.SettleAccount.MaterialRelationships; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.SettleAccountVersion; |
|
|
|
|
|
|
|
|
|
|
|
using Win.Sfs.SettleAccount.Prebatches; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Controls; |
|
|
using Win.Sfs.SettleAccount.Entities.Controls; |
|
|
using Win.Sfs.SettleAccount.SendUnsettledDiffReports; |
|
|
using Win.Sfs.SettleAccount.Entities.Errors; |
|
|
using Win.Sfs.SettleAccount.StockSettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.StockUnsettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.StockFisDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SecondaryActuralDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.StorageLocations; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Inventories; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.InventoryDetialVersion; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Factories; |
|
|
using Win.Sfs.SettleAccount.Entities.Factories; |
|
|
using Win.Sfs.SettleAccount.SecondaryExportReports; |
|
|
|
|
|
using System; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SupplierItemSetUps; |
|
|
|
|
|
|
|
|
|
|
|
using Win.Sfs.SettleAccount.BTSeqKBDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.BTNotConsignReports; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using Win.Sfs.SettleAccount.HQNotConsignReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.HQSPNotConsignReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Reports.SendUnsettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.ImportMap; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.ImportColumnMaps; |
|
|
using Win.Sfs.SettleAccount.Entities.ImportColumnMaps; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.ImportMap; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Inventories; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.InventoryDetialVersion; |
|
|
using Win.Sfs.SettleAccount.Entities.Invoices; |
|
|
using Win.Sfs.SettleAccount.Entities.Invoices; |
|
|
using Win.Sfs.SettleAccount.Entities.Invoices.Win.Sfs.SettleAccount.Entities.Invoices; |
|
|
using Win.Sfs.SettleAccount.Entities.Invoices.Win.Sfs.SettleAccount.Entities.Invoices; |
|
|
using Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Prices; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.MaterialRelationships; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.SettlementParts; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.ItemInvoicePrices; |
|
|
using Win.Sfs.SettleAccount.Entities.ItemInvoicePrices; |
|
|
using Win.Sfs.SettleAccount.Entities.SettlementPartss; |
|
|
using Win.Sfs.SettleAccount.Entities.MaterialRelationships; |
|
|
using Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartss; |
|
|
using Win.Sfs.SettleAccount.Entities.Materials; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.Prices; |
|
|
using Win.Sfs.SettleAccount.Entities.SecMatch; |
|
|
using Win.Sfs.SettleAccount.Entities.SecMatch; |
|
|
using Win.Sfs.SettleAccount.Entities.VWKanBan; |
|
|
using Win.Sfs.SettleAccount.Entities.SettleAccounts; |
|
|
using Win.Sfs.SettleAccount.Entities.VWKanBanVersion; |
|
|
using Win.Sfs.SettleAccount.Entities.SettleAccountVersion; |
|
|
using Win.Sfs.SettleAccount.Entities; |
|
|
using Win.Sfs.SettleAccount.Entities.SettlementParts; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.StorageLocations; |
|
|
using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; |
|
|
using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; |
|
|
using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput; |
|
|
using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput; |
|
|
using Win.Sfs.SettleAccount.Errors; |
|
|
using Win.Sfs.SettleAccount.Errors; |
|
|
using Win.Sfs.SettleAccount.Entities.Errors; |
|
|
using Win.Sfs.SettleAccount.EstimatedStockDiffReports; |
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|
|
using Win.Sfs.SettleAccount.FISes; |
|
|
using SettleAccount.Domain.BQ; |
|
|
using Win.Sfs.SettleAccount.HQNotConsignReports; |
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using Win.Sfs.SettleAccount.HQSPNotConsignReports; |
|
|
using System.Reflection; |
|
|
using Win.Sfs.SettleAccount.Inventories; |
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Syncs; |
|
|
using Win.Sfs.SettleAccount.MaterialRelationships; |
|
|
using Win.Sfs.SettleAccount.Entities.BQ.Dtos.SettleAccount.Domain.BQ; |
|
|
using Win.Sfs.SettleAccount.Prebatches; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Reports.SendUnsettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SecondaryActuralDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SecondaryExportReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SendUnsettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.StockFisDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.StockSettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.StockUnsettledDiffReports; |
|
|
|
|
|
using Win.Sfs.SettleAccount.SupplierItemSetUps; |
|
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount |
|
|
namespace Win.Sfs.SettleAccount |
|
|
{ |
|
|
{ |
|
@ -1025,13 +1017,14 @@ namespace Win.Sfs.SettleAccount |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void CreateMapBBAC_SA_DETAIL() |
|
|
private void CreateMapBBAC_SA_DETAIL() |
|
|
{ |
|
|
{ |
|
|
|
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_SA_DETAIL_DTO>(); |
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_CAN_SA_DETAIL>() |
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_CAN_SA_DETAIL>() |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_NOT_SA_DETAIL>() |
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_NOT_SA_DETAIL>() |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
|
|
|
CreateMap<BBAC_SA_DETAIL, BBAC_SA_DETAIL_EXPORT_DTO>(); |
|
|
|
|
|
|
|
|
CreateMap<BBAC_SA_DETAIL_IMPORT_DTO, BBAC_SA_DETAIL>(); |
|
|
CreateMap<BBAC_SA_DETAIL_IMPORT_DTO, BBAC_SA_DETAIL>(); |
|
|
CreateMap<BBAC_SA_DETAIL_IMPORT_DTO, PUB_SA_DETAIL>(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -1065,11 +1058,12 @@ namespace Win.Sfs.SettleAccount |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void CreateMapHBPO_SA_DETAIL() |
|
|
private void CreateMapHBPO_SA_DETAIL() |
|
|
{ |
|
|
{ |
|
|
|
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_SA_DETAIL_DTO>(); |
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_CAN_SA_DETAIL>() |
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_CAN_SA_DETAIL>() |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_NOT_SA_DETAIL>() |
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_NOT_SA_DETAIL>() |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
//CreateMap<HBPO_SA_DETAIL, HBPO_SA_DETAIL_EXPORT_DTO>();
|
|
|
CreateMap<HBPO_SA_DETAIL, HBPO_SA_DETAIL_EXPORT_DTO>(); |
|
|
|
|
|
|
|
|
CreateMap<HBPO_SA_DETAIL_IMPORT_DTO, HBPO_SA_DETAIL>(); |
|
|
CreateMap<HBPO_SA_DETAIL_IMPORT_DTO, HBPO_SA_DETAIL>(); |
|
|
} |
|
|
} |
|
@ -1096,6 +1090,8 @@ namespace Win.Sfs.SettleAccount |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void CreateMapPUB_SA_DETAIL() |
|
|
private void CreateMapPUB_SA_DETAIL() |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
CreateMap<PUB_SA_DETAIL, PUB_SA_DETAIL_DTO>(); |
|
|
CreateMap<PUB_SA_DETAIL, PUB_CAN_SA_DETAIL>() |
|
|
CreateMap<PUB_SA_DETAIL, PUB_CAN_SA_DETAIL>() |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum)); |
|
|
CreateMap<PUB_SA_DETAIL, PUB_NOT_SA_DETAIL>() |
|
|
CreateMap<PUB_SA_DETAIL, PUB_NOT_SA_DETAIL>() |
|
@ -1105,7 +1101,25 @@ namespace Win.Sfs.SettleAccount |
|
|
CreateMap<ZhiGongJianBBACImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<ZhiGongJianBBACImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<ZhiGongJianHBPOImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<ZhiGongJianHBPOImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<MaiDanJianHBPOImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<MaiDanJianHBPOImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<BeiJianImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<BeiJianImportDto, PUB_SA_DETAIL>() |
|
|
|
|
|
.ForMember(x => x.ExtraProperties, y => y.MapFrom(d => |
|
|
|
|
|
new Dictionary<string, object>() |
|
|
|
|
|
{ |
|
|
|
|
|
{ "DeliveryNumber", d.DeliveryNumber}, |
|
|
|
|
|
{ "InvoiceNumber", d.InvoiceNumber}, |
|
|
|
|
|
{ "VendorCode", d.VendorCode}, |
|
|
|
|
|
{ "VendorName", d.VendorName}, |
|
|
|
|
|
{ "PurchaseOrderNumber", d.PurchaseOrderNumber}, |
|
|
|
|
|
{ "DeliveryIndexNumber", d.DeliveryIndexNumber}, |
|
|
|
|
|
{ "PartName", d.PartName}, |
|
|
|
|
|
{ "Price", d.Price}, |
|
|
|
|
|
{ "Amount", d.Amount}, |
|
|
|
|
|
{ "Tallage", d.Tallage}, |
|
|
|
|
|
{ "Total", d.Total}, |
|
|
|
|
|
{ "ProtocolNumber", d.ProtocolNumber}, |
|
|
|
|
|
{ "Remark", d.Remark}, |
|
|
|
|
|
{ "CommodityGroup", d.CommodityGroup} |
|
|
|
|
|
})); |
|
|
CreateMap<YinDuJianImportDto, PUB_SA_DETAIL>(); |
|
|
CreateMap<YinDuJianImportDto, PUB_SA_DETAIL>(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1114,6 +1128,16 @@ namespace Win.Sfs.SettleAccount |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
private void CreateMapSeSync() |
|
|
private void CreateMapSeSync() |
|
|
{ |
|
|
{ |
|
|
|
|
|
CreateMap<TM_BJBMPT_JIT_RECORD, BBAC_SE_DETAIL>() |
|
|
|
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
|
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
|
|
|
|
.ForMember(x => x.InjectionCode, y => y.MapFrom(d => d.DeliverCode)) |
|
|
|
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.ShippingDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.WmsBillNum, y => y.MapFrom(d => d.BillNum)) |
|
|
|
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
|
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
|
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
CreateMap<TM_BJBMPT_JIT_RECORD, HBPO_SE_DETAIL>() |
|
|
CreateMap<TM_BJBMPT_JIT_RECORD, HBPO_SE_DETAIL>() |
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
@ -1124,7 +1148,24 @@ namespace Win.Sfs.SettleAccount |
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
|
|
|
CreateMap<TM_BJBMPT_JIT_RECORD, PUB_SE_DETAIL>() |
|
|
|
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.ShippingDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.WmsBillNum, y => y.MapFrom(d => d.BillNum)) |
|
|
|
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
|
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
|
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
|
|
|
|
|
|
|
|
|
CreateMap<TM_BJBMPT_JIS_RECORD, BBAC_SE_DETAIL>() |
|
|
|
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
|
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
|
|
|
|
.ForMember(x => x.InjectionCode, y => y.MapFrom(d => d.DeliverCode)) |
|
|
|
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.ShippingDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.WmsBillNum, y => y.MapFrom(d => d.BillNum)) |
|
|
|
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
|
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
|
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
CreateMap<TM_BJBMPT_JIS_RECORD, HBPO_SE_DETAIL>() |
|
|
CreateMap<TM_BJBMPT_JIS_RECORD, HBPO_SE_DETAIL>() |
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
.ForMember(x => x.SeqNumber, y => y.MapFrom(d => d.JISNum)) |
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
|
.ForMember(x => x.AssemblyCode, y => y.MapFrom(d => d.RealPartCode)) |
|
@ -1135,6 +1176,13 @@ namespace Win.Sfs.SettleAccount |
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
|
|
|
CreateMap<TM_BJBMPT_JIS_RECORD, PUB_SE_DETAIL>() |
|
|
|
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.ShippingDate, y => y.MapFrom(d => d.BillTime)) |
|
|
|
|
|
.ForMember(x => x.WmsBillNum, y => y.MapFrom(d => d.BillNum)) |
|
|
|
|
|
.ForMember(x => x.LU, y => y.MapFrom(d => d.PartCode)) |
|
|
|
|
|
.ForMember(x => x.PN, y => y.MapFrom(d => d.VinCode)) |
|
|
|
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => d.Qty)); |
|
|
|
|
|
|
|
|
CreateMap<TM_BJBMPT_OTHER_RECORD, PUB_SE_DETAIL>() |
|
|
CreateMap<TM_BJBMPT_OTHER_RECORD, PUB_SE_DETAIL>() |
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.DnBillTime)) |
|
|
.ForMember(x => x.BeginDate, y => y.MapFrom(d => d.DnBillTime)) |
|
|