private void bindList() { SearchJobType con = new SearchJobType(); con.CpJobTypeName = txtCpJobTypeName.Text.Trim().ToString(); if (rbtnIsChinese.Checked == true) { con.IsEnglish = 1; } else if (rbtnIsEnglish.Checked == true) { con.IsEnglish = 2; } Pagination pagina = new Pagination(pager.PageIndex, pager.PageSize, 0); using (BLLJobType bll = new BLLJobType()) { List <JobType> lists = bll.GetPageList(con, pagina, CompanyInformationType.ID_FieldName, ScriptQuery.SortEnum.DESC); pager.RecordCount = pagina.RecordCount; pager.PageCount = pagina.PageCount; grid_friendlink.DataSource = lists; grid_friendlink.DataBind(); } }
private void getProtypeList() { SearchJobType search = new SearchJobType(); using (BLLJobType bll = new BLLJobType()) { DataTable dt = bll.GetTable(search); if (dt != null) { ddlJobTypeID.DataSource = dt; ddlJobTypeID.DataTextField = JobType.JobTypeName_FieldName; ddlJobTypeID.DataValueField = JobType.ID_FieldName; ddlJobTypeID.DataBind(); } } }
private void getProtypeList() { SearchJobType search = new SearchJobType(); using (BLLJobType bll = new BLLJobType()) { DataTable dt = bll.GetTable(search); if (dt != null) { ddlJobType.DataSource = dt; ddlJobType.DataTextField = JobType.JobTypeName_FieldName; ddlJobType.DataValueField = JobType.ID_FieldName; ddlJobType.DataBind(); ddlJobType.Items.Insert(0, new ListItem("==请选择类型==", "0")); } } }