Esempio n. 1
0
        public override void CreateControls()
        {
            this.components          = new Container();
            this.fxAFNReqUID         = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_AFNReqUID");
            this.fxAFNReqPwD         = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_AFNReqPwD");
            this.fxAFNIntrnlAID      = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_AFNInternalAID");
            this.fxIRReqSrc          = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRReqSrc");
            this.fxIRServiceEndpoint = (EllieMae.Encompass.Forms.DropdownBox)base.FindControl("FX_IRServiceEndpoint");
            this.fxAFNReqTrigger     = (EllieMae.Encompass.Forms.DropdownBox)base.FindControl("FX_AFNReqTrigger");
            this.fxIRRespCond        = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRRespCond");
            this.fxIRRespStatus      = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRRespStat");
            this.fxIRRespTime        = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRRespTime");
            this.fxIRRespSize        = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRRespSize");
            this.fxIRRespDesc        = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRRespDesc");
            this.fxIRInvCaseID       = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvCaseID");
            this.fxIRInvOrderID      = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvOrderID");
            this.fxIRInvOrderDT      = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvOrderDT");
            this.fxIRInvBillDT       = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvBillingDT");
            this.fxIRInvAmnt         = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvAmnt");
            this.fxIRInvRptName      = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_IRInvRptName");
            this.fxTrackedDocTitle   = (EllieMae.Encompass.Forms.Label)base.FindControl("FX_TrackedDocTitle");

            this.fxIRRespCondition  = (EllieMae.Encompass.Forms.TextBox)base.FindControl("FX_CONDITION");
            this.fxIRRespHTTPStatus = (EllieMae.Encompass.Forms.Panel)base.FindControl("FX_AFN2IR_HTTPSTATUS");
            this.fxIRRespBilling    = (EllieMae.Encompass.Forms.Panel)base.FindControl("FX_AFN2IR_IRBILLINGRESP");

            this.WireUP();
        }
Esempio n. 2
0
        // enable/disable controls
        public static void EnableDisableControl(string controlID, ElliForms.Form form, bool enableFieldBool)
        {
            var control = form.FindControl(controlID);

            if (control != null)
            {
                // first we need to find the control, see what type of object it is (checkbox or textbox), and cast it to that
                string controlType = control.GetType().ToString();

                if (controlType.Contains("TextBox")) //if control textbox, cast to textbox
                {
                    ElliForms.TextBox myControl = (EllieMae.Encompass.Forms.TextBox)control;
                    if (enableFieldBool)
                    {
                        myControl.Enabled = true;
                    }
                    else
                    {
                        myControl.Enabled = false;
                    }
                }
                else if (controlType.Contains("DropdownEditBox"))
                {
                    ElliForms.DropdownEditBox myControl = (EllieMae.Encompass.Forms.DropdownEditBox)control;
                    if (enableFieldBool)
                    {
                        myControl.Enabled = true;
                    }
                    else
                    {
                        myControl.Enabled = false;
                    }
                }
                else if (controlType.Contains("DropdownBox"))
                {
                    ElliForms.DropdownBox myControl = (EllieMae.Encompass.Forms.DropdownBox)control;
                    if (enableFieldBool)
                    {
                        myControl.Enabled = true;
                    }
                    else
                    {
                        myControl.Enabled = false;
                    }
                }
            }
        }