2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2022-06-03 11:53:57 +00:00
|
|
|
|
/// Copyright (c) 2013-2022 Sensus Slovensko a.s.
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
using Common;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
namespace Config.Entities
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-06-29 14:58:59 +00:00
|
|
|
|
public class BenchPath : IHasName, IHasItemNr, IHasValves
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2016-10-18 16:48:20 +00:00
|
|
|
|
public virtual int Id { get; protected set; }
|
|
|
|
|
|
public virtual int ItemNr { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public virtual string Name { get; set; }
|
2017-05-25 08:39:15 +00:00
|
|
|
|
public virtual string OriName { get; set; } /// Not mapped to database
|
2022-07-06 13:51:48 +00:00
|
|
|
|
public virtual double Qfrom { get; set; } /// Water flow in [m3/h]
|
|
|
|
|
|
public virtual double Qto { get; set; } /// Water flow in [m3/h]
|
2022-06-03 11:53:57 +00:00
|
|
|
|
public virtual Unit FlowUnit { get; set; } /// Not mapped to database, used in UI
|
2021-02-24 16:42:50 +00:00
|
|
|
|
public virtual string Selector { get; set; }
|
2016-10-18 16:48:20 +00:00
|
|
|
|
public virtual string TempMtrUp { get; set; }
|
|
|
|
|
|
public virtual string TempMtrDown { get; set; }
|
|
|
|
|
|
public virtual string PressMtrUp { get; set; }
|
|
|
|
|
|
public virtual string PressMtrDown { get; set; }
|
|
|
|
|
|
public virtual string PressMtrDelta { get; set; }
|
2024-01-24 16:35:56 +00:00
|
|
|
|
public virtual string ElectricMtrUp { get; set; }
|
|
|
|
|
|
public virtual string ElectricMtrDown { get; set; }
|
|
|
|
|
|
public virtual string ElectricMtrDelta { get; set; }
|
2016-03-18 02:36:33 +00:00
|
|
|
|
public virtual string StopBFValve { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// Valves
|
|
|
|
|
|
public virtual string ValvesOpen { get; set; }
|
|
|
|
|
|
public virtual string ValvesClose { get; set; }
|
|
|
|
|
|
|
2022-06-03 11:53:57 +00:00
|
|
|
|
public virtual bool QfromTextChngd { get; set; } /// Not mapped to database, used in ProcedureDlg / Metrology1Tab
|
|
|
|
|
|
public virtual bool QtoTextChngd { get; set; } /// Not mapped to database, used in ProcedureDlg / Metrology1Tab
|
|
|
|
|
|
|
2014-07-28 07:54:35 +00:00
|
|
|
|
/// ------------- Additional stuff not mapped into the database -------------
|
|
|
|
|
|
|
|
|
|
|
|
public BenchPath()
|
|
|
|
|
|
{
|
2016-10-18 16:48:20 +00:00
|
|
|
|
ValvesOpen = string.Empty;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
ValvesClose = string.Empty;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public BenchPath(string name, int itemNr)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
ItemNr = itemNr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual BenchPath Clone(string name, int itemNr)
|
|
|
|
|
|
{
|
|
|
|
|
|
BenchPath result = new BenchPath(name, itemNr);
|
|
|
|
|
|
|
2016-10-18 16:48:20 +00:00
|
|
|
|
result.Qfrom = Qfrom;
|
|
|
|
|
|
result.Qto = Qto;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
result.FlowUnit = FlowUnit;
|
2021-02-24 16:42:50 +00:00
|
|
|
|
result.Selector = Selector;
|
|
|
|
|
|
result.TempMtrUp = TempMtrUp;
|
2016-10-18 16:48:20 +00:00
|
|
|
|
result.TempMtrDown = TempMtrDown;
|
|
|
|
|
|
result.PressMtrUp = PressMtrUp;
|
|
|
|
|
|
result.PressMtrDown = PressMtrDown;
|
|
|
|
|
|
result.PressMtrDelta = PressMtrDelta;
|
2024-01-24 16:35:56 +00:00
|
|
|
|
result.ElectricMtrUp = ElectricMtrUp;
|
|
|
|
|
|
result.ElectricMtrDown = ElectricMtrDown;
|
|
|
|
|
|
result.ElectricMtrDelta = ElectricMtrDelta;
|
2016-10-18 16:48:20 +00:00
|
|
|
|
result.StopBFValve = StopBFValve;
|
|
|
|
|
|
result.ValvesOpen = ValvesOpen;
|
|
|
|
|
|
result.ValvesClose = ValvesClose;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|