示例#1
0
    protected void btnExcel_Click(object sender, EventArgs e)
    {
        DataTable exportDataSource = this.GetExportDataSource();
        Common2   common           = new Common2();

        common.ExportToExecelAll(exportDataSource, "仓库信息—按批次.xls", base.Request.Browser.Browser);
    }
示例#2
0
    protected void btnexecl_Click(object sender, System.EventArgs e)
    {
        DataTable table  = this.GetTable();
        Common2   common = new Common2();

        common.ExportToExecelAll(this.GetTitleByTable(table), "退库报表.xls", base.Request.Browser.Browser);
    }
示例#3
0
    protected void btnexecl_Click(object sender, System.EventArgs e)
    {
        DataTable reportData = this.GetReportData();
        Common2   common     = new Common2();

        common.ExportToExecelAll(reportData, "项目资金收支明细表.xls", base.Request.Browser.Browser);
    }
示例#4
0
    protected void btnExcel_Command(object sender, CommandEventArgs e)
    {
        DataTable exportDataSource = this.GetExportDataSource();
        Common2   common           = new Common2();

        if (e.CommandName == "excel")
        {
            common.ExportToExecelAll(exportDataSource, "调拨单报表.xls", base.Request.Browser.Browser);
            return;
        }
        common.ExportToWordAll(exportDataSource, "调拨单报表.doc");
    }