Beispiel #1
0
        private void Item_OnWorkTaskStatusChange(IWorkTask workTask)
        {
            if ((workTask as IWorkFlow).WorkFlowStatus == WorkFlowStatus.NoPass)
            {
                ProjectFlowStatus = ProjectFlowStatus.NoPass;
                UpdateWorkTaskStatus(WorkTaskStatus.Executed);
            }
            else if ((workTask as IWorkFlow).WorkFlowStatus == WorkFlowStatus.Pass)
            {
                ExecutNextWorkTask();
            }

            if (_workTasks.All(p => (p as IWorkFlow).WorkFlowStatus == WorkFlowStatus.Pass))
            {
                ProjectFlowStatus = ProjectFlowStatus.Pass;
                UpdateWorkTaskStatus(WorkTaskStatus.Executed);
            }
        }
Beispiel #2
0
 public override void AllowCorrectionWorkTask()
 {
     base.AllowCorrectionWorkTask();
     projectFlowStatus = ProjectFlowStatus.Executing;
 }