/// <summary>
 /// 保存成功的会前记录
 /// </summary>
 /// <param name="entity">实体</param>
 public void SaveEntity(WfConfluenceEntity entity)
 {
     try
     {
         string             processId  = entity.F_ProcessId;
         string             nodeId     = entity.F_NodeId;
         string             formNodeId = entity.F_FormNodeId;
         WfConfluenceEntity oldEntity  = this.BaseRepository().FindEntity <WfConfluenceEntity>(t => t.F_ProcessId == processId && t.F_NodeId == nodeId && t.F_FormNodeId == formNodeId);
         if (oldEntity == null)
         {
             entity.Create();
             this.BaseRepository().Insert(entity);
         }
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 保存成功的会前记录
 /// </summary>
 /// <param name="entity">实体</param>
 public void SaveEntity(WfConfluenceEntity entity)
 {
     try
     {
         wfConfluenceService.SaveEntity(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowBusinessException(ex);
         }
     }
 }