private void GetData()
 {
     try
     {
         Config = _provider.Get();
     }
     catch (Exception ex)
     {
         _nlogger.Error(ex, ex.Message);
     }
 }
Пример #2
0
 void ReadValues()
 {
     FamilyDbPath               = (string)_settings.Get(SettingsNames.FAMILY_DB_PATH);
     PayDetailsTemplate         = (string)_settings.Get(SettingsNames.PAYM_REPORT_PATH);
     ShowReports                = (bool)_settings.Get(SettingsNames.SHOW_REPORTS);
     LogFileFolder              = (string)_settings.Get(SettingsNames.LOG_FILE_PATH);
     MemberStatmentTemplatePath = (string)_settings.Get(SettingsNames.MEMBER_STATEMENT_PATH);
     LoansStatementTemplatePath = (string)_settings.Get(SettingsNames.LOAN_STATM_PATH);
     PdfsFolder    = (string)_settings.Get(SettingsNames.PDF_FOLDER_PATH);
     CurrentPeriod = GetCurrentYear();
 }
 // GET: AlarmSystemMap
 public ActionResult Edit(int ServerId)
 {
     try
     {
         var gprovider                 = new GlobalConfigService(DomainSession.GetAlarmConfigForContextWithDeviceId(this.HttpContext, ServerId));
         var deviceprovider            = new AlarmDevicesConfigService(DomainSession.GetAlarmConfigForContextWithDeviceId(this.HttpContext, ServerId));
         AlarmSystemMapEditModel model = new AlarmSystemMapEditModel(gprovider.Get(), deviceprovider.GetAll());
         model.ServerId = ServerId;
         return(View(model));
     }
     catch (Exception e)
     {
         _logger.Error(e, e.Message);
     }
     return(View());
 }
 // GET: AlarmSystemView
 public ActionResult Edit(int ServerId)
 {
     try
     {
         var gprovider = new GlobalConfigService(DomainSession.GetAlarmConfigForContextWithDeviceId(this.HttpContext, ServerId));
         AlarmSystemCommunicationEditModel model = new AlarmSystemCommunicationEditModel(gprovider.Get());
         model.ServerId = ServerId;
         return(View(model));
     }
     catch (Exception e)
     {
     }
     return(View());
 }