示例#1
0
        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);
        }
示例#2
0
        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() };
        }
示例#3
0
        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() });
        }
示例#4
0
        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;
        }