【氚云】在代码中,如何实现对人员和部门的调用?

简介: 在代码中,如何实现对人员和部门的调用?

通过代码实现指定时间提醒,已经实现了指定时间的提醒功能,但仅对本人有提醒,实际应用是行政安排工作,设定在某一时间进行提醒。需要同时获取人员多选控件和部门多选控件的数据。请教一下如何实现人员多选、部门多选的调用赋值或如何获取人员部门控件的取值?

问题已解决!完整代码请看后面的跟帖回复!那是两个人的成果!希望能帮到更多的用户!实现共同进步!/2020-4-11 16:08


目前实现的代码如下:

     //增加自定义消息提醒b

      H3.Task.UserTask   task = new H3.Task.UserTask();


       string appId = "A69b534faedd64f389aa145221db1bdce";   //应用编码


       task.ObjectId = Guid.NewGuid().ToString();//Guid码


       task.Sender = H3.Organization.User.SystemUserId;//任务的发起人id


       //任务的接收人是人员多选、部门多选控件,如何进行赋值?

             task.UserId = this.Request.UserContext.UserId;  //任务的接收人id  

       task.AppCode = appId;//应用编码


       task.TaskType = H3.Task.TaskType.Reminder; //任务类型为提醒


       task.SchemaCode = "Smgan033l6ajmqpy2489c8nzd1"; //表单编码


       task.TargetType = H3.LinkTargetType.BizObject; //关联类型


       task.TargetId = this.Request.BizObjectId; //关联业务对象的ID


       task.TargetName = this.Request.BizObject.Name;  //关联业务对象的数据标题


       task.Name = "设置群体提醒"; //提醒标题


       task.Summary = this.Request.BizObject["F0000001"] + string.Empty; //提醒的内容


       task.**Time = DateTime.Parse(this.Request.BizObject["F0000023"] + string.Empty);  // 提醒时间


       task.ReminderType = H3.Task.ReminderType.Once; //提醒类型


       task.StartTime = DateTime.Now; //开始时间


       task.EndTime = DateTime.Now;   //截止时间


       task.TaskState = H3.Task.TaskState.Unfinished; //任务状态


       task.**State = H3.Task.**State.Waiting; //提醒的状态


       this.Request.Engine.TaskManager.AddTask(task);//添加任务

       //增加自定义消息提醒e

相关文章
|
存储 区块链 数据安全/隐私保护
DApp互助预约排单系统开发设计规则逻辑解析
DApp互助预约排单系统开发设计规则逻辑解析
dapp互助预约排单系统开发步骤指南/案例设计/规则详细/方案逻辑/源码程序
-Determine the core functions and objectives of the system, understand user needs and expectations.
预约抢单互助系统开发详细功能/需求方案/步骤功能/逻辑项目/源码案例
The development model of appointment and order grabbing mutual assistance system is a widely used development model on mutual assistance service platforms. It adopts a combination of appointment and order grabbing modes, allowing users to make appointments or actively participate in mutual assistanc
|
9月前
|
数据安全/隐私保护
杨校老师课堂之权限管理系统的核心业务逻辑接口设计
杨校老师课堂之权限管理系统的核心业务逻辑接口设计
52 0
|
安全
dapp互助预约排单抢单项目系统开发规则玩法/逻辑说明/案例介绍/方案设计/源码程序
The development of DApp appointment and scheduling mutual assistance system refers to the development of a mutual assistance system based on blockchain technology and decentralized application programs (DApp). This system is usually designed as a mutual aid or sharing economy model, aimed at providi
|
存储 前端开发 安全
dapp矩阵公排互助预约排单抢单项目系统开发指南流程丨案例设计丨功能逻辑丨规则玩法丨项目方案丨源码程序
需求分析:与团队明确系统的需求和目标,包括公排互助预约排单抢单项目系统的功能、规则、奖励机制等方面。
|
存储 安全 前端开发
DApp公排互助预约抢单排单模式系统开发参考版/详细流程/方案逻辑/规则玩法/案例设计/源码程序
需求分析:与团队明确系统的需求、目标和范围,包括公排互助预约抢单排单模式系统的功能、规则、奖励机制等方面
|
AndFix vr&ar 图形学
潮玩元宇宙/大逃杀游戏系统开发详细案例丨规则流程丨方案逻辑丨功能设计丨需求项目丨源码出售
The development of Chaoyu Metaverse Escape Game System refers to the creation and construction of a virtual reality game system to provide an immersive gaming experience, allowing players to participate in a virtual world for escape and combat.
|
安全 Go 区块链
区块链游戏链游系统开发功能详情丨方案逻辑丨开发项目丨案例分析丨源码规则
 In recent years, with the continuous development of blockchain technology, NFTs (non homogeneous tokens) and DAPPs (decentralized applications) have emerged in the gaming industry.
|
安全 区块链
数字货币交易所系统开发(开发逻辑)丨案例详情丨规则玩法丨设计方案丨需求实现丨源码功能
The development process of a digital currency exchange system is an important step, which includes stages such as requirement analysis, system design, coding implementation, testing, and online deployment. In the requirements analysis stage, the development team needs to fully communicate with the