public void bindData(int clientID, int userID) { Series series1 = null; List <ProgressStatisticsView> claimStatistics = null; using (ProgressStatusManager repository = new ProgressStatusManager()) { claimStatistics = repository.getProgressStatistics(clientID, userID); } 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); } } }
/*--- Chetu Code ----*/ /// <summary> /// function used for bind carrier dropdownlist /// develop by chetu team /// </summary> private void BindCarrier() { List <Carrier> listCarrier = null; using (ProgressStatusManager psm = new ProgressStatusManager()) { listCarrier = psm.GetCarrierData(clientID); } ddlCarrier.DataSource = listCarrier; ddlCarrier.DataTextField = "CarrierName"; ddlCarrier.DataValueField = "CarrierID"; ddlCarrier.DataBind(); ddlCarrier.Items.Insert(0, new ListItem("All", "0")); }
/// <summary> /// function used for bind carrier dropdownlist /// develop by chetu team /// </summary> private void BindAdjuster() { List <AdjusterMaster> listAdjuster = null; using (ProgressStatusManager psm = new ProgressStatusManager()) { listAdjuster = psm.GetAdjsuterData(clientID); } ddlAdjuster.DataSource = listAdjuster; ddlAdjuster.DataTextField = "AdjusterName"; ddlAdjuster.DataValueField = "AdjusterId"; ddlAdjuster.DataBind(); ddlAdjuster.Items.Insert(0, new ListItem("All", "0")); }
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 = } }