Example #1
0
        /// <summary>
        /// 根据预约号返回跟进记录
        /// </summary>
        /// <param name="apid"></param>
        /// <returns></returns>
        public JsonResult GetFollowListByAPID(string apid)
        {
            AjaxStatusModel ajax = new AjaxStatusModel(); //功能操作类的返回类型都是AjaxStatusModel,数据放到AjaxStatusModel.data中,前台获取json后加载

            ajax.status = EnumAjaxStatus.Error;           //默认失败
            List <FollowRecord> FollowList = AppointmentData.GetFollowListByAPID(apid);

            ajax.data = FollowList;
            return(Json(new { total = FollowList.Count(), rows = FollowList, state = true, msg = "加载成功" }, JsonRequestBehavior.AllowGet));
        }