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

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

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

问题已解决!完整代码请看后面的跟帖回复!那是两个人的成果!希望能帮到更多的用户!实现共同进步!/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

相关文章
|
7月前
|
安全
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
|
7月前
|
安全
什么是互助预约排单系统开发丨dapp预约排单互助项目系统开发详细流程/规则方案/案例设计/逻辑功能/源码开发
Allow users to register accounts and perform identity verification to ensure the authenticity and credibility of user information.
|
7月前
|
安全
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
|
6月前
|
存储 前端开发 安全
dapp矩阵公排互助预约排单抢单项目系统开发指南流程丨案例设计丨功能逻辑丨规则玩法丨项目方案丨源码程序
需求分析:与团队明确系统的需求和目标,包括公排互助预约排单抢单项目系统的功能、规则、奖励机制等方面。
|
7月前
|
安全
上门按摩预约系统开发方案项目/案例详细/需求逻辑/流程设计/源码功能
Implement a user authentication mechanism to ensure the authenticity and security of user identities.
|
7月前
|
存储 安全 前端开发
预约上门按摩项目系统开发详细流程/案例介绍/功能逻辑/需求方案/源码模式
确定系统的目标用户,例如个人用户或企业用户。 - 确定系统的核心功能,如用户注册和登录、服务列表和预约管理、支付和评价反馈等。 - 确定技术平台和开发语言,如Web应用还是移动应用,以及开发语言和框架的选择。 - 制定项目计划,并确定开发阶段和时间安排。
|
9月前
|
SQL 安全 关系型数据库
案例07-在线人员列表逻辑混乱
在线人员列表逻辑混乱
|
搜索推荐 数据管理 开发者
合同管理的高级流程设计|学习笔记
快速学习合同管理的高级流程设计
243 0
合同管理的高级流程设计|学习笔记
|
开发者 容器
招聘管理综合实践——审批结果更新|学习笔记
快速学习招聘管理综合实践——审批结果更新
100 0
招聘管理综合实践——审批结果更新|学习笔记