Ejemplo n.º 1
0
    protected void btnExcel_Click(object sender, System.EventArgs e)
    {
        DataTable prjSummary = EReport.GetPrjSummary(this.prjId, 1, System.Convert.ToDateTime(this.hfldDate.Value.Trim()).ToString("yyyy-MM-dd"), this.hfldIsWBSRelevance.Value);
        int       month      = System.Convert.ToDateTime(this.hfldDate.Value.Trim()).Month;
        string    text       = this.prjName + "工程" + month.ToString() + "月工程汇总表";

        ExcelHelper.ExportExcel(this.formatData(prjSummary, true), text, text, text + ".xls", null, null, 0, base.Request.Browser.Browser);
    }
Ejemplo n.º 2
0
    protected void BindGv()
    {
        DataTable prjSummary = EReport.GetPrjSummary(this.prjId, 1, System.Convert.ToDateTime(this.txtDate.Text.Trim()).ToString("yyyy-MM-dd"), this.hfldIsWBSRelevance.Value);

        this.gvConstruct.DataSource = this.formatData(prjSummary, false);
        this.gvConstruct.DataBind();
        this.hfldMonth.Value = System.Convert.ToDateTime(this.txtDate.Text.Trim()).Month.ToString();
        this.hfldDate.Value  = this.txtDate.Text.Trim();
    }