单个Web应用程序中的多个Windows应用程序

编程入门 行业动态 更新时间:2024-10-23 17:28:33
本文介绍了单个Web应用程序中的多个Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我有将近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应用程序

本文发布于:2023-11-02 17:40:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1553003.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   多个   Web   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!