ProtocolTitle added to 'Procedure' and 'TestResult'. ResultsWriter-Basic rewritten

This commit is contained in:
Milan Hanajik
2015-01-25 23:43:17 +01:00
parent 5cf5fe5eba
commit c3f64215f1
13 changed files with 456 additions and 139 deletions
+1
View File
@@ -20,6 +20,7 @@ namespace TBF.Entities
public virtual DateTime LastChgTime { get; set; } /// Date and time of the creation or change
public virtual string LongDescription { get; set; } /// Long description (notes)
public virtual string Watermeters { get; set; } /// Water meter name or Id
public virtual string ProtocolTitle { get; set; } /// Title of the printed and saved protocol
public virtual string DataEntry { get; set; } /// Component to use for data entry
public virtual string ResultsPrinter { get; set; } /// Component to use for printing the results
@@ -14,6 +14,8 @@ namespace TBF.Entities
/// Value copied from the procedure (Entities.Procedure)
public virtual string ProcedureName { get; set; }
public virtual string ProtocolTitle { get; set; }
/// Values copied from the test (Entities.Test)
public virtual int TestId { get; set; } /// Test entity ID to distinguish between tests with the same name
public virtual string TestName { get; set; }
@@ -131,6 +133,7 @@ namespace TBF.Entities
/// Copy test parameters from Entities.Procedure object
ProcedureName = test.Procedure.Name;
ProtocolTitle = test.Procedure.ProtocolTitle;
/// Copy test parameters from Entities.Test object
TestId = test.Id;