Enumeration type design method and device

A technology of enumeration types and design methods, applied in the field of data processing, can solve problems such as low development efficiency, repeated code, bugs, etc., to achieve the effect of improving development efficiency, concise code, and reducing the rate of human error

Active Publication Date: 2020-07-03
SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above processing method has the following disadvantages: after the option of the same enumeration variable changes, every file related to the use of the enumeration must be modified, which is easy to miss and cause bugs; there are many repeated codes, poor scalability, and development efficiency lower

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Enumeration type design method and device
  • Enumeration type design method and device
  • Enumeration type design method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Below, the present application will be further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, on the premise of not conflicting, the various embodiments described below or the technical features can be combined arbitrarily to form a new embodiment. .

[0067] see figure 1 , the first embodiment provides an enumeration type design method, including steps S110-S140.

[0068] In some computer programming languages ​​such as C# or C++, java, the enumeration type is a basic data type rather than a structural data type, while in a computer programming language such as C language, the enumeration type is a structural data type. The enumeration type is used to declare a group of named constants. When a variable has several possible values, it can be defined as an enumeration type. The definition refers to listing the values ​​of the variables one by one. The value of the variable is only Limited to the ran...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an enumeration type design method and device, electronic equipment and a computer storage medium, and the method comprises the steps: obtaining enumeration information which comprises an enumeration variable, an enumeration value and an enumeration description; executing the written script to generate an intermediate file containing enumeration information; packaging the public method to a public method file by utilizing the intermediate file; and quoting the intermediate file, and realizing a corresponding enumeration function by using a public method in the public method file. According to the method, enumeration-related processing scripts are developed in the early development stage, and if enumeration information is adjusted in the later development process, only script files need to be executed again, and related intermediate files are generated again; when an enumeration function needs to be used, a related intermediate file is quoted, and an encapsulatedpublic method is used in a code, so that the enumeration function corresponding to the public method can be realized, the development efficiency is improved, and different reports, page presentation and data related to the same enumeration are highly unified.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to enumeration type design methods and devices, electronic equipment, and computer storage media. Background technique [0002] The company's background report system will involve the synchronization of enumeration information when it is presented on the front end. For example, the front-end presentation is a drop-down box filter item, or the enumeration value matching conversion involved in the presentation of the report content field. [0003] For the drop-down box filter items, the usual practice is to directly list all the option content in the front-end file such as the html file, or receive the data required by the option from the back-end interface, and then process and generate it through the method in js. For the conversion of enumeration value matching in the report content field, the back-end processing is generally processed through conditional expr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 江惠朋
Owner SHANGHAI DONGPU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products