Exemplo n.º 1
0
 public void ShowAllClientsView()
 {
     ReportPanel.ResetPaginationAndFocus();
     parameterSelectorDiv.Visible = true;
     ReportPanel.ConfigureAllClientsGridColumns();
     AllClientsFilter.Update += UpdateButtonClick;
 }
Exemplo n.º 2
0
        public void ShowCustomerView()
        {
            ReportPanel.ConfigureCustomerGridColumns();
            ReportPanel.ResetPaginationAndFocus();

            AllClientsFilter.Visible = false;
        }
Exemplo n.º 3
0
 public void DisplayReport(RetentionReleaseEstimateReport report)
 {
     this.DateViewedLiteral.Text = report.DateViewed.ToDateTimeString();
     Master.ShowReportViewer();
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.Display(report);
 }
Exemplo n.º 4
0
 public void DisplayReport(AccountTransactionReportBase report)
 {
     Master.ShowReportViewer();
     reportData.Visible = true;
     AllClientsReportHelpMessage.Visible = false;
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.Display((AccountTransactionReport)report);
 }
Exemplo n.º 5
0
 public void Clear()
 {
     Master.ShowReportViewer();
     reportData.Visible = false;
     AllClientsReportHelpMessage.Visible = true;
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.Clear();
 }
Exemplo n.º 6
0
 public void ShowClientView()
 {
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.ConfigureClientGridColumns();
     AllClientsFilter.Visible        = false;
     AllClientsOrderByFilter.Visible = false;
     ClientOrderByFilter.Visible     = true;
 }
Exemplo n.º 7
0
 public void ShowAllClientsView()
 {
     Master.ShowReportViewer();
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.ConfigureGridColumns();
     AllClientsFilter.Visible      = true;
     UpdateButton.Visible          = true;
     DatePicker.EnableAutoPostBack = false;
 }
        private void LoadReport()
        {
            ReportPanel.ResetPaginationAndFocus();

            if (new ReportScopeManager(this.CurrentScope()).IsPromptReportAvailable())
            {
                bool bIsAllClientSelected = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.IsAllClientsSelected :
                                            (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).IsAllClientsSelected : false;

                bool bIsClientSelected = (SessionWrapper.Instance.Get != null) ? SessionWrapper.Instance.Get.IsClientSelected :
                                         (!string.IsNullOrEmpty(QueryString.ViewIDValue)) ? SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).IsClientSelected : false;

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

                if (bIsAllClientSelected)
                {
                    reportData.Visible = true;
                    AllClientsReportHelpMessage.Visible = false;

                    if (IsFactoredCheckBox.Checked)
                    {
                        presenter.LoadFactoredPromptReportForAllClients(0, allClientsFilter.FacilityType, allClientsFilter.IsSalvageIncluded);
                    }
                    else
                    {
                        presenter.LoadAllPromptReportForAllClients(0, allClientsFilter.FacilityType, allClientsFilter.IsSalvageIncluded);
                    }
                }
                else if (bIsClientSelected)
                {
                    allClientsFilter.Visible = false;

                    if (xClient != null)
                    {
                        if (IsFactoredCheckBox.Checked)
                        {
                            presenter.LoadFactoredPromptReport(PromptDaysPicker.SelectedPromptDay,
                                                               xClient.Id, xClient.ClientFacilityType);
                        }
                        else
                        {
                            presenter.LoadAllInvoicesPromptReport(PromptDaysPicker.SelectedPromptDay,
                                                                  xClient.Id, xClient.ClientFacilityType);
                        }
                    }
                }
            }
            else
            {
                DisplayReportNotAvailableError();
            }
        }
Exemplo n.º 9
0
        public void DisplayReport(TransactionReportBase report)
        {
            if (report != null)
            {
                this.DateViewedLiteral.Text = report.DateViewed.ToDateTimeString();
            }
            Master.ShowReportViewer();
            reportData.Visible = true;
            AllClientsReportHelpMessage.Visible = false;

            ReportPanel.ConfigureGridColumns();
            ReportPanel.ResetPaginationAndFocus();
            ReportPanel.Display((TransactionReport)report);
        }
Exemplo n.º 10
0
 public void ShowClientView()
 {
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.ConfigureClientGridColumns();
     parameterSelector.Visible = false;
 }
Exemplo n.º 11
0
 public void ShowAllClientsView()
 {
     ReportPanel.ResetPaginationAndFocus();
     ReportPanel.ConfigureAllClientsGridColumns();
     parameterSelector.Visible = true;
 }
 public void ShowCustomerView()
 {
     ReportPanel.ConfigureCustomerGridColumns();
     ReportPanel.ResetPaginationAndFocus();
 }
 public void ShowClientView()
 {
     ReportPanel.ConfigureClientGridColumns();
     ReportPanel.ResetPaginationAndFocus();
 }
Exemplo n.º 14
0
 protected void UpdateButtonClick(object sender, EventArgs e)
 {
     ReportPanel.ResetPaginationAndFocus();
     presenter.ConfigureView(this.CurrentScope());
     presenter.ShowReport(this.CurrentScope(), false);
 }