Ejemplo n.º 1
0
    public void BindRpt()
    {
        string taskCode = this.txtTaskCode.Text.Trim();
        string taskName = this.txtTaskName.Text.Trim();

        this.ViewState["detail"] = EReport.GetBudAnalysisDetail(this.prjId, taskCode, taskName, this.hfldIsWBSRelevance.Value);
        DataTable dataTable = this.ViewState["detail"] as DataTable;

        if (dataTable == null)
        {
            return;
        }
        this.AspNetPager1.RecordCount = dataTable.Rows.Count;
        this.AspNetPager1.PageSize    = NBasePage.pagesize;
        this.rptBudget.DataSource     = EReport.GetPageDataTable(dataTable, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize);
        this.rptBudget.DataBind();
        if (this.rptBudget.Items.Count == 0)
        {
            base.RegisterScript("$('#rptBudget tr:last-child').remove();");
        }
    }