private PostDocumentRequest PopulatePostDocumentRequest(Attachment attachment, WCMDisclosurePackage package)
        {
            var loan   = this.Loan;
            var result = new PostDocumentRequest()
            {
                PortalId              = loan.Fields["CX.BLEND.LOANID"].ToString(),
                BorrowerPartyId       = BlendUtility.GetCurrentBorrowerPairBorrowerBlendId(loan),
                CoBorrowerPartyId     = BlendUtility.GetCurrentBorrowerPairCoBorrowerBlendId(loan),
                LosLoanNumber         = loan.LoanNumber,
                FileName              = attachment.Title,
                DisplayNameAndLosType = attachment.Title,
                DocumentDeliveryType  = MapDocDeliveryType(package)
            };

            return(result);
        }
        private PostDocumentRequest PopulatePostDocumentRequest(
            EllieMae.EMLite.LoanServices.BamObjects.PdfDocument disclosure,
            DeliveryTypeEnum packageDeliveryType)
        {
            var loan   = EncompassApplication.CurrentLoan;
            var result = new PostDocumentRequest()
            {
                PortalId              = loan.Fields["CX.BLEND.LOANID"].ToString(),
                BorrowerPartyId       = BlendUtility.GetCurrentBorrowerPairBorrowerBlendId(loan),
                CoBorrowerPartyId     = BlendUtility.GetCurrentBorrowerPairCoBorrowerBlendId(loan),
                LosLoanNumber         = loan.LoanNumber,
                FileName              = disclosure.Title,
                DisplayNameAndLosType = disclosure.Title,
                DocumentDeliveryType  = MapDocDeliveryType(disclosure.SignatureType, packageDeliveryType)
            };

            return(result);
        }
Пример #3
0
        private void FormWrapper_FormOpened(object sender, FormOpenedArgs e)
        {
            var form = e.OpenForm;

            if (!form.Name.Equals("UnderwritingDetailsDialog", StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            var pnlStatus = form.Controls.Find("pageStatus", true);

            if (pnlStatus != null && pnlStatus.Count() > 0)
            {
                Panel uwStatusPanel = (Panel)pnlStatus[0];
                if (uwStatusPanel.Controls != null && uwStatusPanel.Controls.Count > 0)
                {
                    string borrowerName = "";
                    // populate borrower checkboxes that let you select who to send tasks to
                    BorrowerPair currentPair = EncompassApplication.CurrentLoan.BorrowerPairs.Current;

                    string borrowerBlendId = BlendUtility.GetCurrentBorrowerPairBorrowerBlendId(EncompassApplication.CurrentLoan);
                    if (string.IsNullOrEmpty(borrowerBlendId))
                    {
                        return;
                    }

                    borrowerName = $"{currentPair.Borrower.FirstName} {currentPair.Borrower.LastName}";


                    //if (currentPair.CoBorrower != null)
                    //{
                    //    string coborrowerBlendId = BlendUtility.GetCurrentBorrowerPairCoBorrowerBlendId(theLoan);
                    //    if (string.IsNullOrEmpty(coborrowerBlendId) == false)
                    //    {
                    //        CoBorrowePortalId = coborrowerBlendId;
                    //        checkBox_CoBorrower.Text = $"{currentPair.CoBorrower.FirstName} {currentPair.CoBorrower.LastName}";
                    //        checkBox_CoBorrower.Visible = true;
                    //    }
                    //}

                    //has this condition already been posted
                    // if y, show updates control
                    // if n, show post control

                    var conditionManager = new BlendConditionManagerPost_Control(borrowerName);
                    conditionManager.Location = new Point(100, 70);

                    conditionManager.Visible = true;
                    conditionManager.BringToFront();
                    uwStatusPanel.Controls.Add((Control)conditionManager);
                    uwStatusPanel.Refresh();

                    //var SendDisclosures = new Button();
                    //SendDisclosures.Name = "WcmDisclosures";
                    //SendDisclosures.Text = "WCM TESTING";
                    //SendDisclosures.Size = new Size(70, 22);
                    //// Back.Image = (Image)Resources.Back;
                    //SendDisclosures.Click += new EventHandler(SendDisclosuresButton_Click);
                    //SendDisclosures.Location = new Point(75, 22);
                    //SendDisclosures.Visible = true;
                    //SendDisclosures.Enabled = true;
                    //SendDisclosures.BringToFront();
                    //ButtonsPanel.Controls.Add((Control)SendDisclosures);
                    //ButtonsPanel.Refresh();
                }
            }
        }