批准,拒绝和待处理按钮的代码 [英] code for approve, reject and pending button

查看:86
本文介绍了批准,拒绝和待处理按钮的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个批准项目。我简要介绍一下我的项目。请求者批准申请的请求。经理和安全人员需要批准该请求。我确实知道如何为待处理,批准和拒绝按钮编码。有人可以帮我解决这个问题。 tq

解决方案

所以你需要为每个用户类型维护角色类型。



你可以定义一个具有RoleId和RoleName的角色表。在这里,您可以定义诸如Requestor,Manager和Security之类的名称。



可以通过直接在Users表中添加一个新列来映射id ,它将从Role表存储RoleId,或者将另一个表UserRoles与UserId和RoleId列存储。


hi, i'm doin a approval project. i give a little bit briefing about my project. A requestor request to approve a application. the manager and security need to approve that request. actuall i do know how to code for the pending, approve and reject button. can someone help me to solve this problem. tq

解决方案

So you need to maintain role type for each user type.

You can define a Role table with RoleId and RoleName. Here you define the name such as "Requestor", "Manager" and "Security".

The id can be mapped by directly having one new column Role in Users table, which will store the RoleId from Role table or having another table UserRoles with UserId and RoleId columns.


这篇关于批准,拒绝和待处理按钮的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆