public DataTable CreateDataForChart(DataTable dtTest_BaseStationData_forFilling)
{
try
{
for (int i = 0; i < dtTest_BaseStationData_forFilling.Rows.Count; i++)
{
if ((i == 0) && (!Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i]["NewSeriesForGraph"]).Equals("*")))
{
dtTest_BaseStationData_forFilling.Rows[i]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i]["FinalSeries"];
if (Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i + 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i + 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i + 1]["FinalSeries"];
}
}
else if ((i != 0) && (!Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i]["NewSeriesForGraph"]).Equals("*")))
{
dtTest_BaseStationData_forFilling.Rows[i]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i]["FinalSeries"];
if (Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i - 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i - 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i - 1]["FinalSeries"];
}
if (i != dtTest_BaseStationData_forFilling.Rows.Count - 1 && Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i + 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i + 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i + 1]["FinalSeries"];
}
}
}
}
catch (Exception)
{
throw;
}
return dtTest_BaseStationData_forFilling;
{
try
{
for (int i = 0; i < dtTest_BaseStationData_forFilling.Rows.Count; i++)
{
if ((i == 0) && (!Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i]["NewSeriesForGraph"]).Equals("*")))
{
dtTest_BaseStationData_forFilling.Rows[i]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i]["FinalSeries"];
if (Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i + 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i + 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i + 1]["FinalSeries"];
}
}
else if ((i != 0) && (!Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i]["NewSeriesForGraph"]).Equals("*")))
{
dtTest_BaseStationData_forFilling.Rows[i]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i]["FinalSeries"];
if (Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i - 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i - 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i - 1]["FinalSeries"];
}
if (i != dtTest_BaseStationData_forFilling.Rows.Count - 1 && Convert.ToString(dtTest_BaseStationData_forFilling.Rows[i + 1]["NewSeriesForGraph"]).Equals("*"))
{
dtTest_BaseStationData_forFilling.Rows[i + 1]["BlankFillValue"] = dtTest_BaseStationData_forFilling.Rows[i + 1]["FinalSeries"];
}
}
}
}
catch (Exception)
{
throw;
}
return dtTest_BaseStationData_forFilling;
No comments:
Post a Comment