Ejemplo n.º 1
0
        /// <summary>
        ///  更新 流程设计表单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        private OperationResult UpdateWorkFlowForm(Guid id)
        {
            OperationResult result = new OperationResult(OperationResultType.NoChanged, "更新流程设计表单失败!");
            var             entity = FlowFormRepository.GetByKey(id);

            entity.EnabledFlow = true;
            FlowFormRepository.Update(entity);
            result = new OperationResult(OperationResultType.Success, "更新 流程设计表单成功!");
            return(result);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新工作流表单信息
 /// </summary>
 /// <param name="dtos">包含更新的表单信息dto</param>
 /// <returns>业务操作结果</returns>
 public OperationResult EditFlowForm(params FlowFormDto[] dtos)
 {
     dtos.CheckNotNull("dtos");
     return(FlowFormRepository.Update(dtos));
 }