如何从应用程序中隐藏部分 [英] how to hide part from an application

查看:197
本文介绍了如何从应用程序中隐藏部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个批准系统.在这个系统中有3个字符.他们是请求者,管理者和安全性.每当请求者填写信息时,他/她只能看到请求者部分.另一部分(经理和安全性部分)看不到.该部分是隐藏的.如果管理员登录系统,他/她可以看到请求者部分和管理员部分.安全可以看到完整的应用程序.如何做隐藏部分.任何人都请帮助我.谢谢.

Hi, I''m writing an approval system. In this system have 3 characters. They are requester, manager, and security. whenever the requester fill up the information he/she only can see the requester part only. The other part (manager and security part) can''t see. the part are hide. if manager login into the system he/she can see requester part and manager part. security can see the full application. how to do the hide part. anyone please help me. thank you.

推荐答案

正如他们在评论中提到的那样,这很容易做到.但是没有神奇的代码可以为您做到这一点.只需根据用户身份编写if语句和显示/隐藏字段.
As they are mentioning in the comments, this is very simple to do. But there is no magic code to do it for you. Just write if statements and show/hide fields depending on who the user is.


这篇关于如何从应用程序中隐藏部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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