Exemple #1
0
        private string Get_LinkID(string LinkGUID)
        {
            zlzw.BLL.LinkListBLL linkListBLL = new zlzw.BLL.LinkListBLL();
            DataTable            dt          = linkListBLL.GetList("LinkGUID='" + LinkGUID + "'").Tables[0];

            return(dt.Rows[0]["LinkID"].ToString());
        }
Exemple #2
0
        private void LinkList_BindGrid()
        {
            zlzw.BLL.LinkListBLL linkListBLL = new zlzw.BLL.LinkListBLL();
            DataTable            dt          = linkListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
Exemple #3
0
        private void Load_LinksTextList()
        {
            zlzw.BLL.LinkListBLL linkListBLL = new zlzw.BLL.LinkListBLL();
            DataTable            dt          = linkListBLL.GetList("IsEnable=1 and LinkType=1 order by Other01 asc").Tables[0];

            repLinks.DataSource = dt;
            repLinks.DataBind();
        }
Exemple #4
0
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_LinkListTotalCount()
        {
            zlzw.BLL.LinkListBLL linkListBLL = new zlzw.BLL.LinkListBLL();
            DataTable            dt          = linkListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows.Count);
            }
            else
            {
                return(0);
            }
        }