47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2017-2020 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using TBF.BenchControl.GenericDevices;
|
|
using TBF.BenchControl.Sequences;
|
|
|
|
namespace TBF.BenchControl.DataEntry.Standard24
|
|
{
|
|
public class EntryForm : EntryFormNoStartEnd, IHasWMStatesForm, ISequenceCondition
|
|
{
|
|
public EntryForm()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public EntryForm(Generic.IComponentCfg cfg)
|
|
: base(cfg)
|
|
{
|
|
}
|
|
|
|
public int ConditionsCount { get { return 1; } }
|
|
public string ConditionName(int i)
|
|
{
|
|
switch (i)
|
|
{
|
|
case 0: return "Start states form";
|
|
default: return string.Empty;
|
|
}
|
|
}
|
|
|
|
public IOperation ConditionOp(int i)
|
|
{
|
|
GenericDevices.IHasWMStatesForm wmStatesForm =
|
|
TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm;
|
|
if (wmStatesForm != null)
|
|
{
|
|
if (i == 0)
|
|
{
|
|
return wmStatesForm.ShowAdvancedTestStartFormOp(ProcessData.RegisterReaders, ProcessData.BatchRslts.Batch.WaterMeters, true);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
}
|