101 lines
3.8 KiB
C#
101 lines
3.8 KiB
C#
using System;
|
|
|
|
namespace Config
|
|
{
|
|
public class Data : Users.GlobalData
|
|
{
|
|
public const string AdminUsername = "admin";
|
|
public const string AdminPassword = "staratura";
|
|
public const string SQLiteDbFName = "SQLite.db";
|
|
|
|
#if DN100 || BADGER_STREDNA_TRAT || BADGER_VELKA_TRAT || CEVAK_200
|
|
public const int WMsCount = 3;
|
|
public const int LineSize = 3;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 1;
|
|
#elif MUNICH
|
|
public const int WMsCount = 3;
|
|
public const int LineSize = 3;
|
|
public const int CompoundWMsCount = 3;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 3;
|
|
#elif MALTA_WSD25
|
|
public const int WMsCount = 6;
|
|
public const int LineSize = 6;
|
|
public const int CompoundWMsCount = 0;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 1;
|
|
#elif BADGER_MALA_TRAT || BERLIN || FUZHOU_150 || FUZHOU_300 || GELSENWASSER || GENESIS || IZRAEL_200 || PETERSBURG_200 || SENTEC || SLM_150 || TORINO_50 || TURA_SPECIAL
|
|
public const int WMsCount = 6;
|
|
public const int LineSize = 6;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 1;
|
|
#elif PUCHONG_200
|
|
public const int WMsCount = 6;
|
|
public const int LineSize = 6;
|
|
public const int CompoundWMsCount = 3;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 3;
|
|
#elif RUM_MOB
|
|
public const int WMsCount = 8;
|
|
public const int LineSize = 8;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif DEWA_300 || FUZHOU_100 || ROMA_200 || LUXEMBURG_40
|
|
public const int WMsCount = 10;
|
|
public const int LineSize = 10;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif DUBAJ_50
|
|
public const int WMsCount = 10;
|
|
public const int LineSize = 5;
|
|
public const int CompoundWMsCount = 0;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif SLM_END || WARSAW_END
|
|
public const int WMsCount = 10;
|
|
public const int LineSize = 5;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = 4;
|
|
#elif SLM_50
|
|
public const int WMsCount = 12;
|
|
public const int LineSize = 12;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 6;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif ALZIR_25 || BAHRAIN_50 || CEVAK_40 || FEWA_50 || FILIPINY_50 || FUZHOU_50 || HONGKONG_50 || IZRAEL_25 || JUZNA_AFRIKA_50 || KEMPNO_50 || KRAKOW_50 || MURES_40 || PETERSBURG_50 || TORUN_50 || ZAMBIA || ZODINO
|
|
public const int WMsCount = 20;
|
|
public const int LineSize = 10;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif TURA_IPERL || TURA_IPERL_NEW
|
|
public const int WMsCount = 40;
|
|
public const int LineSize = 20;
|
|
public const int CompoundWMsCount = 1;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#elif IZRAEL_50
|
|
public const int WMsCount = 40;
|
|
public const int LineSize = 10;
|
|
public const int CompoundWMsCount = 0;
|
|
public const int HeatMetersCount = 0;
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
|
#endif
|
|
|
|
///
|
|
/// Database related: This object reference is set after a successful user login
|
|
///
|
|
public static DatabaseSettings CurrentBench;
|
|
|
|
public static double RealDensity = 0; /// true water density [kg/m3]
|
|
public static double AtTemperature = 0; /// measured at temperature [°C]
|
|
public static double Buoyancy = 0;
|
|
}
|
|
}
|