/// <summary> /// 查看客户满意度 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult QueryCustEval(string id) { TMC_CUST_EVALDTO ceDto = service.GetCustEval(id); ceDto.StdMains = service.GetStdMain(); ceDto.EvalItems = service.GetEvalItems(ceDto.N_CUST_TYPE.ToString()); if (ceDto.EvalSubs != null && ceDto.EvalSubs.Count > 0) { foreach (var item in ceDto.EvalSubs) { TMC_EVAL_ITEMDTO evalItem = ceDto.EvalItems.FirstOrDefault(x => x.C_ID == item.C_ITEM_ID); if (evalItem != null) { item.C_ITEM_NAME = evalItem.C_NAME; item.Desc = evalItem.C_EMP_NAME; } } ceDto.EvalSubs = ceDto.EvalSubs.OrderBy(x => x.Desc).ToList(); } return(View(ceDto)); }