public List <DBA.Model.Apply> SearchProject(Conris.DBA.ViewModel.ApplySearch model) { if (model == null) { return(null); } StringBuilder sb = new StringBuilder(" 1=1"); if (DBA.BLL.Users.GetNowUserType() != "管理员") { sb.Append(" And Str1='" + DBA.BLL.Users.GetNowUserID() + "'"); } if (!string.IsNullOrEmpty(model.Name)) { sb.Append(" And Name like '%" + model.Name + "%'"); } if (!string.IsNullOrEmpty(model.Str2)) { sb.Append(" And Str2 like '%" + model.Str2 + "%'"); } if (!string.IsNullOrEmpty(model.Major)) { sb.Append(" And Major like '%" + model.Major + "%'"); } if (!string.IsNullOrEmpty(model.QWGZ)) { sb.Append(" And QWGZ like '%" + model.QWGZ + "%'"); } if (!string.IsNullOrEmpty(model.ZYJN)) { sb.Append(" And ZYJN like '%" + model.ZYJN + "%'"); } return(GetPapedList(sb.ToString(), "ID desc", model.Pageindex)); }
public PartialViewResult ApplyList(Conris.DBA.ViewModel.ApplySearch model) { return(PartialView(bll.SearchProject(model))); }
public PartialViewResult ApplySearch(Conris.DBA.ViewModel.ApplySearch model) { TempData["Num"] = bll.GetModelList(" Str2 like '" + model.Str2 + "%'").Count; TempData["Tol"] = bll.GetModelList(" Str2 like '" + model.Str2 + "%' and Major='审核通过'").Count; return(PartialView(model)); }
public ActionResult ApplyManage(Conris.DBA.ViewModel.ApplySearch model) { return(View(model)); }
public ActionResult QZList(Conris.DBA.ViewModel.ApplySearch model) { return(View(abll.SearchProject(model))); }