CN114860367A - User interface event processing method, device and system - Google Patents

User interface event processing method, device and system Download PDF

Info

Publication number
CN114860367A
CN114860367A CN202210493196.7A CN202210493196A CN114860367A CN 114860367 A CN114860367 A CN 114860367A CN 202210493196 A CN202210493196 A CN 202210493196A CN 114860367 A CN114860367 A CN 114860367A
Authority
CN
China
Prior art keywords
user interface
function
server
service
client
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.)
Granted
Application number
CN202210493196.7A
Other languages
Chinese (zh)
Other versions
CN114860367B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202210493196.7A priority Critical patent/CN114860367B/en
Publication of CN114860367A publication Critical patent/CN114860367A/en
Application granted granted Critical
Publication of CN114860367B publication Critical patent/CN114860367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device and a system for processing a user interface event, wherein the method comprises the following steps: when a user inputs data on a user interface, acquiring an interface control operated by the user on the user interface; searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control characteristic information of a plurality of interface controls, and the control characteristic information is in one-to-one binding correspondence with operation parameters required by the service processing function of the server; and acquiring the service data, the function name and the user interface identification corresponding to the service processing function and sending the service data, the function name and the user interface identification to the server so that the server can find the corresponding function and execute the corresponding service processing. The invention can greatly reduce the interactive data volume of the client and the server so as to improve the data transmission efficiency, and the server can immediately release the memory of the server without caching the processing result after finishing the corresponding service processing, so that the server can support the service processing of a large number of online users.

Description

User interface event processing method, device and system
Technical Field
The present invention relates to the technical field of user interface data processing, and in particular, to a method, an apparatus, and a system for processing a user interface event.
Background
With the popularization and development of the intelligent terminal, the functions and applications of the intelligent terminal are gradually increased. When a user calls an application program of the terminal, different interactive operations can be executed on a terminal interface, the intelligent terminal can acquire operation information of the user through a control of the interface and send background processing, and finally the state of the interface is changed based on data fed back by the background so as to complete the whole interactive operation process (for example, the 'age' is refreshed immediately when a 'birthday' is input, or some data items are hidden when a certain selection is made, etc.).
However, the current interactive processing has the following technical problems: the terminal needs to pack the state of the whole interface into data each time and send the data to the background server for restoration, so that the data volume required to be transmitted by each interaction between the terminal and the background server is very large, and the transmission efficiency is low.
Disclosure of Invention
The invention provides a method, a device and a system for processing a user interface event, wherein the method can store a mapping table corresponding to a pre-constructed interface control and a service processing function in a client, quickly check and receive required function information and corresponding service data when a user operates an interface, and provide the function information and the corresponding service data for a server to perform corresponding service processing.
A first aspect of an embodiment of the present invention provides a method for processing a user interface event, where the method is applied to a client, and the client communicates with a server, and the method includes:
when a user inputs data on a user interface, acquiring an interface control operated by the user on the user interface;
searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control feature information of a plurality of interface controls, and each control feature information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server;
and acquiring service data, a function name and a user interface identifier corresponding to the service processing function, and sending the service data, the function name and the user interface identifier to the server so that the server executes corresponding service processing according to the service data, the function name and the user interface identifier.
In a possible implementation manner of the first aspect, the searching for the service processing function corresponding to the interface control in a preset function mapping table includes:
acquiring a control name of the interface control;
searching a corresponding operation parameter in a preset function mapping table based on the control name;
and determining a function name according to the operation parameters, and determining a corresponding service processing function according to the function name.
In a possible implementation manner of the first aspect, the acquiring service data corresponding to the service processing function includes:
acquiring operation parameters corresponding to the service processing function, wherein the operation parameters comprise input parameters and output parameters of the service processing function;
and acquiring the state information of the corresponding interface control based on the operation parameters to obtain the service data, the function name and the user interface identification.
In a possible implementation manner of the first aspect, after the step of sending the service data to the server, the method further includes:
receiving result data of the service end completing service processing;
rendering a modification user interface based on the result data is in one possible implementation form of the first aspect.
A second aspect of the embodiments of the present invention provides a method for processing a user interface event, where the method is applied to a server, and the server communicates with a client, and the method includes:
receiving service data, a function name and a user interface identifier sent by the client, wherein the service data, the function name and the user interface identifier are acquired by acquiring an interface control operated by a user on a user interface when the client inputs data on the user interface, searching a corresponding service processing function in a preset function mapping table based on the interface control and acquiring the service processing function according to the function identifier of the service processing function;
and executing corresponding service processing according to the service data, the function name and the user interface identifier.
In a possible implementation manner of the second aspect, the executing the corresponding service processing according to the service data includes:
extracting a target function from a preset function library according to the user interface identifier and the function name;
and substituting the service data into the objective function to execute to obtain result data.
In a possible implementation manner of the second aspect, after the step of executing corresponding service processing according to the service data, the method further includes:
and sending the result data to the client so that the client can render and modify a user interface based on the result data.
A third aspect of an embodiment of the present invention provides a device for processing a user interface event, where the device is applicable to a client, and the client communicates with a server, and the device includes:
the client acquisition module is used for acquiring an interface control operated by a user on a user interface when the user inputs data on the user interface;
the client searching module is used for searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control characteristic information of a plurality of interface controls, and each control characteristic information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server;
and the client acquisition module is used for acquiring the service data, the function name and the user interface identifier corresponding to the service processing function, and sending the service data, the function name and the user interface identifier to the server so that the server executes corresponding service processing according to the service data, the function name and the user interface identifier.
A fourth aspect of the present invention provides a device for processing a user interface event, where the device is applicable to a server, and the server communicates with a client, and the device includes:
the server receiving module is used for receiving the service data, the function name and the user interface identification sent by the client, wherein the service data, the function name and the user interface identification are obtained by acquiring an interface control operated by a user on a user interface when the client inputs data on the user interface, searching a corresponding service processing function in a preset function mapping table based on the interface control and acquiring the service processing function according to the function identification of the service processing function;
and the server processing module is used for executing corresponding service processing according to the service data, the function name and the user interface identifier.
A fifth aspect of an embodiment of the present invention provides a system for processing a user interface event, where the system includes: the system comprises a client and a server which are communicated with each other, wherein the client is provided with a function mapping table, the preset function mapping table comprises control characteristic information of a plurality of interface controls, and each control characteristic information is in one-to-one binding correspondence with an operation parameter required by a service processing function of the server;
the client is used for acquiring an interface control operated by a user on a user interface when the user interface inputs data, searching a service processing function corresponding to the interface control in a preset function mapping table, collecting service data, a function name and a user interface identification corresponding to the service processing function, and sending the service data, the function name and the user interface identification to the server;
and the server is used for receiving the service data, the function name and the user interface identifier sent by the client and executing corresponding service processing according to the service data, the function name and the user interface identifier.
A sixth aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of processing user interface events as described above when executing the program.
A seventh aspect of embodiments of the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method for processing a user interface event as described above.
An eighth aspect of the embodiments of the present application provides a computer program product, which when running on a computer device, causes the computer device to implement the processing method of the user interface event as described above.
Compared with the prior art, the method, the device and the system for processing the user interface event provided by the embodiment of the invention have the beneficial effects that: the invention can bind the interface control of the client and the function of the server in advance and construct a corresponding function mapping table, store the function mapping table in the client, quickly check and receive the function corresponding to the operated interface control and the service data required by executing the function through the function mapping table when a user operates the interface, and finally transmit the service data to the server for the server to perform corresponding service processing.
Drawings
FIG. 1 is a flowchart illustrating a method for processing a user interface event according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for processing a user interface event according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for processing a user interface event according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for processing a user interface event according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a system for processing a user interface event according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
At present, for interactive processing of a terminal interface and a server, mainstream implementation mechanisms can be mainly classified into two categories: one is the View State (View State) mode and the other is the Presentation layer (Presentation) mode.
The view state mode is to express the state of the user interface control by corresponding data, restore the data by the server to establish a virtual user interface model of the server and execute service logic, finally feed back the changed state data of the virtual user interface model to the client, and change the state of the user interface by using the client. The display layer mode is that the client collects the state change data of the control which has changed since the last client or server interaction of the user interface and sends the state change data to the server, then the server acquires the virtual view model of the current page from the cache and applies the state change data of the user interface of the client to the view model to execute business logic, and finally feeds back the change data of the virtual view model to the client, and the client is used for changing the state of the user interface.
The two processing modes commonly used at present have the following technical problems: when the view service logic is executed in the view state mode, the client side needs to pack the state of the whole view into data each time and send the data to the server side for restoration, so that the data volume required to be transmitted by each interaction between the client side and the server is very large, and the processing efficiency is low; the view model needs to be cached by the server side in the presentation layer mode, and when the view service logic is executed each time, the corresponding service processing needs to be carried out by the server side from the cache recovery view model, so that a large amount of cache space of the server side is occupied, and the system is not favorable for supporting the service processing of a large number of online users.
In order to solve the above problem, a method for processing a user interface event provided by the embodiment of the present application will be described and explained in detail by the following specific embodiments.
Referring to fig. 1, a flowchart illustrating a method for processing a user interface event according to an embodiment of the present invention is shown.
In one embodiment, the method is applied to a client, and the client communicates with a background server. The client is provided with a user interface for a user to perform corresponding input operation, and the user interface responds with the user operation to change the state of the user interface.
The client can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, portable wearable devices and the like.
As an example, the processing method of the user interface event may include:
and S11, acquiring an interface control operated by the user on the user interface when the user inputs data on the user interface.
In an embodiment, the user interface of the client may collect input data of the user or click operation thereof, and may determine, through an application framework of the user interface, an interface control operated when the user inputs data, so as to determine what processing service corresponds to the data actually input by the user.
In an alternative embodiment, the interface controls may include file transfer controls, schedule management controls, grid controls, menu management controls, button controls, and form controls, among others.
S12, searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control feature information of a plurality of interface controls, and each control feature information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server.
In an embodiment, the preset function mapping table may store control feature information of a plurality of interface controls, where the control feature information may be names, state information, identification information, marks, or the like of the controls, and each control feature information may be a field name, each field name corresponds to one interface control, and each field name may also correspond to one function name, or bind to an operation parameter required when the function is executed, and a function corresponding to each function name may process one service logic.
The operation parameter may be data required for function calculation, such as an input parameter and an output parameter, or a parameter type of the two parameters.
Wherein, the service logic may refer to obtaining a specific output result after processing based on the input parameter value. It is usually implemented in code, such as: script or SQL; or development languages that require compilation, such as: java code. Other forms are also possible, such as: and the mapping table specifies the output result value corresponding to the input parameter value.
By searching the service processing function corresponding to the interface control, the server can be informed to execute corresponding service processing, the server does not need to set a corresponding service processing model in a cache in advance for service processing, and the content of the server is released, so that the server can have more memories to communicate with a plurality of prior users.
In order to accurately find the corresponding traffic handling function, in an alternative embodiment, step S12 may include the following sub-steps:
and S121, acquiring the control name of the interface control.
In one embodiment, the control feature information may be a control name, and the control name may specifically be a field name of the control.
And S122, searching corresponding operation parameters in a preset function mapping table based on the control name.
Because the field name of each control and one operation parameter, the corresponding operation parameter in the mapping table can be searched.
And S123, determining a function name according to the operation parameters, and determining a corresponding service processing function according to the function name.
Finally, after the operation parameter is determined, the function name required by the operation can be determined by reverse-deducing based on the operation parameter, and then the service processing function corresponding to the function name is searched.
In an optional embodiment, the control characteristic information of the interface control may be a control identifier thereof, where the control identifier may be data from a field corresponding to the control, and may also be a prefix, and then may obtain other attributes of the control, for example: font color, whether it is currently displayed, etc.
The binding relationship between the control characteristic information of the client and the function of the server is established by convention, and can be determined to be adjusted according to actual conditions.
S13, collecting the service data, function name and user interface identification corresponding to the service processing function, and sending the service data to the server, function name and user interface identification for the server to execute corresponding service processing according to the service data, function name and user interface identification.
The service data may be data required for executing a service processing function, the name of the function is the name of the function, and the user interface identifier may be an identifier or a name of a control for collecting operation parameters.
After the service processing function of the service logic to be executed is determined, the service data for executing the function is required to be collected, and the required data can be accurately collected based on the mark of the service processing function, so that the processing requirement of the function is met, and meanwhile, the interactive data volume between the client and the server can be reduced, so that the data transmission efficiency is improved; moreover, the service end can also quickly call the service data to perform service logic processing, so that the processing efficiency of the data is further improved.
In order to accurately find the service data required by the function, in one embodiment, step S13 may include the following sub-steps:
s131, obtaining operation parameters corresponding to the service processing function, wherein the operation parameters comprise input parameters and output parameters of the service processing function.
Specifically, the operation parameters include input parameters and output parameters of the service processing function.
S132, acquiring the state information of the corresponding interface control based on the operation parameters to obtain the service data, the function name and the user interface identification.
The function and the interface control are bound one by one, so that after the operation parameters are determined, the interface control corresponding to the function identifier can be determined, and then the changed state information of the function identifier is collected through the interface control, so that the corresponding service data, the function name and the user interface identifier are obtained.
It should be noted that, under the default condition, the operation parameter may also be bound to the identifier of the control of the user interface, so that the corresponding interface control can be quickly located, and the changed state information is collected through the corresponding interface control, so as to obtain the service data, the function name, and the user interface identifier.
In an embodiment, the status information may also refer to a field value, and data from a field corresponding to the control; other properties of the control are also possible, such as: font color, whether it is currently displayed, etc. as the service data.
Referring to the following table, which shows a naming convention for a reference control identifier, the server-side function may control the state value of each interface control through the following parameters.
Figure BDA0003632495710000091
Figure BDA0003632495710000101
To facilitate the association of functions with user interface events, a processing configuration table containing a business logic (or event) may also be provided for the user interface. The table is as follows:
Figure BDA0003632495710000102
Figure BDA0003632495710000111
it should be noted that if some information needs to be temporarily stored for use in subsequent event processing, a view temporary variable ($ var) may be used for temporary storage. For example: some view control state values that can only be determined through complex calculations.
After the corresponding service data, function name and user interface identifier are collected, the service data, function name and user interface identifier can be sent to the server. The service end can adopt the service data, the function name and the user interface identification to execute corresponding service processing.
Because the transmitted data only comprises the service data, the function name and the user interface identification, the client does not need to pack the state of the whole view into data and send the data to the server for restoration, thereby greatly reducing the data volume required to be transmitted by each interaction between the client and the server and improving the data transmission efficiency; and meanwhile, the server does not need to cache the view model, and when the view business logic is executed each time, the server can execute the business logic processing only by acquiring the business data, the function name and the user interface identifier, so that a large amount of memory of the server is released, and the server can support the business processing of a large number of online users.
In an embodiment, after the service end completes the service processing, the processing data of the service end can be collected to adjust the user interface.
Wherein, as an example, the method may further include:
and S14, receiving result data of the service end completing the service processing.
Specifically, the result data is data output after the service end completes the service processing.
S15, rendering and modifying the user interface based on the result data.
In this embodiment, the client may set a state corresponding to the original interface control by using the result data, so as to complete an execution process of the view service logic.
The client may determine a user interface control that needs to be updated based on the result data, and then adjust the feature information of the user interface control according to the result data, such as: input content, whether the control is visible, whether the control is read-only, etc.
For example: and updating the age on the interface in real time according to the input birthday.
In this embodiment, an embodiment of the present invention provides a method for processing a user interface event, which has the following beneficial effects: the invention can bind the interface control of the client and the function of the server in advance and construct a corresponding function mapping table, store the function mapping table in the client, when the user operates the interface, the function corresponding to the interface control of the operation, the service data, the function name and the user interface identification required by the function are quickly checked and received through the function mapping table, and finally the service data, the function name and the user interface identification are transmitted to the server for the server to carry out corresponding service processing, the invention can greatly reduce the mutual data quantity between the client and the server so as to improve the data transmission efficiency, moreover, the service end can immediately adopt the service data to carry out corresponding service processing without storing corresponding models, and then the memory of the server is released, so that the server can support the business processing of a large number of online users, and the practicability of the server is improved.
Referring to fig. 2, an operation flow diagram of a processing method of a user interface event according to an embodiment of the present invention is shown.
In one embodiment, the method may be applied to a server, which communicates with a client.
As an example, the processing method of the user interface event may include:
s21, receiving the service data, the function name and the user interface identification sent by the client, wherein the service data, the function name and the user interface identification are acquired by acquiring an interface control operated by a user at a user interface when the client inputs data at the user interface, searching a corresponding service processing function in a preset function mapping table based on the interface control, and acquiring the service processing function according to the function identification of the service processing function.
This step corresponds to the content disclosed in the above embodiment, and is not repeated herein for avoiding repetition, and reference may be specifically made to the description of the above embodiment.
And S22, executing corresponding service processing according to the service data, the function name and the user interface identification.
The service end can directly call the service data, the function name and the user interface identification to carry out corresponding service logic processing so as to quickly finish operation and improve the processing efficiency of data.
As an example, step S22 may include the following sub-steps:
s221, extracting the target function from a preset function library according to the user interface identification and the function name.
Specifically, the user interface identifier may correspond to the control identifier of the above embodiment, and the target function required by the service processing may be searched through the identifier, and similarly, the corresponding target function may also be searched through the function name.
The target functions are searched through two methods, whether the two searched target functions are the same or not is compared, if the two searched target functions are the same, the target functions are adopted to execute subsequent parameters, and if the two searched target functions are different, errors can be returned.
S222, substituting the service data into the objective function to execute to obtain result data.
And finally, substituting the service data into the objective function, performing corresponding logic processing and outputting result data.
S23, sending the result data to the client side, so that the client side can render and modify the user interface based on the result data.
After the result data is generated, the result data can be output to the client, and the client can perform corresponding interface rendering and modification.
In this embodiment, an embodiment of the present invention provides a method for processing a user interface event, which has the following beneficial effects: the invention can bind the interface control of the client and the function of the server in advance and construct a corresponding function mapping table, store the function mapping table in the client, when the user operates the interface, the function corresponding to the interface control of the operation, the service data, the function name and the user interface identification required by the function are quickly checked and received through the function mapping table, and finally the service data, the function name and the user interface identification are transmitted to the server for the server to carry out corresponding service processing, the invention can greatly reduce the mutual data quantity between the client and the server so as to improve the data transmission efficiency, moreover, the service end can immediately adopt the service data to carry out corresponding service processing without storing corresponding models, and then the memory of the server is released, so that the server can support the business processing of a large number of online users, and the practicability of the server is improved.
An embodiment of the present invention further provides a device for processing a user interface event, and referring to fig. 3, a schematic structural diagram of the device for processing a user interface event according to the embodiment of the present invention is shown.
Wherein, as an example, the apparatus is applied to a client, the client is in communication with a server, the apparatus includes:
the client obtaining module 301 is configured to obtain an interface control operated by a user on a user interface when the user inputs data on the user interface;
a client lookup module 302, configured to lookup a service processing function corresponding to the interface control in a preset function mapping table, where the preset function mapping table includes control feature information of multiple interface controls, and each control feature information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server;
the client acquisition module 303 is configured to acquire service data, a function name, and a user interface identifier corresponding to the service processing function, and send the service data, the function name, and the user interface identifier to the server, so that the server executes corresponding service processing according to the service data, the function name, and the user interface identifier.
Optionally, the client lookup module is further configured to:
acquiring a control name of the interface control;
searching a corresponding operation parameter in a preset function mapping table based on the control name;
and determining a function name according to the operation parameters, and determining a corresponding service processing function according to the function name.
Optionally, the client acquisition module is further configured to:
acquiring corresponding operation parameters of the service processing function, wherein the operation parameters comprise input parameters and output parameters of the service processing function;
and acquiring the state information of the corresponding interface control based on the operation parameters to obtain the service data, the function name and the user interface identification.
Optionally, the apparatus further comprises:
the client receiving module is used for receiving result data of the service end completing the service processing;
and the client modifying module is used for rendering and modifying the user interface based on the result data.
An embodiment of the present invention further provides a device for processing a user interface event, and referring to fig. 4, a schematic structural diagram of the device for processing a user interface event according to the embodiment of the present invention is shown.
Wherein, as an example, the apparatus is adapted to a server, the server communicates with a client, the apparatus includes:
the server receiving module 401 is configured to receive service data, a function name, and a user interface identifier sent by the client, where the service data, the function name, and the user interface identifier are interface controls operated by a user on a user interface when the client inputs data on the user interface, and are acquired according to function identifiers of service processing functions after searching for corresponding service processing functions in a preset function mapping table based on the interface controls;
and the server processing module 402 is configured to execute corresponding service processing according to the service data, the function name, and the user interface identifier.
Optionally, the server processing module is further configured to:
extracting a target function from a preset function library according to the user interface identifier and the function name;
and substituting the service data into the objective function to execute to obtain result data.
Optionally, the apparatus further comprises:
and the server side sending module is used for sending the result data to the client side so that the client side can render and modify a user interface based on the result data.
An embodiment of the present invention further provides a system for processing a user interface event, and referring to fig. 5, a schematic structural diagram of the system for processing a user interface event according to an embodiment of the present invention is shown.
Wherein, as an example, the processing system of the user interface event may include:
the system comprises a client and a server which are communicated with each other, wherein the client is provided with a function mapping table, the preset function mapping table comprises control characteristic information of a plurality of interface controls, and each control characteristic information is in one-to-one binding correspondence with an operation parameter required by a service processing function of the server;
the client is used for acquiring an interface control operated by a user on a user interface when the user interface inputs data, searching a service processing function corresponding to the interface control in a preset function mapping table, collecting service data, a function name and a user interface identification corresponding to the service processing function, and sending the service data, the function name and the user interface identification to the server;
and the server is used for receiving the service data, the function name and the user interface identifier sent by the client and executing corresponding service processing according to the service data, the function name and the user interface identifier.
It can be clearly understood by those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Further, an embodiment of the present application further provides an electronic device, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the processing method of the user interface event according to the embodiment.
Further, an embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are configured to enable a computer to execute the processing method of the user interface event according to the embodiment.
Further, an embodiment of the present application also provides a computer program product, which when running on a computer device, causes the computer device to implement the processing method of the user interface event as described above.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (12)

1. A method for processing user interface events, the method being applied to a client, the client being in communication with a server, the method comprising:
when a user inputs data on a user interface, acquiring an interface control operated by the user on the user interface;
searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control feature information of a plurality of interface controls, and each control feature information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server;
and acquiring service data, a function name and a user interface identifier corresponding to the service processing function, and sending the service data, the function name and the user interface identifier to the server so that the server executes corresponding service processing according to the service data, the function name and the user interface identifier.
2. The method for processing the user interface event according to claim 1, wherein the step of searching the service processing function corresponding to the interface control in a preset function mapping table includes:
acquiring a control name of the interface control;
searching a corresponding operation parameter in a preset function mapping table based on the control name;
and determining a function name according to the operation parameters, and determining a corresponding service processing function according to the function name.
3. The method for processing the user interface event according to claim 1, wherein the collecting the service data corresponding to the service processing function includes:
acquiring operation parameters corresponding to the service processing function, wherein the operation parameters comprise input parameters and output parameters of the service processing function;
and acquiring the state information of the corresponding interface control based on the operation parameters to obtain the service data, the function name and the user interface identification.
4. The method for processing the user interface event according to any one of claims 1 to 3, wherein after the step of sending the service data to the server, the method further comprises:
receiving result data of the service end completing service processing;
rendering a modification user interface based on the result data.
5. A method for processing user interface events, the method being applied to a server, the server being in communication with a client, the method comprising:
receiving service data, a function name and a user interface identifier sent by the client, wherein the service data, the function name and the user interface identifier are acquired by acquiring an interface control operated by a user on a user interface when the client inputs data on the user interface, searching a corresponding service processing function in a preset function mapping table based on the interface control and acquiring the service processing function according to the function identifier of the service processing function;
and executing corresponding service processing according to the service data, the function name and the user interface identifier.
6. The method for processing the user interface event according to claim 5, wherein the performing the corresponding service processing according to the service data includes:
extracting a target function from a preset function library according to the user interface identifier and the function name;
and substituting the service data into the objective function to execute to obtain result data.
7. The method for processing the user interface event according to any one of claims 5 to 6, wherein after the step of performing the corresponding service processing according to the service data, the method further comprises:
and sending the result data to the client so that the client can render and modify a user interface based on the result data.
8. An apparatus for processing user interface events, the apparatus being adapted for use with a client, the client being in communication with a server, the apparatus comprising:
the client acquisition module is used for acquiring an interface control operated by a user on a user interface when the user inputs data on the user interface;
the client searching module is used for searching a service processing function corresponding to the interface control in a preset function mapping table, wherein the preset function mapping table contains control characteristic information of a plurality of interface controls, and each control characteristic information is in one-to-one binding correspondence with an operation parameter required by the service processing function of the server;
and the client acquisition module is used for acquiring the service data, the function name and the user interface identifier corresponding to the service processing function, and sending the service data, the function name and the user interface identifier to the server so that the server executes corresponding service processing according to the service data, the function name and the user interface identifier.
9. An apparatus for processing user interface events, the apparatus being adapted for a server, the server being in communication with a client, the apparatus comprising:
the server receiving module is used for receiving the service data, the function name and the user interface identification sent by the client, wherein the service data, the function name and the user interface identification are obtained by acquiring an interface control operated by a user on a user interface when the client inputs data on the user interface, searching a corresponding service processing function in a preset function mapping table based on the interface control and acquiring the service processing function according to the function identification of the service processing function;
and the server processing module is used for executing corresponding service processing according to the service data, the function name and the user interface identifier.
10. A system for processing user interface events, the system comprising: the system comprises a client and a server which are communicated with each other, wherein the client is provided with a function mapping table, the preset function mapping table comprises control characteristic information of a plurality of interface controls, and each control characteristic information is in one-to-one binding correspondence with an operation parameter required by a service processing function of the server;
the client is used for acquiring an interface control operated by a user on a user interface when the user interface inputs data, searching a service processing function corresponding to the interface control in a preset function mapping table, collecting service data, a function name and a user interface identification corresponding to the service processing function, and sending the service data, the function name and the user interface identification to the server;
and the server is used for receiving the service data, the function name and the user interface identifier sent by the client and executing corresponding service processing according to the service data, the function name and the user interface identifier.
11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of handling user interface events according to any of claims 1-4 or 5-7 when executing the program.
12. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform a method of processing a user interface event according to any one of claims 1 to 4 or 5 to 7.
CN202210493196.7A 2022-05-07 2022-05-07 User interface event processing method, device and system Active CN114860367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210493196.7A CN114860367B (en) 2022-05-07 2022-05-07 User interface event processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210493196.7A CN114860367B (en) 2022-05-07 2022-05-07 User interface event processing method, device and system

Publications (2)

Publication Number Publication Date
CN114860367A true CN114860367A (en) 2022-08-05
CN114860367B CN114860367B (en) 2023-10-03

Family

ID=82636268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210493196.7A Active CN114860367B (en) 2022-05-07 2022-05-07 User interface event processing method, device and system

Country Status (1)

Country Link
CN (1) CN114860367B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3029565A1 (en) * 2014-12-01 2016-06-08 Google, Inc. A method to fetch functionality across applications
CN105656974A (en) * 2014-11-27 2016-06-08 航天恒星科技有限公司 Method and system for processing satellite observation data
CN106407092A (en) * 2016-09-30 2017-02-15 广州华多网络科技有限公司 Data reporting method, data reporting device, data statistics method and data statistics device for interface operations
CN108924210A (en) * 2018-06-27 2018-11-30 杭州贝店科技有限公司 Service request processing method, device, server and storage medium
WO2019073115A1 (en) * 2017-10-12 2019-04-18 Nokia Technologies Oy Serving call session control function instance identification in a distributed cloud-based system
CN110688187A (en) * 2019-09-27 2020-01-14 福建工程学院 Data interaction method for control and function in application program customized function interface
CN111859083A (en) * 2020-05-27 2020-10-30 中国平安财产保险股份有限公司 Service data processing method, device, equipment and computer readable storage medium
CN112667238A (en) * 2020-12-31 2021-04-16 华南理工大学 Method and system for dynamically generating control panel of automation equipment
CN113360043A (en) * 2021-06-29 2021-09-07 中国农业银行股份有限公司 Service processing method and device
CN113515281A (en) * 2021-03-24 2021-10-19 杭州新中大科技股份有限公司 Method for realizing user-defined interface of mobile application
CN113946614A (en) * 2021-10-12 2022-01-18 北京朗玛数联科技有限公司 iOS (Internet operating System) static library-based network data transmission method, device and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656974A (en) * 2014-11-27 2016-06-08 航天恒星科技有限公司 Method and system for processing satellite observation data
EP3029565A1 (en) * 2014-12-01 2016-06-08 Google, Inc. A method to fetch functionality across applications
CN106407092A (en) * 2016-09-30 2017-02-15 广州华多网络科技有限公司 Data reporting method, data reporting device, data statistics method and data statistics device for interface operations
WO2019073115A1 (en) * 2017-10-12 2019-04-18 Nokia Technologies Oy Serving call session control function instance identification in a distributed cloud-based system
CN108924210A (en) * 2018-06-27 2018-11-30 杭州贝店科技有限公司 Service request processing method, device, server and storage medium
CN110688187A (en) * 2019-09-27 2020-01-14 福建工程学院 Data interaction method for control and function in application program customized function interface
CN111859083A (en) * 2020-05-27 2020-10-30 中国平安财产保险股份有限公司 Service data processing method, device, equipment and computer readable storage medium
CN112667238A (en) * 2020-12-31 2021-04-16 华南理工大学 Method and system for dynamically generating control panel of automation equipment
CN113515281A (en) * 2021-03-24 2021-10-19 杭州新中大科技股份有限公司 Method for realizing user-defined interface of mobile application
CN113360043A (en) * 2021-06-29 2021-09-07 中国农业银行股份有限公司 Service processing method and device
CN113946614A (en) * 2021-10-12 2022-01-18 北京朗玛数联科技有限公司 iOS (Internet operating System) static library-based network data transmission method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
许荣斌: "一种多平台图形用户界面的研究与设计", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 06, pages 138 - 712 *

Also Published As

Publication number Publication date
CN114860367B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN108363602B (en) Intelligent UI (user interface) layout method and device, terminal equipment and storage medium
JP4865983B2 (en) Network server
CN105955888B (en) Page debugging preview method and system
WO2007047900A2 (en) System and method for displaying data on a thin client
WO2002101585A2 (en) Streaming of real-time data to a browser
US7281216B2 (en) Method and apparatus of selecting local or remote processing
CN111611357B (en) Configuration method of man-machine conversation system, multi-round conversation configuration platform and electronic equipment
US9557880B2 (en) Shared user interface services framework
US20120079009A1 (en) Method and apparatus for choosing resources based on context and inheritance
CN105550206A (en) Version control method and device for structured query language
CN112256772A (en) Data service method, device and readable storage medium
US20170063961A1 (en) Systems and methods to consistently generate web content
CN113360211A (en) Loading display method based on control and related equipment
CN109726295A (en) Brand knowledge map display methods, device, figure server and storage medium
CN110222046B (en) List data processing method, device, server and storage medium
CN110688581A (en) Information real-time pushing method and device, computing equipment and medium
CN113326418A (en) Method and device for determining webpage information source and webpage quality
CN114860367B (en) User interface event processing method, device and system
CN110780970A (en) Data screening method, device, equipment and computer readable storage medium
CN115934076A (en) Cross-platform client micro-service providing device and method and electronic equipment
CN113256473B (en) Three-dimensional model format conversion method and device, electronic equipment and system
CN115291773A (en) Tree structure data display method and device
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
CN103164217B (en) Independent data entity for back-end system
CN113094367A (en) Data processing method and device and server

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