提交代码
This commit is contained in:
@@ -62,6 +62,9 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
dtTime.Columns.Add("A数量", typeof(string));
|
||||
dtTime.Columns.Add("B数量", typeof(string));
|
||||
dtTime.Columns.Add("C数量", typeof(string));
|
||||
dtTime.Columns.Add("Finished", typeof(string));
|
||||
dtTime.Columns.Add("In Progress", typeof(string));
|
||||
dtTime.Columns.Add("Not Start", typeof(string));
|
||||
foreach (var item in list)
|
||||
{
|
||||
DataRow rowTime = dtTime.NewRow();
|
||||
@@ -72,9 +75,12 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
rowTime["A数量"] = types.Where(x => x.Category == "A").Count();
|
||||
rowTime["B数量"] = types.Where(x => x.Category == "B").Count();
|
||||
rowTime["C数量"] = types.Where(x => x.Category == "C").Count();
|
||||
rowTime["Finished"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Finished").Count();
|
||||
rowTime["In Progress"] = types.Where(x => x.PUNCH_ITEM_STATUS == "In Progress").Count();
|
||||
rowTime["Not Start"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Not Start").Count();
|
||||
dtTime.Rows.Add(rowTime);
|
||||
}
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked));
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
else //饼形图
|
||||
{
|
||||
@@ -90,7 +96,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
rowTime["总数量"] = types.Count();
|
||||
dtTime.Rows.Add(rowTime);
|
||||
}
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1130, 550, this.ckbShow.Checked));
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -107,6 +113,9 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
dtTime.Columns.Add("A数量", typeof(string));
|
||||
dtTime.Columns.Add("B数量", typeof(string));
|
||||
dtTime.Columns.Add("C数量", typeof(string));
|
||||
dtTime.Columns.Add("Finished", typeof(string));
|
||||
dtTime.Columns.Add("In Progress", typeof(string));
|
||||
dtTime.Columns.Add("Not Start", typeof(string));
|
||||
foreach (var item in disciplines)
|
||||
{
|
||||
DataRow rowTime = dtTime.NewRow();
|
||||
@@ -117,10 +126,13 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
rowTime["A数量"] = types.Where(x => x.Category == "A").Count();
|
||||
rowTime["B数量"] = types.Where(x => x.Category == "B").Count();
|
||||
rowTime["C数量"] = types.Where(x => x.Category == "C").Count();
|
||||
rowTime["Finished"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Finished").Count();
|
||||
rowTime["In Progress"] = types.Where(x => x.PUNCH_ITEM_STATUS == "In Progress").Count();
|
||||
rowTime["Not Start"] = types.Where(x => x.PUNCH_ITEM_STATUS == "Not Start").Count();
|
||||
dtTime.Rows.Add(rowTime);
|
||||
}
|
||||
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked));
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
else //饼形图
|
||||
{
|
||||
@@ -138,7 +150,7 @@ namespace FineUIPro.Web.Transfer.Chart
|
||||
dtTime.Rows.Add(rowTime);
|
||||
}
|
||||
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1100, 550, this.ckbShow.Checked));
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "尾项分析", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user