/// <summary>
    /// 绑定Grid
    /// </summary>
    protected void BindGrid()
    {
        SErrorDiaryBB errorDiaryBB = new SErrorDiaryBB();
        DataSet ds = new DataSet();

        try
        {
            string strWhere = this.StrWhere;
            if (this.operateStartDt.Text != "")
            {
                strWhere += " and operateDt>='" + this.operateStartDt.Text + "'";
            }
            if (this.operateEndDt.Text != "")
            {
                strWhere += " and operateDt<'" + Convert.ToDateTime(this.operateEndDt.Text).AddDays(1).ToString() + "'";
            }
            if (this.errorText.Text != "")
            {
                strWhere += " and errorText like '%" + this.errorText.Text + "%'";
            }
            ds = errorDiaryBB.GetVList(strWhere);
            this.grid.DataSource = ds.Tables[0];
            this.grid.DataBind();
            //赋值记录条数、页面总数
            this.Label3.Text = ds.Tables[0].Rows.Count.ToString();
            this.Label2.Text = this.grid.PageCount.ToString();
            this.currPage.Text = (this.grid.PageIndex + 1).ToString();
        }
        finally
        {
            errorDiaryBB.Dispose();
        }
    }