As sent to ST for the last test on Fuzhou300 system
- new component with VZ15 and modified position of VZ13 - fixed start method evaluation OK - handling of entry forms cleaned-up
This commit is contained in:
@@ -5,7 +5,7 @@ using TBF.BenchControl.GenericDevices;
|
||||
|
||||
namespace TBF.BenchControl.DataEntry.Munich
|
||||
{
|
||||
public class EntryForm : Generic.IComponent, IOperation, GenericDevices.IDataEntry, GenericDevices.IHasProtocolTitle
|
||||
public class EntryForm : Generic.IComponent, IOperation, IDataEntry, IHasCycleBeginForm, IHasCycleEndForm, IHasProtocolTitle
|
||||
{
|
||||
readonly EntryFormCfg entryFormCfg;
|
||||
public Generic.IComponentCfg Cfg { get { return entryFormCfg; } }
|
||||
@@ -44,7 +44,7 @@ namespace TBF.BenchControl.DataEntry.Munich
|
||||
|
||||
bool resultSaved;
|
||||
|
||||
IList<GenericDevices.IWaterMeter> waterMeters;
|
||||
IList<IWaterMeter> waterMeters;
|
||||
|
||||
public enum CurrentOp
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace TBF.BenchControl.DataEntry.Munich
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
public IOperation ShowCycleBeginFormOp(IList<GenericDevices.IWaterMeter> waterMeters)
|
||||
public IOperation ShowCycleBeginFormOp(IList<IWaterMeter> waterMeters)
|
||||
{
|
||||
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||
currentOp = CurrentOp.ShowFormAtCycleBeginning;
|
||||
@@ -72,7 +72,7 @@ namespace TBF.BenchControl.DataEntry.Munich
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
public IOperation ShowCycleEndFormOp(IList<GenericDevices.IWaterMeter> waterMeters)
|
||||
public IOperation ShowCycleEndFormOp(IList<IWaterMeter> waterMeters)
|
||||
{
|
||||
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||
currentOp = CurrentOp.ShowFormAtCycleEnd;
|
||||
@@ -129,7 +129,7 @@ namespace TBF.BenchControl.DataEntry.Munich
|
||||
/// <returns>Event.ResultsPrinted</returns>
|
||||
public Event Run()
|
||||
{
|
||||
if (!(modelessDlg as GenericDevices.IHasCompleted).Completed)
|
||||
if (!(modelessDlg as IHasCompleted).Completed)
|
||||
{
|
||||
return Event.None; /// Return 'None' when form was not closed yet
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user