public void ExportDataImp44(TextWriter writer) { StringBuilder builder = ImportUtils.CreateLine(44); DateTime?nepr_datum_zac = UtilsTable.DatumTecky(NeprZacat); DateTime?nepr_datum_kon = UtilsTable.DatumTecky(NeprKonec); if (!nepr_datum_kon.HasValue) { nepr_datum_kon = new DateTime((int)RokPocitany(), 12, 31); } ImportUtils.AppendField(builder, OsobCislo); //IMP00_OSOBCISLO ImportUtils.AppendField(builder, PPomCislo); //IMP17_PPOMER ImportUtils.AppendField(builder, NeprSlKod); //const int IMP44_KODNEPR = 4; ImportUtils.AppendEmpty(builder); //const int IMP44_KODNEPRTEXT = 5; ImportUtils.AppendField(builder, nepr_datum_zac.Value.ToString("dd.MM.yyyy")); //const int IMP44_DATUMZAC = 6; ImportUtils.AppendField(builder, nepr_datum_kon.Value.ToString("dd.MM.yyyy")); //const int IMP44_DATUMKON = 7; ImportUtils.AppendField(builder, UtilsTable.DatumPocetDnu(nepr_datum_zac, nepr_datum_kon)); //const int IMP44_POCETDNU = 8; ImportUtils.AppendEmpty(builder); //const int IMP44_VYLOUCENA = 9; ImportUtils.AppendEmpty(builder); //const int IMP44_DOKLAD = 10; ImportUtils.AppendEmpty(builder); //const int IMP44_NAZEVZAM = 11; ImportUtils.AppendEmpty(builder); //const int IMP44_ICZAM = 12; ImportUtils.AppendEmpty(builder); //const int IMP44_DATPOROD = 13; ImportUtils.AppendEmpty(builder); //const int IMP44_HODNOTAKC = 14; writer.WriteLine(builder.ToString()); }