Пример #1
0
        private string Get_JobCategoryID(string strJobCategoryGUID)
        {
            zlzw.BLL.JobCategoryListBLL jobCategoryListBLL = new zlzw.BLL.JobCategoryListBLL();
            DataTable dt = jobCategoryListBLL.GetList("JobCategoryGUID='" + strJobCategoryGUID + "'").Tables[0];

            return(dt.Rows[0]["JobCategoryID"].ToString());
        }
Пример #2
0
        private void JobCategoryList_BindGrid()
        {
            zlzw.BLL.JobCategoryListBLL jobCategoryListBLL = new zlzw.BLL.JobCategoryListBLL();
            DataTable dt = jobCategoryListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
Пример #3
0
        private void Load_JobCategoryList()
        {
            zlzw.BLL.JobCategoryListBLL jobCategoryListBLL = new zlzw.BLL.JobCategoryListBLL();
            DataTable dt = jobCategoryListBLL.GetList("IsEnable=1").Tables[0];

            drpJobCategory.DataTextField  = "JobCategoryName";
            drpJobCategory.DataValueField = "JobCategoryGUID";

            drpJobCategory.DataSource = dt;
            drpJobCategory.DataBind();
        }
Пример #4
0
        private string Get_JobCategoryName(string strJobCategoryGUID)
        {
            zlzw.BLL.JobCategoryListBLL jobCategoryListBLL = new zlzw.BLL.JobCategoryListBLL();
            DataTable dt = jobCategoryListBLL.GetList("JobCategoryGUID='" + strJobCategoryGUID + "'").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows[0]["JobCategoryName"].ToString());
            }
            else
            {
                return("未知");
            }
        }
Пример #5
0
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_JobCategoryListTotalCount()
        {
            zlzw.BLL.JobCategoryListBLL jobCategoryListBLL = new zlzw.BLL.JobCategoryListBLL();
            DataTable dt = jobCategoryListBLL.GetList("IsEnable=1").Tables[0];

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