/// <summary>
        /// Export protected document logs
        /// </summary>
        /// <returns></returns>
        public HSSFWorkbook Exports()
        {
            var data = GetAll();
            var protectedDocumentLogs = Maps(data);

            return(ExcelUtilities.CreateWorkBook(protectedDocumentLogs));
        }
示例#2
0
        /// <summary>
        /// Export link trackers for monthly click through
        /// </summary>
        /// <returns></returns>
        public HSSFWorkbook Exports(LinkTrackerMonthlyClickThroughSearchModel searchModel)
        {
            var data         = SearchLinkTrackers(searchModel);
            var linkTrackers = Maps(data, searchModel);

            return(ExcelUtilities.CreateWorkBook(linkTrackers));
        }
        /// <summary>
        /// Export notification templates
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var notificationTemplates = SearchNotificationTemplates();

            var exportData = si.Export(notificationTemplates, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#4
0
        /// <summary>
        /// Export Plugins
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var plugins = GetAll().AsQueryable();

            var exportData = si.Export(plugins, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#5
0
        /// <summary>
        /// Export contact communications
        /// </summary>
        /// <returns></returns>
        public HSSFWorkbook Exports(int contactId)
        {
            var data = Fetch(c => c.ContactId == contactId);

            var contactCommunications = Maps(data);

            return(ExcelUtilities.CreateWorkBook(contactCommunications));
        }
示例#6
0
        /// <summary>
        /// Export notified contacts
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="notificationId"></param>
        /// <returns></returns>
        public HSSFWorkbook ExportsNotifiedContacts(JqSearchIn si, GridExportMode gridExportMode, int notificationId)
        {
            var notifiedContacts = SearchNotifiedContacts(notificationId);

            var exportData = si.Export(notifiedContacts, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#7
0
        /// <summary>
        /// Export location types
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="locationId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int?locationId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchLocationTypesByLocation(locationId);

            var locationTypes = Maps(data);

            var exportData = si.Export(locationTypes, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#8
0
        /// <summary>
        /// Export the anonymous contacts
        /// </summary>
        /// <param name="si"></param>
        /// <param name="model"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, AnonymousContactSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchAnonymousContacts(model);

            var anonymousContactts = Maps(data);

            var exportData = si.Export(anonymousContactts, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#9
0
        /// <summary>
        /// Export contacts of user
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        public HSSFWorkbook ExportsContactsByUser(JqSearchIn si, GridExportMode gridExportMode, int userId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchContactsByUser(userId);

            var contacts = Maps(data);

            var exportData = si.Export(contacts, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#10
0
        /// <summary>
        /// Export the widgets
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, WidgetSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAllWidgets() : SearchWidgets(model);

            var widgets = data.AsQueryable();

            var exportData = si.Export(widgets, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#11
0
        /// <summary>
        /// Export templates
        /// </summary>
        /// <param name="si"></param>
        /// <param name="model"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, WidgetTemplateSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchTemplates(model);

            var templates = Maps(data);

            var exportData = si.Export(templates, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#12
0
        /// <summary>
        /// Export link trackers
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="pageId"></param>
        /// <returns></returns>
        public HSSFWorkbook ExportsLinkTrackersByPage(JqSearchIn si, GridExportMode gridExportMode, int pageId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchLinkTrackers(pageId);

            var linkTrackers = Maps(data, new LinkTrackerSearchModel());

            var exportData = si.Export(linkTrackers, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#13
0
        /// <summary>
        /// Exports news categories of news
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="newsId"></param>
        /// <returns></returns>
        public HSSFWorkbook ExportsNewsCategoriesOfNews(JqSearchIn si, GridExportMode gridExportMode, int newsId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchNewsCategoriesByNews(newsId);

            var newsCategories = Maps(data);

            var exportData = si.Export(newsCategories, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#14
0
        /// <summary>
        /// Export page templates
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="pageTemplateId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int?pageTemplateId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchPageTemplates(pageTemplateId);

            var pageTemplates = Maps(data);

            var exportData = si.Export(pageTemplates, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#15
0
        /// <summary>
        /// Export associate types
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="associateId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int?associateId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchAssociateTypes(associateId);

            var associateTypes = Maps(data);

            var exportData = si.Export(associateTypes, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export form component templates
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var data = GetAll();

            var formComponentTemplates = Maps(data);

            var exportData = si.Export(formComponentTemplates, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export rotating image groups
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var data = GetAll();

            var rotatingImageGroups = Maps(data);

            var exportData = si.Export(rotatingImageGroups, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#18
0
        /// <summary>
        /// Export news
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, NewsSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchNews(model);

            var news = Maps(data.ToList());

            var exportData = si.Export(news, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#19
0
        /// <summary>
        /// Export remote authenticate configurations
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var data = GetAll();

            var remoteAuthentications = Maps(data);

            var exportData = si.Export(remoteAuthentications, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#20
0
        /// <summary>
        /// Export poll answers
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, PollAnswerSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchPollAnswers(model);

            var pollAnswers = Maps(data);

            var exportData = si.Export(pollAnswers, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#21
0
        /// <summary>
        /// Export link trackers
        /// </summary>
        /// <param name="si"></param>
        /// <param name="searchModel"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, LinkTrackerSearchModel searchModel)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchLinkTrackers(searchModel);

            var linkTrackers = Maps(data, searchModel);

            var exportData = si.Export(linkTrackers, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export user login histories
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, UserLoginHistorySearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchUserLoginHistories(model);

            var userLoginHistories = Maps(data);

            var exportData = si.Export(userLoginHistories, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#23
0
        /// <summary>
        /// Export site settings
        /// </summary>
        /// <param name="si"></param>
        /// <param name="model"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, SiteSettingSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchSettings(model);

            var siteSettings = Maps(data);

            var exportData = si.Export(siteSettings, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export link tracker clicks
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="linkTrackerId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int?linkTrackerId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchLinkTrackerClicks(linkTrackerId);

            var linkTrackerClicks = Maps(data);

            var exportData = si.Export(linkTrackerClicks, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#25
0
        /// <summary>
        /// Export EventSchedules
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="eventId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int?eventId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchEventSchedules(eventId);

            var eventSchedules = Maps(data);

            var exportData = si.Export(eventSchedules, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#26
0
        /// <summary>
        /// Export email accounts
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var data = GetAll();

            var emailAccounts = Maps(data);

            var exportData = si.Export(emailAccounts, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export localized resources
        /// </summary>
        /// <param name="si"></param>
        /// <param name="model"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, LocalizedResourceSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchLocalizedResources(model);

            var localizedResources = Maps(data);

            var exportData = si.Export(localizedResources, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#28
0
        /// <summary>
        /// Export form components
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, FormComponentSearchModel model)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchFormComponents(model);

            var formComponents = Maps(data);

            var exportData = si.Export(formComponents, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
        /// <summary>
        /// Export subscription logs
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode)
        {
            var data = GetAll();

            var subscriptionLogs = Maps(data);

            var exportData = si.Export(subscriptionLogs, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }
示例#30
0
        /// <summary>
        /// Export the slide in helps
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="languageId"></param>
        /// <returns></returns>
        public HSSFWorkbook Exports(JqSearchIn si, GridExportMode gridExportMode, int languageId)
        {
            var data = gridExportMode == GridExportMode.All ? GetAll() : SearchSlideInHelps(languageId);

            var slideInHelps = Maps(data);

            var exportData = si.Export(slideInHelps, gridExportMode);

            return(ExcelUtilities.CreateWorkBook(exportData));
        }