Ejemplo n.º 1
0
        private string Get_JobKindID(string strJobKindGUID)
        {
            zlzw.BLL.JobKindListBLL jobKindListBLL = new zlzw.BLL.JobKindListBLL();
            DataTable dt = jobKindListBLL.GetList("JobKindGUID='" + strJobKindGUID + "'").Tables[0];

            return(dt.Rows[0]["JobKindID"].ToString());
        }
Ejemplo n.º 2
0
        private void JobKindList_BindGrid()
        {
            zlzw.BLL.JobKindListBLL jobKindListBLL = new zlzw.BLL.JobKindListBLL();
            DataTable dt = jobKindListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
Ejemplo n.º 3
0
        private void Load_HotPost()
        {
            zlzw.BLL.JobKindListBLL jobKindListBLL = new zlzw.BLL.JobKindListBLL();
            DataTable dt = jobKindListBLL.GetList(14, "IsShowDefaultPage=1 and IsEnable=1", "PublishDate desc").Tables[0];

            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_JobKindListTotalCount()
        {
            zlzw.BLL.JobKindListBLL jobKindListBLL = new zlzw.BLL.JobKindListBLL();
            DataTable dt = jobKindListBLL.GetList("IsEnable=1").Tables[0];

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