using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LFP_Manager.DataStructure { class csDbConstData { public class DataBase { public static string FileName = @"\db\AlamrHistory.db"; public static string TableName = "History"; public static string CreateTable = "CREATE TABLE " + TableName + " (" + "HTime DateTime NOT NULL, " + "model varchar(10), " + "sno int, " + "alarm_name varchar(20), " + "alarm_code int, " + "flag_name varchar(20), " + "flag int, " + "param1 float, " + "param2 float, " + ");"; } public static readonly int ALARM_NAME_SIZE = 9; public class DB_ALARM { public static int CELL_UNDER_VOLTAGE = 0; public static int CELL_OVER_VOLTAGE = 1; public static int SYSTEM_UNDER_VOLTAGE = 2; public static int SYSTEM_OVER_VOLTAGAE = 3; public static int HIGH_TEMPERATURE = 4; public static int LOW_TEMPERATURE = 5; public static int CHARGE_OVER_CURRENT = 6; public static int DISCHARGE_OVER_CURRENT = 7; public static int LOW_SOC = 8; public static readonly string[] ALARM_NAME = { "CELL UNDER VOLTAGE", "CELL OVER VOLTAGE", "SYSTEM UNDER VOLTAGE", "SYSTEM OVER VOLTAGAE", "HIGH TEMPERATURE", "LOW TEMPERATURE", "CHARGE OVER CURRENT", "DISCHARGE OVER CURRENT", "LOW SOC", }; public static int FLAG_RELEASE = 0; public static int FLAG_WARNING = 1; public static int FLAG_TRIP = 2; public static readonly string[] FLAG_NAME = { "RELEASE", "WARNING", "FAULT", }; } } }