protected void Page_Load(object sender, EventArgs e)
        {
            presenter = new CustomerWatchPresenter(this, ReportsService.Create(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));

            ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString :
                                 (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null;

            if (xClient != null)
            {
                targetName = ": " + xClient.Name;
            }

            ICffCustomer xCustomer = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.CustomerFromQueryString :
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).CustomerFromQueryString : null;

            if (xCustomer != null)
            {
                if (targetName != null || !targetName.Equals(""))
                {
                    targetName += " / ";
                    targetName  = string.Concat(targetName, xCustomer.Name);
                }
                else
                {
                    targetName = ": " + xCustomer.Name;
                }
            }

            if (!IsPostBack)
            {
                presenter.ConfigureView(this.CurrentScope());
                presenter.ShowReport(this.CurrentScope(), true);
            }
        }
Пример #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            foreach (AsyncPostBackTrigger trigger in GridUpdatePanel.Triggers)
            {
                if (DatePicker.UniqueID.EndsWith(trigger.ControlID, StringComparison.OrdinalIgnoreCase))
                {
                    trigger.ControlID = DatePicker.UniqueID;
                    break;
                }
            }

            presenter = new UnclaimedRepurchasesPresenter(this, TransactionReportsService.Create(),
                                                          ReportManagerFactory.Create(SessionWrapper.Instance.Scope, Context.User as CffPrincipal));
        }
Пример #3
0
        public void LoadTab(RetentionSchedule retentionSchedule)
        {
            bool bIsClientSelected = (SessionWrapper.Instance.Get != null)?SessionWrapper.Instance.Get.IsClientSelected:
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue))?SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).IsClientSelected:false;

            if (bIsClientSelected)
            {
                _retentionSchedule = retentionSchedule;
                ViewState.Add("RetentionSchedule", retentionSchedule);

                // In Retention Schedules, the tab is always opened in Client scope
                IReportManager reportManager = ReportManagerFactory.Create(Scope.ClientScope, Context.User as CffPrincipal);
                presenter = new OverdueChargesPresenter(this, ReportsService.Create(), reportManager);
                presenter.ShowReport(Scope.ClientScope, false);
            }
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // start related ref:CFF-18
            if (SessionWrapper.Instance.Get != null)
            {
                presenter = new StatusPresenter(this, ReportsService.Create(), ReportManagerFactory.Create(SessionWrapper.Instance.Get.Scope, Context.User as CffPrincipal));
                if (SessionWrapper.Instance.Get.ClientFromQueryString != null)
                {
                    targetName = ": " + SessionWrapper.Instance.Get.ClientFromQueryString.Name;

                    int facilityType = (SessionWrapper.Instance.Get.ClientFromQueryString.ClientFacilityType);

                    if (facilityType == 4 || facilityType == 5)
                    {
                        StatusPicker.Visible = false;
                    }
                    else
                    {
                        StatusPicker.Visible = true;
                    }
                }

                if (SessionWrapper.Instance.Get.CustomerFromQueryString != null)
                {
                    if (targetName != null || !targetName.Equals(""))
                    {
                        targetName += " / ";
                        targetName  = string.Concat(targetName, SessionWrapper.Instance.Get.CustomerFromQueryString.Name);
                    }
                    else
                    {
                        targetName = ": " + SessionWrapper.Instance.Get.CustomerFromQueryString.Name;
                    }
                }
                // end
                if (!IsPostBack)
                {
                    presenter.ConfigureView(SessionWrapper.Instance.Get.Scope);
                    presenter.ShowReport(SessionWrapper.Instance.Get.Scope, true);
                }
            }
        }
Пример #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DatePicker.Update += DatePickerUpdated;

            presenter = new StatementPresenter(this, RepositoryFactory.CreateReportRepository(),
                                               ReportManagerFactory.Create(SessionWrapper.Instance.Scope,
                                                                           Context.User as CffPrincipal));

            ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString :
                                 (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null;

            if (xClient != null)
            {
                targetName = ": " + xClient.Name;
            }

            ICffCustomer xCustomer = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.CustomerFromQueryString :
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).CustomerFromQueryString : null;

            if (xCustomer != null)
            {
                if (targetName != null || !targetName.Equals(""))
                {
                    targetName += " / ";
                    targetName  = string.Concat(targetName, xCustomer.Name);
                }
                else
                {
                    targetName = ": " + xCustomer.Name;
                }
            }
            // end
            if (!IsPostBack)
            {
                presenter.InitializeForScope();
                presenter.LoadStatementReport();
            }
            else
            {
                ShowReport(ViewState["StatementReport"] as StatementReport);
            }
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            allClientsFilter.Update += ControlReportAllClientsFilterUpdate;
            if (SessionWrapper.Instance.Get.Scope != Scope.AllClientsScope)
            {
                DatePicker.Update += DatePickerUpdate;
            }

            foreach (AsyncPostBackTrigger trigger in GridUpdatePanel.Triggers)
            {
                if (DatePicker.UniqueID.EndsWith(trigger.ControlID, StringComparison.OrdinalIgnoreCase))
                {
                    trigger.ControlID = DatePicker.UniqueID;
                    break;
                }
            }
            presenter = new ControlReportPresenter(this, ReportsService.Create(),
                                                   ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));
            presenter.ConfigureView(SessionWrapper.Instance.Get.Scope);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            presenter = new PromptReportPresenter(this, RepositoryFactory.CreateReportRepository(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));

            ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString :
                                 (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null;

            if (xClient != null)
            {
                targetName = ": " + xClient.Name;
            }

            ICffCustomer xCustomer = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.CustomerFromQueryString :
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).CustomerFromQueryString : null;

            if (xCustomer != null)
            {
                if (targetName != null || !targetName.Equals(""))
                {
                    targetName += " / ";
                    targetName  = string.Concat(targetName, xCustomer.Name);
                }
                else
                {
                    targetName = ": " + xCustomer.Name;
                }
            }

            if (!IsPostBack)
            {
                if (xClient != null)
                {
                    presenter.LoadDefaultPromptDays(xClient.Id);
                }

                LoadReport(); //as per marty's suggestions

                //if (this.CurrentScope() != Scope.AllClientsScope) {
                //    LoadReport();
                //} else {
                //    HideReportContent();
                //}
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            reportPanelContainer.ReportParameterUpdated += ReportParameterUpdated;

            presenter = new CreditBalanceTransfersPresenter(this, TransactionReportsService.Create(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));
            presenter.ConfigureView(this.CurrentScope());

            // start related ref:CFF-18
            ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString :
                                 (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null;

            if (xClient != null)
            {
                targetName = ": " + xClient.Name;
            }

            ICffCustomer xCustomer = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.CustomerFromQueryString :
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).CustomerFromQueryString : null;

            if (xCustomer != null)
            {
                if (targetName != null || !targetName.Equals(""))
                {
                    targetName += " / ";
                    targetName  = string.Concat(targetName, xCustomer.Name);
                }
                else
                {
                    targetName = ": " + xCustomer.Name;
                }
            }
            // end
            //if (!IsPostBack)
            //{
            presenter.ShowReport(this.CurrentScope(), true);
            UpdateTitle((reportPanelContainer.FindControl("TransactionStatusTypesFilterControl").Controls[1] as System.Web.UI.WebControls.DropDownList).Text);
            //}
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     presenter = new ReceiptsPresenter(this, TransactionReportsService.Create(), ReportManagerFactory.Create(SessionWrapper.Instance.Scope, Context.User as CffPrincipal));
     presenter.ConfigureView(SessionWrapper.Instance.Scope);
 }
 private void ReportParameterUpdated(object sender, EventArgs e)
 {
     presenter = new CreditNotesPresenter(this, TransactionReportsService.Create(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));
     presenter.ShowReport(this.CurrentScope(), false);
     UpdateTitle((reportPanelContainer.FindControl("TransactionStatusTypesFilterControl").Controls[1] as System.Web.UI.WebControls.DropDownList).Text);
 }
 protected override void ScopeChanged(object sender, EventArgs e)
 {
     base.ScopeChanged(sender, e);
     presenter = new CreditNotesPresenter(this, TransactionReportsService.Create(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));
     presenter.ShowReport(this.CurrentScope(), true);
 }
Пример #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            presenter = new OverpaymentsPresenter(this, TransactionReportsService.Create(), ReportManagerFactory.Create(this.CurrentScope(), Context.User as CffPrincipal));
            presenter.ConfigureView(this.CurrentScope());

            ICffClient xClient = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.ClientFromQueryString :
                                 (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString : null;

            if (xClient != null)
            {
                targetName = ": " + xClient.Name;
            }

            ICffCustomer xCustomer = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.CustomerFromQueryString :
                                     (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).CustomerFromQueryString : null;

            if (xCustomer != null)
            {
                if (targetName != null || !targetName.Equals(""))
                {
                    targetName += " / ";
                    targetName  = string.Concat(targetName, xCustomer.Name);
                }
                else
                {
                    targetName = ": " + xCustomer.Name;
                }
            }

            presenter.ShowReport(this.CurrentScope(), true);
            UpdateTitle((TransactionStatusTypesFilterControl.Controls[1] as System.Web.UI.WebControls.DropDownList).Text);
        }
Пример #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            InitializeCurrentPathForJavaScript();

            if (!IsPostBack)
            {
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/jquery-1.10.2.js");
                AddJavaScriptIncludeInHeader("js/jquery-migrate-1.0.0.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery-ui.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.core.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.button.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.widget.js");

                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.slider.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.dialog.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.menu.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.accordion.js");
                AddJavaScriptIncludeInHeader("js/ui.1.10.4/ui/jquery.ui.datepicker.js");
            }

            int                facilityType       = 0;
            IReportManager     reportManager      = null;
            ReportScopeManager reportScopeManager = null;

            if (SessionWrapper.Instance.Get != null)
            {
                reportManager      = ReportManagerFactory.Create(SessionWrapper.Instance.Get.Scope, Context.User as CffPrincipal);
                reportScopeManager = new ReportScopeManager(SessionWrapper.Instance.Get.Scope);
                facilityType       = SessionWrapper.Instance.Get.ClientFromQueryString.ClientFacilityType;
            }
            else if (SessionWrapper.Instance.GetSession(QueryString.ViewIDValue) != null)
            {
                reportManager      = ReportManagerFactory.Create(SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).Scope, Context.User as CffPrincipal);
                reportScopeManager = new ReportScopeManager(SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).Scope);
                facilityType       = SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).ClientFromQueryString.ClientFacilityType;
            }

            AppendQueryStringParameters();

            controlLi.Visible        = reportManager.CanViewControlReport() && reportScopeManager.IsControlReportAvailable();
            overdueChargesLi.Visible = reportManager.CanViewOverdueChargesReport();
            agedBalancesLi.Visible   = reportManager.CanViewAgedBalances() && reportScopeManager.IsAgedBalancesReportAvailable();

            if (facilityType != 5 && facilityType != 4) // CA & Loan    // dbb
            {
                promptLi.Visible = reportManager.CanViewPromptReport() && reportScopeManager.IsPromptReportAvailable();
                statusLi.Visible = reportManager.CanViewStatusReport();
                unclaimedCreditNotesLi.Visible = reportManager.CanViewUnclaimedCreditNotesReport() &&
                                                 reportScopeManager.IsUnclaimedCreditNotesReportAvailable();
                unclaimedRepurchasesLi.Visible = reportManager.CanViewUnclaimedRepurchasesReport() &&
                                                 reportScopeManager.IsUnclaimedRepurchasesReportAvailable();
                CreditLimitExceededLinkLi.Visible = reportManager.CanViewCreditLimitExceededReport() &&
                                                    reportScopeManager.IsCreditLimitExceededReportAvailable();
                CreditStoppedLinkLi.Visible = reportManager.CanViewCreditLimitExceededReport() &&
                                              reportScopeManager.IsCreditStopSuggestionsReportAvailable();
                CurrentShortPaidLi.Visible = reportManager.CanViewCurrentShortPaidReport() &&
                                             reportScopeManager.IsCurrentShortPaidReportAvailable();
                CurrentOverpaidLi.Visible = reportManager.CanViewCurrentOverpaidReport() &&
                                            reportScopeManager.IsCurrentOverpaidReportAvailable();
                CallsDueLi.Visible = reportManager.CanViewCallsDueReport() &&
                                     reportScopeManager.IsCallsDueReportAvailable();
                ClientActionLi.Visible = reportManager.CanViewClientActionReport() &&
                                         reportScopeManager.IsClientActionReportAvailable();
            }
            else
            {
                if (facilityType == 4)
                {
                    promptLi.Visible = false;
                    statusLi.Visible = false;
                }
                unclaimedCreditNotesLi.Visible    = false;
                unclaimedRepurchasesLi.Visible    = false;
                CreditLimitExceededLinkLi.Visible = false;
                CreditStoppedLinkLi.Visible       = false;
                CurrentShortPaidLi.Visible        = false;
                CurrentOverpaidLi.Visible         = false;
                CallsDueLi.Visible     = false;
                ClientActionLi.Visible = false;
            }


            CustomerWatchLi.Visible = reportManager.CanViewCustomerWatchReport() &&
                                      reportScopeManager.IsCustomerWatchReportAvailable();
            CreditNotesLink.Visible            = reportManager.CanViewCreditNotesReport();
            JournalsLink.Visible               = reportManager.CanViewJournalsReport();
            CreditBalanceTransfersLink.Visible = reportManager.CanViewCreditBalanceTransfersReport();
            InvoicesLink.Visible               = reportManager.CanViewInvoicesReport();
            ReceiptsLink.Visible               = reportManager.CanViewReceiptsReport();
            DiscountsLink.Visible              = reportManager.CanViewDiscountsReport();
            RepurchasesLi.Visible              = reportManager.CanViewRepurchaserasReport() && reportScopeManager.IsRepurchasesReportAvailable();


            UnallocatedLi.Visible    = reportManager.CanViewUnallocatedReport() && reportScopeManager.IsUnallocatedReportAvailable();
            OverpaymentsLi.Visible   = reportManager.CanViewOverpaymentsReport();
            StatementLi.Visible      = reportManager.CanViewStatementReport() && reportScopeManager.IsStatementsReportAvailable();
            AccountTransLink.Visible = false;
            //reportManager.CanViewAccountTransReport(); //REF: BT#101
            //RetentionReleaseEstimateLi.Visible = reportManager.CanViewRetentionReleaseEstimateReport() &&
            //                                       reportScopeManager.IsRetentionReleaseEstimateReportAvailable();

            switch (facilityType)
            {
            case 0:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Repurch/Prepay";
                InvoicesLink.Text             = "Invoices/Dr Notes";
                RepurchasesLink.Text          = "Repurchases/Prepayments";
                OverdueChargesLink.Text       = "Interest & Charges";
            }
            break;

            case 2:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Prepayments";
                InvoicesLink.Text             = "Invoices";
                RepurchasesLink.Text          = "Prepayments";
                OverdueChargesLink.Text       = "Interest & Charges";
            }
            break;

            case 3:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Reclassifications";
                InvoicesLink.Text             = "Dr Notes/Fees";
                RepurchasesLink.Text          = "Reclassifications";
                OverdueChargesLink.Text       = "Interest & Charges";
            }
            break;

            case 4:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Reclassifications";
                InvoicesLink.Text             = "Advances/Fees";
                RepurchasesLink.Text          = "Reclassifications";
                OverdueChargesLink.Text       = "Interest and Charges";
            }
            break;

            case 5:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Prepayments";
                InvoicesLink.Text             = "Drawings/Fees";
                RepurchasesLink.Text          = "Prepayments";
                OverdueChargesLink.Text       = "Interest and Charges";  // "Delayed Payment Fees";
            }
            break;

            default:
            {
                UnclaimedRepurchasesLink.Text = "Unclaimed Prepayments";
                InvoicesLink.Text             = "Invoices";
                RepurchasesLink.Text          = "Prepayments";
                OverdueChargesLink.Text       = "Interest & Charges";
            }
            break;
            }
            //UnclaimedRepurchasesLink.Text = "Unclaimed Repurchases";
        }