Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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()));
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
 public PartialViewResult JobNewsList(Conris.DBA.ViewModel.JobNewsSearch model)
 {
     return(PartialView(bll.SearchProject(model)));
 }
Ejemplo n.º 5
0
 public ActionResult JobNewsManage(Conris.DBA.ViewModel.JobNewsSearch model)
 {
     return(View(model));
 }
Ejemplo n.º 6
0
 public ActionResult CXList(Conris.DBA.ViewModel.JobNewsSearch model)
 {
     return(View(jbll.SearchProject(model)));
 }
Ejemplo n.º 7
0
 public PartialViewResult RCSearch(Conris.DBA.ViewModel.JobNewsSearch model)
 {
     return(PartialView(model));
 }