For different roles of users, typically requiring a different application interface. That is, different user roles must be available «different sections of the» application. To add new roles and users and assign them access privileges to the data classes in the section Администрирование web application. The application menu for users and roles is defined in the file Web.sitemap project web app, and the possibility of access to individual pages, or pages that are located in separate folders in the application, is defined in the file Web.config (this is always present in the root folder of the project with the web application, in addition, such files may be created for each subfolder with pages in the same project).

Details of the filtering mechanism maps web application ASP.NET you can see in the documentation MSDN.

Learn more about the mechanism of authorization control in web application ASP.NET using roles can also be found in the documentation MSDN.

You must first add a new role, according to made on the basis of the entity relationship diagram conclusions.

1.To add the role of Manager, accountant and storekeeper, you need to run the app from Visual Studio, log in under user admin\admin and to open a branch Администрирование\Роли.

2.In the opened list form please click on the Добавить

3.In the opened form edit role, you need to fill in details about the role (Наименование) and then save the role. In addition to entering the role name anything else while on this form of note is not required.

Then use a similar process to create at least one user for each role, opening the relevant forms from branch Администрирование\Пользователи.

Go

Переведено сервисом «Яндекс.Переводчик» http://translate.yandex.ru