Exemplo n.º 1
0
 /// <summary>
 /// 添加 流程委托数据
 /// </summary>
 /// <param name="dtos">要添加的流程委托Dto</param>
 /// <returns>业务操作结果</returns>
 public OperationResult AddDelegation(params FlowDelegateDto[] dtos)
 {
     return(FlowDelegationRepository.Insert(dtos, dto =>
     {
         if (FlowDelegationRepository.CheckExists(m => m.FlowDesignId == dto.FlowDesignId && m.CreatorUserId == dto.CreatorUserId && m.Status == 0))
         {
             throw new Exception("名称为“{0}”的委托信息已存在,不能重复添加。".FormatWith(dto.FlowName));
         }
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新 流程委托数据
 /// </summary>
 /// <param name="dtos">包含更新的流程委托dto</param>
 /// <returns>业务操作结果</returns>
 public OperationResult EditDelegation(params FlowDelegateDto[] dtos)
 {
     return(FlowDelegationRepository.Update(dtos, null, null));
 }