流程平台:系统数据项

表单页面使用命名空间 namespace OThinker.H3.Portal.Sheets

表单页面继承 OThinker.H3.WorkSheet.SheetPage

在cs代码中通过下面代码获取该数据项的值:

Object obj =this.Enviroment.InstanceData["数据项名称"].Value;

同时也能通过下面代码查看所有系统数据项的值:

Hashtable hDt=  this.Enviroment.InstanceData.GetDataTable();

 

系统数据项值获取:

//发起人用户ID
Object obj =this.Enviroment.InstanceData["Originator.UserID"].Value;
//发起人姓名
Object obj =this.Enviroment.InstanceData["Originator.UserName"].Value;
//发起人手机
Object obj =this.Enviroment.InstanceData["Originator.Mobile"].Value;
//发起人部门ID
Object obj =this.Enviroment.InstanceData["Originator.OU"].Value;
//发起人部门名称
Object obj =this.Enviroment.InstanceData["Originator.OUName"].Value;

//流程ID
Object obj =this.Enviroment.InstanceData["InstanceId"].Value;
//流程流水号
Object obj =this.Enviroment.InstanceData["SequenceNo"].Value;
//流程名称
Object obj =this.Enviroment.InstanceData["InstanceName"].Value;

 

 

另一种获取流程ID、流程名称、流程流水号的方式
//流程ID
string s1=this.Enviroment.InstanceId;
string s2=this.Enviroment.InstanceContext.InstanceId;
//流程名称
string s3=this.Enviroment.InstanceContext.InstanceName;
//流程流水号
string s4=this.Enviroment.InstanceContext.SequenceNo;

------------------------------------------
//当前登录着信息的实体
this.Enviroment.UserValidator;

 

posted on 2013-04-24 09:28  内部开发者  阅读(310)  评论(0)    收藏  举报

导航