예제 #1
0
 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);
     }
 }
예제 #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,
            });
        } 
예제 #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);
 }
예제 #4
0
 public Workflow CloneWorkflow(Workflow wf)
 {
     Workflow clonedWF = new Workflow(wf) {CreatedDate = AppContext.DateTime.Now};
     return clonedWF;
 }
예제 #5
0
 public Workflow CloneSmallCopy(Workflow wf)
 {
     throw new NotImplementedException("Реализуй создание малой копии");
 }
예제 #6
0
 public void LoadChildWF(Workflow src)
 {
     ChildWorkflow = new Workflow(src);
     
 }