public static HICAZS Parse_HICAZS(string hicazs) { HICAZS result = new HICAZS(); if (hicazs != null) { // HICAZS:92:1:4+1+1+1+450:N:N:urn?:iso?:std?:iso?:20022?:tech?:xsd?:camt.052.001.02 var match = Regex.Match(hicazs, @"HICAZS:(?<nr>\d*):(?<vers>\d*):(?<bezug>\d*)\+(?<maxanzauftr>\d*)\+(?<minanzsig>\d*)\+(?<sicherheitskl>\d*)\+(?<zeitraum>\d*):(?<maxeintr>[J|N]{0,1}):(?<allekt>[J|N]{0,1}):(?<formate>.*)"); if (match.Success) { var zeitraum = match.Groups["zeitraum"].Value; if (zeitraum != null) result.Zeitraum = Convert.ToInt32(zeitraum); result.Format = match.Groups["formate"].Value; } } return result; }
public static void Parse_BPD(string bpd) { Value = bpd; var lines = bpd.Split(new[] { Environment.NewLine }, StringSplitOptions.None); var hipins = lines.FirstOrDefault(l => l.StartsWith("HIPINS")); HIPINS = HIPINS.Parse_HIPINS(hipins ?? string.Empty); HITANS = new List <HITANS>(); var list = lines.Where(l => l.StartsWith("HITANS")); foreach (var hitans in list) { var item = libfintx.HITANS.Parse_HITANS(hitans); HITANS.Add(item); } var hicazs = lines.FirstOrDefault(l => l.StartsWith("HICAZS")); HICAZS = HICAZS.Parse_HICAZS(hicazs); }