public List <DBA.Model.JobNews> SearchProject(Conris.DBA.ViewModel.JobNewsSearch model) { if (model == null) { return(null); } StringBuilder sb = new StringBuilder(" 1=1"); if (!string.IsNullOrEmpty(model.JobName)) { sb.Append(" And JobName like '%" + model.JobName + "%'"); } if (!string.IsNullOrEmpty(model.Department)) { sb.Append(" And Department like '%" + model.Department + "%'"); } if (!string.IsNullOrEmpty(model.Category)) { sb.Append(" And Category like '%" + model.Category + "%'"); } if (!string.IsNullOrEmpty(model.Title)) { sb.Append(" And Title like '%" + model.Title + "%'"); } return(GetPapedList(sb.ToString(), "ID desc", model.Pageindex)); }
public List <DBA.Model.JobNews> SearchProject2(Conris.DBA.ViewModel.JobNewsSearch model) { if (model == null) { return(null); } StringBuilder sb = new StringBuilder(" Category='日程安排'"); if (!string.IsNullOrEmpty(model.JobName)) { sb.Append(" And JobName like '%" + model.JobName + "%'"); } if (!string.IsNullOrEmpty(model.Company)) { sb.Append(" And Company like '%" + model.Company + "%'"); } if (!string.IsNullOrEmpty(model.Category)) { sb.Append(" And Category like '%" + model.Category + "%'"); } if (!string.IsNullOrEmpty(model.Title)) { sb.Append(" And Title like '%" + model.Title + "%'"); } return(GetModelList(sb.ToString())); }
public PartialViewResult JobNewsSearch(Conris.DBA.ViewModel.JobNewsSearch model) { //kecheng List <SelectListItem> select2 = new List <SelectListItem>(); select2.Add(new SelectListItem { Text = "请选择", Value = "" }); List <DBA.Model.Department> list2 = cbll.GetModelList(""); for (int i = 0; i < list2.Count; i++) { select2.Add(new SelectListItem { Text = list2[i].DepartmentName, Value = list2[i].DepartmentName }); } ; ViewData["Department"] = new SelectList(select2, "Value", "Text", ""); return(PartialView(model)); }
public PartialViewResult JobNewsList(Conris.DBA.ViewModel.JobNewsSearch model) { return(PartialView(bll.SearchProject(model))); }
public ActionResult JobNewsManage(Conris.DBA.ViewModel.JobNewsSearch model) { return(View(model)); }
public ActionResult CXList(Conris.DBA.ViewModel.JobNewsSearch model) { return(View(jbll.SearchProject(model))); }
public PartialViewResult RCSearch(Conris.DBA.ViewModel.JobNewsSearch model) { return(PartialView(model)); }