Esempio n. 1
0
        /// <summary>
        /// 绑定数据源
        /// </summary>
        private void DataBindGrid()
        {
            DictManager dicManager = new DictManager();



            int              count       = 0;
            StringBuilder    SqlWhere    = new StringBuilder();
            IList <SqlParam> IList_param = new List <SqlParam>();

            if (!this.drpDic.Value.ToString().Equals("-1"))
            {
                SqlWhere.Append(" and DictID = @obj ");
                IList_param.Add(new SqlParam("@obj", this.drpDic.Value.ToString()));
            }

            DataTable dt = dicManager.GetPitsInfoPage(SqlWhere, IList_param, PageControl1.PageIndex, PageControl1.PageSize, ref count);

            ControlBindHelper.BindRepeaterList(dt, rp_Item);
            this.PageControl1.RecordCount = Convert.ToInt32(count);
        }