コード例 #1
0
ファイル: WfProcess.cs プロジェクト: vanloc0301/mychongchong
 public WfProcess(Prodef prodef, IWfProcessMgr processMgr)
     : base(new Proinst(), prodef)
 {
     this.manager = processMgr;
     this.proinst = base.wfInstance as Proinst;
     this.proinst.Responsible = prodef.ResponsibleId;
     this.proinst.DueTime = prodef.Duration;
     this.proinst.FormId = prodef.DaoDataFormId;
     this.proinst.TempletDataSetId = prodef.DaoDataSetId;
     this.proinst.Style = prodef.Style;
     this.proinst.ProjectId = this.GetNewProjectId(prodef.Package.Logo);
 }
コード例 #2
0
 public void ShowMe(Prodef prodef, Proinst proinst)
 {
     if (prodef != null)
     {
         if (this.mGraphDoc != null)
         {
             this.mGraphDoc.Reset();
         }
         else
         {
             this.InitGraphDoc();
         }
         if (this.mProinstDoc == null)
         {
             this.mProinstDoc = new ProinstDoc();
         }
         this.mProinstDoc.Load(prodef, proinst, this.mGraphDoc, this.img32);
     }
 }
コード例 #3
0
ファイル: ProinstDoc.cs プロジェクト: vanloc0301/mychongchong
 public void Load(SkyMap.Net.Workflow.XPDL.Prodef prodef, Proinst proinst, GraphDoc gDoc, ImageList imgList)
 {
     if (prodef == null)
     {
         throw new ArgumentNullException("Prodef cannot be null");
     }
     if (proinst == null)
     {
         throw new ArgumentNullException("Proinst cannot be null");
     }
     if ((this.mProdef == null) || (prodef.Id != this.mProdef.Id))
     {
         this.Close();
         this.mProdef = prodef;
         this.mProinst = proinst;
         foreach (Actdef actdef in prodef.Actdefs.Values)
         {
             IList<Transition> froms = actdef.Froms;
             if (froms.Count > 0)
             {
                 foreach (Transition transition in froms)
                 {
                     if (!this.mWFTRANSITIONs.ContainsKey(transition.Id))
                     {
                         this.mWFTRANSITIONs.Add(transition.Id, transition);
                     }
                 }
             }
         }
     }
     if (LoggingService.IsDebugEnabled)
     {
         LoggingService.Debug("开始画流程图...");
     }
     this.BuildGraphDoc(gDoc, imgList);
     if (LoggingService.IsDebugEnabled)
     {
         LoggingService.Debug("结束画流程图...");
     }
 }
コード例 #4
0
 public void CreateAbnormalAudit(Proinst proinst)
 {
     this.abnormalAuditInst.ProinstId = proinst.Id;
     this.abnormalAuditInst.ProinstName = proinst.Name;
 }
コード例 #5
0
ファイル: WfProcess.cs プロジェクト: vanloc0301/mychongchong
 public WfProcess(Proinst proins)
     : base(proins)
 {
     this.proinst = proins;
     this.requester = WfFactory.GetWfRequester(proins.Requester);
 }
コード例 #6
0
ファイル: ProinstDoc.cs プロジェクト: vanloc0301/mychongchong
 public void Close()
 {
     this.mWFTRANSITIONs.Clear();
     this.mProdef = null;
     this.mProinst = null;
 }
コード例 #7
0
ファイル: WfFactory.cs プロジェクト: vanloc0301/mychongchong
 public static IWfProcess GetWfProcess(Proinst proinst)
 {
     if (proinst == null)
     {
         throw new WfException("Proinst cannot be null");
     }
     return new WfProcess(proinst);
 }