コード例 #1
0
        /// <summary>
        /// 获取复估列表
        /// </summary>
        /// <param name="condition"></param>
        /// <param name="index"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        public JsonResult GetConsultList(ConsultCondition condition, int index, int rows)
        {
            int total;
            var result = RevaluationService.GetConsultList(condition, index, rows, out total, UserHelper.GetCurrentUser().Id);

            return(Json(new
            {
                rows = result.Select(x => new
                {
                    x.TId,
                    x.ProjectNo,
                    x.PledgeAddress,
                    x.EvalType,
                    x.PropertyType,
                    InitialEstimateValue = x.InitialEstimateValue.ToString("F2"),
                    x.RevaluationValue,
                    x.RevaluationDifference,
                    x.RevaluationIncrease,
                    RevaluationTime = string.Format("{0:yyyy-MM-dd HH:mm:ss}", x.RevaluationTime),
                    IsApprove = x.IsApprove.HasValue ? x.IsApprove.Value ? "是" : "否" : "",
                    IsCancelConsult = x.IsCancelConsult.HasValue && x.IsCancelConsult.Value ? "是" : "否"
                }),
                total
            }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 /// <summary>
 /// 复估异议列表
 /// </summary>
 /// <param name="condition"></param>
 /// <param name="index"></param>
 /// <param name="size"></param>
 /// <param name="total"></param>
 /// <param name="userId"></param>
 /// <returns></returns>
 public IList <RevaluationItemModel> GetConsultList(ConsultCondition condition, int index, int size, out int total,
                                                    long userId)
 {
     return
         (RevaluationService.Instance.GetConsultList(condition, index, size, out total, userId)
          .ToListModel <RevaluationItemModel, RevaluationItem>());
 }