/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderTwo() { 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.kpiCategories[(int)Values.Sections.KpiSection.PurchSub][(int)Values.Categories.KpiCategory.PurchSub.POCreationDatevsConfirmationEntryDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Values.Sections.kpiections[(int)Values.Sections.KpiSection.PurchSub]; AnalysisOne = "- Will show if PO line has a confirmation date."; AnalysisTwo = "- Difference between initial confirmation date creation and PO line item creation."; TemplateFour tempFour = KpiOverallReport.Indicators[(int)KpiOption.PurchSub_PoCreationDateVsConfirmationEntryDate].TemplateBlock as TemplateFour; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFour.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFour.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFour.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFour.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFour.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFour.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFour.TwentyNineToThirtyFiveDays.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFour.ThirtySixtoFourtyTwoDays.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFour.FourtyThreeToFourtyNineDays.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFour.FiftyToFiftySixDays.ToString()); dp.addLabely(lbl_xLabelEleven.Text, tempFour.FiftySevenPlusDays.ToString()); // Add the data to the time spans Average = string.Format("{0:n}", tempFour.Average); TimeBucketOne = string.Format("{0:n0}", tempFour.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempFour.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempFour.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempFour.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempFour.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempFour.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempFour.TwentyNineToThirtyFiveDays); TimeBucketEight = string.Format("{0:n0}", tempFour.ThirtySixtoFourtyTwoDays); TimeBucketNine = string.Format("{0:n0}", tempFour.FourtyThreeToFourtyNineDays); TimeBucketTen = string.Format("{0:n0}", tempFour.FiftyToFiftySixDays); TimeBucketEleven = string.Format("{0:n0}", tempFour.FiftySevenPlusDays); TotalOrders = string.Format("{0:n0}", tempFour.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.PurchSub_PoCreationDateVsConfirmationEntryDate] as IUnconfirmed); // Get the uncofnrimed information PercNoConf = string.Format("{0:n}", unconfirmedInfo.PercentUnconfirmed); PercNoConfTotal = string.Format("{0:n0}", unconfirmedInfo.UnconfirmedTotal); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { 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.kpiCategories[(int)Values.Sections.KpiSection.Purch][(int)Values.Categories.KpiCategory.Purch.InitialConfirmationDatevsPRPlanDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Values.Sections.kpiections[(int)Values.Sections.KpiSection.Purch]; AnalysisOne = "- Will show if the PR is on a PO."; AnalysisTwo = "- Difference between first confirmed date and PR planned date."; TemplateThree tempThree = KpiOverallReport.Indicators[(int)KpiOption.Purch_InitialConfirmationDateVsPrPlanDate].TemplateBlock as TemplateThree; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempThree.LessThanEqualToNegTwentyTwoDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempThree.NegTwentyOneToNegFifteenDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempThree.NegFourteenToNegEightDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempThree.NegSevenToNegOneDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempThree.ZeroDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempThree.OneToSevenDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.GreaterThanEqualToTwentyTwoDays.ToString()); Average = string.Format("{0:n}", tempThree.Average); TimeBucketOne = string.Format("{0:n0}", tempThree.LessThanEqualToNegTwentyTwoDays); TimeBucketTwo = string.Format("{0:n0}", tempThree.NegTwentyOneToNegFifteenDays); TimeBucketThree = string.Format("{0:n0}", tempThree.NegFourteenToNegEightDays); TimeBucketFour = string.Format("{0:n0}", tempThree.NegSevenToNegOneDays); TimeBucketFive = string.Format("{0:n0}", tempThree.ZeroDays); TimeBucketSix = string.Format("{0:n0}", tempThree.OneToSevenDays); TimeBucketSeven = string.Format("{0:n0}", tempThree.EightToFourteenDays); TimeBucketEight = string.Format("{0:n0}", tempThree.FifteenToTwentyOneDays); TimeBucketNine = string.Format("{0:n0}", tempThree.GreaterThanEqualToTwentyTwoDays); TotalOrders = string.Format("{0:n0}", tempThree.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.Purch_InitialConfirmationDateVsPrPlanDate] as IUnconfirmed); // Get the uncofnrimed information PercNoConf = string.Format("{0:n}", unconfirmedInfo.PercentUnconfirmed); PercNoConfTotal = string.Format("{0:n0}", unconfirmedInfo.UnconfirmedTotal); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpiCategories[(int)Sections.KpiSection.FollowUpTwo][(int)Categories.KpiCategory.FollowUpTwo.PoReleaseToLastPoReceiptDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpiections[(int)Sections.KpiSection.FollowUpTwo]; AnalysisOne = "- Will show if the PO has been received complete."; AnalysisTwo = "- Difference between the last PO receipt date and the PO line 1st release date."; // TODO: Need to get the template from the correct KPI. TemplateFour tempFour = KpiOverallReport.Indicators[(int)KpiOption.FollowUpTwo_PoReleaseToLastPoReceiptDate].TemplateBlock as TemplateFour; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFour.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFour.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFour.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFour.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFour.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFour.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFour.TwentyNineToThirtyFiveDays.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFour.ThirtySixtoFourtyTwoDays.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFour.FourtyThreeToFourtyNineDays.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFour.FiftyToFiftySixDays.ToString()); dp.addLabely(lbl_xLabelEleven.Text, tempFour.FiftySevenPlusDays.ToString()); // Add the data to the time spans Average = string.Format("{0:n}", tempFour.Average); TimeBucketOne = string.Format("{0:n0}", tempFour.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempFour.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempFour.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempFour.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempFour.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempFour.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempFour.TwentyNineToThirtyFiveDays); TimeBucketEight = string.Format("{0:n0}", tempFour.ThirtySixtoFourtyTwoDays); TimeBucketNine = string.Format("{0:n0}", tempFour.FourtyThreeToFourtyNineDays); TimeBucketTen = string.Format("{0:n0}", tempFour.FiftyToFiftySixDays); TimeBucketEleven = string.Format("{0:n0}", tempFour.FiftySevenPlusDays); TotalOrders = string.Format("{0:n0}", tempFour.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.FollowUpTwo_PoReleaseToLastPoReceiptDate] as IUnconfirmed); canvas.addData(dp); dataviz.Render(canvas); }