59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
///
|
|
/// Copyright (c) 2017-2022 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
using Common;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
|
|
{
|
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EntryFormCfg) })[0];
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new EntryFormCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public bool HideOrder;
|
|
public bool EnterSerialNrsAtTheEnd;
|
|
public bool ShowCycleEndForm;
|
|
public bool SaveImages;
|
|
|
|
|
|
/// <summary> Procedure parameters </summary>
|
|
[XmlIgnore]
|
|
public ProcParams ProcParams;
|
|
public override IParamsProvider GetRuntimeProcParamsProvider() { return ProcParams; }
|
|
public override IParamsProvider CreateProcParamsProvider() { return new ProcParams(true); }
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
EntryFormCfg()
|
|
{
|
|
ProcParams = new ProcParams(true);
|
|
|
|
Name = "DataEntry-for-Camera-PO";
|
|
ParentName = string.Empty;
|
|
HideOrder = false;
|
|
EnterSerialNrsAtTheEnd = false;
|
|
ShowCycleEndForm = false;
|
|
SaveImages = false;
|
|
}
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, HideOrder={1} SNsAtTheEnd={2}, EndForm={3}, SaveImages={4}", Name, HideOrder, EnterSerialNrsAtTheEnd, ShowCycleEndForm, SaveImages);
|
|
}
|
|
}
|
|
}
|