Exemplo n.º 1
0
 /// <summary>
 /// 保存表单病历
 /// </summary>
 /// <returns></returns>
 public string SaveInfo()
 {
     return(base.ExecuteActionJsonResult("保存信息", () =>
     {
         CD_FormEmr entity = GetPageData <CD_FormEmr>(0);
         formEmrService.SaveInfo(entity);
         return new WebApi_Result();
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 保存病程记录
 /// </summary>
 /// <param name="entity"></param>
 public void SaveInfo(CD_FormEmr entity)
 {
     if (!string.IsNullOrWhiteSpace(entity.FormEmrId) && entity.FormEmrId != "null")
     {
         entity.Creator    = null;
         entity.CreateTime = null;
         entity.UpdateM("FormEmrId");
     }
     else
     {
         entity.FormEmrId = CommonService.GetPrimaryId(new GI_SerialInfo()
         {
             Name = "CD_FormEmr", ColumnName = "FormEmrId", OrganID = entity.OrganID
         }) + "";
         entity.SaveModelM();
     }
 }