public InputForm(SessionObjects sos, InputFormInfo formInfo) { _formInfo = formInfo; FormControls = new List <InputFormControl>(); FormEvents = new List <InputFormEvent>(); this.FormName = _formInfo.Name; LoadData(sos); }
public InputForm(SessionObjects sos, InputFormInfo formInfo, bool ignoreFieldsAndEvents) { _formInfo = formInfo; FormControls = new List <InputFormControl>(); FormEvents = new List <InputFormEvent>(); this.FormName = _formInfo.Name; LoadData(sos, ignoreFieldsAndEvents); }
public QuickEntryPopupDialog2(IHtmlInput inputData, string formTitle, InputFormInfo formInfo, int sizeWidth, int sizeHeight, FieldSource fieldSource, string helpTag, Sessions.Session session, object property) { InitializeComponent(); this.Name = formTitle; this.Text = formTitle.Replace("pop", ""); this.Size = new Size(sizeWidth, sizeHeight); LoanScreen Screen = new LoanScreen(Session.DefaultInstance); this.Controls.Add(Screen); Screen.LoadForm(formInfo); }
public override void FieldChanged(object sender, FieldChangeEventArgs e) { if (!HasFields) { return; } if (e.FieldID.Equals("CX.OPENFORM") && !string.IsNullOrEmpty(e.NewValue)) { InputFormInfo form = Session.FormManager.GetFormInfoByName(e.NewValue); if (form == null) { return; } string size = EncompassHelper.Val("CX.OPENFORM.SIZE").ToString(); string[] setSize = size.Contains(',') ? size.Split(',') : new string[0]; Size controlSize = setSize.Count() > 0 ? new System.Drawing.Size(Convert.ToInt32(setSize[0]), Convert.ToInt32(setSize[1])) : new System.Drawing.Size(600, 600); q = new QuickEntryPopupDialog2(Session.LoanData, $"pop{form.Name}", form, controlSize.Width, controlSize.Height, EllieMae.Encompass.Forms.FieldSource.CurrentLoan, "", Session.DefaultInstance); q.Show(); q.TopMost = true; Open = true; EncompassHelper.SetBlank("CX.OPENFORM"); } else if (Open) { foreach (Form f in FormWrapper.OpenForms.Where(x => x.Name.StartsWith("pop")).Select(x => x)) { LoanScreen screen = f?.Controls[0] as LoanScreen; if (screen == null) { return; } if (screen != null && !screen.ContainsFocus) { screen.RefreshLoanContents(); } else { Session.Application.GetService <ILoanEditor>()?.RefreshContents(); } } } }
public QuickEntryPopupDialog2(IHtmlInput inputData, string formTitle, InputFormInfo formInfo, int sizeWidth, int sizeHeight, FieldSource fieldSource, string helpTag, Sessions.Session session) : this(inputData, formTitle, formInfo, sizeWidth, sizeHeight, fieldSource, helpTag, session, (object)null) { }