Example #1
0
        /// <summary>
        /// 根据筛选条件查询病程记录数据列表
        /// </summary>
        /// <param name="iFilter"></param>
        /// <returns></returns>
        public List <CD_ProgressNote> GetAll(ProgressNoteFilter iFilter)
        {
            string filter = "1=1";

            filter += iFilter.GetQueryString();
            List <CD_ProgressNote> list = EntityOperate <CD_ProgressNote> .GetEntityList(filter, "CreateTime");

            if (list == null || list.Count <= 0)
            {
                return(new List <CD_ProgressNote>());
            }
            return(list);
        }
 /// <summary>
 /// 获取病程记录列表
 /// </summary>
 /// <returns></returns>
 public string GetAll()
 {
     return(base.ExecuteActionJsonResult("获取病程记录列表", () =>
     {
         ProgressNoteFilter filter = GetPageData <ProgressNoteFilter>(0);
         List <CD_ProgressNote> list = progressNoteService.GetAll(filter);
         list.ForEach(e =>
         {
             e.ProgressTypeName = CommonService.GetDictNameByID("824", e.ProgressTypeId + "");
             GI_UserInfo Creator = EntityOperate <GI_UserInfo> .GetEntityById(e.Creator, "USERID");
             e.CreatorName = Creator?.UserName; //创建人姓名
             e.CreatorESign = Creator?.ESign;   //创建人电子签名
         });
         int curpage = 0, limit = 3;
         int.TryParse(Request["page"], out curpage);
         int.TryParse(Request["limit"], out limit);
         var myskip = curpage > 0 ? limit * (curpage - 1) : 0;
         return new WebApi_Result()
         {
             data = list.Skip(myskip).Take(limit), count = list.Count
         };
     }));
 }