예제 #1
0
        protected void setFollowUpMatrix(Label lblMatrix, decimal?quoted, decimal?actual, int opportunitiesCount, string action)
        {
            string formattedValue = "";

            switch (GridUtilities.GetActivityPhaseEnum(action))
            {
            case Enums.OpportunitySteps.Qualifying:
            {
                formattedValue = string.Format("{0} Active, {1:c}", opportunitiesCount, quoted) + " estimated";
                break;
            }

            case Enums.OpportunitySteps.Responding:
            {
                formattedValue = string.Format("{0} Active, {1:c}", opportunitiesCount, quoted) + " quoted";
                break;
            }

            case Enums.OpportunitySteps.Completing:
            {
                formattedValue = string.Format("{0} Active, {1:c}", opportunitiesCount, quoted) + " quoted / " + string.Format("{0:c}", actual) + " actual";
                break;
            }
            }
            lblMatrix.Text = formattedValue;
        }