CN112711414B - Form interface adaptation display method and device and storage medium - Google Patents

Form interface adaptation display method and device and storage medium Download PDF

Info

Publication number
CN112711414B
CN112711414B CN202011606327.5A CN202011606327A CN112711414B CN 112711414 B CN112711414 B CN 112711414B CN 202011606327 A CN202011606327 A CN 202011606327A CN 112711414 B CN112711414 B CN 112711414B
Authority
CN
China
Prior art keywords
fields
different
terminal
interface
attributes
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
Application number
CN202011606327.5A
Other languages
Chinese (zh)
Other versions
CN112711414A (en
Inventor
王继东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202011606327.5A priority Critical patent/CN112711414B/en
Publication of CN112711414A publication Critical patent/CN112711414A/en
Application granted granted Critical
Publication of CN112711414B publication Critical patent/CN112711414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a form interface adaptation display method, a form interface adaptation display device and a storage medium, which are used for solving the technical problems of complex process and high cost of the existing ERP forms with the same function designed in different terminals. Extracting public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes to a preset second template; the first form is suitable for the first terminal interface; the public attribute is an attribute which is required when the forms with the same function are suitable for different terminal interfaces; presetting a second template as a form layout template suitable for a second terminal interface; filling the special attribute of the second form to be processed into a preset second template to obtain a second form suitable for a second terminal interface; the first terminal type is different from the second terminal type; the first form performs the same function as the second form. By the method, the form development process is simplified, and the development cost is reduced.

Description

Form interface adaptation display method and device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a form interface adaptation display method, apparatus, and storage medium.
Background
ERP (Enterprise Resource Planning) is an Enterprise management information system that can provide integration of real-time information across regions, departments, and even companies. With the overall development of the mobile internet, the mobile phone has become a mainstream computing platform, and most of the traditional ERP software is PC-side software, which cannot meet the requirement of sharing mobile office.
Although the existing method for specially developing the mobile client for the ERP software can meet the requirement of mobile office, the existing method involves more technical stacks, such as a front-end technology, a storage technology, an architecture technology and the like, and the development is complex and tedious. In addition, when the forms with the same functions are developed on the PC side and the mobile side, the multiplexing degree of required codes is low. Therefore, the form of the same type of service is easily generated, and different development needs to be performed for different use terminals for many times. So that the development workload is large and the development cost is also high.
Disclosure of Invention
The embodiment of the application provides a form interface adaptation display method, a form interface adaptation display device and a storage medium, which are used for solving the technical problems that the existing ERP forms with the same function are designed in different terminals, the process is complex, and the cost is high.
On one hand, the embodiment of the application provides a form interface adaptation display method. Extracting a plurality of public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes into a preset second template; the first form is suitable for the first terminal interface; the public attributes are the attributes which the forms with the same function need to have when being suitable for different terminal interfaces; presetting a second template as a form interface layout template suitable for a second terminal interface; filling the specific attributes in the second form to be configured into the preset second template to obtain a second form suitable for a second terminal interface; wherein the unique attribute is an attribute applicable to the second form but not applicable to the first form; the first terminal type is different from the second terminal type; the first form and the second form implement the same functionality.
According to the embodiment of the application, the public attribute in the first form is copied and inherited to the preset second template, so that the number of basic configurations in the second form is reduced, and the repetitive work of developers in the process of building different forms is reduced. Meanwhile, the specific attribute belonging to the second form is added to the preset second template. Therefore, the embodiment of the application achieves the purpose of establishing the forms aiming at different terminal interfaces according to the sizes of the different terminal interfaces and the operating systems of different terminals on the basis of using the public attributes to the maximum extent.
In an implementation manner of the present application, before extracting a plurality of common attributes of a plurality of fields in a first form, the method further includes: constructing a form parameter configuration structure corresponding to a second form through fields required to be used in the second form to be configured; the form parameter configuration structure comprises any one or more of the following items: fields in the second form to be configured and attributes corresponding to the fields; and determining the public attributes in the second form to be configured through the form parameter configuration structure.
According to the embodiment of the application, the fields used in the second form are firstly constructed into the form parameter configuration structure, and different fields in the second form are clearly divided, so that the form is conveniently constructed. And through the established form parameter configuration structure, the contents belonging to the public attributes in the second form can be clarified, so that the common attributes of the forms are copied and inherited by using the form model. Meanwhile, by constructing a form parameter configuration structure, the specific attribute of the field in the second form can be determined, so that the development process is simpler and more clear.
In an implementation manner of the present application, before extracting a plurality of common attributes of a plurality of fields in a first form, the method further includes: determining a plurality of table structures corresponding to a plurality of fields in a first form in a form database according to the plurality of fields in the first form; extracting a plurality of table structures to form a first form model; and the controls on different terminal interfaces in the first form model correspond to the database fields.
According to the embodiment of the application, the form model is established by extracting the corresponding table structures of the first form in the form database. The method and the device enable developers to directly extract and use the fields in the form model when different forms are developed for different types of terminals such as a tablet, a mobile phone and the like. The process of retrieving the required fields in the form database is simplified. By establishing a form model, the use of a plurality of terminals is realized, the development steps are simplified, and the development speed of different forms is improved.
In an implementation manner of the present application, after the table structures are extracted and built into the first form model, the method further includes: determining a number of different fields in the first form model; generating a plurality of corresponding access codes according to a plurality of different fields so as to extract the same field in a first form model when different terminals configure forms with the same function; the different fields correspond to different access codes respectively.
According to the method and the device, the plurality of access codes are generated for the plurality of fields in the form model, and the fields are directly extracted from the model by the access codes, so that the fields are more simply and conveniently acquired. And the generated access code can reduce the code amount, so that developers do not need to go to the form database to search for required fields, thereby improving the development efficiency.
In an implementation manner of the present application, after filling the specific attribute in the second form to be configured into the preset second template, the method further includes: packaging the api of a plurality of different types of terminals into an api interface with a consistent code writing method; and configuring the forms in the interfaces of the different types of terminals through the api interfaces with consistent writing methods and different form parameters corresponding to the different types of terminals.
The embodiment of the application adopts the api of different types of terminals and packaging the interface into an api interface with a consistent code format and writing method. Therefore, developers do not need to pay attention to the terminal type of the current form and only need to call an interface to write corresponding business logic. Therefore, the code multiplexing is realized, and the repeated development is reduced.
In an implementation manner of the present application, before extracting a plurality of common attributes of a plurality of fields in a first form, the method further includes: determining a plurality of fields in the first form, and respectively corresponding a plurality of controls on a first terminal interface; setting parameters of attributes corresponding to the controls and the layout of the first form respectively to obtain the first form suitable for the first terminal interface; and carrying out attribute configuration on a second form applicable to a second terminal interface through the public attributes in the first form applicable to the first terminal interface.
In one implementation of the present application, the method further comprises: configuring forms in a plurality of different terminal interfaces through a unified modular form designer; and through the first form model, common field configuration is carried out on forms which are suitable for different types of terminal interfaces and have the same function.
In one implementation of the present application, the method further comprises: presetting a plurality of different form layout templates according to a plurality of different types of terminal interfaces; and configuring fields and field attributes of the forms suitable for different terminals through different form layout templates.
According to the method and the device, the layout templates of the standards under different terminals are prefabricated for developers to select, and the developers can directly modify the preset templates. The method not only simplifies the form development process, but also solves the problem that the common attribute cannot be directly copied and inherited due to different forms corresponding to different terminal types.
On the other hand, an embodiment of the present application further provides a form interface adaptation display device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: extracting a plurality of public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes into a preset second template; the first form is suitable for a first terminal interface, the public attribute is an attribute which is required to be possessed when the forms with the same function are suitable for different terminal interfaces, and the preset second template is a form interface layout template suitable for a second terminal interface; filling the specific attributes in the second form to be configured into a preset second template to obtain a second form suitable for a second terminal interface; wherein the unique attribute is an attribute applicable to the second form but not applicable to the first form; the first terminal type is different from the second terminal type; the first form performs the same function as the second form.
On the other hand, an embodiment of the present application further provides a storage medium, including: the storage medium is a non-volatile computer-readable storage medium storing at least one program, each of the programs including instructions that, when executed by a terminal, cause the terminal to perform the above-described method.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a form interface adaptation display method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a form interface adaptation provided by an embodiment of the present application;
FIG. 3 is a block diagram of a form development process provided by an embodiment of the present application;
fig. 4 is a schematic internal structural diagram of a form interface adaptation apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The traditional method for developing the mobile terminal for the ERP software is mainly used for the PC terminal, and the ERP software can be developed on different types of terminal interfaces, such as a tablet, a mobile phone and a computer, but the development is difficult and the cost is high. Moreover, when form development is performed on different terminals, various technologies such as front end and storage are involved, development is difficult, and popularization and use are difficult.
In order to solve the above problem, embodiments of the present application provide a form interface adaptation display method, apparatus, and storage medium. The common attributes in the ERP form at the PC end are extracted and directly inherited and copied to the template of the form to be developed, so that the code amount is reduced to the maximum extent. In addition, the embodiment of the application also independently extracts the table structure in the form database corresponding to the PC end form to establish the form model, thereby achieving the purposes of one-time form modeling and multiple terminal use. Meanwhile, the frequency of continuously searching the required fields in the form database in the form opening process can be reduced, and the development efficiency is improved. The embodiment of the application also adds the special attributes of different terminals into the template, so that the form has pertinence, and the practicability is enhanced.
The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a form interface adaptation display method according to an embodiment of the present application. As shown in FIG. 1, the form interface adaptation display method includes the following steps:
s101, the terminal processor establishes a form model.
In an embodiment of the application, a plurality of table structures corresponding to a plurality of fields in a PC-side form to be built in a form database are determined according to the plurality of fields in the PC-side form to be built.
Specifically, according to fields used in the PC side form, a plurality of corresponding table structures are found in the form database. The corresponding table structure only contains fields used in the PC side table. All fields in the corresponding table structure need to be determined in the embodiment of the application.
In one embodiment of the present application, a number of table structures in the form database are extracted and organized into a first form model. And the controls on different terminal interfaces in the first form model correspond to the database fields.
Specifically, all fields in a plurality of table structures found in the form database are extracted to form a first form model. When a developer develops different forms for different terminal interfaces, the same fields can be directly extracted from the established first form model for multiple times because the functions of all the forms are the same. The purpose that one form is established and a plurality of different terminals can be used is achieved.
For example, when a form for verifying the identity of a user is developed, the form on the PC side or the mobile side needs to complete the function of verifying the identity of the user. Namely, the fields of age, authentication mode, city of the user and the like can be shared. Therefore, the fields which can be shared are extracted to establish the first form model. When different terminals develop forms with the same function, fields can be directly extracted from the established first form.
According to the method and the device, the purpose of directly extracting and using the fields in the form model is achieved when developers develop different forms for different types of terminals such as a tablet computer, a mobile phone and the like. The process of retrieving the required fields in the form database is simplified. Simplifying the development steps and improving the development speed of different forms.
In one embodiment of the present application, a number of different fields in the first form model are determined, and a number of corresponding access codes are generated based on the number of different fields. When different terminals configure forms with the same function, the same field is extracted from the first form model, and the different fields respectively correspond to different access codes.
Specifically, when extracting fields from the created first form, different codes are required to extract the fields. In order to reduce the code amount of the developer, the embodiment of the present application sets a corresponding access code for each field. The corresponding parameters in the plurality of access codes are different, and developers can directly call the required fields in the form model according to the different parameters. At the same time, the access codes are also applicable to different terminal types. Therefore, when a developer develops the form on any equipment, the same access code can be used, and the code amount is greatly reduced.
And S102, the form interface adaptation display device establishes a PC-end ERP form.
In an embodiment of the application, an ERP form applicable to a PC-side interface is established, and parameter setting is performed on the ERP form layout of the PC-side interface.
In an embodiment of the application, a plurality of fields in a form at a PC end are determined, and a plurality of controls corresponding to the fields on an interface at the PC end are determined. And carrying out parameter setting on the attributes respectively corresponding to the plurality of controls and the layout of the PC side form to obtain a first form suitable for the PC side interface.
In one embodiment of the application, fields required for establishing an ERP form of a PC side interface are called in a form database, and a control on a front-end page is generated for each field. And then carrying out parameterization setting on the generated control, and finishing the ERP form development of the PC side interface.
Table 1 shows common parameters and related attributes in the process of establishing an ERP form of a PC-side interface in the embodiment of the present application.
Parameter(s) Correlation attributes
Control type Input box, drop-down box, date box, etc
Width of control 10% by weight of 50% or the like
Control verification Must fill, ID card, bank card number, etc
Control formatting Date formatting, number formatting, custom formatting
TABLE 1
As shown in table 1, when a form on the PC side is developed, it is necessary to set a control corresponding to each field in the form. For example, a control for establishing an authentication function, the type of which needs to be set, may be selected as an input box or a drop-down box. The size of the control needs to be set, and meanwhile, the verification mode needs to be set, for example, identity card verification or bank card number verification. When the user logs in the form to fill in the identity, the user can fill in the own identity card or the bank card number in the input box to verify the own identity.
In an embodiment of the present application, it is further required to perform parameter setting on the overall layout of the form in the interface, so that the overall layout of the form set by the parameter setting device is more suitable for the size of the interface of the terminal to increase the comfort of the user.
Table 2 shows the overall layout parameters of the form commonly used in the process of establishing the ERP form of the PC-side interface in the embodiment of the present application.
Type of layout Left-right layout, top-bottom layout, etc
Form toolbar Toolbar buttons, button styles, etc
Properties of a layout area in a form Height, width, frame, etc
TABLE 2
As shown in table 2, when the form on the PC side is developed, the layout of the form can be reset. For example, the height and width of the form may be set to better conform to the configuration of interfaces of different sizes. Meanwhile, the style of the button in the form toolbar and the function of the button can be set, and the style of the button is modified, so that the form has style characteristics, and the use experience of a user is improved.
S103, extracting public attributes from the PC side form by the form interface adaptation display device, and filling the extracted public attributes into a preset second template.
In an embodiment of the application, a plurality of different form layout templates are preset according to a plurality of different types of terminal interfaces. And configuring fields and field attributes of the forms suitable for different terminals through different form layout templates.
Specifically, in order to simplify the development workload of developers, different form layout templates are preset for interfaces corresponding to different types of terminals. For example, a corresponding form layout template may be set for the PC side, a corresponding form layout template may be set for the mobile phone side, and similarly, a corresponding form layout template may be set for the tablet. According to the preset template, modification can be directly carried out in the template, so that the template is suitable for different terminals.
In an embodiment of the application, a plurality of public attributes of a plurality of fields in a PC side form are extracted, and the extracted public attributes are copied and inherited to a preset second template. The public attributes are the attributes which the forms with the same function need to have when the forms are suitable for different terminal interfaces. And presetting a second template as a form interface layout template suitable for a second terminal interface.
In an embodiment of the present application, the second terminal is a terminal of a type different from that of the PC terminal, and therefore, the second terminal may be selected as a mobile phone terminal. In the following description of the second terminal, the mobile phone end is taken as an example for description.
Specifically, the public attributes in the PC-side form are extracted, and when the mobile phone-side form is established, part of the contents are the same as those of the PC-side form. Therefore, the extracted public attributes can be directly called, and the called public attributes are added to the corresponding templates of the mobile phone terminal. The repeated work of the developer for building different terminal forms is reduced.
For example, also taking the example of establishing a user authentication form, the public attributes in the PC side may include: input box, ID card, bank card number and other attributes. Therefore, the public attributes can be extracted, and when the mobile phone end user identity authentication form is established, the proper attributes are selected from the extracted public attributes and directly inherited and copied to the preset second template.
And S104, filling the special attributes of the mobile phone end form into a preset second template by the form interface adaptation display device.
In an embodiment of the present application, a form parameter configuration structure corresponding to a second form is constructed through fields required to be used in the second form to be configured. The form parameter configuration structure comprises any one or more of the following items: and fields in the second form to be configured and attributes corresponding to the fields.
In one embodiment of the application, the public attributes in the second form to be configured are determined by constructing a form parameter configuration structure. And adding the attribute which is the same as the common attribute extracted by the PC end into the prefabricated second template. And carrying out attribute configuration on a second form suitable for a mobile phone terminal interface through the public attributes in the first form of the PC side interface.
Specifically, in the process of establishing the user authentication form at the mobile phone end, the field and the attribute required by the form at the mobile phone end are firstly established to form a form parameter configuration structure, and the configuration of the parameters required by the form can be embodied in a chart form. For example, fields such as age, verification mode, city to which the user belongs, and the like, may be displayed through the table structure, and attributes of the control corresponding to the used fields, such as an input box, a width, an identity card, and the like, may also be displayed through the table structure.
According to the embodiment of the application, the contents belonging to the public attributes in the second form can be determined by establishing the form parameter configuration structure, so that the common attributes are copied and inherited in the form model. Meanwhile, by constructing a form parameter configuration structure, the specific attribute of the field in the second form can be determined, so that the development process is simpler and more clear.
In an embodiment of the application, the specific attributes in the to-be-configured form at the mobile phone end are filled into the preset second template, so as to obtain a second form applicable to the interface at the mobile phone end. The special attribute is an attribute suitable for a form at a mobile phone end but not suitable for a form at a PC end.
For example, because the interface of the mobile phone end is small, all the form contents in the form of the PC end interface cannot be displayed completely, and therefore the form of the mobile phone end has a hidden display control. Or the list at the mobile phone end is provided with a display address book control. According to the embodiment of the application, the special attribute of the mobile phone terminal is added into the prefabricated second template, so that the mobile phone terminal can be adapted to the mobile phone terminal interface.
And S105, the form interface adaptation display device packages different types of terminals api into api interfaces with consistent code format writing methods.
In one embodiment of the application, the api of a plurality of different types of terminals is packaged into an api interface with a consistent code writing method. And configuring the forms in the interfaces of the different types of terminals through the api interfaces with consistent writing methods and consistent code styles and different form parameters corresponding to the different types of terminals.
Specifically, the api of different types of terminals is encapsulated into the api interface with the consistent function name and the consistent parameter of the code. Developers do not need to pay attention to the terminal type of the current form, and only need to call an interface to write corresponding business logic. Therefore, the code multiplexing is realized, and the repeated development is reduced.
Fig. 2 is a block diagram of a form interface adaptation display flow provided by an embodiment of the present application.
In one embodiment of the application, according to the function of the developed form, the table structure corresponding to the required field is extracted from the form database to establish a form database structure model. And calling required fields from the established form database structure model to establish a PC end form.
In one embodiment of the application, the public attributes of the fields in the PC terminal form interface are respectively copied and inherited to the layout templates corresponding to the mobile form interface and other terminal interfaces. Therefore, the workload of developers is reduced, and the form development efficiency is improved.
In one embodiment of the application, the unique attributes of different types of terminals are added to the corresponding layout templates, and a mobile terminal form format and other terminal form formats are established. And configuring different forms by utilizing an api interface with a consistent code format and writing method and a related service logic script. And obtaining the forms with the same function in different types of terminal interfaces. For example, a mobile-side form, a PC-side form, and other terminal forms may be available.
Fig. 3 is a block diagram of a form development process according to an embodiment of the present application.
In one embodiment of the present application, the fields required for the form will be built, and the corresponding table structure will be found in the form database. And extracting the corresponding table structure to establish a form model.
In one embodiment of the present application, the required fields in the form model, as well as the preset form styles, are configured, for example: font size, border length, background color, etc. And elements in the unified UI component, such as style of page controls, size of buttons, and the like. The form is put into a unified form designer for design generation.
In one embodiment of the application, the form applicable to different terminals can be generated according to different elements in the form designer.
Fig. 4 is a schematic internal structural diagram of a form interface adaptation apparatus according to an embodiment of the present application.
The form interface adaptation device provided by the embodiment of the application comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
extracting a plurality of public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes into a preset second template; the first form is suitable for a first terminal interface, the public attribute is an attribute which is required to be possessed when forms with the same function are suitable for different terminal interfaces, and the preset second template is a form interface layout template suitable for a second terminal interface.
Filling the specific attributes in the second form to be configured into the preset second template to obtain a second form suitable for a second terminal interface; wherein the specific attribute is an attribute that is applicable to the second form but not applicable to the first form.
The first terminal type is different from the second terminal type; the first form and the second form implement the same functionality.
A storage medium provided in an embodiment of the present application is a non-volatile computer-readable storage medium, where at least one program is stored in the non-volatile computer-readable storage medium, and each program includes instructions, and the instructions, when executed by a terminal, cause the terminal to perform the method described above.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (5)

1. A form interface adaptation display method is characterized by comprising the following steps:
extracting a plurality of public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes into a preset second template; wherein the first form is suitable for a first terminal interface; the public attributes are the attributes which the forms with the same function need to have when being suitable for different terminal interfaces; the preset second template is a form interface layout template suitable for a second terminal interface;
before extracting the public attributes of the fields in the first form, the method further includes:
determining a plurality of table structures corresponding to a plurality of fields in the first form in a form database according to the plurality of fields in the first form; extracting the table structures to form a first form model; the control on different terminal interfaces in the first form model corresponds to the fields of the form database; determining a plurality of fields in the first form and a plurality of controls corresponding to the fields on a first terminal interface respectively; setting parameters of attributes corresponding to the controls and the layout of the first form respectively to obtain a first form suitable for a first terminal interface; performing attribute configuration on a second form applicable to a second terminal interface through the public attribute in the first form applicable to the first terminal interface;
after the table structures are extracted and built into a first form model, the method further comprises:
determining a number of different fields in the first form model; generating a plurality of corresponding access codes according to the different fields so as to extract the same field in the first form model when different terminals configure forms with the same function; the different fields respectively correspond to different access codes;
constructing a form parameter configuration structure corresponding to a second form through fields required to be used in the second form to be configured; the form parameter configuration structure comprises any one or more of the following items: fields in the second form to be configured and attributes corresponding to the fields; determining the public attribute in the second form to be configured according to the form parameter configuration structure;
filling the specific attributes in the second form to be configured into the preset second template to obtain a second form suitable for a second terminal interface; wherein the unique attribute is an attribute that is applicable to the second form but not applicable to the first form;
after the specific attributes in the second form to be configured are filled in the preset second template, the method further includes:
packaging the api of a plurality of different types of terminals into an api interface with a consistent code format writing method; configuring forms in a plurality of different types of terminal interfaces through the api interfaces with the consistent writing method and different form parameters corresponding to different types of terminals;
the type of the first terminal is different from the type of the second terminal; the first form and the second form implement the same functionality.
2. The form interface adaptation presentation method of claim 1, the method further comprising:
configuring forms in a plurality of different terminal interfaces through a unified modular form designer; and is
And carrying out public field configuration on forms with the same function and suitable for different types of terminal interfaces through the first form model.
3. The form interface adaptation presentation method of claim 1, the method further comprising:
presetting a plurality of different form layout templates according to a plurality of different types of terminal interfaces;
and configuring fields and field attributes of the forms suitable for different terminals through the different form layout templates.
4. A form interface adaptation presentation device is characterized by comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
extracting a plurality of public attributes of a plurality of fields in the first form, and copying and inheriting the extracted public attributes into a preset second template; the first form is suitable for a first terminal interface, the public attribute is an attribute which is required to be possessed when forms with the same function are suitable for different terminal interfaces, and the preset second template is a form interface layout template suitable for a second terminal interface;
before extracting a plurality of public attributes of a plurality of fields in the first form, the method further comprises:
determining a plurality of table structures corresponding to a plurality of fields in the first form in a form database according to the plurality of fields in the first form; extracting the table structures to form a first form model; the control on different terminal interfaces in the first form model corresponds to the fields of the form database; determining a plurality of fields in the first form, and respectively determining a plurality of corresponding controls on a first terminal interface; setting parameters of attributes corresponding to the controls and the layout of the first form respectively to obtain a first form suitable for a first terminal interface; performing attribute configuration on a second form applicable to a second terminal interface through the public attribute in the first form applicable to the first terminal interface;
after the table structures are extracted and built into a first form model, the method further comprises the following steps:
determining a number of different fields in the first form model; generating a plurality of corresponding access codes according to the different fields so as to extract the same field in the first form model when different terminals configure forms with the same function; the different fields respectively correspond to different access codes;
constructing a form parameter configuration structure corresponding to a second form through fields required to be used in the second form to be configured; the form parameter configuration structure comprises any one or more of the following items: fields in the second form to be configured and attributes corresponding to the fields; determining the public attribute in the second form to be configured according to the form parameter configuration structure;
filling the specific attributes in the second form to be configured into the preset second template to obtain a second form suitable for a second terminal interface; wherein the unique attribute is an attribute that is applicable to the second form but not applicable to the first form;
after the filling the specific attribute in the second form to be configured into the preset second template, the method further includes:
packaging the api of a plurality of different types of terminals into an api interface with a consistent code format writing method; configuring forms in a plurality of different types of terminal interfaces through the api interfaces with the consistent writing method and different form parameters corresponding to different types of terminals;
the type of the first terminal is different from the type of the second terminal; the first form and the second form implement the same functionality.
5. A storage medium, characterized in that it is a non-volatile computer-readable storage medium storing at least one program, each of said programs comprising instructions which, when executed by a terminal, cause said terminal to carry out the method according to any one of claims 1-3.
CN202011606327.5A 2020-12-28 2020-12-28 Form interface adaptation display method and device and storage medium Active CN112711414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011606327.5A CN112711414B (en) 2020-12-28 2020-12-28 Form interface adaptation display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011606327.5A CN112711414B (en) 2020-12-28 2020-12-28 Form interface adaptation display method and device and storage medium

Publications (2)

Publication Number Publication Date
CN112711414A CN112711414A (en) 2021-04-27
CN112711414B true CN112711414B (en) 2022-10-11

Family

ID=75547100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011606327.5A Active CN112711414B (en) 2020-12-28 2020-12-28 Form interface adaptation display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112711414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064169A (en) * 2021-09-26 2022-02-18 安徽中科新辰技术有限公司 Data display method and device and storage medium
CN114995805B (en) * 2022-08-08 2022-11-08 安徽商信政通信息技术股份有限公司 Paperless official document handling method and paperless official document handling system for custom official document template

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789382A (en) * 2012-06-28 2012-11-21 用友软件股份有限公司 System and method for generating and running form
CN103809975A (en) * 2014-02-19 2014-05-21 浪潮软件股份有限公司 Method for achieving intelligent cloud forms
CN108287741A (en) * 2017-12-28 2018-07-17 深圳市创梦天地科技股份有限公司 A kind of method and apparatus of structure administration interface
CN110221832A (en) * 2019-04-29 2019-09-10 深圳康佳电子科技有限公司 Control method, system and storage medium is presented in a kind of recovery system user interface
CN110717320A (en) * 2019-10-11 2020-01-21 上海管和信息科技有限公司 Form/report designer and method suitable for multiple platforms and information management system
CN111381819A (en) * 2018-12-28 2020-07-07 北京微播视界科技有限公司 List creation method and device, electronic equipment and computer-readable storage medium
CN111857712A (en) * 2020-06-30 2020-10-30 深圳市中农易讯信息技术有限公司 Form processing method, device, terminal and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008106643A2 (en) * 2007-03-01 2008-09-04 Formotus, Inc. Forms conversion and deployment system for mobile devices
US9690755B2 (en) * 2013-03-14 2017-06-27 Goformz, Inc. System and method for converting paper forms to an electronic format
US20150317600A1 (en) * 2014-04-30 2015-11-05 Pinki Pachisia Requirement-specific configuration of user interface forms
CN110442816B (en) * 2019-07-12 2024-01-30 平安科技(深圳)有限公司 Method and device for configuring web form and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789382A (en) * 2012-06-28 2012-11-21 用友软件股份有限公司 System and method for generating and running form
CN103809975A (en) * 2014-02-19 2014-05-21 浪潮软件股份有限公司 Method for achieving intelligent cloud forms
CN108287741A (en) * 2017-12-28 2018-07-17 深圳市创梦天地科技股份有限公司 A kind of method and apparatus of structure administration interface
CN111381819A (en) * 2018-12-28 2020-07-07 北京微播视界科技有限公司 List creation method and device, electronic equipment and computer-readable storage medium
CN110221832A (en) * 2019-04-29 2019-09-10 深圳康佳电子科技有限公司 Control method, system and storage medium is presented in a kind of recovery system user interface
CN110717320A (en) * 2019-10-11 2020-01-21 上海管和信息科技有限公司 Form/report designer and method suitable for multiple platforms and information management system
CN111857712A (en) * 2020-06-30 2020-10-30 深圳市中农易讯信息技术有限公司 Form processing method, device, terminal and medium

Also Published As

Publication number Publication date
CN112711414A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN110825362B (en) Low-code application software development system and method
CN105765527B (en) The method and apparatus of software development kit (SDK) for customization
CN105849691B (en) The method and apparatus generated for code virtualization and remote process call
CN105511873B (en) User interface control display method and device
CN109901838A (en) Front end development approach, device, equipment and storage medium based on modularization
US8839192B2 (en) System and method for presentation of cross organizational applications
CN108363602A (en) Intelligent UI quick interface arrangement methods, device, terminal device and storage medium
CN112711414B (en) Form interface adaptation display method and device and storage medium
CN111881662A (en) Form generation method, device, processing equipment and storage medium
US20190147029A1 (en) Method and system for generating conversational user interface
CN112416328A (en) Multi-platform small program mall construction method, device, equipment and medium
CN111857718A (en) List editing method, device, equipment and storage medium
CN110309099A (en) Interface managerial method, device, equipment and computer readable storage medium
CN107346239A (en) A kind of applicating and exploitation based on APP
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
CN104182225A (en) General mobile information system adaptation method and device
CN112685025A (en) Method and system for quickly building front-end page
CN106502977B (en) A kind of sheet disposal method and form system based on B/S framework
CN116301856B (en) Design method, device, equipment and medium of visual form designer
JP2001125855A (en) Dynamic web page generation program
CN114064169A (en) Data display method and device and storage medium
CN115291869A (en) Zero-code form generation method and system based on vue custom component
CN115186643A (en) Self-defined configuration method, device, equipment and storage medium of sign-up template
CN114489619A (en) Interface view display method, terminal equipment and computer readable storage medium
CN110928540A (en) Page generation method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20220816

Address after: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Applicant after: Inspur Genersoft Co.,Ltd.

Address before: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant