예제 #1
0
        /// <summary>
        /// 设置表单流程
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        private OperationResult AddFormRelateToFlow(FlowDesignerDto dto)
        {
            OperationResult    result = new OperationResult(OperationResultType.NoChanged, "表单流程设置失败!");
            WorkFlowRelateForm model  = new WorkFlowRelateForm
            {
                Id           = Guid.NewGuid(),
                FlowDesignId = dto.Id,
                FlowFormId   = dto.FormId
            };

            FlowRelateFormRepository.Insert(model);
            result = new OperationResult(OperationResultType.Success, "表单流程添加成功!");
            return(result);
        }
예제 #2
0
 /// <summary>
 /// 设置表单流程
 /// </summary>
 /// <param name="dto"></param>
 /// <returns></returns>
 private OperationResult AddFormRelateToFlow(FlowDesignerDto dto)
 {
     OperationResult result = new OperationResult(OperationResultType.NoChanged, "表单流程设置失败!");
     WorkFlowRelateForm model = new WorkFlowRelateForm
     {
         Id = Guid.NewGuid(),
         FlowDesignId = dto.Id,
         FlowFormId = dto.FormId
     };
     FlowRelateFormRepository.Insert(model);
     result = new OperationResult(OperationResultType.Success, "表单流程添加成功!");
     return result;
 }