コード例 #1
0
ファイル: ADODataControlHelper.cs プロジェクト: xxdoc/SKS
        /// <summary>
        /// Handles the WillChangeField event of the underlying Recordset, triggering the control's WillChangeField event.
        /// </summary>
        /// <param name="eventSender">The object which rises the event.</param>
        /// <param name="e">The arguments of the event.</param>
        void Recordset_WillChangeField(object eventSender, FieldChangeEventArgs e)
        {
            EventStatusEnum status = e.Status;

            OnWillChangeField(ref status, e.NumberOfFields, e.FieldValues);
            e.Status = status;
        }
コード例 #2
0
 public override void FieldChanged(object sender, FieldChangeEventArgs e)
 {
     if (this.Fields.ContainsKey(e.FieldID))
     {
         this.RefreshInfo();
     }
 }
コード例 #3
0
 public override void FieldChanged(object sender, FieldChangeEventArgs e)
 {
     if (e.FieldID.Equals("CX.CUSTOM.ACTION") && !string.IsNullOrEmpty(e.NewValue))
     {
         actionName = e.NewValue;
         RunAction(actionName);
         EncompassHelper.Set("CX.CUSTOM.ACTION", "");
     }
 }
コード例 #4
0
ファイル: ADODataControlHelper.cs プロジェクト: xxdoc/SKS
 /// <summary>
 /// The WillChangeField event is called before a pending operation changes the value of one or more Field objects in the ADORecordsetHelper.
 /// </summary>
 /// <param name="status">A EventStatusEnum value that indicates the state of the ADORecordsetHelper in the moment that the event rose.</param>
 /// <param name="numfields">Indicates the number of fields objects contained in the “fieldvalues” array.</param>
 /// <param name="fieldvalues">Array with the new values of the modified fields.</param>
 protected void OnWillChangeField(ref EventStatusEnum status, int numfields, object[] fieldvalues)
 {
     if (WillChangeField != null)
     {
         FieldChangeEventArgs args = new FieldChangeEventArgs(numfields, fieldvalues, status);
         WillChangeField(this, args);
         status = args.Status;
     }
 }
コード例 #5
0
 public override void FieldChanged(object sender, FieldChangeEventArgs e)
 {
     if (e.FieldID.Equals("CX.OPENDOCUMENT") && !string.IsNullOrEmpty(e.NewValue))
     {
         DocumentName = e.NewValue;
         OpenEfolderDocument();
         EncompassHelper.Set("CX.OPENDOCUMENT", "");
     }
 }
コード例 #6
0
 public void On_FieldChanged(object oSender, FieldChangeEventArgs oEvt)
 {
     try
     {
     }
     catch (Exception oEx)
     {
         ApplicationLog.WriteError(MethodBase.GetCurrentMethod().DeclaringType.Name, $"On_FieldChanged Error {oEx.Message}");
     }
 }
コード例 #7
0
ファイル: Plugin.cs プロジェクト: welch-ja/CommunityPlugin
 private void Base_FieldChange(object sender, FieldChangeEventArgs e)
 {
     try
     {
         this.FieldChanged(sender, e);
     }
     catch (Exception ex)
     {
         Logger.HandleError(ex, nameof(Base_FieldChange), (object)null);
     }
 }
コード例 #8
0
        public override void FieldChanged(object sender, FieldChangeEventArgs e)
        {
            bool flag  = string.IsNullOrEmpty(EncompassHelper.Val("3152"));
            bool flag2 = e.FieldID.Equals("FR0108");
            bool flag3 = !string.IsNullOrEmpty(e.NewValue);
            bool flag4 = e.FieldID.Equals("3142");

            if (flag && flag3 && (flag2 || flag4))
            {
                ClearAndUpdateData();
            }
        }
コード例 #9
0
        protected void On_LoanFieldChanged(object sender, FieldChangeEventArgs oFldEvt)
        {
            if (oAFN2IRSection == null)
            {
                oAFN2IRSection = AFN2IRHelper.ReadAppConfig();
            }

            string oTriggerField = (oAFN2IRSection != null) ? oTriggerField = oAFN2IRSection.AFNRequest.TriggerField : "300";

            if ((oFldEvt.FieldID == oTriggerField) && oFldEvt.NewValue.EndsWith("PQ"))
            {
                On_RetrieveAndTrackInvoice(EncompassApplication.CurrentLoan.Fields["364"].Value.ToString(), oFldEvt.NewValue);
            }
        }
コード例 #10
0
        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();
                    }
                }
            }
        }
コード例 #11
0
        public override void FieldChanged(object sender, FieldChangeEventArgs e)
        {
            // vend.x263 - investor name
            // 2014 - shipping date
            // SP - when either field above changes, apply investor template
            // EM Investor tool used by secondary to set investor name initially which will not trigger this plugin
            // which is why we added shipping date as another trigger
            if ((e.FieldID.Equals("VEND.X263") || e.FieldID.Equals("2014")) &&
                !string.IsNullOrEmpty(e.NewValue))
            {
                if (EncompassApplication.CurrentLoan.Fields["1999"].IsEmpty() == false)
                {
                    string investorName = string.Empty;
                    if (e.FieldID.Equals("VEND.X263"))
                    {
                        investorName = e.NewValue;
                    }
                    else
                    {
                        investorName = EncompassApplication.CurrentLoan.Fields["VEND.X263"].ToString();
                    }


                    var investorTemplate = EncompassApplication.Session.SystemSettings.Secondary.InvestorTemplates[investorName];
                    if (investorTemplate == null)
                    {
                        MessageBox.Show(
                            $"Error: Unable to find Investor Template name for '{investorName}' to apply template. " +
                            $"This is a major issue that needs to get resolved or loan will not have proper investor data.");

                        return;
                    }

                    // Applies the MilestoneTemplate to the loan.
                    EncompassApplication.CurrentLoan.ApplyInvestorToLoan(investorTemplate);
                }
            }
        }
コード例 #12
0
        public override void FieldChanged(object sender, FieldChangeEventArgs e)
        {
            // SP - if rate is not locked, we do not want to trigger email
            if (IsLoanRateLocked() == false)
            {
                return;
            }

            // SP - if rate is locked, check if field edited is one of our pricing audit fields
            if (_standardEncompassPricingFieldIdsMonitored.Contains(e.FieldID))
            {
                var pricingField = _pricingAlertFields
                                   .FirstOrDefault(x => x.EncompassFieldToMonitor.Equals(e.FieldID, StringComparison.OrdinalIgnoreCase));

                if (pricingField != null)
                {
                    // SP - set custom field that will hold "old value" of our pricing field
                    // this allows Lock Desk to see the old and current value of our pricing audit fields

                    EncompassApplication.CurrentLoan.Fields[pricingField.CustomFieldToCompare].Value = e.PriorValue;
                    _hasPricingChanged = true;
                }
            }
        }
コード例 #13
0
ファイル: Plugin.cs プロジェクト: welch-ja/CommunityPlugin
 public virtual void FieldChanged(object sender, FieldChangeEventArgs e)
 {
     throw new ImplementationException(GetType().Name, nameof(IFieldChange), nameof(FieldChanged));
 }
コード例 #14
0
 // Watch for changes to fields
 private void CurrentLoan_FieldChange(object source, FieldChangeEventArgs e)
 {
 }