예제 #1
0
 public void LoadMyFlow(bool reload)
 {
     if (reload && this.MyFlow != null)
     {
         this.MyFlow = null;
     }
     if (this.MyFlow == null)
     {
         this.MyFlow = Flow.GetCache(this.FlowId.ToInt32());//Flow.NewDataModel(this.FlowId.ToInt32());
     }
 }
예제 #2
0
 /// <summary>
 /// 运行后NextProcessList可以使用
 /// </summary>
 /// <param name="reload"></param>
 public void LoadNextProcessList(bool reload)
 {
     if (reload && this.NextProcessList != null)
     {
         this.NextProcessList.Clear();
         this.NextProcessList = null;
     }
     if (this.NextProcessList == null && !this.Next_Nodes.isEmpty)
     {
         Flow.MODEL flowParent = Flow.Caches.Find(delegate(Flow.MODEL dele){ return(dele.Id.ToInt32() == this.FlowId.ToInt32()); });
         if (flowParent == null)
         {
             throw new ApplicationException("Not miss flowParent!");
         }
         flowParent.LoadProcessList(false);
         this.NextProcessList = flowParent.ProcessList.FindAll(delegate(Process.MODEL dele) { return(this.Next_Nodes.f(",{0},").Contains(dele.StepNo.f(",{0},"))); });
         this.NextProcessList.Sort();
         //string sSql = String.Format("Select * from FL_Process where FlowId={0} and StepNo in ({1}) order by StepNo", this.FlowId, this.Next_Nodes);
         //NextProcessList = GetModels(sSql);
     }
 }
예제 #3
0
 public bool IsLastStep()
 {
     Flow.MODEL flowParent = Flow.Caches.Find(delegate(Flow.MODEL dele) { return(dele.Id.ToInt32() == this.FlowId.ToInt32()); });
     return(this.StepNo.ToInt32() == flowParent.GetLastStepNo());
 }