public FileSberbank(ExcelDoc excelBook) { _invoice = Invoice.GetUniqueInstance(); _excelBook = excelBook; _date = ""; Day = ""; _month = ""; Year = ""; CompNumber = ""; _incomeTail = ""; Debet = new DCRows(); Credit = new DCRows(); }
public void WriteBody(TypeRow type, DCRows dcRows) { foreach (DCRow dcRow in dcRows.List) { string sum = dcRow.SumString.ToString(); if (sum.IndexOf(',') == -1) sum += ","; string letters = (_invoice.IsRub) ? "NCMI" : "NTRF"; WriteLine(string.Concat(":61:", _file1C.DateFormated, type.ToString(), sum, letters, dcRow.Number, "//", dcRow.Number)); WriteLine(string.Concat(":86:/ORDP/", dcRow.Ordp)); WriteLine(string.Concat("/BENM/", dcRow.Benm)); foreach (string s1 in dcRow.CommList) { WriteLine(s1); } } }