public static void AssignValues(HarborAgentViewModel source, YuShang.ERP.Entities.Orders.HarborAgent target) { target.AgentCost = source.AgentCost; target.AntiDumpingTax = source.AntiDumpingTax; target.DeclarationCompanyId = source.DeclarationCompanyId.GetValueOrDefault(); target.HarborCost = source.HarborCost; target.Memo = source.Memo; target.OthersCost = source.OthersCost; target.Tariff = source.Tariff; target.ValueAddedTax = source.ValueAddedTax; target.Total = source.Total; //综合费用 }
public static void AssignValues(YuShang.ERP.Entities.Orders.HarborAgent source, HarborAgentViewModel target) { target.AgentCost = source.AgentCost; target.AntiDumpingTax = source.AntiDumpingTax; target.DeclarationCompanyId = source.DeclarationCompanyId; target.HarborCost = source.HarborCost; target.Memo = source.Memo; target.OthersCost = source.OthersCost; target.Tariff = source.Tariff; target.ValueAddedTax = source.ValueAddedTax; target.Total = source.Total; target.DeclarationCompany = new DeclarationCompanyViewModel(source.DeclarationCompany); }