/*--- Chetu Code ----*/ public void bindDataFilter(int clientID, int userID, int adjusterId, int carrierId) { Series series1 = null; List<ProgressStatisticsView> claimStatistics = null; using (ProgressStatusManager repository = new ProgressStatusManager()) { claimStatistics = repository.getProgressStatisticsFilter(clientID, userID,adjusterId,carrierId); } if (claimStatistics != null && claimStatistics.Count > 0) { series1 = Chart1.Series[0]; foreach (ProgressStatisticsView stats in claimStatistics) { System.Web.UI.DataVisualization.Charting.DataPoint dataPoint = new System.Web.UI.DataVisualization.Charting.DataPoint(); dataPoint.AxisLabel = stats.ProgressDescription; dataPoint.YValues = new double[] { stats.claimCount }; // do not show bar for empty values dataPoint.IsEmpty = stats.claimCount.Equals(0); dataPoint.ToolTip = "Click to drill down"; series1.Points.Add(dataPoint); dataPoint.Url = string.Format("javascript:progressDrilldown('{0}','{1}');", stats.ProgressStatusID, stats.ProgressDescription); } } }
public void bindDataFilter(int clientID,int adjusterId,int carrierId) { Series series1 = null; List<ProgressStatisticsView> claimStatistics = null; using (ProgressStatusManager repository = new ProgressStatusManager()) { claimStatistics = repository.getProgressStatisticsFilter(clientID, adjusterId, carrierId); } if (claimStatistics != null && claimStatistics.Count > 0) { series1 = Chart1.Series[0]; series1.Points.Clear(); foreach (ProgressStatisticsView stats in claimStatistics) { System.Web.UI.DataVisualization.Charting.DataPoint dataPoint = new System.Web.UI.DataVisualization.Charting.DataPoint(); dataPoint.AxisLabel = stats.ProgressDescription; dataPoint.YValues = new double[] { stats.claimCount }; //dataPoint.Url = "~/Protected/ClaimEdit.aspx"; // do not show bar for empty values dataPoint.IsEmpty = stats.claimCount.Equals(0); dataPoint.ToolTip = "Click to drill down"; series1.Points.Add(dataPoint); //dataPoint.MapAreaAttributes = string.Format("onclick=\"alert('{0}')\";", stats.ProgressStatusID); dataPoint.Url = string.Format("javascript:progressDrilldown('{0}','{1}');", stats.ProgressStatusID, stats.ProgressDescription); //Chart1.Series[0].Points.AddXY(stats.ProgressDescription, stats.claimCount); } //series1.Sort(PointSortOrder.Ascending, "AxisLabel"); //series1.MapAreaAttributes = } }