コード例 #1
0
 public void drawingTeeChart()
 {
     this.dt = ProductValueAction.EarnValueAnalyse(this.ddlPrjname.SelectedValue.ToString());
     if (this.dt.Rows.Count > 5)
     {
         int arg_3E_0 = this.dt.Rows.Count;
     }
     this.webchart.Chart.Series[0].DataSource = this.dt;
     this.webchart.Chart.Series[1].DataSource = this.dt;
     this.webchart.Chart.Series[2].DataSource = this.dt;
     if (this.dt == null || this.dt.Rows.Count == 0)
     {
         this.webchart.Chart.Series[0].Add(System.DateTime.Parse(System.DateTime.Now.Year.ToString() + "-" + (int.Parse(System.DateTime.Now.Month.ToString()) - 1).ToString()), double.Parse("0"));
         this.webchart.Chart.Series[0].Add(System.DateTime.Parse(System.DateTime.Now.ToShortDateString()), double.Parse("0"));
     }
     for (int i = 0; i < this.dt.Rows.Count - 1; i++)
     {
         this.webchart.Chart.Series[0].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["BudegetCost"].ToString()));
         this.webchart.Chart.Series[0].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["BudegetCost"].ToString()));
         this.webchart.Chart.Series[1].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["PlanCost"].ToString()));
         this.webchart.Chart.Series[1].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["PlanCost"].ToString()));
         this.webchart.Chart.Series[1].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["FactCost"].ToString()));
         this.webchart.Chart.Series[1].Add(System.DateTime.Parse(this.dt.Rows[i]["DatePoint"].ToString()), double.Parse(this.dt.Rows[i]["FactCost"].ToString()));
     }
     this.gv.DataSource = this.dt;
     this.gv.DataBind();
 }
コード例 #2
0
ファイル: ProfitView.aspx.cs プロジェクト: zxl881203/src
 private void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         if (base.Request["pc"] == null || base.Request["pn"] == null)
         {
             this.js.Text = "alert('参数错误!');";
             return;
         }
         this._ProjectCode = new Guid(base.Request["pc"]);
         this.ProjectName  = base.Request["pn"];
         DataTable dataTable = new DataTable();
         dataTable      = ProductValueAction.EarnValueAnalyse(this._ProjectCode.ToString());
         this._RowCount = ((dataTable.Rows.Count > 5) ? dataTable.Rows.Count : 5);
         this.tblData_Draw(dataTable);
         if (dataTable.Rows.Count > 0)
         {
             this.InitData(dataTable);
         }
     }
 }
コード例 #3
0
 protected void ddlPrjname_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     this.webchart.Chart.Header.Text = "项目赢得值分析图";
     this.dt = ProductValueAction.EarnValueAnalyse(this.ddlPrjname.SelectedValue.ToString());
     this.drawingTeeChart();
 }