2015-12-04 16:17:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Config
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Data
|
|
|
|
|
|
{
|
2016-12-20 13:22:56 +00:00
|
|
|
|
/// Current user
|
2016-12-20 13:24:31 +00:00
|
|
|
|
public static IUser CurrentUser;
|
2016-12-20 13:22:56 +00:00
|
|
|
|
public static DateTime LastAuthorization = DateTime.Now;
|
|
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public const string AdminUsername = "admin";
|
|
|
|
|
|
public const string AdminPassword = "staratura";
|
|
|
|
|
|
public const string SQLiteDbFName = "SQLite.db";
|
|
|
|
|
|
|
|
|
|
|
|
#if MUNICH
|
|
|
|
|
|
public const int WMsCount = 3;
|
|
|
|
|
|
public const int LineSize = 1;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = 3;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
#elif DN100 || BADGER_VELKA_TRAT
|
|
|
|
|
|
public const int WMsCount = 3;
|
|
|
|
|
|
public const int LineSize = 3;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2016-12-14 10:09:23 +00:00
|
|
|
|
#elif FUZHOU300 || FUZHOU150 || PT200IL || PUCHONG_PT200 || GENESIS || BERLIN
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public const int WMsCount = 6;
|
|
|
|
|
|
public const int LineSize = 6;
|
|
|
|
|
|
public const int CompoundWMsCount = 3;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = 3;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
#elif TORINO50 || BADGER_MALA_TRAT
|
|
|
|
|
|
public const int WMsCount = 6;
|
|
|
|
|
|
public const int LineSize = 6;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = 1;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
#elif TORUN_PT50_2015 || CEVAK_PT40_272 || MURES_PT40 || FUZHOU_40
|
|
|
|
|
|
public const int WMsCount = 20;
|
|
|
|
|
|
public const int LineSize = 10;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2017-02-14 12:25:43 +00:00
|
|
|
|
#elif TURA_IPERL
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public const int WMsCount = 40;
|
|
|
|
|
|
public const int LineSize = 20;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2017-02-14 12:25:43 +00:00
|
|
|
|
#elif TURA_SPECIAL
|
2016-04-07 13:37:49 +00:00
|
|
|
|
public const int WMsCount = 6;
|
|
|
|
|
|
public const int LineSize = 6;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2016-06-22 14:54:16 +00:00
|
|
|
|
#elif SLM_50
|
2016-06-17 13:59:32 +00:00
|
|
|
|
public const int WMsCount = 12;
|
|
|
|
|
|
public const int LineSize = 12;
|
|
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-10-05 11:35:29 +00:00
|
|
|
|
public const int HeatMetersCount = 6;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2016-10-26 09:32:13 +00:00
|
|
|
|
#elif SLM_END || WARSAW_END
|
2016-12-09 18:44:20 +00:00
|
|
|
|
public const int WMsCount = 10;
|
|
|
|
|
|
public const int LineSize = 5;
|
2016-06-17 13:59:32 +00:00
|
|
|
|
public const int CompoundWMsCount = 1;
|
2016-12-02 08:11:24 +00:00
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = 4;
|
2016-10-06 09:52:43 +00:00
|
|
|
|
#elif MALTA_WSD25
|
|
|
|
|
|
public const int WMsCount = 6;
|
|
|
|
|
|
public const int LineSize = 6;
|
|
|
|
|
|
public const int CompoundWMsCount = 0;
|
|
|
|
|
|
public const int HeatMetersCount = 0;
|
2016-12-09 09:57:27 +00:00
|
|
|
|
public const int MaxPartNr = WMsCount / LineSize;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
|
2016-12-14 10:09:23 +00:00
|
|
|
|
///
|
2015-12-04 16:17:20 +00:00
|
|
|
|
/// Database related: This object reference is set after a successful user login
|
|
|
|
|
|
///
|
|
|
|
|
|
public static DatabaseSettings CurrentBench;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|