//*********************************WebChat Service************************************* public List <DebtQXTJResultModel> GetViewDataByName(DebtQXTJModel model) { List <View_QXTJ> list = new List <View_QXTJ>(); if (string.IsNullOrEmpty(model.project_name)) { list = Select <int>(o => (!string.IsNullOrEmpty(o.UnitID)), s => s.DispOrder, model.page, model.size); } else { list = Select <int>(o => o.B0001Name.Contains(model.project_name), s => s.DispOrder, model.page, model.size); } if (null == list) { return(null); } List <DebtQXTJResultModel> listModel = new List <DebtQXTJResultModel>(); foreach (View_QXTJ item in list) { listModel.Add(new DebtQXTJResultModel() { B0001Name = item.B0001Name, B0116 = item.B0116, DispOrder = item.DispOrder, People = item.People, People2 = item.People2, QXTJ01 = item.QXTJ01, UnitID = item.UnitID }); } return(listModel); }
/// <summary> /// 1.0 查询欠薪项目 /// </summary> /// <param name="model"></param> /// <returns></returns> public object SelDebtQXTJ(DebtQXTJModel model) { if (!ModelState.IsValid) { return(operateContext.RedirectWebApi(WebResultCode.Exception, GlobalConstant.参数异常.ToString(), false)); } List <DebtQXTJResultModel> list = operateContext.bllSession.View_QXTJ.GetViewDataByName(model); if (null == list) { return(operateContext.RedirectWebApi(WebResultCode.Exception, GlobalConstant.操作异常.ToString(), false)); } return(operateContext.RedirectWebApi(WebResultCode.Ok, GlobalConstant.操作成功.ToString(), list)); }