public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "{0}#{1}*{2}%{3}&{4}{5}{6}{7}", new object[] { FormatConverter.ConvertToBn2020ConformModelSeries(this.BR), this.C_DATE, this.TYPE, this.LACK, this.POLSTER, FA.ConcatStrElems(this.SA, "$"), FA.ConcatStrElems(this.E_WORT, "-"), FA.ConcatStrElems(this.HO_WORT, "+") })); }
public BMW.Rheingold.CoreFramework.Contracts.Programming.IFa Build(BMW.Rheingold.CoreFramework.Contracts.Vehicle.IFa faInput) { if (faInput == null) { return(null); } VehicleOrder vehicleOrder = new VehicleOrder(); if (!string.IsNullOrWhiteSpace(faInput.VERSION) && Regex.IsMatch(faInput.VERSION.Trim(), "^\\d+$")) { vehicleOrder.FaVersion = int.Parse(faInput.VERSION); } vehicleOrder.Entwicklungsbaureihe = FormatConverter.ConvertToBn2020ConformModelSeries(faInput.BR); vehicleOrder.Lackcode = faInput.LACK; vehicleOrder.Polstercode = faInput.POLSTER; vehicleOrder.Type = faInput.TYPE; vehicleOrder.Zeitkriterium = faInput.C_DATE; vehicleOrder.EWords = ((faInput.E_WORT != null) ? new List <string>(faInput.E_WORT) : null); vehicleOrder.HOWords = ((faInput.HO_WORT != null) ? new List <string>(faInput.HO_WORT) : null); vehicleOrder.Salapas = ((faInput.SA != null) ? new List <string>(faInput.SA) : null); return(vehicleOrder); }