Exemplo n.º 1
0
        protected override void PageLoad()
        {
            BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.AllBookmarks);

            var pageTitle = BookmarkingResource.PageTitle;

            BookmarkingPageContent.Controls.Add(LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath));
            BookmarkingPagingContent.Controls.Add(LoadControl(BookmarkUserControlPath.BookmarkingPagingUserControlPath));
            InitBreadcrumbs(pageTitle);
            Title = HeaderStringHelper.GetPageTitle(pageTitle);
        }
Exemplo n.º 2
0
        protected override void PageLoad()
        {
            //this.Title = Resources.PhotoManagerResource.PageTitleDefault;
            LoadData();
            formContainer.Options.IsPopup = true;
            Utility.RegisterTypeForAjax(typeof(Default), Page);
            this.Title = HeaderStringHelper.GetPageTitle(PhotoManagerResource.AddonName, mainContainer.BreadCrumbs);

            sideRecentActivity.TenantId  = TenantProvider.CurrentTenantID;
            sideRecentActivity.ProductId = Product.CommunityProduct.ID;
            sideRecentActivity.ModuleId  = PhotoConst.ModuleID;
        }
Exemplo n.º 3
0
        protected void ExecCasesActionView(ASC.CRM.Core.Entities.Cases targetCase)
        {
            var casesActionViewControl = (CasesActionView)LoadControl(CasesActionView.Location);

            casesActionViewControl.TargetCase = targetCase;
            CommonContainerHolder.Controls.Add(casesActionViewControl);

            var headerTitle = targetCase == null ? CRMCasesResource.CreateNewCase : String.Format(CRMCasesResource.EditCaseHeader, targetCase.Title);

            Master.CurrentPageCaption = headerTitle;
            Title = HeaderStringHelper.GetPageTitle(headerTitle);
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.Master.DisabledSidePanel      = true;
            Master.Master.DisabledTopStudioPanel = true;
            Master.Master
            .AddStaticStyles(GetStaticStyleSheet())
            .AddStaticBodyScripts(GetStaticJavaScript());

            Page.Title = HeaderStringHelper.GetPageTitle(FilesCommonResource.ShareLinkMail);

            InitScript();
        }
        protected override void PageLoad()
        {
            BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.BookmarksCreatedByUser);

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);

            BookmarkingPageContent.Controls.Add(c);

            PageTitle = ServiceHelper.GetUserNameByRequestParam();

            Title = HeaderStringHelper.GetPageTitle(PageTitle);
        }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID).IsVisitor()) // Redirect to home page if user hasn't permissions or not authenticated.
            {
                Response.Redirect("/");
            }

            _manageFieldPopup.Options.IsPopup = true;
            _commonPopup.Options.IsPopup      = true;

            Page.Title = HeaderStringHelper.GetPageTitle(Resources.MailResource.MailTitle);

            ProductEntryPoint.ConfigurePortal();

            MailSidePanelContainer.Controls.Add(LoadControl(TagBox.Location));

            MailControlContainer.Controls.Add(LoadControl(MailBox.Location));

            var helpCenter = (HelpCenter)LoadControl(HelpCenter.Location);

            helpCenter.IsSideBar = true;
            sideHelpCenter.Controls.Add(helpCenter);

            SupportHolder.Controls.Add(LoadControl(Support.Location));

            PeopleGroupLocalize.Text = CustomNamingPeople.Substitute <Resources.MailResource>("FilterByGroup");

            // If user doesn't have any mailboxes this will showed.
            var mailBoxManager = new ASC.Mail.Aggregator.MailBoxManager(0);
            var mailBoxes      = mailBoxManager.GetMailBoxes(TenantProvider.CurrentTenantID, SecurityContext.CurrentAccount.ID.ToString());

            if (mailBoxes.Count < 1)
            {
                BlankModalPH.Controls.Add(LoadControl(BlankModal.Location));
            }

            if (!IsCrmAvailable())
            {
                crmContactsContainer.Visible = false;
            }

            if (!IsPeopleAvailable())
            {
                tlContactsContainer.Visible = false;
            }

            Page.RegisterBodyScripts(LoadControl(VirtualPathUtility.ToAbsolute("~/addons/mail/masters/BodyScripts.ascx")));
            Page.RegisterStyleControl(LoadControl(VirtualPathUtility.ToAbsolute("~/addons/mail/masters/Styles.ascx")));
            Page.RegisterClientLocalizationScript(typeof(Masters.ClientScripts.ClientLocalizationResources));
            Page.RegisterClientLocalizationScript(typeof(Masters.ClientScripts.ClientTemplateResources));

            Master.DisabledHelpTour = true;
        }
Exemplo n.º 7
0
        protected override void OnLoadComplete(EventArgs e)
        {
            base.OnLoadComplete(e);

            PageTitle = newPostControl.PostType == NewPostType.Post
                    ? ForumResource.NewPostButton
                    : newPostControl.PostType == NewPostType.Topic
                          ? ForumResource.NewTopicButton :
                        ForumResource.NewPollButton;

            Title = HeaderStringHelper.GetPageTitle(PageTitle);
        }
        protected override void PageLoad()
        {
            Page.RegisterBodyScripts("~/js/third-party/sorttable.js");
            Page.RegisterBodyScripts(PathProvider.GetFileStaticRelativePath, "reports.js");

            exportReportPopup.Options.IsPopup = true;
            HasData                              = true;
            TemplateNotFound                     = false;
            Master.DisabledSidePanel             = true;
            Master.Master.DisabledTopStudioPanel = true;

            var repType = UrlParameters.ReportType;

            var filter     = TaskFilter.FromUri(HttpContext.Current.Request.GetUrlRewriter());
            var templateID = UrlParameters.EntityID;
            var reportName = "";

            if (templateID >= 0)
            {
                var template = EngineFactory.ReportEngine.GetTemplate(templateID);
                if (template != null)
                {
                    filter             = template.Filter;
                    repType            = template.ReportType;
                    GenerateReportType = (int)template.ReportType;

                    Title      = HeaderStringHelper.GetPageTitle(string.Format(ReportResource.ReportPageTitle, HttpUtility.HtmlDecode(template.Name)));
                    reportName = string.Format(ReportResource.ReportPageTitle, template.Name);
                }
                else
                {
                    RedirectNotFound("reports.aspx");
                }
            }

            var report = Report.CreateNewReport(repType, filter);

            if (templateID == 0)
            {
                Title      = HeaderStringHelper.GetPageTitle(string.Format(ReportResource.ReportPageTitle, report.ReportInfo.Title));
                reportName = string.Format(ReportResource.ReportPageTitle, report.ReportInfo.Title);
            }

            var filters = (ReportFilters)LoadControl(PathProvider.GetFileStaticRelativePath("Reports/ReportFilters.ascx"));

            filters.Report = report;
            _filter.Controls.Add(filters);

            var outputFormat = GetOutputFormat();
            var result       = report.BuildReport(outputFormat, templateID);

            OutputData(report, result, reportName, outputFormat);
        }
        protected override void PageLoad()
        {
            BookmarkingBusinessFactory.UpdateDisplayMode(BookmarkDisplayMode.Favourites);

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);

            BookmarkingPageContent.Controls.Add(c);

            PageTitle = BookmarkingUCResource.FavouritesNavigationItem;

            Title = HeaderStringHelper.GetPageTitle(PageTitle);
        }
Exemplo n.º 10
0
        protected void ExecDealActionView(Deal targetDeal)
        {
            var dealActionViewControl = (DealActionView)LoadControl(DealActionView.Location);

            dealActionViewControl.TargetDeal = targetDeal;
            CommonContainerHolder.Controls.Add(dealActionViewControl);

            var headerTitle = targetDeal == null ? CRMDealResource.CreateNewDeal : String.Format(CRMDealResource.EditDealLabel, targetDeal.Title);

            Master.CurrentPageCaption = headerTitle;
            Title = HeaderStringHelper.GetPageTitle(headerTitle);
        }
Exemplo n.º 11
0
        protected void ExecListContactView()
        {
            CommonContainerHolder.Controls.Add(LoadControl(ListContactView.Location));

            Master.DisabledSidePanel = true;

            Master.BreadCrumbs.Add(new BreadCrumb {
                Caption = CRMContactResource.AllContacts
            });

            Title = HeaderStringHelper.GetPageTitle(CRMContactResource.AllContacts, Master.BreadCrumbs);
        }
Exemplo n.º 12
0
        protected override void PageLoad()
        {
            var action = UrlParameters.ActionType;

            var discussionId = UrlParameters.EntityID;

            if (discussionId >= 0)
            {
                var discussion = EngineFactory.MessageEngine.GetByID(discussionId);

                if (action.HasValue && action.Value == UrlAction.Edit)
                {
                    if (ProjectSecurity.CanEdit(discussion))
                    {
                        LoadDiscussionActionControl(discussion);
                    }
                    else
                    {
                        Response.Redirect("messages.aspx", true);
                    }
                }
                else
                {
                    if (discussion != null && (!ProjectSecurity.CanRead(discussion.Project) ||
                                               discussion.Project.ID != Project.ID))
                    {
                        RedirectNotFound(string.Format("messages.aspx?prjID={0}", Project.ID));
                    }
                }

                if (discussion != null)
                {
                    Title = HeaderStringHelper.GetPageTitle(discussion.Title);
                }
            }
            else
            {
                if (action.HasValue && action.Value == UrlAction.Add)
                {
                    if (!RequestContext.IsInConcreteProject || ProjectSecurity.CanCreate <Message>(RequestContext.GetCurrentProject(false)))
                    {
                        LoadDiscussionActionControl(null);

                        Title = HeaderStringHelper.GetPageTitle(MessageResource.CreateMessage);
                    }
                    else
                    {
                        Response.Redirect("messages.aspx", true);
                    }
                }
            }
        }
Exemplo n.º 13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var title = ProjectTemplatesResource.CreateProjTmpl;

            if (Int32.TryParse(UrlParameters.EntityID, out projectTmplId))
            {
                title = ProjectTemplatesResource.EditProjTmpl;
            }

            Page.Title = HeaderStringHelper.GetPageTitle(title);

            _attantion.Options.IsPopup = true;
        }
Exemplo n.º 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Title = HeaderStringHelper.GetPageTitle(Resources.CalendarAddonResource.AddonName);
            Master.DisabledSidePanel = true;

            CalendarPageContent.Controls.Add(LoadControl(CalendarControl.Location));

            //for personal
            if (SetupInfo.IsPersonal)
            {
                PersonalHelper.AdjustTopNavigator(Master.TopStudioPanel, PersonalPart.WebItem, CalendarAddon.AddonID);
            }
        }
Exemplo n.º 15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var title = ProjectTemplatesResource.CreateProjTmpl;

            ProjectTmplId = UrlParameters.EntityID;

            if (ProjectTmplId >= 0)
            {
                title = ProjectTemplatesResource.EditProjTmpl;
            }

            Page.Title = HeaderStringHelper.GetPageTitle(title);
        }
Exemplo n.º 16
0
        protected void ExecInvoiceDetailsView(ASC.CRM.Core.Entities.Invoice targetInvoice)
        {
            var invoiceDetailsView = (InvoiceDetailsView)LoadControl(InvoiceDetailsView.Location);

            invoiceDetailsView.TargetInvoice = targetInvoice;
            CommonContainerHolder.Controls.Add(invoiceDetailsView);

            var title = targetInvoice.Number.HtmlEncode();

            Master.CurrentPageCaption    = title;
            Master.CommonContainerHeader = Global.RenderItemHeaderWithMenu(title, EntityType.Invoice, false, true);
            Title = HeaderStringHelper.GetPageTitle(title);
        }
Exemplo n.º 17
0
        protected override void PageLoad()
        {
            ServiceHelper.DisplayMode = BookmarkingServiceHelper.BookmarkDisplayMode.BookmarksCreatedByUser;

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);

            BookmarkingPageContent.Controls.Add(c);

            var pageTitle = ServiceHelper.GetUserNameByRequestParam();

            InitBreadcrumbs(pageTitle);
            Title = HeaderStringHelper.GetPageTitle(pageTitle);
        }
Exemplo n.º 18
0
        protected override void PageLoad()
        {
            BookmarkingBusinessFactory.UpdateObjectInCookies("BookmarkDisplayMode", BookmarkDisplayMode.BookmarksCreatedByUser.ToString());

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);

            BookmarkingPageContent.Controls.Add(c);

            var pageTitle = ServiceHelper.GetUserNameByRequestParam();

            InitBreadcrumbs(pageTitle);
            Title = HeaderStringHelper.GetPageTitle(pageTitle);
        }
Exemplo n.º 19
0
        public void InitPage()
        {
            Page.RegisterStyleControl(VirtualPathUtility.ToAbsolute("~/usercontrols/management/tariffsettings/css/default/tarifflimitexceed.less"));
            Page.RegisterBodyScripts(PathProvider.GetFileStaticRelativePath("import.js"));
            Title = HeaderStringHelper.GetPageTitle(ImportResource.ImportFromBasecamp);

            HiddenFieldForPermission.Value = ((BasePage)Page).Participant.IsFullAdmin ? "1" : "0";

            import_info_container.Options.IsPopup     = true;
            import_projects_container.Options.IsPopup = true;
            import_popup_Error.Options.IsPopup        = true;
            users_quota_ends.Options.IsPopup          = true;
        }
Exemplo n.º 20
0
        protected override void PageLoad()
        {
            _content.Controls.Add(LoadControl(CommonList.Location));

            if (RequestContext.IsInConcreteProject)
            {
                EssenceTitle  = Project.Title;
                EssenceStatus = Project.Status != ProjectStatus.Open
                    ? LocalizedEnumConverter.ConvertToString(Project.Status).ToLower()
                    : "";
            }
            Title = HeaderStringHelper.GetPageTitle(ProjectsCommonResource.TimeTracking);
            loaderHolder.Controls.Add(LoadControl(LoaderPage.Location));
        }
Exemplo n.º 21
0
        protected override void OnLoadComplete(EventArgs e)
        {
            base.OnLoadComplete(e);
            var caption =
                (Master as ForumMasterPage).CurrentPageCaption =
                    _newPostControl.PostType == NewPostType.Post
                    ? ForumResource.NewPostButton
                    : _newPostControl.PostType == NewPostType.Topic
                          ? ForumResource.NewTopicButton :
                    ForumResource.NewPollButton;

            (Master as ForumMasterPage).CurrentPageCaption = caption;
            Title = HeaderStringHelper.GetPageTitle(caption);
        }
Exemplo n.º 22
0
        protected override void PageLoad()
        {
            Master.Master.DisabledTopStudioPanel = true;
            Master.DisabledSidePanel             = true;
            Master.DisabledPrjNavPanel           = true;
            Title = HeaderStringHelper.GetPageTitle(ProjectsCommonResource.AutoTimer);

            if (!RequestContext.CanCreateTime())
            {
                return;
            }

            RenderContentForTimer();
        }
Exemplo n.º 23
0
        protected void ExecListDealView()
        {
            var listDealViewControl = (ListDealView)LoadControl(ListDealView.Location);

            CommonContainerHolder.Controls.Add(listDealViewControl);

            var headerTitle = CRMDealResource.AllDeals;

            if (!String.IsNullOrEmpty(Request["userID"]))
            {
                headerTitle = CRMDealResource.MyDeals;
            }
            Title = HeaderStringHelper.GetPageTitle(Master.CurrentPageCaption ?? headerTitle);
        }
Exemplo n.º 24
0
        protected void ExecCasesDetailsView(ASC.CRM.Core.Entities.Cases targetCase)
        {
            var casesDetailsViewControl = (CasesDetailsView)LoadControl(CasesDetailsView.Location);

            casesDetailsViewControl.TargetCase = targetCase;
            CommonContainerHolder.Controls.Add(casesDetailsViewControl);

            var title = targetCase.Title;

            Master.CurrentPageCaption    = title;
            Master.CommonContainerHeader = Global.RenderItemHeaderWithMenu(title.HtmlEncode(), EntityType.Case, CRMSecurity.IsPrivate(targetCase), true);

            Title = HeaderStringHelper.GetPageTitle(title);
        }
Exemplo n.º 25
0
        protected override void PageLoad()
        {
            var mainContent = (MainContent)LoadControl(MainContent.Location);

            mainContent.FolderIDCurrentRoot = Project == null ? Files.Classes.Global.FolderProjects : EngineFactory.FileEngine.GetRoot(Project.ID);
            mainContent.TitlePage           = ProjectsCommonResource.ModuleName;
            CommonContainerHolder.Controls.Add(mainContent);

            Master.DisabledEmptyScreens = true;

            Title = HeaderStringHelper.GetPageTitle(ProjectsFileResource.Files);

            Page.RegisterStyle(PathProvider.GetFileStaticRelativePath("common.css"));
            Page.RegisterStyle(r => FilesLinkUtility.FilesBaseAbsolutePath + r,
                               "controls/maincontent/maincontent.css",
                               "controls/contentlist/contentlist.css",
                               "controls/accessrights/accessrights.css",
                               "controls/fileviewer/fileviewer.css",
                               "controls/thirdparty/thirdparty.css",
                               "controls/convertfile/convertfile.css",
                               "controls/chunkuploaddialog/chunkuploaddialog.css");

            Page.RegisterBodyScripts(ResolveUrl,
                                     "~/js/third-party/jquery/jquery.mousewheel.js",
                                     "~/js/third-party/jquery/jquery.uri.js",
                                     "~/js/third-party/sorttable.js");

            Page.RegisterBodyScripts(PathProvider.GetFileStaticRelativePath,
                                     "auth.js",
                                     "common.js",
                                     "filter.js",
                                     "templatemanager.js",
                                     "servicemanager.js",
                                     "ui.js",
                                     "mousemanager.js",
                                     "markernew.js",
                                     "actionmanager.js",
                                     "anchormanager.js",
                                     "foldermanager.js");

            Page.RegisterBodyScripts(r => FilesLinkUtility.FilesBaseAbsolutePath + r,
                                     "controls/createmenu/createmenu.js",
                                     "controls/fileviewer/fileviewer.js",
                                     "controls/convertfile/convertfile.js",
                                     "controls/chunkuploaddialog/chunkuploadmanager.js");

            Page.RegisterClientLocalizationScript(typeof(Files.Masters.ClientScripts.FilesLocalizationResources));
            Page.RegisterClientScript(typeof(Files.Masters.ClientScripts.FilesConstantsResources));
        }
Exemplo n.º 26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(ConfirmActivation));
            Page.RegisterBodyScripts(ResolveUrl("~/usercontrols/management/confirmactivation/js/confirmactivation.js"));
            Page.RegisterStyleControl(VirtualPathUtility.ToAbsolute("~/usercontrols/management/ConfirmActivation/css/confirmactivation.less"));
            Page.Title = HeaderStringHelper.GetPageTitle(Resource.Authorization);
            ButtonEmailAndPasswordOK.Text = Resource.EmailAndPasswordOK;
            btChangeEmail.Text            = Resource.ChangeEmail;

            var email = (Request["email"] ?? "").Trim();

            if (string.IsNullOrEmpty(email))
            {
                ShowError(Resource.ErrorNotCorrectEmail);
                return;
            }

            Type = typeof(ConfirmType).TryParseEnum(Request["type"] ?? "", ConfirmType.EmpInvite);

            User = CoreContext.UserManager.GetUserByEmail(email);
            if (User.ID.Equals(Constants.LostUser.ID))
            {
                ShowError(string.Format(Resource.ErrorUserNotFoundByEmail, email));
                return;
            }

            try
            {
                UserAuth(User, HttpContext.Current);
                ActivateMail(User);

                if (Type == ConfirmType.EmailChange && !IsPostBack)
                {
                    emailChange.Visible = true;
                    AjaxPro.Utility.RegisterTypeForAjax(typeof(EmailOperationService));
                }
                else if (Type == ConfirmType.PasswordChange)
                {
                    passwordSetter.Visible = true;
                }
            }
            catch (ThreadAbortException)
            {
            }
            catch (Exception ex)
            {
                ShowError(ex.Message);
            }
        }
Exemplo n.º 27
0
        protected override void PageLoad()
        {
            if (!Global.CanCreateReports)
            {
                Response.Redirect(PathProvider.StartURL());
            }

            Title = HeaderStringHelper.GetPageTitle(Master.CurrentPageCaption ?? CRMReportResource.Reports);

            loaderHolder.Controls.Add(LoadControl(LoaderPage.Location));

            AdditionalContainerHolder.Controls.Add(LoadControl(ReportsNavigation.Location));

            CommonContainerHolder.Controls.Add(LoadControl(ReportsView.Location));
        }
Exemplo n.º 28
0
        protected override void PageLoad()
        {
            if (String.IsNullOrEmpty(BlogId))
            {
                Response.Redirect(Constants.DefaultPageUrl);
            }

            Utility.RegisterTypeForAjax(typeof(Subscriber));

            var engine = GetEngine();

            ShowPost(engine);

            Title = HeaderStringHelper.GetPageTitle(mainContainer.CurrentPageCaption ?? BlogsResource.AddonName);
        }
        protected override void PageLoad()
        {
            Master.DisabledSidePanel = true;

            _hintPopupTaskRemove.Options.IsPopup       = true;
            _hintPopupMilestoneRemove.Options.IsPopup  = true;
            _hintPopupMilestoneTasks.Options.IsPopup   = true;
            _hintPopupTaskWithSubtasks.Options.IsPopup = true;
            _moveTaskOutMilestone.Options.IsPopup      = true;
            _addNewLinkPopup.Options.IsPopup           = true;

            Page.RegisterStyle("~/products/projects/app_themes/default/css/ganttchart.css");

            Title = HeaderStringHelper.GetPageTitle(ProjectResource.GanttGart);
        }
Exemplo n.º 30
0
        protected void InitPageTitle()
        {
            Master.BreadCrumbs.Add(new BreadCrumb
            {
                Caption = "Reports comming soon"
            });

            Master.DisabledSidePanel = true;

            //var privatePanel = (PrivatePanel)LoadControl(PrivatePanel.Location);

            //CommonContainerHolder.Controls.Add(privatePanel);

            Title = HeaderStringHelper.GetPageTitle("Reports", Master.BreadCrumbs);
        }