Exemplo n.º 1
0
        private void FollowUpsSummary()
        {
            bizActivity biz              = new bizActivity();
            int?        FollowUpsCount   = 0;
            int?        FollowUpsOverdue = 0;
            decimal?    SubmittedAmount  = 0;
            int?        SubmittedCount   = 0;
            int?        SubmittedOverdue = 0;

            bizUser.enGageUser user = (bizUser.enGageUser)Session["USER"];
            if (user == null)
            {
                return;
            }
            biz.FollowUpsSummary(user.UserName, ref FollowUpsCount, ref FollowUpsOverdue, ref SubmittedCount, ref SubmittedAmount, ref SubmittedOverdue);
            this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?1?", FollowUpsCount.ToString());
            if (this.Environment == "Production")
            {
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?2?", "<span class='header-line2-due'>(" + FollowUpsOverdue.ToString() + " due)</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?3?", "<span style='font-weight:bold;'>" + string.Format("{0:c}", SubmittedAmount) + "</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?4?", "<span style='font-weight:bold;'>" + SubmittedCount.ToString() + "</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?5?", "<span class='header-line2-due'>(" + SubmittedOverdue.ToString() + " due)</span>");
            }
            else
            {
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?2?", "<span class='header-line2-due-alt'>(" + FollowUpsOverdue.ToString() + " due)</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?3?", "<span style='font-weight:bold;'>" + string.Format("{0:c}", SubmittedAmount) + "</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?4?", "<span style='font-weight:bold;'>" + SubmittedCount.ToString() + "</span>");
                this.lblHeaderLine2.Text = this.lblHeaderLine2.Text.Replace("?5?", "<span class='header-line2-due-alt'>(" + SubmittedOverdue.ToString() + " due)</span>");
            }
        }