CN106815030B - Universal method for processing user interface display rule - Google Patents
Universal method for processing user interface display rule Download PDFInfo
- Publication number
- CN106815030B CN106815030B CN201710066958.4A CN201710066958A CN106815030B CN 106815030 B CN106815030 B CN 106815030B CN 201710066958 A CN201710066958 A CN 201710066958A CN 106815030 B CN106815030 B CN 106815030B
- Authority
- CN
- China
- Prior art keywords
- rule
- interface
- rules
- definition
- management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012545 processing Methods 0.000 title claims abstract description 10
- 238000012795 verification Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 230000001960 triggered effect Effects 0.000 claims description 4
- 238000007429 general method Methods 0.000 claims description 2
- 238000012790 confirmation Methods 0.000 claims 1
- 238000002360 preparation method Methods 0.000 claims 1
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a universal method for processing a user interface display rule, which belongs to the field of Internet.
Description
Technical Field
The invention relates to the internet technology, in particular to a universal method for processing display rules of a user interface, which can keep consistency and reduce repetitive codes.
Background
In the document operation, some operations are general, such as reimbursement type documents, display time, type and amount columns can be set, all reimbursement records of a reimburser in a certain time period are displayed, and the amount is counted. According to different business classifications, report type receipts need to be set with icon attributes and printing formats. The method has the common operations of rule creation, deletion and the like, and also has the service personalized requirements defined by the rule. If the service developers process the information independently, the codes of the common part are repeated, the mode of displaying the rules is not uniform, and if the common operation part is changed, all services are required to be related to the development of the uniform change, and extra workload is increased.
It would be a very good feature if a universal method for handling user interface rules could be provided that would maintain the consistency of the operation of different business rules and also extend the requirements of personalized rule definitions.
Disclosure of Invention
In order to solve the above problems, the present invention provides a general method for processing a display rule of a user interface.
The invention defines a group of interface standards for the operation of the user interface display rules, and the group of interface standards defines the attributes and operations required by the rule definition, the display rules and the management rules, thereby realizing the operation consistency of the user interface display rules conforming to the interface standards and the personalized setting of the rule definition based on the group of interface standards.
The technical scheme of the invention is as follows:
a method for processing user interface display rules in a generic manner, comprising the steps of:
A. interface standard for defining rule definition
B. Defining presentation rules interface standards
C. Defining management rules interface standards
In step a, to demonstrate the consistency and extensibility of the rules, the rule definitions are to follow a specified interface standard. The interface standard contains two components:
(1) individual rule definitions
(2) List rule definitions
The individual rule definition comprises six attributes, rule identification, rule name, default rule or not, belonging classification, general condition setting and special condition setting. The specific description is as follows:
the list rule definition comprises three attributes, namely a basic rule, a default rule identifier and an operation authority identifier. The specific description is as follows:
in step B, in order to maintain the consistency of the presentation rules, the interface standard to which the presentation rules comply needs to be defined. The interface standard contains two components:
1) presentation rule interface
2) Rule context
The display rule interface is used for displaying all rule lists according to a certain mode, switching among rules, notifying the interface to select rule change and determining whether to start the management rule or not. The method comprises three attribute management rule configurations and rule classifications, which are specifically described as follows:
the "presentation rule interface" includes a "selection rule change" event. This event is triggered when another rule is selected from one rule. The transmitted parameters comprise the current rule identification and whether the current rule content is changed.
The "show rules interface" includes a "manage rules end" event. This event is triggered when the invocation of the management rule is finished. The transmitted parameter is whether the rule is changed, and if the current rule before and after the rule is managed is changed or the content of the current rule is changed, the rule is changed.
The "rule display interface" includes three operations "presentation mode", "obtain specified rule", and "obtain rule list", which are described in detail as follows
The rule context is used for transmitting information of the current rule between the display rule and the management rule and reducing the operation of acquiring data from the server side. Comprises the following specific description:
in step C, in order to manage the consistency and extensibility of the rules, an interface standard to which the management rules conform needs to be defined.
The management rule interface presents the management of all rules consistent with the corresponding display rules in a unified mode, supports the individualized definition of the expression rules according to the rules, modifies the contents of the rules, and adds, stores and deletes the rules.
The management rule interface comprises five attribute rule classifications, default rule contents, independent transmission data, rule definitions when entering the management rules and current rule identifications, and is specifically described as follows:
the management rule interface comprises six methods, namely, the verification of the rule, the loading of the specified rule definition, the acquisition of the rule from the interface, the storage of the rule, the deletion of the rule and the termination of the management rule
The specific description is as follows:
by using the method provided by the invention, aiming at processing the user interface rule, the consistency of the operation of different business rules can be kept, the requirement of personalized rule definition can be expanded, and the stability of the business code is enhanced.
Drawings
FIG. 1 is a diagram of an interface standard definition structure for processing user interface display rules.
Detailed Description
The invention is illustrated in more detail below by way of examples:
the implementation scene is divided into two stages, which are respectively: development phase and operation phase. By taking the scheme of defining the format of the financial statement as an example, the format is personalized to set the icon rule, is different from other service groups, and is convenient for a user to display data through a user-defined icon format.
In the development stage, the financial statement format needs to be realized as 'individual rule definition', and the personalized attribute is set as follows:
the 'display rule interface' is realized, and the personalized attributes are set as follows:
attribute name | Value of |
Communicating data separately | The current document identification and the current data identification are required to be transmitted |
The management rule interface is realized, and the personalized attribute is set as follows:
attribute name | Value of |
Default rule content | Default page attributes, paper type a 4210 × 297, print direction vertical. |
And configuring an acquisition appointed rule and an acquisition rule list of the display rule interface as a server-side acquisition rule interface which is common to the financial group. And reloading the interface updating method, and re-rendering the report according to the chart attribute in the rule definition content.
The 'saving rule' and 'deleting rule' of the 'management rule interface' are configured into a server-side rule operation interface which is common to financial groups.
In the 'rule verification' for realizing the 'management rule interface', personalized condition verification is carried out, the title in the icon attribute is filled in a necessary way, and the length is not more than 30 characters. In the "loading specification rule definition", the personalized condition loads two tab pages, namely a chart and a page, and the icon page and the page tab page are description pages extended according to required attributes. In the interface obtaining rule, personalized condition is obtained, and key value pairs are obtained from an icon and a page tag page, formatted and transmitted to personalized condition attributes.
In the operation stage, the financial report form scheme clicks a display rule button, all rules defined by the user and public are displayed in a pull-down mode, the rules are selected, and the report form is re-rendered according to the chart attributes of the rule definition content. And clicking a management button, uniformly managing the rules on a rule management interface, and creating, storing and deleting the rules. Rules may be renamed to change the binding fields in the icon properties. And closing the management interface after the operation is finished. And judging whether the interface needs to be re-rendered according to whether the rule is changed.
Claims (3)
1. A general method of processing user interface display rules,
comprises the following steps:
A. defining interface standard defined by rule;
B. defining a display rule interface standard;
C. defining a management rule interface standard;
by defining a group of interface standards for the user interface display rule operation, the group of interface standards define the rule definition, the display rule and the attribute and operation required by the management rule, thereby realizing the operation consistency of the user interface display rule conforming to the interface standards and the rule definition personalized setting based on the group of interface standards;
it is characterized in that the preparation method is characterized in that,
in step A, in order to show the consistency and the expansibility of the rule, the rule definition follows the specified interface standard; the interface standard contains two components:
(1) individual rule definitions;
(2) list rule definition;
the single rule definition comprises six attributes, a rule identification, a rule name, a default rule, an affiliated classification, a general condition setting and a special condition setting; the specific description is as follows:
the rule identification is used for uniquely identifying a rule and identifying the rule when the rule is stored and loaded;
the rule name, the basic attribute of the rule, is used for giving a semantic identifier to the rule;
whether the rule is defaulted or not, and basic attributes of the rule, wherein the basic attributes are used for marking whether the current rule is the default rule or not; if the rule is a default rule, the rule is called immediately after the document is loaded, and interface display is adjusted;
the category to which the rule belongs, the basic attribute of the rule, is used for appointing the category to which the current rule belongs; the user rules can be classified, and the rules which can be operated by the user can be determined by matching with the user authority;
the general condition setting is used for storing the general condition setting condition contained in the rule and is a set; if it is null, it is that the rule does not contain a general condition setting;
setting personalized conditions, which are an object list of key value pairs, for storing the setting conditions of the personalized conditions contained in the rules, wherein the conditions can be reclassified to correspond to more detailed setting classification; if not, it is the rule contains a special condition setting; can be handled by a personalized interface program in the management rules;
the list rule definition comprises three attributes, namely a basic rule, a default rule identifier and an operation authority identifier; the specific description is as follows:
the basic rule is used for recording basic attributes of all the rules and is a set;
default rule identification, basic attribute of the rule, and is used for providing a semantic identification for the rule;
the operation authority identifier is used for designating the identifier of the operation authority of the current user to the rule; corresponding to the rule classification; if the permission identification is null, all rule permissions can be operated.
2. The method according to claim 1, wherein in step B, in order to maintain the consistency of the presentation rule, an interface standard to be followed by the presentation rule is defined; the interface standard contains two components:
(1) the rule interface is presented in a form of a rule interface,
(2) a rule context;
the display rule interface is used for displaying all rule lists according to a certain mode, switching among rules, notifying the interface to select rule changes and determining whether to start the management rules or not; the method comprises three attribute management rule configurations and rule classifications, which are specifically described as follows:
the display rule identifier is used for uniquely identifying the calling of one display rule; the method is used for identifying that the display rule needs to be called for many times on the same document interface;
management rule configuration, namely configuring the initialization of a management rule page; if the configuration is null, only the rule function is exposed;
the rules are classified, and the rules can determine which rules can be operated by the user according to the classification and the user authority; unconfigured, classified default to system, public and personal;
data are transmitted independently, and the rule only comprises details of interface display conditions; in the rule acquisition process, information of different services requiring rule dimensionality confirmation needs to be transmitted separately;
a presentation rule interface, including a "selection rule change" event; this event is triggered when another rule is selected from one; the transmitted parameters comprise current rule identification and whether the content of the current rule is changed; calling an interface updating method according to the current rule definition;
a display rule interface which comprises a management rule ending event; when the calling of the management rule is finished, the event is triggered; the transmitted parameter is whether the rule is changed, if the current rule before and after the rule is managed is changed or the content of the current rule is changed, the rule is changed; in the event, determining whether to call an interface updating method according to whether to change;
a rule presentation interface comprising four operations: the method comprises the following specific steps of presenting, updating an interface, acquiring a specified rule and acquiring a rule list, wherein the specific steps are as follows:
the presentation mode is used for determining the display mode of the display rule on the user interface and keeping consistency;
updating the interface, and customizing the display mode of the interface according to the content of the current rule; expanding and displaying personalized;
acquiring an appointed rule, wherein the appointed rule acquired from a server side is appointed and comprises an identification parameter of a rule definition interface, and a return value comprises a rule definition type; then modifying the current rule identification in the rule context and triggering a selection rule change event;
acquiring a rule list, wherein the rule list is acquired from a server terminal in a designated mode, comprises a parameter of 'data transmission independently', and returns a value 'list rule definition' type or is null; then, modifying a rule list and an operation authority in the rule context, and acquiring a rule making method according to a default rule identifier in a return value;
the rule context is used for transmitting information of the current rule between the display rule and the management rule and reducing the operation of acquiring data from the server side; comprises the following specific description:
the display rule identification is used for distinguishing the current display rule when a plurality of display rules exist;
the "list rule definition" type is used to mark the content of the list of rules contained under the identity of the presentation rule.
3. The method according to claim 1, wherein in step C, in order to manage the consistency and extensibility of the rule, an interface standard to be followed by the management rule needs to be defined;
the management rule interface is used for presenting a management rule interface in a unified mode, managing all rules, supporting the individualized definition of the expression rules according to the rules, modifying the contents of the rules, and adding, storing and deleting the rules;
the management rule interface comprises five attribute rule classifications, default rule contents, independent transmission data, rule definitions when entering the management rules and current rule identifications, and is specifically described as follows:
the rules are classified, and the rules can determine which rules can be operated by the user according to the classification and the user authority; unconfigured, classified default to system, public and personal;
default rule content, according to the default rule content and the new content, forming a complete rule definition for creating a new rule;
data are transmitted independently, and the rule only comprises details of interface display conditions; however, when operating a rule, different services require special data;
the rule definition when entering the management rule identifies the current rule definition when entering the management rule; the rule comparison module is used for comparing the rules and judging whether the rules are changed;
a current rule identifier for identifying which rule is currently located;
the management rule interface comprises six methods, namely, the verification of a rule, the loading of a specified rule definition, the acquisition of the rule from an interface, the acquisition of the rule from the interface, the storage of the rule, the deletion of the rule and the termination of the management rule;
the specific description is as follows:
the rule is verified, and the content of the rule needs to be verified; the method comprises general condition verification and personalized condition verification; the personalized condition verification sets an extensible specific verification mode according to the personalized condition;
loading a specified rule definition, and presenting the rule definition in an interface according to the definition of the current rule, wherein the rule definition comprises universal condition loading and personalized condition loading; loading general conditions, namely adopting basic attributes and general condition settings defined by a general interface loading rule; personalized condition loading is carried out according to personalized condition setting defined by the rule, and a specific loading interface is expanded for processing; it contains a "rule definition" parameter, no return value;
acquiring rules from an interface, acquiring rule definitions according to the interface presentation and principles, wherein the rule definitions comprise general condition acquisition and personalized condition acquisition;
the storage rule is used for specifying a mode of storing the rule at the server side, comprises two parameters of 'rule definition' and 'single transmission data', and returns a 'list rule definition'; changing the current rule identifier, and then loading the specified rule definition;
the deletion rule is used for specifying a mode of the server-side deletion rule and comprises two parameters of a rule definition identifier and data independent transmission;
finishing the management rule, and judging whether the rule is changed or not according to the rule definition when entering the management rule, the current rule identification attribute and the interface rule acquisition method; and triggering the management rule end event of the display rule interface to adjust the user interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710066958.4A CN106815030B (en) | 2017-02-07 | 2017-02-07 | Universal method for processing user interface display rule |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710066958.4A CN106815030B (en) | 2017-02-07 | 2017-02-07 | Universal method for processing user interface display rule |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106815030A CN106815030A (en) | 2017-06-09 |
CN106815030B true CN106815030B (en) | 2020-04-24 |
Family
ID=59112379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710066958.4A Active CN106815030B (en) | 2017-02-07 | 2017-02-07 | Universal method for processing user interface display rule |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815030B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937923A (en) * | 2012-10-24 | 2013-02-20 | 浪潮集团山东通用软件有限公司 | Method for automatically storing state of user interface |
CN103069383A (en) * | 2010-06-02 | 2013-04-24 | 艾伦智能科技公司 | Device having graphical user interfaces and method for developing multimedia computer applications |
CN103164204A (en) * | 2011-12-15 | 2013-06-19 | 北京新媒传信科技有限公司 | Generation method and system of user interfaces based on Symbian system |
CN105930064A (en) * | 2010-09-30 | 2016-09-07 | 苹果公司 | Method And System Of Managing Items In User Interface And Calculating Device |
-
2017
- 2017-02-07 CN CN201710066958.4A patent/CN106815030B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103069383A (en) * | 2010-06-02 | 2013-04-24 | 艾伦智能科技公司 | Device having graphical user interfaces and method for developing multimedia computer applications |
CN105930064A (en) * | 2010-09-30 | 2016-09-07 | 苹果公司 | Method And System Of Managing Items In User Interface And Calculating Device |
CN103164204A (en) * | 2011-12-15 | 2013-06-19 | 北京新媒传信科技有限公司 | Generation method and system of user interfaces based on Symbian system |
CN102937923A (en) * | 2012-10-24 | 2013-02-20 | 浪潮集团山东通用软件有限公司 | Method for automatically storing state of user interface |
Also Published As
Publication number | Publication date |
---|---|
CN106815030A (en) | 2017-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI663553B (en) | Method and device for generating contract | |
CN109863527B (en) | Method and system for server-side rendering of rendered local content | |
US9489430B2 (en) | System and method for identifying applicable third-party applications to associate with a file | |
EP3443466B1 (en) | Document automation | |
WO2019076062A1 (en) | Function page customization method and application server | |
US20040205609A1 (en) | System and method for generating and formatting a publication | |
CN111666123A (en) | Page theme control method and system and computer equipment | |
US20050193009A1 (en) | System and method for hierarchical data document modification | |
CN110598107A (en) | Management method of query system and computer storage medium | |
CN105138532A (en) | Method, device and system for processing service data | |
CN111858617A (en) | User searching method and device, computer readable storage medium and electronic equipment | |
JP4959501B2 (en) | Information processing apparatus, information processing method, and program | |
CN106815030B (en) | Universal method for processing user interface display rule | |
US20030023636A1 (en) | System and method for generating and distributing a publication | |
JP6994138B2 (en) | Information management device and file management method | |
US8578268B2 (en) | Rendering electronic documents having linked textboxes | |
US20090049015A1 (en) | Data management device and terminal device | |
JP6948492B2 (en) | Information management device and file management method | |
JP2010009412A (en) | Information processor, electronic form management system, form retrieval method therefor, and program | |
US11971852B2 (en) | File management device, file management method, and non-transitory computer readable medium | |
JP2016212626A (en) | System for utilizing input of character group including external characters and variant characters via web | |
CN110209982A (en) | Page data processing and device | |
CN115718825B (en) | Method and device for determining duration label and electronic equipment | |
EP1603052B1 (en) | Representing spreadsheet document content | |
WO2020240831A1 (en) | File management device, file management method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |