예제 #1
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public NoConfirmations()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Hot Jobs";
            Name    = "No Confirmations";
        }
예제 #2
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public LateToConfirmed()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Hot Jobs";
            Name    = "Late to Confirmed";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRsAgingReleased()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Excess Stock - Stock";
            Name    = "PRs Aging (Released)";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRsNotOnPO()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Hot Jobs";
            Name    = "PRs (Not on PO)";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRsAgingNotReleased()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Plan";
            Name    = "PRs Aging (Not Released)";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public POCreationThruDelivery()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Excess Stock - Open Orders";
            Name    = "PO Creation Thru Delivery";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public POCreationToConfirmationEntry()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Purch Sub";
            Name    = "PO Creation To Confirmation Entry";
        }
예제 #8
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRReleaseToPORelease()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Purch Sub";
            Name    = "PR Release To PO Release";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRsAgingNotReleased()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Excess Stock - Open Orders";
            Name    = "PRs Aging (Not Released)";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public ConfirmedDateVsPlanDate()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Follow Up";
            Name    = "Confirmed Date Vs Plan Date";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public MaterialDue()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Plan";
            Name    = "Material Due";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PRReleaseToConfirmationEntry()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Purch Total";
            Name    = "PR Release To Confirmation Entry";
        }
예제 #13
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public DueTodayOrLateToConfirmed()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Follow Up";
            Name    = "Due Today or Late to Confirmed";
        }
        /// <summary>
        /// Default Constructor
        /// </summary>
        public ConfirmedDateForUpcomingDeliveries()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Follow Up";
            Name    = "Confirmed Date for Upcoming Deliveries";
        }
예제 #15
0
        /// <summary>
        /// Default Constructor
        /// </summary>
        public POFirstRelease()
        {
            // Create a new template object
            TemplateBlock = new TemplateOne();
            template      = TemplateBlock as TemplateOne;

            Section = "Purch";
            Name    = "PO First Release";
        }
예제 #16
0
        /// <summary>
        /// Export the data from KPAs template one to excel
        /// </summary>
        private void ExportTemplateOneData()
        {
            row      = (int)OverallExcelFile.OverallCellPositions.KpaOverallTempOneRowStartPosition;
            colStart = (int)OverallExcelFile.OverallCellPositions.KpaOverallTempOneColStartPosition;
            col      = colStart;

            foreach (KeyPerformanceAction action in KpaOverallReport.Actions)
            {
                // Make sure the action is from template one.
                if (action.TemplateBlock is TemplateOne)
                {
                    // Convert the action to a ITemplate interface
                    TemplateOne tempOneData = action.TemplateBlock as TemplateOne;

                    // Get the template data from the action
                    List <string> tempData = tempOneData.GetTemplateData();

                    if (action is IFavorable)
                    {
                        tempData.Add(string.Format("{0:n0}", (action as IFavorable).PercentFavorable + "%"));
                    }

                    // Remove any unwanted characters
                    CleanData(ref tempData);

                    if (tempData != null)
                    {
                        // We are starting at position 2 in the array because the first two value are the section and cateogory
                        // The template already contains this data
                        foreach (string data in tempData)
                        {
                            // if the value in the array is blank, move to the next index in the array
                            if (data == "")
                            {
                                // Increment the column and continue
                                ++col;
                                continue;
                            }

                            // Add the value to the cel
                            worksheet.Cells[row, col].Value = double.Parse(data);

                            // Increment the column position within the excel file
                            ++col;
                        }
                    }
                }

                col = colStart;
                ++row;
            }
        }
예제 #17
0
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void RenderConfirmedVsPlanDate()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);

            Title = Categories.kpaCategories[(int)Sections.KpaSection.FollowUp][(int)Categories.KpaCategory.FollowUp.ConfPlanDate];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Sections.kpaSections[(int)Sections.KpaSection.FollowUp];



            AnalysisOne = "- Will only show for PO line items with confimration date and have not been received complete.";
            AnalysisTwo = "- Difference between current confirmed date and current plan date.";


            // Get the template data
            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.FollowUp_ConfirmedDateVsPlanDate].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void NoConfirmation()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);
            Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.Purch][(int)Values.Categories.KpaCategory.Purch.NoConfirmation];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.PurchTotal];



            AnalysisOne = "- PR is on PO, PO previously released, no confirmation, and line not received complete.";
            AnalysisTwo = "- Difference between todays date and the date that PO line item first approved.";


            // Get the template data
            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.Purch_NoConfirmation].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
예제 #19
0
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        public void RenderPRRelToConfEntry()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);

            Title = Categories.kpaCategories[(int)Sections.KpaSection.PurchTotal][(int)Categories.KpaCategory.PurchTotal.PRRelConfEntry];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Sections.kpaSections[(int)Sections.KpaSection.PurchTotal];


            AnalysisOne = "- PRs fully released which are either not on a PO or on a PO (but have not been confirmed and are not delivered).";
            AnalysisTwo = "- Difference between todays date and the date the PR was fully released.";


            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.PurchTotal_PrReleaseToConfirmationEntry].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
예제 #20
0
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void RenderLateToConfDate()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);
            Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.FollowUp][(int)Values.Categories.KpaCategory.FollowUp.DueTodayLateConf];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.FollowUp];



            AnalysisOne = "- Open PO line which is confirmed for today or in the past.";
            AnalysisTwo = "- Difference between todays date and the current confirmation date.";

            // Get the template data
            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.FollowUp_DueTodayOrLateToConfirmed].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void RenderPRAgingRel()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);

            Title = Categories.kpaCategories[(int)Sections.KpaSection.Purch][(int)Categories.KpaCategory.Purch.PRsAgingRel];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Sections.KpaSection.Purch];


            AnalysisOne = "- Will only show in this field if the PR is fully released and the PR open Qty > 0.";
            AnalysisTwo = "- Difference between todays date and the date the PR was fully released.";

            // Get the template data
            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.Purch_PRsAgingReleased].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void RenderNoConfirmations()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);
            Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.HotJobs][(int)Values.Categories.KpaCategory.HotJobs.NoConfirmations];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.HotJobs];



            AnalysisOne = "- Will only show for PO line items with purchase group UHJ that do not have a confirmation date and are not received complete.";
            AnalysisTwo = "- Difference between todays date and the date the PO line was created.";

            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.HotJobs_NoConfirmations].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void POCreateConfEntry()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);
            Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.PurchSub][(int)Values.Categories.KpaCategory.PurchSub.POCreationCOnfEntry];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.PurchSub];


            AnalysisOne = "- Will only show in this field if PR is on PO, PO line item does not have a confirmation date and PO line is not received complete.";
            AnalysisTwo = "- Difference between todays date and the date the PR was added to the PO.";


            // Get the template data
            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.PurchSub_PoCreationToConfirmationEntry].TemplateBlock as TemplateOne;

            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
        /// <summary>
        /// Renders the specific KPA category into the loaded template
        /// </summary>
        private void RenderPRsNotOnPO()
        {
            Bunifu.DataViz.Canvas    canvas = new Bunifu.DataViz.Canvas();
            Bunifu.DataViz.DataPoint dp     = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column);

            Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.HotJobs][(int)Values.Categories.KpaCategory.HotJobs.PrsNotonPO];
            KPA_KPI_UI.topHandleBarModel.Category = Title;
            KPA_KPI_UI.topHandleBarModel.Section  = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.HotJobs];


            AnalysisOne = "- Will only show if PR is assigned to purchase group UHJ, is fully released and the PR has not been placed on a PO.";
            AnalysisTwo = "- Difference between todays date and the date the PR was fully released.";

            TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.HotJobs_PrsNotOnPo].TemplateBlock as TemplateOne;


            // Add the data to the column chart
            dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString());
            dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString());
            dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString());
            dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString());
            dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString());
            dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString());
            dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString());

            // Add the values to the time spans
            Average         = string.Format("{0:n}", tempOne.Average);
            TimeBucketOne   = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays);
            TimeBucketTwo   = string.Format("{0:n0}", tempOne.OneToThreeDays);
            TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays);
            TimeBucketFour  = string.Format("{0:n0}", tempOne.EightToFourteenDays);
            TimeBucketFive  = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays);
            TimeBucketSix   = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays);
            TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays);
            TotalOrders     = string.Format("{0:n0}", tempOne.TotalRecords);

            // Render the column chart
            canvas.addData(dp);
            dataviz.Render(canvas);
        }
			public TestDTS ()
			{
				templateOne = new TemplateOne ();
				templateTwo = new TemplateTwo ();
			}
예제 #26
0
 public TestDTS()
 {
     templateOne = new TemplateOne();
     templateTwo = new TemplateTwo();
 }