C#简单的通用基础字典实现方法

2019-12-26 11:27:51王冬梅

                else
                {

                    _dv.DataSource = ds.Tables["table0"];


                }

                this._PageSize = Int32.Parse(ds.Tables["TabScript"].Rows[0]["PageSize"].ToString());
                this._PageIndex = Int32.Parse(ds.Tables["TabScript"].Rows[0]["PageIndex"].ToString());
                this._RecodeCount = Int32.Parse(ds.Tables["TabScript"].Rows[0]["Rows"].ToString());
                this._PageCount = this._RecodeCount / this._PageSize + 1;

                if (_comToPageIndex != null)
                {
                    _comToPageIndex.Items.Clear();
                    for (int i = 1; i <= this._PageCount; ++i)
                    {
                        _comToPageIndex.Items.Add(i.ToString());

                    }
                    _comToPageIndex.Text = this._PageIndex.ToString();
                }

                if (_msg != null)
                {
                    _msg.Text = "当前第" + this._PageIndex + "页," + "共" + this._PageCount.ToString() + "页,记录数:" + this._RecodeCount.ToString();