Esempio n. 1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="connectionsStringTMP">Строка подключения. МОжет быть любой</param>
 /// <param name="Current_Language">Язык</param>
 /// <param name="sql">обьект SQLDB</param>
 public HistoryTable(string connectionsStringTMP, string Current_Language, SQLDB sql)
 {
     bool toCloseConncection = false;
     connectionString = connectionsStringTMP;
     CurrentLanguage = Current_Language;
     //sqlDb = new SQLDB(connectionString);
     sqlDb = sql;
     string LanguageForAction = "STRING_RU";
     if (!sqlDb.IsConnectionOpened())
     {
         sqlDb.OpenConnection();
         toCloseConncection = true;
     }
     driversRegDataChanged = AddOrGetAction("Users/drivers registration data changed", LanguageForAction);
     vehiclesRegDataChanged = AddOrGetAction("Vehicles registration data changed", LanguageForAction);
     PLFDataBlockLoaded = AddOrGetAction("PLF data block loaded", LanguageForAction);
     DDDDriversDataBlockLoaded = AddOrGetAction("Cards data block loaded", LanguageForAction);
     DDDVehiclesDataBlockLoaded = AddOrGetAction("Vehicles unit data block loaded", LanguageForAction);
     newUserRegistered = AddOrGetAction("New user registered", LanguageForAction);
     newDriverRegistered = AddOrGetAction("New driver registered", LanguageForAction);
     newVehicleRegistered = AddOrGetAction("New vehicle registered", LanguageForAction);
     setReportUserRoles = AddOrGetAction("Change permissions to the report for user role", LanguageForAction);
     setReportUserOrg = AddOrGetAction("New report type successfully added", LanguageForAction);
     invoicePaid = AddOrGetAction("Invoice paid", LanguageForAction);
     if(toCloseConncection)
         sqlDb.CloseConnection();
 }