public void ExportDataImp20(TextWriter writer) { StringBuilder builder = ImportUtils.CreateLine(20); 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); //IMP20_KODNEPR ImportUtils.AppendEmpty(builder); //IMP20_KODNEPRTEXT ImportUtils.AppendField(builder, nepr_datum_zac.Value.ToString("dd.MM.yyyy")); //IMP20_DATUMZAC ImportUtils.AppendField(builder, nepr_datum_kon.Value.ToString("dd.MM.yyyy")); //IMP20_DATUMKON ImportUtils.AppendEmpty(builder); //IMP20_PRVNIDEN ImportUtils.AppendEmpty(builder); //IMP20_POSLEDEN ImportUtils.AppendEmpty(builder); //IMP20_SAZBAKC ImportUtils.AppendEmpty(builder); //IMP20_SAZBAPROC ImportUtils.AppendEmpty(builder); //IMP20_ZAPVYD //IMP20_DOKLAD ImportUtils.AppendEmpty(builder); //IMP20_PLATIT ImportUtils.AppendEmpty(builder); //IMP20_STRED ImportUtils.AppendEmpty(builder); //IMP20_CINN ImportUtils.AppendEmpty(builder); //IMP20_ZAK ImportUtils.AppendEmpty(builder); //IMP20_TRVALE writer.WriteLine(builder.ToString()); }
public static IList <T> ReadTableData <T>(string fileFold, string fileName) where T : new() { string fileImport = System.IO.Path.Combine(fileFold, fileName); var dictTable = new List <T>(); try { StreamReader readerFile = new StreamReader(fileImport, Encoding.GetEncoding("windows-1250")); if (!readerFile.EndOfStream) { string colltext = readerFile.ReadLine(); var lineColumns = UtilsTable.GetColumns(colltext); while (!readerFile.EndOfStream) { string valstext = readerFile.ReadLine(); T valueItem = new T(); UtilsTable.ParseDataUseNames(valueItem, lineColumns, valstext); dictTable.Add(valueItem); } } readerFile.Close(); } catch (Exception ex) { System.Diagnostics.Debug.Print(ex.Message); } return(dictTable); }
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()); }
public string ExecDatOd() { DateTime?exec_datum_dor = UtilsTable.DatumTecky(ExecDatum); if (!exec_datum_dor.HasValue) { return(""); } return(exec_datum_dor.Value.ToString("dd.MM.yyyy")); }
internal long PDovXPropPuldny() { long nNumber = UtilsTable.Int32ParseNumber(PDovXProp); return(nNumber * 2); }
internal long PJinNarokPuldny() { long nNumber = UtilsTable.Int32ParseNumber(PJinNarok); return(nNumber * 2); }
public long RokMesPocitany() { return(UtilsTable.RokMes(RokMesPoc)); }
public long RokKonNumber() { return(UtilsTable.RokNumber(RokMesicUkonecni)); }
internal long PPomSkutUMinuty() { long nDataNumb = UtilsTable.Int32ParseNumber(SkutecnyUvazekHodin); return(nDataNumb * 60); }
internal long PDovXCerpPuldny() { long nNumber = UtilsTable.Int32ParseNumber(DovolenaCerpana); return(nNumber * 2); }
public long IsReportRun() { long nDataNumb = UtilsTable.Int32ParseNumber(VytvoreniSestav); return(nDataNumb); }
public long IsArchivRun() { long nDataNumb = UtilsTable.Int32ParseNumber(ProvestArchivaci); return(nDataNumb); }
public long RokKonNumber() { return(UtilsTable.RokNumber(RokMesKon)); }
public long MesKonNumber() { return(UtilsTable.MesNumber(RokMesKon)); }
internal long PDodNarokPuldny() { long nNumber = UtilsTable.Int32ParseNumber(DovolenaDodatNarok); return(nNumber * 2); }
public long MesPocitany() { return(UtilsTable.MesNumber(RokMesPoc)); }
internal long PDovLetosPuldny() { long nNumber = UtilsTable.Int32ParseNumber(DovolenaLetosni); return(nNumber * 2); }
public long RokSestOd() { return(UtilsTable.RokNumber(RokMesVOd)); }
internal long PDovXPropPuldny() { long nNumber = UtilsTable.Int32ParseNumber(DovolenaProplacena); return(nNumber * 2); }
public long MesSestOd() { return(UtilsTable.MesNumber(RokMesVOd)); }
public long MesKonNumber() { return(UtilsTable.MesNumber(RokMesicUkonecni)); }
public long RokSestDo() { return(UtilsTable.RokNumber(RokMesVDo)); }
private long MzdaSazba100K() { long nDataNumb = UtilsTable.Int32ParseNumber(CastkaSazba); return(nDataNumb * 100); }
public long MesSestDo() { return(UtilsTable.MesNumber(RokMesVDo)); }
public long RokZacatek() { return(UtilsTable.RokMes(RokZZacat)); }
public long IsSestavyRokRun() { long nDataNumb = UtilsTable.Int32ParseNumber(SestavRok); return(nDataNumb); }
internal long PDovLonskPuldny() { long nNumber = UtilsTable.Int32ParseNumber(PDovLonsk); return(nNumber * 2); }
public long RokMesPocitany() { return(UtilsTable.RokMes(RokMesicZaznamu)); }
internal long PPomSkutUMinuty() { long nDataNumb = UtilsTable.Int32ParseNumber(PPomSkutU); return(nDataNumb * 60); }
public long RokZacatek() { return(UtilsTable.RokMes(RokZacatkuZapoctu)); }