public async Task<ActionResult> ConsultCreated(ConsultProject form)
 {
     var result = await _commandService.Execute(new StartProjectFlow("hc105", "T2", DateTime.Now), CommandReturnType.EventHandled);
     if (result.Status == CommandStatus.Success)
     {
         var result2 = await _commandService.Execute(new StartConsultProject(result.AggregateRootId, form.Rname, form.Area, form.RTelephone, form.REmail, form.CusBank, form.CusMainBranch,
         form.CusSubBranch, form.CusContact, form.CusTelephone, form.CusEmail, form.ProjectRtype, form.RequireDept, form.Duration, form.Relvant, form.ReceivedTime,
         form.ExpectTime, form.ProjectContact, form.Decision, form.ProjectOrigin, form.Rival, form.Bid, form.ProjectPossi, form.CusProBudget, form.ProjectEmergency,
         form.CourseSubject, form.CourseDetail, form.CourseOther), CommandReturnType.EventHandled);
         if (result2.Status == CommandStatus.Success)
         {
             var result3 = await _commandService.Execute(new CreateSubProcess(result.AggregateRootId, "R01", 1, ""), CommandReturnType.EventHandled);
             if (result3.Status == CommandStatus.Success)
             {
                 MailMessageHelper.CreateMessage("*****@*****.**", "项目流程信使,项目编号" + result.AggregateRootId, "咨询项目需求单已提交,请区域总监审核");
                 return Json(new { success = true, errorMsg = "创建咨询项目成功", ProjectId = result.AggregateRootId });
             }
         }
     }
     return Json(new { success = false, errorMsg = "创建咨询项目失败" });
 }
 public async Task<ActionResult> ConsultUpdated(ConsultProject form)
 {
     var result = await commandService.Execute(new UpdateConsultProject(form.ProjectId, form.Rname, form.Area, form.RTelephone, form.REmail, form.CusBank, form.CusMainBranch,
         form.CusSubBranch, form.CusContact, form.CusTelephone, form.CusEmail, form.ProjectRtype, form.RequireDept, form.Duration, form.Relvant, form.ReceivedTime,
         form.ExpectTime, form.ProjectContact, form.Decision, form.ProjectOrigin, form.Rival, form.Bid, form.ProjectPossi, form.CusProBudget, form.ProjectEmergency,
         form.CourseSubject, form.CourseDetail, form.CourseOther), CommandReturnType.EventHandled);
     if (result.Status == CommandStatus.Success)
     {
         return Json(new { success = true, errorMsg = "修改咨询项目成功" });
     }
     else
     {
         return Json(new { success = false, errorMsg = "修改咨询项目失败" });
     }
 }