Dynamic data loading and field updating method and device of ammeter parameter configuration form system and medium
The meter parameter configuration form system, developed using Blazor Server and ClearScript technologies, solves the flexibility issues of data processing and field display in traditional form systems. It enables dynamic data loading and rapid online field updates, improving user experience and business efficiency.
Patent Information
- Application Number
- CN202511687933.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-02-17
AI Technical Summary
Traditional form systems lack flexibility in data processing and field display, failing to meet enterprises' requirements for real-time and accurate data, thus impacting user experience and business efficiency.
A meter parameter configuration form system was developed using Blazor Server technology, integrating various fields and process controls, and using ClearScript technology to execute predefined scripts, including initialization, field update, parameter setting, and process change scripts, to achieve dynamic data loading and field updates.
It enables dynamic loading and analysis of data, supports dynamic display of fields and rapid online updates, improving user experience and business efficiency.
Smart Images

Figure CN121541904A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of form configuration, and in particular to a method, device and medium for dynamic data loading and field updating of an electricity meter parameter configuration form system. Background Technology
[0002] In today's widespread application of digital office and information management, forms, as a crucial tool for information collection, organization, and interaction, permeate numerous business processes. Traditional form systems suffer from several limitations, such as poor data processing flexibility, inability to dynamically load and analyze data, and difficulty in meeting enterprises' requirements for real-time and accurate data; in terms of field display, they lack dynamic adjustment capabilities, failing to flexibly display or update fields according to changes in user needs, impacting user experience and information retrieval efficiency; system updates typically require repeated releases, which are time-consuming and labor-intensive, severely affecting the flexibility and efficiency of enterprise operations. Summary of the Invention
[0003] This application provides a method, device, and medium for dynamic data loading and field updating in an electricity meter parameter configuration form system, which is used to solve the problems in the background art.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to a first aspect of the embodiments of this application, a method for dynamic data loading and field updating of an electricity meter parameter configuration form system is provided, including: The meter parameter configuration form system is developed based on Blazor Server technology and integrates various required fields and process controls. The meter parameter configuration form system has predefined scripts of various types, and uses ClearScript technology to execute the scripts in the backend; among them, the scripts include initialization scripts, field update scripts, parameter setting scripts, parameter retrieval scripts, and process change scripts; When users access the meter parameter configuration form system and perform dynamic data loading and field update operations, the corresponding scripts are executed.
[0006] According to one embodiment of this application, when a user enters the electricity meter parameter configuration form system, an initialization script is executed; the initialization script is used to set the initial state of the form, including loading basic data and the default display style of the configuration fields.
[0007] According to one embodiment of this application, when a user updates the value of a field, a field update script is executed; the field update script is used to dynamically set the values of other related fields when the field value changes.
[0008] According to one embodiment of this application, when a user creates a form via an API, a parameter setting script is executed; the parameter setting script is used to map and set the parameters passed in by the API into the corresponding fields.
[0009] According to one embodiment of this application, if a corresponding form does not exist during the execution of the parameter setting script, the form can be automatically created, and then the corresponding parameters can be set into the fields of the corresponding form.
[0010] According to one embodiment of this application, when a user obtains form field data through an API, a parameter retrieval script is executed; the parameter retrieval script is used to extract corresponding data from each field and return it to the requester in a uniform format.
[0011] According to one embodiment of this application, when a form enters or exits a process node, a process change script is executed; the process change script is used to complete the initialization of process-related data and the sending of process notification operations.
[0012] According to one embodiment of this application, the process change script includes defining email content and calling the email server to push the email to relevant members.
[0013] According to a second aspect of the embodiments of this application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed corresponding to the dynamic data loading and field update method of the electricity meter parameter configuration form system described in the first aspect.
[0014] According to a third aspect of the embodiments of this application, a computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processor, are used to implement the process corresponding to the dynamic data loading and field update method of the meter parameter configuration form system as described in the first aspect.
[0015] Compared with the prior art, the beneficial effects of adopting the above technical solution are: the present invention can realize dynamic data loading and analysis processing, control field display and data update, and support online fast update. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0017] Figure 1 This is a schematic diagram of the script editing interface in an embodiment of this application.
[0018] Figure 2 This is a flowchart illustrating the script execution process in an embodiment of this application.
[0019] Figure 3 This is a schematic diagram of an electronic device according to an embodiment of this application.
[0020] Figure 4 This is a schematic diagram of the structure of a computer system suitable for implementing the embodiments of this application.
[0021] Figure label: 100 - Electronic device; 101 - Memory; 102 - Processor; 200-Computer system, 201-CPU, 202-ROM, 203-RAM, 204-Bus, 205-I / O interface, 206-Input section, 207-Output section, 208-Storage section, 209-Communication section, 210-Driver, 211-Removable media. Detailed Implementation
[0022] The embodiments of this application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar modules or modules having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. Rather, the embodiments of this application include all variations, modifications, and equivalents falling within the spirit and scope of the appended claims.
[0023] Numerous specific details are set forth in the following description to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below. Throughout this specification, references to “one embodiment” or “an embodiment” mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in at least one embodiment of the invention. Therefore, the phrases “in one embodiment” or “in an embodiment” appearing throughout this specification do not necessarily refer to the same embodiment. The verbs “comprising” and “having” are used herein as open-ended restrictions, neither excluding nor requiring the presence of any unrecited features. Unless expressly stated otherwise, the features recited in the dependent claims may be freely combined with each other. The use of “a” or “an” (i.e., the singular form) to define an element throughout the document does not exclude the possibility of a plurality of such elements.
[0024] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Unless otherwise specified, the terms “connected,” “coupled,” and “connected to” are used to specify an electrical connection between circuit elements, which may be direct or may be via one or more other elements. Conversely, when an element is referred to as “directly connected to” or “directly coupled to” another element, no intermediate element is present. The term “and / or” as used herein includes any and all combinations of one or more of the associated listed items.
[0025] To address the shortcomings of existing technologies, this application proposes a dynamic data loading and field updating method for an electricity meter parameter configuration form system, which can realize dynamic data loading and analysis processing, control field display and data updating, and support online rapid updates.
[0026] Specifically, in this embodiment, the meter parameter configuration form system is developed based on Blazor Server technology, integrating various required fields and process controls; it provides users with rich form elements, such as text boxes, drop-down lists, radio buttons, etc., as well as complex workflow components, such as approval processes, data flow nodes, etc., providing a solid technical foundation for realizing dynamic data loading and field updates.
[0027] Furthermore, the meter parameter configuration form system predefines various required scripts and uses ClearScript technology in the backend to execute them. These scripts include initialization scripts, field update scripts, parameter setting scripts, parameter retrieval scripts, and process change scripts. In this embodiment, ClearScript is an open-source library developed by Microsoft, designed to simplify the process of adding script support to .NET applications. Its features include support for multiple script engines, such as Google's V8 engine, Microsoft's JScript, and VBScript; ease of use, allowing users to create script engines, add objects and types, and run scripts; no modification or special coding of exposed resources is required; and it supports methods, properties, fields, events, etc. Figure 1 The diagram shows the script editing interface in this embodiment. The method list at the top of the diagram defines the types of scripts that can be edited; the list on the right describes the fields and flow controls used in the form, and each control has a unique ID; the central area is the script editing area, and the script uses JavaScript syntax.
[0028] To clearly explain how to implement dynamic data loading and field updates for the meter parameter configuration form system based on predefined scripts, the functional significance of each script will be explained below.
[0029] (1) The initialization script is used to set the initial state of the form, including loading basic data and configuring the default display style of the fields, to ensure that users can see an accurate and business-logical initial interface when they enter the form.
[0030] (2) Field update scripts are used to dynamically set the values of other related fields when the field value changes, so as to realize automatic correlation calculation and update between data.
[0031] (3) The parameter setting script is used to map and set the parameters passed from the API to the corresponding fields. This allows the form to be initialized in a personalized manner according to the instructions and data of the external system, which facilitates integration and data interaction with other business systems and expands the application scenarios of the form system.
[0032] (4) The parameter acquisition script is used to extract the corresponding data from each field and return it to the requester in a uniform format to ensure the accuracy and integrity of the data and facilitate further processing and analysis of the form data by external systems.
[0033] (5) The process change script is used to complete operations such as initializing process-related data and sending process notifications, which improves the interactivity between users and the system.
[0034] Please refer to Figure 2 The following illustrates the calling flow of each script in this embodiment: When a user accesses the form system, the backend executes an initialization script. This script can call APIs, read files, or query data from the database to initialize field values. It can also display or hide fields based on the user's information.
[0035] When a user updates the value of a field, the backend executes a field value update script. In the script, the value of the updated field can be used as a condition to query data using an API or from the database, and then this data is processed before being updated to other fields, thus achieving linkage between form fields.
[0036] When a user submits or returns a form, the backend executes a process change script. Within this script, email content can be customized, and the email server can be invoked to push the email to relevant members, thus enabling message delivery.
[0037] When other systems need to interact with the form system, they can send a parameter setting request to the form system, passing the required parameters via API. Upon receiving the request, the form system executes the parameter setting script, mapping the passed parameters to the corresponding fields. If the form does not exist, it can automatically create it. When other systems need form data, they can also send a parameter retrieval request to the form system. Upon receiving the request, the form system executes the parameter retrieval script, integrates the form field values, and returns them to the requesting system, achieving efficient data interaction.
[0038] Please refer to Figure 3 An electronic device 100 according to an embodiment of this application includes a memory 101 and a processor 102. The memory 101 stores a computer program that can be loaded by the processor 102 and executed corresponding to the aforementioned dynamic data loading and field update method of an electricity meter parameter configuration form system. It should be noted that the electronic device also has a display screen for displaying a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen is a touch screen, it also has the ability to collect touch signals on or above the surface of the display screen. The touch signals can be input to the processor as control signals for processing. In this case, the display screen can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, the display screen can be a single screen, the front panel of the electronic device; in other embodiments, there can be at least two screens, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen can be a flexible screen, disposed on a curved surface or a folded surface of the electronic device. Furthermore, the display screen can also be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. The display screen can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0039] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0040] It should be noted that, Figure 4 The computer system 200 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0041] like Figure 4As shown, the computer system 200 includes a Central Processing Unit (CPU) 201, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 202 or programs loaded from Storage Section 208 into Random Access Memory (RAM) 203, such as performing the methods described in the above embodiments. The RAM 203 also stores various programs and data required for system operation. The CPU 201, ROM 202, and RAM 203 are interconnected via a bus 204. An Input / Output (I / O) interface 205 is also connected to the bus 204.
[0042] The following components are connected to I / O interface 205: an input section 206 including a keyboard, mouse, etc.; an output section 207 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to I / O interface 205 as needed. Removable media 211, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 210 as needed so that computer programs read from them can be installed into storage section 208 as needed.
[0043] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 209, and / or installed from removable medium 211. When the computer program is executed by central processing unit (CPU) 201, it performs various functions defined in the system of this application.
[0044] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0045] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0046] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0047] In another aspect, this application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the dynamic data loading and field updating method for an electricity meter parameter configuration form system described in the above embodiments.
[0048] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to implement the dynamic data loading and field updating method for a meter parameter configuration form system described in the above embodiments.
[0049] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0050] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0051] For those skilled in the art, the specific meanings of the above terms in this invention can be understood according to the specific circumstances; the accompanying drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of this invention. Obviously, the described embodiments are some embodiments of this invention, but not all embodiments. Generally, the components of the embodiments of this invention described and shown in the accompanying drawings can be arranged and designed in various different configurations.
[0052] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A dynamic data loading and field updating method for an electric meter parameter configuration form system, characterized in that, The meter parameter configuration form system is developed based on Blazor Server technology, integrates various required fields and process control; The meter parameter configuration form system is pre-defined with various required scripts, and uses ClearScript technology in the backend to execute the scripts; wherein, the various scripts include initialization scripts, field update scripts, parameter setting scripts, parameter acquisition scripts, and process change scripts; When a user enters the meter parameter configuration form system and performs dynamic data loading and field update operations, the corresponding scripts are executed. When a user enters the meter parameter configuration form system, the initialization script is executed; the initialization script is used to set the initial state of the form, including loading basic data and configuring the default display style of the field.
2. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 1, wherein, When a user updates the value of a field, the field update script is executed; the field update script is used to dynamically set the values of other associated fields when the field value changes.
3. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 1, wherein, When a user creates a form through an API, the parameter setting script is executed; the parameter setting script is used to map and set the parameters passed in by the API to the corresponding fields.
4. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 1, wherein, During the execution of the parameter setting script, if the corresponding form does not exist, the form can be automatically created, and then the corresponding parameters are set to the fields of the form.
5. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 4, wherein, When a user acquires form field data through an API, the parameter acquisition script is executed; the parameter acquisition script is used to extract the corresponding data from each field and return it to the requester in a unified format.
6. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 1, wherein, When a form enters or exits a process node, the process change script is executed; the process change script is used to complete the initialization of process-related data and send process notification operations.
7. The method for dynamic data loading and field updating of meter parameter configuration form system according to claim 1, wherein, The process change script includes defining email content and calling a mail server to push emails to relevant members.
8. The method of dynamic data loading and field updating of meter parameter configuration form system according to claim 7, wherein, The memory and the processor, the memory has the computer program of claim 1-8 any one of the meter parameter configuration form system of dynamic data loading and field update method corresponding to the computer program which can be loaded and executed by the processor.
9. An electronic device, comprising: The computer program instructions are stored thereon, and the program instructions are executed by the processor to implement the processes corresponding to the dynamic data loading and field update method of the meter parameter configuration form system according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that,