예제 #1
0
 private void LoadProcNested(CurrentFlow availSeries, int EnabledOrAlwaysAvail)
 {
     foreach (NextStep ns in availSeries.NextSteps.Values)
     {
         if ((StepType)ns.acs.StepType == StepType.Activity)
         {
             if (!AcSeriesOKToAdd.ContainsKey(ns))
             {
                 AcSeriesOKToAdd.Add(ns, EnabledOrAlwaysAvail);
             }
         }
         if (ns.Children != null)
         {
             LoadProcNested(ns.Children, EnabledOrAlwaysAvail);
         }
     }
 }
예제 #2
0
        private void LoadNextSteps(CurrentFlow ap)
        {
            foreach (NextStep ns1 in ap.NextSteps.Values)
            {
                NextStep ns = ABP.Workflow.SillyQuestion(ns1, fm);
                StepType st = (StepType)ns.acs.StepType;

                if (st == StepType.Activity && ns.Enabled)
                {
                    AcSeriesOKToAdd.Add(ns, 0);
                }

                if (ns.Children != null)
                {
                    LoadNextSteps(ns.Children);
                }
            }
        }