流程平台:系统数据项

表单页面使用命名空间 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;

 

转载于:https://www.cnblogs.com/devinner/archive/2013/04/24/3039485.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值