/// <summary>
 /// 获取病程记录信息
 /// </summary>
 /// <returns></returns>
 public string GetInfoById()
 {
     return(base.ExecuteActionJsonResult("获取病程记录信息", () =>
     {
         CD_ProgressNote entity = EntityOperate <CD_ProgressNote> .GetEntityById(Request["ProgressNoteId"], "ProgressNoteId");
         entity.WardRoundUserName = EntityOperate <GI_UserInfo> .GetEntityById(entity.WardRoundUserId, "USERID").UserName;
         entity.ProgressTypeName = CommonService.GetDictNameByID("824", entity.ProgressTypeId + "");
         entity.CreatorName = EntityOperate <GI_UserInfo> .GetEntityById(entity.Creator, "USERID").UserName;
         return new WebApi_Result()
         {
             data = entity
         };
     }));
 }
示例#2
0
 /// <summary>
 /// 保存病程记录
 /// </summary>
 /// <param name="entity"></param>
 public void SaveInfo(CD_ProgressNote entity)
 {
     if (!string.IsNullOrWhiteSpace(entity.ProgressNoteId) && entity.ProgressNoteId != "null")
     {
         entity.Creator    = null;
         entity.CreateTime = null;
         entity.UpdateM("ProgressNoteId");
     }
     else
     {
         entity.ProgressNoteId = CommonService.GetPrimaryId(new GI_SerialInfo()
         {
             Name = "CD_ProgressNote", ColumnName = "ProgressNoteId", OrganID = entity.OrganID
         }) + "";
         entity.SaveModelM();
     }
 }
 /// <summary>
 /// 保存病程记录
 /// </summary>
 /// <returns></returns>
 public string SaveInfo()
 {
     return(base.ExecuteActionJsonResult("保存" + Request["ProgressTypeName"] + "信息", () =>
     {
         CD_ProgressNote entity = GetPageData <CD_ProgressNote>(0);
         List <ProgressNote_Content_Item> itemList = new List <ProgressNote_Content_Item>();
         int curIndex = 0;
         foreach (string each in Request["RecordContentTitle"].Split(','))
         {
             itemList.Add(new ProgressNote_Content_Item()
             {
                 Title = each, Content = Request["RecordContent" + curIndex]
             });
             curIndex++;
         }
         entity.WardRoundUserId = string.IsNullOrWhiteSpace(entity.WardRoundUserId) ? UserTokenManager.GetUId(Request["token"]) : entity.WardRoundUserId;
         entity.RecordContent = new JavaScriptSerializer().Serialize(itemList);
         progressNoteService.SaveInfo(entity);
         return new WebApi_Result();
     }));
 }