Esempio n. 1
0
        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetGroupList("GroupType=" + gtList.SelectedValue, "order by GroupOrder asc");

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

            GroupsLists.DataSource = ds;
            GroupsLists.DataBind();
        }
Esempio n. 2
0
        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetUserGroupList("UG_SuperiorID=" + gtList.SelectedValue);

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

            GroupsLists.DataSource = ds;
            GroupsLists.DataBind();
        }
Esempio n. 3
0
        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetGroupList("", "order by GroupOrder 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");
            }

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