ProcedureName added to TestResults entity, Basic writer changes

This commit is contained in:
Milan Hanajik
2014-07-29 15:06:29 +02:00
parent 019e85066f
commit 8c83965315
5 changed files with 27 additions and 9 deletions
@@ -34,6 +34,12 @@ namespace TBF.BenchControl.ResultsWriters.Basic
/// <returns>Reference to the operation</returns>
public IOperation WriteResultsOp(IList<Entities.TestResult> results)
{
if ((results == null) || (results.Count == 0))
{
writer = null;
return this;
}
this.results = results;
now = DateTime.Now;
try
@@ -63,16 +69,20 @@ namespace TBF.BenchControl.ResultsWriters.Basic
writer.WriteLine(string.Format(" PROTOKOLL Nummer {0}", 0));
writer.WriteLine("");
writer.WriteLine("Ver. 3/13");
writer.WriteLine(string.Format("Datum / Zeit : {0}.{1}.{2} {3}:{4} Seite : 1/1",
writer.WriteLine(string.Format("Datum / Zeit : {0}.{1}.{2} {3}:{4} Seite : 1/1",
now.Day.ToString("D2"),
now.Month.ToString("D2"),
now.Year.ToString("D4"),
now.Hour.ToString("D2"),
now.Minute.ToString("D2")));
writer.WriteLine("Wasserzähler Type : 110338");
writer.WriteLine(string.Format("Wasserzähler Type : {0}", results[0].ProcedureName));
writer.WriteLine("Gerät Nr. : 1");
writer.WriteLine(string.Format("Benutzer : {0}", Entities.User.CurrentUser.Name));
writer.WriteLine("Impulsrate : 1 67.422 1");
writer.Write("Impulsrate : ");
for (int i = 0; i < Program.WMsCount; i++)
{
//writer.Write(results[0].
}
writer.WriteLine("Bereich : 22,9 °C 947 mbar 43 %");
writer.WriteLine("");
writer.WriteLine("Test Metode MIDFehler Durchfluss Test Zeit T1 T2 Dichte Masse Druck Volume Bor");