/// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetAuthorityList("", "order by AuthorityOrder asc");

            if (ds.Tables[0].Rows.Count == 0)
            {
                GridViewMsg.InnerText = "无记录";
            }
            else
            {
                GridViewMsg.InnerText = "共有" + ds.Tables[0].Rows.Count + "条记录";
            }

            AuthorityLists.DataSource = ds;
            AuthorityLists.DataBind();
        }
Example #2
0
        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetAuthorityList("", "order by AuthorityOrder asc");

            if (ds.Tables[0].Rows.Count == 0)
            {
                GridViewMsg.InnerText = ResourceManager.GetString("Pub_Msg_norecord");
            }
            else
            {
                GridViewMsg.InnerText = ResourceManager.GetString("Pub_Lab_gy") + ds.Tables[0].Rows.Count + ResourceManager.GetString("Pub_Lab_tjl");
            }

            AuthorityLists.DataSource = ds;
            AuthorityLists.DataBind();
        }