Beispiel #1
0
        public List <DBA.Model.Evaluate> SearchProject(Conris.DBA.ViewModel.EvaluateSearch model)
        {
            if (model == null)
            {
                return(null);
            }
            StringBuilder sb = new StringBuilder(" 1=1");

            if (!string.IsNullOrEmpty(model.ND))
            {
                sb.Append(" And ND like '%" + model.ND + "%'");
            }
            if (!string.IsNullOrEmpty(model.YD))
            {
                sb.Append(" And YD= '" + model.YD + "'");
            }
            if (!string.IsNullOrEmpty(model.GHSID))
            {
                sb.Append(" And GHSID= '" + model.GHSID + "'");
            }
            if (!string.IsNullOrEmpty(model.GHS))
            {
                sb.Append(" And GHS like '%" + model.GHS + "%'");
            }
            sb.Append(" Order by ID Desc");
            return(GetModelList(sb.ToString()));
        }
 public PartialViewResult EvaluateList(Conris.DBA.ViewModel.EvaluateSearch model)
 {
     return(PartialView(bll.SearchProject(model)));
 }
 public PartialViewResult EvaluateSearch(Conris.DBA.ViewModel.EvaluateSearch model)
 {
     return(PartialView(model));
 }
 public ActionResult EvaluateManage(Conris.DBA.ViewModel.EvaluateSearch model)
 {
     return(View(model));
 }