11.18 how do I register the interface to the system?

Source: Internet
Author: User

Before using the business logic display interface, you must register the interface and register it with the system, the main program displays the authorization-related interface based on user authorization.

IBeamUIAttribute must be used for interface registration:

 

Definition:

/// <Summary>

/// Register the flag attributes on the page

/// </Summary>

[AttributeUsageAttribute (AttributeTargets. Class, AllowMultiple = true)]

Public sealed class IBeamUIAttribute: Attribute

 

Component:IBeamMDAACore. dll

Namespace:IBeam. MDAA. Objects

Example:

 

Interface Definition, marked on the class definition of the interface:

[IBeamUI (Guid = UIConstent. productsGuid, Category = UIConstent. productsCatalog, Name = UIConstent. productsName, DisplayMode = DisplayMode. dependOnPurview, UIType = UIType. form, Icon = UIConstent. productsIcon, IsDefault = false, sortindex= 518, FunctionIDs = UIConstent. productsFunctionIDs)]

Public partial class FrmProductsManager: Form

 

Serial number

Attribute name

Description

1

Guid

Is the unique ID of the interface

2

Category

The group to which the interface belongs. It is used to classify and organize the main interface.

3

Name

Friendly name displayed on the page

4

DisplayMode

The display mode of the interface is displayed based on permissions or to all users.

5

UIType

Interface Type: Page, form, control, hyperlink, Flash, Applet

6

Icon

Interface-related icons. The default icons are displayed at a scheduled time.

7

IsDefault

Indicates whether to display the first default Interface in a category.

8

SortIndex

Interface sorting ID

9

FunctionIDs

Function ID contained in the interface

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.