/// <summary>
    /// 绑定库存明细列表,2014-12-03 王工原有的程序使用的 变为old
    /// </summary>
    protected void BindGridold()
    {
        UStockBB stockBB = new UStockBB();
        SCommBB commBB = new SCommBB();
        try
        {
            DataSet ds = new DataSet();

            ds = stockBB.UStockDeatilReport(this.ddlWare.SelectedValue, this.ddlWareLocater.SelectedValue,
                this.tbFinanceBillNo.Text.Trim().Replace("'", "''").Trim(),
                this.tbMaterial.Text.Trim().Replace("'", "''").Trim(), this.tbBoxNo.Text.Trim().Replace("'", "''").ToUpper(),
                this.tbPalletNo.Text.Trim().Replace("'", "''").ToUpper(), this.ddlIsOutStocking.SelectedValue, this.ddlCheckResult.SelectedValue);

            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
        {
            stockBB.Dispose();
            commBB.Dispose();
        }
    }