Exemple #1
0
 private void UpdateStatementItem(StatementItemRecord item, string line, StatementItemsPositions positions)
 {
     item.CisloProtiuctu = GetValue(line, positions.CisloProtiuctu).Trim().Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries).First();
     item.VS             = GetValue(line, positions.VS).Trim();
     item.KS             = GetValue(line, positions.KS).Trim();
     ParseSS(item, line, positions);
     item.ZpravaProPrijemce = string.Empty;
 }
Exemple #2
0
        private void ParseSS(StatementItemRecord item, string line, StatementItemsPositions positions)
        {
            var ss = GetValue(line, positions.SS);

            if (!string.IsNullOrEmpty(ss) && !ss.StartsWith(" "))
            {
                item.SS = ss.IndexOf(" ", SC) > 0
                                        ? ss.Substring(0, ss.IndexOf(" ", SC))
                                        : ss;
            }
        }