public void CreateChildAccessItem(IUnitOfWork unitOfWork, Workflow wf)
 {
     var wfParentSteps = wf.Steps.OfType<WorkflowOwnerStep>();
     foreach (var parentStep in wfParentSteps)
     {
         CreateAccessItem(unitOfWork, parentStep.ChildWorkflow);
         CreateChildAccessItem(unitOfWork, parentStep.ChildWorkflow);
     }
 }
Beispiel #2
0
        public WorkflowReportVm(Workflow wfl, IEnumerable<ChangeHistory> histories)
        {
            this.Workflow = wfl;

            this.CountOfObjectsByStage = histories.GroupBy(x => x.ObjectID).Select(x => x.OrderByDescending(h => h.SortOrder).FirstOrDefault()).GroupBy(x => x.Step).Select(x => new CountOfObjectsReportVm
            {
                StepTitle = x.Key.Title,
                CountOfObjects = x.Count(),
                Color = x.Key is Stage ?  (x.Key as Stage).Color : string.Empty,
            });
        } 
Beispiel #3
0
 public Workflow(Workflow src)
 {
     CategoryID = src.CategoryID;
     CuratorsCategoryID = src.CuratorsCategoryID;
     CreatorID = src.CreatorID;
     CuratorID = src.CuratorID;
     Description = src.Description;
     ObjectType = src.ObjectType;
     PerformancePeriod = src.PerformancePeriod;
     Scheme = src.Scheme;
     SystemName = src.SystemName;
     Title = src.Title;
     LoadSteps(src.Steps);
 }
 public Workflow CloneWorkflow(Workflow wf)
 {
     Workflow clonedWF = new Workflow(wf) {CreatedDate = AppContext.DateTime.Now};
     return clonedWF;
 }
 public Workflow CloneSmallCopy(Workflow wf)
 {
     throw new NotImplementedException("Реализуй создание малой копии");
 }
Beispiel #6
0
 public void LoadChildWF(Workflow src)
 {
     ChildWorkflow = new Workflow(src);
     
 }