public static SettingsModel SaveExportMapping(AuthenticatedUserManager user, string reportPath, string procName, string displayOption)
 {
     SettingsModel.ReportPath = string.Empty;
     ExportMapManager manager = new ExportMapManager(user);
     BOExportMap exportMap = new BOExportMap();
     exportMap.ProcName = procName;
     exportMap.ReportPath = reportPath;
     exportMap.DisplayOptions = displayOption;
     exportMap.DataSourcePath = manager.LookupDataSourceFromRdl(reportPath);
     exportMap.Save(user.AuthenticatedUserSignature);
     return SettingsModel.GetExportMappings(user);
 }
 public void FillReportStoredProcedures(AuthenticatedUserManager user, string reportPath)
 {
     ExportMapManager exportMapManager = new ExportMapManager(user);
     _reportStoredProcedures = exportMapManager.LookupStoredProcFromRdl(reportPath);
 }
 public static SettingsModel DeleteExportMapping(AuthenticatedUserManager user, string reportPath)
 {
     SettingsModel.ReportPath = string.Empty;
     BOExportMap exportMap = new BOExportMap();
     ExportMapManager manager = new ExportMapManager(user);
     exportMap = manager.FindAssociatedExportMap(reportPath, false);
     exportMap.Delete();
     return SettingsModel.GetExportMappings(user);
 }