public List <dynamic> GetExportProcess() { List <dynamic> result = new List <dynamic>(); var proxy = new WorkflowProxy(); var processList = processInfoRepo.Entities.ToList(); foreach (var p in processList) { var tasks = proxy.GetProcessAllTask(p.ProcessName); foreach (var task in tasks) { result.Add(new { p.ProcessName, NodeName = task, TeamName = "", p.Category, p.DifficultyLevel, p.Description, p.InDate, p.InUser, LastEditDate = p.LastEditDate.Value, p.LastEditUser }); } } return(result); }
public dynamic GetAllProcess() { var proxy = new WorkflowProxy(); var allProcess = proxy.GetAllProcessDefinitions(); var result = allProcess.Select(p => new ProcessWithNodeModel { ProcessName = p.ProcessName, Tasks = proxy.GetProcessAllTask(p.ProcessName) }).ToList(); return new { AllProcess = result, Teams = teamRepo.Entities.Select(m => m.TeamName).ToList() }; }
public dynamic GetAllProcess() { var proxy = new WorkflowProxy(); var allProcess = proxy.GetAllProcessDefinitions(); var result = allProcess.Select(p => new ProcessWithNodeModel { ProcessName = p.ProcessName, Tasks = proxy.GetProcessAllTask(p.ProcessName) }).ToList(); return(new { AllProcess = result, Teams = teamRepo.Entities.Select(m => m.TeamName).ToList() }); }
public List<dynamic> GetExportProcess() { List<dynamic> result = new List<dynamic>(); var proxy = new WorkflowProxy(); var processList = processInfoRepo.Entities.ToList(); foreach (var p in processList) { var tasks = proxy.GetProcessAllTask(p.ProcessName); foreach (var task in tasks) { result.Add(new { p.ProcessName, NodeName = task, TeamName = "", p.Category, p.DifficultyLevel, p.Description, p.InDate, p.InUser, LastEditDate = p.LastEditDate.Value, p.LastEditUser }); } } return result; }