Пример #1
0
 /// <summary>
 /// 保存成功的会前记录
 /// </summary>
 /// <param name="entity">实体</param>
 public void SaveEntity(NWFConfluenceEntity entity)
 {
     try
     {
         string processId              = entity.F_ProcessId;
         string nodeId                 = entity.F_NodeId;
         string formNodeId             = entity.F_FormNodeId;
         NWFConfluenceEntity oldEntity = this.BaseRepository().FindEntity <NWFConfluenceEntity>(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);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// 保存成功的会前记录
 /// </summary>
 /// <param name="entity">实体</param>
 public void SaveEntity(NWFConfluenceEntity entity)
 {
     try
     {
         wfConfluenceService.SaveEntity(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowBusinessException(ex);
         }
     }
 }