允许和demy访问各种用户accros winforms应用程序 [英] Allow and demy access to various users accros winforms application

查看:97
本文介绍了允许和demy访问各种用户accros winforms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好, 

Hello everyone, 

我想问一下管理用户及其访问Windows窗体应用程序各个部分的最佳方法的建议。例如,我有一些带有一些数据的数据视图或带有一些数据的数据网格,我希望某些组中的某些用户可以看到
在datagrid或treeview中查看某些数据部分。这样做的最佳方式是什么?可能有些建议或其他...

I would like to ask You advice on the best way to managing users and their access to various parts of windows forms application. For example, I have a treeview with some data or datagrid with some data, and I want for certain users in some group to see certain parts of data in datagrid or in treeview. What is the best way of doing this? Maybe some advice or something...

谢谢你,

推荐答案

实现此目的的一种方法是拥有一个每个用户拥有的权限表一个或多个条目,表示有权查看或不查看特定数据。然后在你的工作中,你将拥有从表中读取用户权限的逻辑,以显示或不显示基于从该表读取的权限的

One way to accomplish this to have a rights table where each user has one or more entries that denotes there rights to see or not see specific data. Then in your you would have logic that reads the user rights from the table to display or not display data based on rights read from that table.

同样适用于修改如果这是程序的一部分。

The same would apply for modification of data if that is part of the program.

如果你走这条路线说用MS-Access你会密码数据库,如果用SQL-Server你需要制作表权限拒绝访问程序外的用户修改数据,以免规避您的安全。

If you go this route say with MS-Access you would password the database, if with SQL-Server you would need to make the table permissions to deny access to users outside the program from modifying the data so not to circumvent your security.


这篇关于允许和demy访问各种用户accros winforms应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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