大家好, 我有将近20多个Windows应用程序,我希望所有的Windows应用程序都可以通过一个Web应用程序进行访问.我想按角色访问网络. 例如: 让我们以名称为Win_App1,Win_App2,Win_App3,Win_App4的4个Windows应用程序为例.如果用户以管理员身份进入Web应用,则他可以访问所有Windows应用(Win_App1 ,Win_App2,Win_App3,Win_App4),如果用户以员工角色进入Web应用程序,则他只能访问两个Win应用程序(例如Win_App1,Win_App4),其他两个Win应用程序可以由具有不同角色的其他用户访问. ="h2_lin">解决方案
这很容易做到.我认为您的意思是他们可以下载这些程序,他们无法通过您的网站运行它们.但是,您只需要创建登录名(这显然是必需的),然后创建角色表和为用户定义角色的表.然后,将每个程序分配给一个角色,然后在显示要下载的程序时,执行SQL调用,以检查存在哪些程序,这些程序具有已登录用户的角色列表中的角色.
HI All, I have nearly 20+ windows applications and i want all the windows applications to be accessed with one web application. I want to access the web on role basis. Eg: Let us take 4 windows apps by name Win_App1, Win_App2 , Win_App3, Win_App4. If a user enters the web app with admin role he can access all the windows apps(Win_App1 , Win_App2, Win_App3, Win_App4) and if a user enters the web app with employee role he can access only two win apps(say Win_App1, Win_App4) and other two win apps can be accessed by other user with a different role.
解决方案 This is easy to do. I assume you mean they can download these programs, they can''t RUN them through your site. But, you just create logins, that''s obviously needed, and you create a table of roles and a table defining roles to users. Then you assign each program to a role, and when you show programs to download, you do a SQL call checking what programs exist that have roles that are in the list of roles for the logged in user.更多推荐
单个Web应用程序中的多个Windows应用程序
发布评论