Example #1
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);
                }
            }
        }
Example #2
0
 protected override void ScopeChanged(object sender, EventArgs e)
 {
     base.ScopeChanged(sender, e);
     presenter.ConfigureView(SessionWrapper.Instance.Get.Scope);
     presenter.ShowReport(SessionWrapper.Instance.Get.Scope, true);
 }