Пример #1
0
        protected virtual void RenderWarningsButton(HtmlTextWriter writer)
        {
            IWebFormInterface form = Forms.GetTopmostForm() as IWebFormInterface;

            if ((form != null) && (form.ErrorList != null) && HasNonAborts(form.ErrorList))
            {
                RenderStatusButton(writer, Strings.Get("FormLoadWarningsButtonAlt"), @"images/formwarning.png", String.Format(@"Submit('{0}?WarningForFormID={1}',event)", (string)Context.Session["DefaultPage"], ((IWebElement)form).ID));
            }
        }
Пример #2
0
 private void LoadNextForm()
 {
     if ((_rootFormHost != null) && (_rootFormHost.NextRequest != null))
     {
         IWebFormInterface newForm = (IWebFormInterface)NodeTypeTable.CreateInstance("FormInterface");
         newForm.OnClosing += new CancelEventHandler(MainFormClosing);
         newForm.OnClosed  += new EventHandler(MainFormClosed);
         newForm            = (IWebFormInterface)_rootFormHost.LoadNext(newForm);
         _rootFormHost.Open();
         newForm.Show();
     }
 }
Пример #3
0
        protected virtual void ProcessShowFormWarning(HttpContext context)
        {
            string formIDString = context.Request.QueryString["WarningForFormID"];

            if ((formIDString != null) && (formIDString != String.Empty))
            {
                IWebFormInterface form = GetForm(formIDString) as IWebFormInterface;
                if ((form != null) && (form.ErrorList != null))
                {
                    ShowFormWarnings(form.ErrorList);
                }
            }
        }
Пример #4
0
        protected virtual void PreprocessFormRequest(HttpContext context)
        {
            // Propigate the request to the appropriate form
            string formIDString = context.Request.Form["FormID"];

            if ((formIDString != null) && (formIDString != String.Empty))
            {
                IWebFormInterface form = (IWebFormInterface)GetForm(formIDString);
                if (form != null)
                {
                    form.PreprocessRequest(context);
                }
            }
        }