Ejemplo 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();
        }
        private IEnumerable <MissingControl> InitPanels()
        {
            List <MissingControl> result = new List <MissingControl>();

            string thirdPartySignerPanel = "Panel_ThirdPartySigners";

            EllieMae.Encompass.Forms.Panel panelThirdPartySigners = (EllieMae.Encompass.Forms.Panel)FindControl(thirdPartySignerPanel);
            if (panelThirdPartySigners == null)
            {
                result.Add(
                    new MissingControl(thirdPartySignerPanel, ControlTypeEnum.Panel));
            }
            else
            {
                if (!_personaBreakOut.isLo)
                {
                    panelThirdPartySigners.Visible = true;
                    DisableThirdPartyFieldsForPortalsAlreadyCreated();
                }
                else
                {
                    panelThirdPartySigners.Visible = false;
                }
            }


            var panelLoanOfficerInstructions = (EllieMae.Encompass.Forms.Panel)FindControl("panel_LoanOfficerInstructions");

            if (panelLoanOfficerInstructions == null)
            {
                result.Add(
                    new MissingControl("panel_LoanOfficerInstructions", ControlTypeEnum.Panel));
            }


            EllieMae.Encompass.Forms.Panel panelLoButtons = (EllieMae.Encompass.Forms.Panel)FindControl("panel_LoButtons");
            if (panelLoButtons == null)
            {
                result.Add(
                    new MissingControl("panel_LoButtons", ControlTypeEnum.Panel));
            }

            if (panelLoButtons != null && panelLoanOfficerInstructions != null)
            {
                if (_personaBreakOut.isLo || _personaBreakOut.isAdmin)
                {
                    panelLoanOfficerInstructions.Visible = true;
                    panelLoButtons.Visible = true;
                }
                else
                {
                    panelLoanOfficerInstructions.Visible = false;
                    panelLoButtons.Visible = false;
                }
            }

            return(result);
        }
        protected void On_FormLoaded(object sender, FormChangeEventArgs oFCEvt)
        {
            // WNW: Temporary Workaround
            if (EncompassApplication.Screens.Current.ScreenType == EncompassScreen.Loans)
            {
                this.fxIRRespHTTPStatus = (EMFORMS.Panel)oFCEvt.Form.FindControl("FX_AFN2IR_HTTPSTATUS");
                this.fxIRRespBilling    = (EMFORMS.Panel)oFCEvt.Form.FindControl("FX_AFN2IR_IRBILLINGRESP");
            }

            if (oAFN2IRSection == null)
            {
                oAFN2IRSection = AFN2IRHelper.ReadAppConfig();
            }
        }
        private MissingControl InitSelectPackagePanel()
        {
            var disclosurePackageAccess =
                _passFailUtility.DisclosuresUtilityConfig.WcmDisclosureSettings.DisclosurePackages
                .ToDictionary(x => x.PackageType,
                              x => x.PersonasWithAccess.ToList());

            // create listener for all package types
            string disclosureTypesPanel = "Panel_DisclosurePackageTypes";

            EllieMae.Encompass.Forms.Panel panelDisclosurePackageTypes = (EllieMae.Encompass.Forms.Panel)FindControl(disclosureTypesPanel);
            if (panelDisclosurePackageTypes == null)
            {
                return(new MissingControl(disclosureTypesPanel, ControlTypeEnum.Panel, "Panel Contains Package types"));
            }
            panelDisclosurePackageTypes.BorderStyle = BorderStyle.None;
            ControlCollection disclosurePanelControls = panelDisclosurePackageTypes.Controls;

            foreach (EllieMae.Encompass.Forms.Control item in disclosurePanelControls)
            {
                string controlType = item.GetType().ToString();
                if (controlType.Equals("EllieMae.Encompass.Forms.RadioButton", StringComparison.CurrentCultureIgnoreCase))
                {
                    EllieMae.Encompass.Forms.RadioButton disclosurePackageRadioButton = (EllieMae.Encompass.Forms.RadioButton)FindControl(item.ControlID);

                    WCMPackageTypeEnum radioButtonPackage = (WCMPackageTypeEnum)Enum.Parse(typeof(WCMPackageTypeEnum), disclosurePackageRadioButton.CheckedValue);
                    var thisPackageAccess = disclosurePackageAccess.FirstOrDefault(x => x.Key == radioButtonPackage);
                    List <PersonasThatCanSendDisclosuresEnum> personasThatCanAccessThisPackage = thisPackageAccess.Value;

                    bool canUserAccessThisDisclosurePackage = personasThatCanAccessThisPackage.Intersect(_personaBreakOut.UserPersonasList).ToList().Any();
                    if (canUserAccessThisDisclosurePackage || _personaBreakOut.isAdmin)
                    {
                        disclosurePackageRadioButton.Click += DisclosurePackageRadioButton_Click;
                    }
                    else
                    {
                        disclosurePackageRadioButton.Visible = false;
                    }
                }
            }

            return(null);
        }
        private IEnumerable <MissingControl> InitAdminPanel()
        {
            var result = new List <MissingControl>();

            EllieMae.Encompass.Forms.Panel adminPanel = (EllieMae.Encompass.Forms.Panel)FindControl("panel_AdminOnly");
            if (adminPanel == null)
            {
                result.Add(
                    new MissingControl("adminPanel", ControlTypeEnum.Panel));
            }
            else
            {
                if (_personaBreakOut.isAdmin)
                {
                    adminPanel.Visible = true;

                    var buttonsToInitialize = new List <InputFormButton>()
                    {
                        new InputFormButton()
                        {
                            EventHandler = Btn_AdminEnableGenerateDisc_Click,
                            ControlName  = "btn_AdminEnableGenerateDisc"
                        },
                        new InputFormButton()
                        {
                            EventHandler = Btn_AdminPassAllPassFail_Click,
                            ControlName  = "btn_AdminPassAllPassFail"
                        },
                        new InputFormButton()
                        {
                            EventHandler = Btn_AdminPostPrelimConditions_Click,
                            ControlName  = "btn_AdminPostPrelimConditions"
                        }
                    };
                    result.AddRange(SetGenericButtonEventHandlers(buttonsToInitialize));
                }
            }

            return(result);
        }