CN113900641B - Template generation method and device, computer equipment and storage medium - Google Patents

Template generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113900641B
CN113900641B CN202111170616.XA CN202111170616A CN113900641B CN 113900641 B CN113900641 B CN 113900641B CN 202111170616 A CN202111170616 A CN 202111170616A CN 113900641 B CN113900641 B CN 113900641B
Authority
CN
China
Prior art keywords
script
template
experiment record
experiment
label
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
CN202111170616.XA
Other languages
Chinese (zh)
Other versions
CN113900641A (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.)
Suzhou Chuangteng Software Co ltd
Original Assignee
Suzhou Chuangteng 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 Suzhou Chuangteng Software Co ltd filed Critical Suzhou Chuangteng Software Co ltd
Priority to CN202111170616.XA priority Critical patent/CN113900641B/en
Publication of CN113900641A publication Critical patent/CN113900641A/en
Application granted granted Critical
Publication of CN113900641B publication Critical patent/CN113900641B/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/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a template generation method, a template generation device, computer equipment and a storage medium. The method comprises the following steps: acquiring an experiment record script template, wherein the experiment record script template comprises a variable label and a script mark corresponding to the variable label; carrying out format conversion on the text content in the experiment record script template to generate a webpage label, wherein the webpage label is used for displaying on a page; compiling the script marks to generate a data processing file corresponding to the webpage label; and generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label. By adopting the method, the modified experiment record script template can be obtained by directly modifying the variable tags and the script marks of the experiment record script template, so that the modified experiment record template is obtained, the flexibility of constructing the experiment record template is enhanced, and the working efficiency is improved.

Description

Template generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a template generation method and apparatus, a computer device, and a storage medium.
Background
With the development of paperless and digital office, laboratory electronic record execution systems are widely used. The laboratory electronic record execution system is an electronic experiment record platform, can directly process laboratory data acquisition, method design, data audit and report, can be integrated with other IT (Internet Technology ) systems, and can rapidly complete the record and the recheck of experimental data. However, due to the large difference in operation among different experimental schemes, the large difference in data acquisition requirements and judgment standards, the improvement of laboratory processes, and the like, the experimental scheme and the process are often required to be adjusted, so that the experimental scheme template in the electronic record of the laboratory is often required to be adjusted to adapt to the adjusted experimental scheme.
In the conventional technology, chapter and section components can be customized according to control information by abstracting the control information of a universal part in a historical experimental scheme. Then, the chapter components are arranged and combined to generate the template. However, when the experimental scheme is changed, the template generation method needs to develop new components, add permutation and combination, and re-develop the customized template, and has the problems of general flexibility and poor expansibility.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a template generating method, apparatus, computer device and storage medium with high flexibility and extensibility.
In a first aspect, an embodiment of the present application provides a template generating method, where the method includes:
acquiring an experiment record script template, wherein the experiment record script template comprises a variable label and a script mark corresponding to the variable label, the variable label is generated by marking the text content in the existing experiment record, and the script mark is generated according to the preset grammar of the experiment record script;
carrying out format conversion on the text content in the experiment record script template to generate a webpage label, wherein the webpage label is used for displaying on a page;
compiling the script marks to generate a data processing file corresponding to the webpage label;
and generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
In one embodiment, the obtaining an experiment record script template includes:
acquiring and displaying the existing experiment record, wherein the experiment record comprises the text content;
in response to the marking operation of the target content in the text content, marking the position of the target content, and replacing the target content with the variable tag;
acquiring script marks corresponding to the variable labels, wherein the script marks are generated according to the experimental record script syntax;
and generating the script template of the experiment record according to the experiment record added with the variable label and the script mark.
In one embodiment, the generating the experiment record script template according to the experiment record to which the variable tag and the script tag have been added includes:
responding to the verification operation of the experiment record added with the variable label and the script mark, and performing syntax verification on the script mark according to a preset syntax verification rule;
when the grammar check is correct, obtaining the experiment record script template;
and when the grammar verification has error content, correcting and verifying the error content marked by the script again until the grammar verification of the script mark is correct to obtain the experimental record script template.
In one embodiment, the obtaining the script tag corresponding to the variable tag includes:
responding to an input operation on a preset position of a paragraph where the variable label is located, and acquiring the script mark currently input by a user, wherein the preset position comprises any one of a starting position of the paragraph, a middle position of the paragraph and an ending position of the paragraph.
In one embodiment, the compiling the script tag to generate a data processing file corresponding to the web page tag includes:
and extracting the script marks from the experiment record script template through a script compiling engine, and converting the script marks into a preset file format to obtain a data processing file corresponding to the webpage label.
In one embodiment, the generating an experiment record template according to the web page tag and the data processing file corresponding to the web page tag includes:
analyzing the webpage label through a script compiling engine to obtain the analyzed webpage label;
generating a data input control according to the analyzed webpage label and a data processing file corresponding to the webpage label, wherein the data input control is used for receiving input experimental data corresponding to the webpage label and processing the experimental data according to the data processing file corresponding to the webpage label;
and generating the experiment record template according to the analyzed webpage label and the data input control.
In one embodiment, the method further comprises:
responding to debugging operation of the experiment record template, and receiving simulation data through the data input control corresponding to the webpage label;
processing the simulation data through the data processing file corresponding to the webpage label, and issuing the experiment record template when the simulation data are determined to meet the constraint condition of the data processing file;
and when the simulation data is determined not to meet the constraint condition of the data processing file, positioning and displaying a script mark corresponding to the webpage label, acquiring the correction content of the script mark, generating a corrected experiment record template according to the corrected script mark, and issuing the corrected experiment record template after the corrected experiment record template is determined to be successfully debugged.
In a second aspect, an embodiment of the present application provides a template generating apparatus, where the apparatus includes:
the script template acquisition module is used for acquiring an experiment record script template, wherein the experiment record script template comprises a variable label and a script mark corresponding to the variable label, the variable label is generated by marking the text content in the existing experiment record, and the script mark is generated according to the preset grammar of the experiment record script;
the template conversion compiling module is used for carrying out format conversion on the text content in the experiment record script template to generate a webpage label, and the webpage label is used for displaying on a page; compiling the script marks to generate a data processing file corresponding to the webpage label;
and the experiment record template generating module is used for generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the template generating method described in any of the embodiments of the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the template generating method described in any one of the embodiments of the first aspect.
The template generation method, the template generation device, the computer equipment and the storage medium are characterized in that an experimental record script template with a variable label and a script mark is obtained; carrying out format conversion on text contents in the experiment record script template to generate a webpage label; compiling script marks in the experiment record script template to generate a data processing file corresponding to the webpage label; the experiment record template is generated according to the webpage label and the data processing file corresponding to the webpage label, the modified experiment record script template can be obtained by directly modifying the variable label and the script mark of the experiment record script template, and then the modified experiment record template is obtained, so that the flexibility of constructing the experiment record template is enhanced, and the working efficiency is improved.
In addition, when the experiment record template needs to be newly added with items, the items need to be added in the traditional technology by means of recompiling the experiment record template, and through the template generation method, the device, the computer equipment and the storage medium, the experiment record template after the newly added items can be generated by directly adding new variable tags and script marks on the existing experiment record script template, so that the method has strong expansibility.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present specification, and for those skilled in the art, other drawings may be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a template generation method in one embodiment;
FIG. 2 is a flowchart illustrating a method for generating a template according to an embodiment;
FIG. 3 is a flowchart illustrating the experimental record script template acquisition step in one embodiment;
FIG. 4 is a flowchart illustrating the experimental record script template acquisition step in another embodiment;
FIG. 5 is a flowchart illustrating the experimental record script template acquisition step in another embodiment;
FIG. 6 is a schematic flow chart illustrating the generation of an experimental record template in one embodiment;
FIG. 7 is a flowchart illustrating the debugging steps of the test record template in one embodiment;
FIG. 8 is a flowchart illustrating a method for generating a template according to an embodiment;
FIG. 9 is a flowchart illustrating a method for generating a template according to one embodiment;
FIG. 10 is a block diagram showing the structure of a template generating apparatus according to an embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The template generation method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 acquires an experiment record script template generated by the terminal 102, wherein the experiment record script template comprises a variable tag generated by the terminal 102 by marking the text content in the existing experiment record and a script tag generated by the terminal 102 according to the preset grammar of the experiment record script; the server 104 performs format conversion on the text content in the experiment record script template to generate a webpage label; the server 104 compiles the script marks to generate a data processing file corresponding to the webpage label; the server 104 generates an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the portable wearable devices may be smart watches and smart bracelets. The server 104 may be implemented as a stand-alone server or a server cluster consisting of a plurality of servers or a server cluster consisting of a server and a terminal connected to the server.
In one embodiment, as shown in fig. 2, a template generating method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
and step S202, acquiring an experiment record script template.
The experiment record script template comprises a variable label and a script mark, and can be a script template used for compiling the experiment record template. And the experiment record template may be a template for generating an experiment record from the acquired experiment record data. The variable label is generated by labeling the text content in the existing experiment record, for example, the variable label can be generated by labeling the experiment number in the existing experiment record. The script marks are generated according to preset experimental record script grammar, and the script marks are used for defining the acquisition mode, the constraint rule and other contents of the variable labels corresponding to the script marks. The preset experiment record script syntax may include, but is not limited to: the method comprises the following steps of defining a start symbol and an end symbol, defining basic fields of collected data, defining a data format, defining a data source, defining instrument collection constraints, defining file analysis constraints, defining field condition judgment, defining summary fields and defining a data processing mode.
Specifically, the server responds to the compiling request of the experiment record template and obtains the experiment record script template uploaded by the terminal. The compiling request of the experiment record template can be triggered manually by a user, for example, the user clicks a compiling key of the corresponding experiment record template on a page to trigger the compiling request of the experiment record template; the server may also be triggered automatically, for example, after detecting that the terminal uploads the experiment record script template, the server automatically triggers the compilation request of the experiment record template.
And step S204, converting the format of the text content in the experiment record script template to generate a webpage label.
The text content refers to the content of the experiment record script template in the text format except for the script mark. The web page tags may be used to characterize tags in the hypertext Markup language html (hyper Text Markup language) format that can be recognized by a web page, and the web page tags may be used to be displayed on the page.
Specifically, the server responds to a format conversion request, extracts text content from the experiment record script template, converts the text content into hypertext markup language content, and generates a webpage label.
And step S206, compiling the script marks in the experiment record script template to generate a data processing file corresponding to the webpage label.
Wherein, compiling can be used for representing and converting script marks in text format into script marks in binary language format which can be recognized by a computer. The data processing file may be a file for performing data processing on experimental data acquired through the web tag. The data processing may be, but not limited to, processing the acquired experimental data according to a preset data format, a preset data source, and a preset data calculation formula.
Specifically, the server responds to a compiling request of the script marks, extracts the script marks from the experiment record script template, and generates a data processing file which is in a binary language format and can be recognized by a computer and corresponds to the webpage label according to the script marks in the text format.
And step S208, generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
The experiment record template may be a template that can be displayed on a page.
Specifically, the server responds to a request for generating the experiment record template, acquires the webpage label and the data processing file corresponding to the webpage label, generates the experiment record template according to the webpage label and the data processing file corresponding to the webpage label, and displays the experiment record template on the page.
In the template generation method, an experimental record script template with a variable label and a script mark is obtained; carrying out format conversion on text contents in the experiment record script template to generate a webpage label; compiling script marks in the experiment record script template to generate a data processing file corresponding to the webpage label; the experiment record template is generated according to the webpage label and the data processing file corresponding to the webpage label, the modified experiment record script template can be obtained by directly modifying the variable label and the script mark of the experiment record script template, and then the modified experiment record template is obtained, so that the flexibility of constructing the experiment record template is enhanced, and the working efficiency is improved.
In addition, when the experiment record template needs to be newly added with items, the items need to be added in the traditional technology by means of recompiling the experiment record template, and through the template generation method, the experiment record template after the newly added items can be generated by directly adding new variable labels and script marks on the existing experiment record script template, so that the method has strong expansibility.
In one embodiment, as shown in fig. 3, step S202, obtaining an experiment record script template includes:
and step S302, acquiring and displaying existing experiment records.
The experiment record includes text contents, such as experiment numbers, experiment steps, experiment data, and the like.
Specifically, the terminal responds to a request generated by an experiment record script template, acquires an existing experiment record from an experiment record database and displays the existing experiment record on a display screen.
Step S304, in response to the marking operation of the target content in the text content, marking the position of the target content and replacing the target content with a variable label.
The target content is replaceable content in the text content of the experiment record, for example, the experiment numbers of all the experiment records are different, and the experiment numbers belong to the replaceable text content for the experiment records. Therefore, the terminal can generate a variable label of the experiment number according to the experiment number.
Specifically, the terminal responds to marking operation of replaceable target content in the text content, the position of the target content is obtained, the position of the target content is marked through a middle bracket, and the target content is replaced by a variable tag. The variable tag may be automatically generated by the terminal according to the target content, or generated by the terminal acquiring the content input by the user.
Illustratively, when the text content has the content of the Experiment Number XXXXXX, the terminal acquires the position of the replaceable target content XXXXXX, marks the position of the replaceable content by using a middle bracket to obtain the Experiment Number (XXXX), generates a variable tag (Experiment Number) corresponding to the target content, and replaces the target content with the variable tag to obtain the Experiment Number (Experiment Number).
Step S306, acquiring script marks corresponding to the variable labels.
And step S308, generating an experiment record script template according to the experiment record added with the variable label and the script mark.
The script marks are marks in a text format generated according to preset experimental record script syntax. The script markup can include a field name. The field name is generated from the variable tag corresponding to the script tag. Therefore, the script tag can establish a corresponding relationship with the variable tag through the field name.
Specifically, the terminal acquires a field name generated according to the variable tag, and acquires a script tag corresponding to the variable tag according to the field name, wherein the script tag may be a script tag with the field name automatically generated by the terminal according to a preset experiment record script grammar, or a script tag with the field name input by the terminal according to a preset experiment record script grammar. And generating an experiment record script template according to the experiment record added with the variable label and the script mark in the text format.
In one embodiment, a manner of defining an experiment record script syntax is described, and the experiment record script syntax may include, but is not limited to:
script markup start definitions: the script mark start symbol is |, namely the content behind |) is the script mark; script markup terminator definition: the script mark terminator is |, namely the content before the |, is the script mark.
Script markup paragraph starters define: the paragraph has no start symbol, and script marks all start from the start position of the paragraph; script markup paragraph endpointer definition: the script markup paragraph terminator is | &, and there cannot be space in the | & middle, i.e. the content before | & is script markup.
Basic field definition of acquisition value: the basic field of the collected value is field name, the field name is the only mark of the field corresponding to the variable label in the whole experiment record script template, and the field name is generated according to the variable label.
And (3) defining basic fields of the acquisition array: the basic field of the acquisition array is the name of the | x field (n) |, or the name of the | x field (n, m) |, wherein the name of the | x field (n) |, n in the brackets represents the number of the array, the name of the | x field (n, m) |, n parameter in the brackets represents the initial position of the array, and m parameter represents the ending position of the array.
Data format and reduction condition definition: the data format and the reduction condition are marked as | field name, the data format |, the data format is a whole and can not be used separately, and the data format can support the following conditions: b represents the rounding, wherein a represents an integer number, and b represents a decimal number; ba.b represents that the rounding is a designated decimal place, and the rounding mode is four rounds, six rounds, five rounds and two shares, wherein a represents an integer digit, and b represents a decimal place; gc represents the number of significant digits for trimming, and the trimming is rounding, wherein c represents the number of significant digits; nc represents the number of significant digits for repairing, and the repairing mode is four-shed six-in five-in two-leaving, wherein c represents the number of significant digits; ia represents an integer of a designated number of repair bits, the repair mode is rounding, wherein a represents the number of the integer bits; sa represents a set string length, where a represents an integer number of bits; date { yyyy-MM-dd hh: MM: ss } represents a display format set to Date format and Date is defined by curly brackets, where yyyy represents year, MM represents month, dd represents character string length, hh represents hour, MM represents minute, ss represents second.
Drop option data source option flag definition: the data source option of the pull-down option is marked as | -SELECT, wherein the field name { "SELECT 1" | "SELECT 2" | "SELECT 3" | "SELECT 4" | "SELECT 5" }, "SELECT 5", only can SELECT listnly |, the option in the curly brace is the option in the pull-down option, the comma content of the second segment is the default value of the pull-down option, can be null, the last option is the control value enumeration of the pull-down option, and the control value comprises the option of only selecting listnly and the permission of inputting MANUAL ENTRY.
Instrument acquisition constraint marker definition: instrument acquisition constraint is labeled as | field name ═ EIN (keyword): device Type: reading Name, F3.1 (reduction mode) |, and configures analysis parameters through a keyword EIN.
File parsing constraint flag definition: the file analysis constraint is marked as | field Name ═ XEIN (Keyword), Device Type, Keyword, Reading Name, Parsing Name ═ and Parsing Name [, Parsing Name [ ], and Parsing parameters are configured through the Keyword XEIN.
And field condition judgment definition: the field condition judgment is marked as limiting LIMIT, the field name is qualified condition 1 and qualified condition 2 and qualified condition 3, the message prompting content is limited, the field name is qualified condition 1 or qualified condition 2, the message prompting content is limited, the limiting condition is set for a certain field through limiting the key LIMIT, the condition can comprise a group of conditions, the condition can be combined through the key and or the key or, and the message prompting content is prompting information which does not meet the condition.
Summary field definition: the summary field is marked as |) summary SUBS, wherein the conclusion is the field name { ═ qualification condition 1"or ═ qualification condition 2": the ' conformity with the provision ' | < > ' qualification condition 1": the ' nonconformity with the provision ' | < > ' qualification condition 2 ': the ' nonconformity ' } |, summary key words SUB output summary field information, the summary field can automatically judge and generate conclusion information, the judgment can be carried out according to the combination of a plurality of groups of conditions, the conditions in one group of conditions are distinguished through | and are combined through key words and or, and the conclusion information is a segment of message text.
The field formula is computationally defined: the field formula is marked as |. the field name ═ formula, the data format |, the formula is obtained by combining the conventional operation signs (such as absolute value ABS, summation SUM, AVERAGE value AVERAGE, maximum value MAX, minimum value MIN, modulo MOD, variance STDEV and other conventional operation signs), the four arithmetic operation signs (such as plus +, minus-, multiplication |, division/, power ^ sign), left bracket, right bracket and the data field names participating in calculation according to the algorithm, and the data format setting is the same as the data format setting of the fields.
In this embodiment, existing experiment records are obtained, target contents in the experiment records are marked, the target contents are replaced with variable tags, script tags in a text format corresponding to the variable tags are generated according to preset experiment record script syntax, an experiment record script template is generated by adding the variable tags and the experiment records of the script tags, batch marking of the experiment record script template can be performed by copying and pasting the script tags in the text format, the generation difficulty of the experiment record script template can be reduced, and the generation efficiency of the experiment record script template is improved.
In one embodiment, step S306, acquiring a script tag corresponding to the variable tag includes: and responding to the input operation of the preset position of the paragraph where the variable label is located, and acquiring the script mark currently input by the user.
The preset position comprises any one of a starting position of a paragraph where the variable mark is located, a middle position of the paragraph and an end position of the paragraph.
Specifically, the terminal responds to an input operation on a preset position of a paragraph where the variable label is located, and obtains a script mark currently input by a user at the preset position.
In this embodiment, by inputting the script mark at the preset position of the paragraph where the variable tag is located, a more accurate correspondence between the variable tag and the script mark can be obtained. In addition, through setting up fixed position for the script mark, can also be convenient for the server draws from the experiment record script template and obtain the script mark, help promoting the accuracy of experiment record template.
In one embodiment, as shown in fig. 4, step S308, generating an experiment record script template according to the experiment record to which the variable tag and the script tag have been added, includes:
and S402, responding to the verification operation of the experiment record added with the variable label and the script mark, and performing grammar verification on the script mark according to a preset grammar verification rule.
The preset grammar check rule can be used for checking whether the script mark in the experiment record script template is correct, for example, the grammar check is carried out on the script mark according to keywords defined by the grammar of the experiment record script (for example, pull-down option keywords: only being able to select LISTONLY and being allowed to input MANUAL ENTRY), constraint rules of the grammar of the experiment record script (for example, data format and reduction condition definitions, instrument collection constraint keywords EIN, file parsing constraint keywords XEIN), variable parameters quoted by variable tags and field formula calculation definitions in the grammar of the experiment record script.
Specifically, the terminal responds to the verification operation of the experiment record added with the variable tag and the script tag, starts a preset verification command, compares the preset verification command according to the keywords defined by the grammar of the experiment record script, the constraint rule, the variable parameters quoted by the variable tag and the calculation formula corresponding to the variable parameters, and performs grammar verification on the script tag. If the syntax check is correct, step S404 is executed. If the syntax check results in the script tag having error content, step S406 is executed.
And S404, obtaining an experiment record script template.
Specifically, when the terminal performs syntax verification on the script marks to obtain a result of correct syntax verification, an experiment record script template is obtained, and the experiment record script template is uploaded to the server.
And S406, correcting the error content of the script mark, and repeating the steps S402 to S406 until the grammar check is correct.
Specifically, when the terminal performs syntax check on the script tag to obtain a result that the syntax check has error content, the error content of the script tag is marked (for example, a manner of changing a font color of the error content, changing a background color of an area where the error content is located, and the like), and the marked script tag is displayed, so that a user can quickly view the error content and correct the error content. And the terminal acquires the correction content input by the user aiming at the error content of the script mark to obtain the corrected script mark. And the terminal repeats the steps S402-S406, starts the verification operation on the corrected script mark again until the grammar verification of the script mark is carried out to obtain a result with correct grammar verification, obtains an experiment record script template, and uploads the experiment record script template to the server.
In the embodiment, the grammar checking is carried out on the script marks according to the preset grammar checking rule through the preset checking command, so that the checking operation can be simplified, the grammar accuracy of the experiment record script template is improved, and the error probability of the experiment record script template is further reduced.
In one embodiment, the experimental record script template may be generated using office software Microsoft Word. As shown in fig. 5, the manner of acquiring the experiment record script template includes:
step S502, obtaining the experiment record in the Word format, marking the experiment record by adopting the variable label, and generating the experiment record with the variable label.
Specifically, the terminal obtains and displays scattered Word-format experiment records through office software Microsoft Word, and marks parts needing to be replaced in text contents of the experiment records by adopting variable tags to generate the experiment records with the variable tags. The specific variable tag generation manner can be implemented by referring to the method provided in the above embodiment, which is not specifically set forth herein.
And step S504, generating script marks according to the script grammar of the experiment records, adding the script marks to the preset positions of the experiment records, and generating the experiment records with the script marks.
The script marks are used for carrying out reference setting and constraint rule definition on variable labels corresponding to the script marks. The experiment record script grammar is generated based on Word format.
Specifically, script marks in a text format corresponding to the variable tags are generated according to the preset text format experiment record script syntax, the script marks are added to the preset positions corresponding to the variable tags in the experiment records, and the experiment records with the script marks are generated. The specific script mark generation manner and the selection manner of the preset position may be implemented by referring to the method provided in the above embodiment, which is not specifically described herein.
And step S506, carrying out grammar check on the script marks in the experiment records with the script marks by adopting Word macro commands.
And step S508, taking the experiment record with correct grammar check as an experiment record script template.
Specifically, the terminal starts a Word macro command to check the script mark according to a preset grammar check rule. When the grammar check is correct, taking the experiment record with the correct grammar check as an experiment record script template; when the grammar verification has error content, marking the error content to obtain the correction content of the error content, correcting the script mark of the experiment record according to the correction content, performing grammar verification on the corrected script mark again until the grammar verification is correct, and taking the experiment record with the correct grammar verification as an experiment record script template. The specific syntax checking method can be defined by referring to the methods provided in the above embodiments, and is not specifically described herein.
In the embodiment, according to the characteristic that office software Microsoft Word is required to process a large amount of documents and format typesetting in daily work of laboratory staff and is usually very skilled in Microsoft Word operation, the office software Microsoft Word most familiar to business staff is adopted to generate the experimental record script template with variable labels and script marks, so that the editing work of the experimental record script template can be completed without changing the existing work flow, and the format adjusting capability and macro processing capability of Word are effectively utilized, so that the format of the experimental record script template can meet various complicated personalized requirements. Moreover, the script mark of the experiment record script template can be immediately checked in Word through Word macro commands by adopting the Word to generate the experiment record script template, so that the grammar error can be marked in time, and the script grammar accuracy of the experiment record script template is improved.
In addition, a set of simple experiment record script grammar based on plain text is defined in the embodiment, the script marks in the plain text format are generated according to the experiment record script grammar, and the experiment records can be marked in batches by copying and pasting the script marks, so that the generation efficiency of the experiment record script template is improved, and the compiling difficulty is reduced. Compared with the traditional technology, the method provided by the embodiment can reduce the time for averagely designing an experimental record script template from 1 week to within 3 days, thereby greatly improving the working efficiency.
In one embodiment, step S206, compiling the script tag in the experiment record script template to generate a data processing file corresponding to the web page tag, includes: and extracting the script marks from the experiment record script template through a script compiling engine, and converting the script marks into a preset file format to obtain a data processing file corresponding to the webpage label.
The script compiling engine is a computer programming language converter, and can be used for converting program texts input by a user into machine codes capable of being executed by a computer to generate programs capable of being run by the computer. The preset file format is a script JSON format.
Specifically, the server responds to a compiling request of the script mark, starts a script compiling engine, extracts the script mark from an experiment record script template through the script compiling engine, converts the script mark in a text format into the script mark in a script JSON format which can be recognized by a computer, and obtains a data processing file corresponding to the webpage label.
Further, the server may sequentially generate data processing files corresponding to the respective script marks in an order in which the script marks appear in the experiment recording script template. Or, performing batch conversion on all script marks in the experiment record script template to generate a data processing file corresponding to the script marks.
In this embodiment, the script markup in the text format is converted into the script markup in the script JSON format that can be recognized by the computer through the script compiling engine, so as to obtain the data processing file corresponding to the web page tag, thereby reducing the difficulty in generating the data processing file. In addition, the script compiling engine can compile script marks in batches, great convenience can be brought to the manufacture of the experiment record template, and the generation efficiency of the experiment record template is improved.
In one embodiment, as shown in fig. 6, in step S208, generating an experiment record template according to the web page tag and the data processing file corresponding to the web page tag includes:
step S602, the webpage label is analyzed through the script compiling engine, and the analyzed webpage label is obtained.
And the analyzed webpage label can be displayed on the page.
Specifically, the server obtains a parsing request of the web page label, starts a script compiling engine, parses the web page label through the script compiling engine, expands the web page label into a programming code which can be executed by a computer, and obtains the parsed web page label.
Step S604, generating a data input control according to the parsed webpage label and the data processing file corresponding to the webpage label.
The data input control can be used for representing a text box for receiving experimental data input by a user, wherein the input experimental data correspond to the webpage label; and processing the experimental data according to the data processing file corresponding to the webpage label.
Specifically, the server responds to a request for generating the data input control, obtains the analyzed webpage label and the data processing file corresponding to the webpage label, and generates the data input control.
In one example, the script compilation engine: the Experiment Number [ experimental Number ] is analyzed to obtain a webpage label: an Experiment code < input type ═ text "name ═ experimental Number > generates a text box for receiving the Experiment code on the right side of the Experiment code according to the < input type ═ text" name ═ experimental Number >.
In another example, when the data input control is multiple, the data input control is displayed according to the execution sequence of the data processing files corresponding to the data input control. For example, the data processing file corresponding to the data input control a is arranged at the first position in the execution sequence, and the data processing file corresponding to the data input control B is arranged at the second position in the execution sequence, so that the data input control a is displayed in the page first, and then the data input control B is displayed.
And step S606, generating an experiment record template according to the analyzed webpage label and the data input control.
Specifically, the server responds to an experiment record template generation request, obtains the analyzed webpage label and the analyzed data input control, displays the data input control on the webpage label corresponding to the data input control in a text box format, and generates and displays an experiment record template on a page.
In the embodiment, the webpage label is analyzed through the script compiling engine, the input control corresponding to the webpage label is generated, and the experiment record template is generated and displayed on the page according to the analyzed webpage label and the data input control, so that business personnel do not need to care about the conversion process, only need to concentrate on the corresponding relation between the template format and the script label, great convenience is brought to template manufacturing, and the difficulty in generating the experiment record template is reduced.
In one embodiment, as shown in fig. 7, in step S208, generating an experiment record template according to the web page tag and the data processing file corresponding to the web page tag, further includes:
step S702, responding to the debugging operation of the experiment record template, and receiving simulation data through the data input control corresponding to the webpage label.
Step S704, the analog data is processed by the data processing file corresponding to the web tag.
The simulation data can be simulation experiment data which are input by a user and used for debugging the experiment record template, and the simulation data meet a preset data rule of the experiment record template. For example, if an experimental record requires that three valid values for cell concentration be collected, the cell concentration may be modeled as 34.6.
Specifically, the server responds to the debugging operation on the experiment record template, obtains the simulation data currently input by the user in the data input control corresponding to the webpage label, and processes the simulation data according to the data processing file corresponding to the data input control. When the simulation data is determined to satisfy the condition of the data processing file constraint, executing step S706; when it is determined that the simulation data does not satisfy the condition of the data processing file constraint, step S708 is executed.
And step S706, issuing an experiment record template.
The conditions of the data processing file constraint may include, but are not limited to, a data format constraint, a data source constraint, and the like, and specifically refer to the definition rule of the above-mentioned experimental record script syntax.
Specifically, the server compares the simulation data with the constraint condition of the data processing file, determines that the debugging of the experiment record template is successful by determining that the simulation data meets the constraint condition of the data processing file, and issues the experiment record template.
And S708, positioning and displaying the script marks corresponding to the webpage labels, acquiring the correction content of the script marks, obtaining the corrected experiment record template, and repeating the steps S702-S708 until the simulation data meet the constraint condition of the data processing file.
Specifically, the server compares the simulation data with the constraint condition of the data processing file, and determines that the simulation data does not meet the constraint condition of the data processing file. And acquiring a corresponding data processing file according to the webpage label corresponding to the data input control, and positioning and displaying the script mark corresponding to the constraint condition of the data processing file in the script mark corresponding to the data processing file. And acquiring the correction content of the script mark, correcting the script mark, generating a corrected experiment record script template according to the corrected script mark, and generating a corrected experiment record template according to the corrected experiment record script template. And the server repeats the steps S702 to S708, and triggers debugging operation on the corrected experiment record template again until the simulation data meet the data processing file constraint condition corresponding to the corrected experiment record template, and then issues the corrected experiment record template.
In one example, some cases where the simulated data does not satisfy the conditions of the data processing file constraints may be:
the input analog data comprises three-bit effective numbers, but if the constraint condition in the data processing file corresponding to the webpage label corresponding to the data input control is two-bit effective numbers, the analog data does not meet the constraint condition of the data processing file. The terminal obtains a data processing file corresponding to the webpage label corresponding to the data input control, positions and displays script marks corresponding to the data format constraint conditions in script marks corresponding to the data processing file, modifies the constraint conditions into three-digit effective numbers, further generates a modified experiment record template, debugs the modified experiment record template again, determines that the simulation data meets the data processing file constraint conditions, determines that the modified experiment record template is successfully debugged, generates a debugging log, and issues the modified experiment record template.
Or the input simulation data is A (an instrument type), but the constraint condition in the data processing file corresponding to the webpage label corresponding to the data input control is the equipment type, and the simulation data does not meet the constraint condition of the data processing file. The terminal obtains a data processing file corresponding to the webpage label corresponding to the data input control, positions and displays script marks corresponding to the data format constraint conditions in script marks corresponding to the data processing file, modifies the constraint conditions into instrument types, further generates a modified experiment record template, debugs the modified experiment record template again, determines that simulation data meets the data processing file constraint conditions, determines that the modified experiment record template is successfully debugged, generates a debugging log, and issues the modified experiment record template.
In this embodiment, the experiment record template is debugged by acquiring the simulation data, so that the final data acquisition can be ensured to be stored according to the preset data rule of the experiment record template.
In one embodiment, as shown in fig. 8, there is provided a template generating method, the template generating method including:
and step S802, acquiring and displaying the existing experiment records.
Specifically, the terminal responds to a request generated by an experiment record script template, acquires an existing experiment record from an experiment record database and displays the existing experiment record on a display screen.
Step S804, in response to the marking operation on the target content in the text content, marking the position of the target content, and replacing the target content with a variable tag.
Specifically, the terminal responds to marking operation of replaceable target content in the text content, the position of the target content is obtained, and the position of the target content is marked through a middle bracket. The terminal acquires content input by a user to generate a variable label, and replaces the target content with the variable label.
Step S806, in response to the input operation on the preset position of the paragraph where the variable label is located, obtaining the script mark currently input by the user.
Specifically, the terminal responds to an input operation at the tail position of the paragraph where the variable label is located, and obtains the script mark currently input at the preset position by the user.
And step S808, responding to the verification operation of the experiment record added with the variable label and the script mark, and obtaining an experiment record script template when the grammar verification is correct.
Specifically, the terminal responds to the verification operation of the experiment record added with the variable label and the script mark, the script mark is verified according to a preset grammar verification rule, and when the grammar verification is correct, an experiment record script template is obtained and uploaded to the server. The specific checking operation may be implemented by referring to the checking manner provided in the above embodiments, and is not specifically described herein.
And step S810, performing format conversion on the experiment record script template through a script compiling engine to obtain a webpage label and a data processing file corresponding to the webpage label.
Specifically, the server responds to the format conversion request, starts a script compiling engine, and performs format conversion on the experiment record script template to obtain a webpage label and a data processing file corresponding to the webpage label. The specific format conversion and the obtaining of the web page tag and the data processing file can be implemented by referring to the methods provided in the above embodiments, which are not specifically described herein.
Step S812, parsing the webpage label to obtain a parsed webpage label, and generating a data input control according to the parsed webpage label and the data processing file corresponding to the webpage label.
Specifically, the server starts a script compiling engine to analyze the webpage label to generate a data input control. The specific parsing of the web page label and generation of the data input control may be implemented by operating the method provided in the above embodiments, and are not specifically described herein.
Step S814, generating an experiment record template according to the parsed web page label and the data input control.
Specifically, the server responds to a request for generating the experiment record template, and generates the experiment record template according to the analyzed webpage label and the data input control. The specific generation of the experiment record template can be implemented by referring to the modes provided in the above embodiments, and is not specifically described herein.
Step S816, in response to the debugging operation on the experiment record template, issues the successfully debugged experiment record template.
Specifically, the server responds to debugging operation of the experiment record template, and when the debugging is determined to be successful, the current experiment record template which is successfully debugged is issued. The specific debugging operation can be implemented by referring to the manner provided in the above embodiments, and is not specifically set forth herein.
In the embodiment, the experiment record script template is generated through the variable label and the script mark and grammar check is carried out, the correct experiment record script template for grammar check is processed through the script compiling engine, the webpage label and the data processing file are generated, the experiment record template is generated according to the webpage label and the data processing file and is debugged, the successfully debugged experiment record template is released, the modified experiment record script template can be obtained through directly modifying the variable label and the script mark of the experiment record script template, the modified experiment record template is further obtained, the flexibility of the experiment record template is enhanced, and the working efficiency is improved.
In one example, as shown in fig. 9, a specific flow of template generation includes: editing an experiment record script template in the Office of the client, uploading the experiment record script template with the script mark which passes the grammar check to the server by the client, asynchronously processing the compiling and converting process of the experiment record script template in batch by the server, and finally debugging and applying the experiment record template at the browser end.
According to the embodiment, an experiment record script template is compiled in a client word, the client carries out script marking grammar check, a server carries out compiling and converting modes of the experiment record script template, debugging and publishing are realized at a browser end, for template users, the experiment record template can be used only through the browser, and all experiment data acquired through the experiment record template are structurally stored, so that complete digital management of the experiment data can be realized.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above flowcharts may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the description of the embodiment of the template generation method, the present disclosure also provides a template generation apparatus. The apparatus may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with any necessary apparatus to implement the hardware. Based on the same innovative concept, the embodiments of the present disclosure provide an apparatus in one or more embodiments as described in the following embodiments. Because the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present description may refer to the implementation of the foregoing method, and repeated details are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
In one embodiment, as shown in fig. 10, there is provided a template generating apparatus 1000, including: a script template obtaining module 1002, a template conversion compiling module 1004 and an experiment record template generating module 1006, wherein:
the script template obtaining module 1002 is configured to obtain an experiment record script template, where the experiment record script template includes a variable tag and a script tag corresponding to the variable tag, the variable tag is generated by tagging text content in an existing experiment record, and the script tag is generated according to a preset experiment record script syntax.
The template conversion compiling module 1004 is used for performing format conversion on the text content in the experiment record script template to generate a webpage label, wherein the webpage label is used for displaying on a page; and compiling the script marks to generate a data processing file corresponding to the webpage label.
The experiment record template generating module 1006 is configured to generate an experiment record template according to the web tag and the data processing file corresponding to the web tag.
In one embodiment, the script template retrieving module 1002 includes:
the experimental record acquisition unit is used for acquiring and displaying the existing experimental record, wherein the experimental record comprises the text content; the variable label marking unit is used for marking the position of the target content in the text content in response to the marking operation of the target content and replacing the target content with the variable label; the script marking unit is used for acquiring script marks corresponding to the variable labels, wherein the script marks are generated according to the experimental record script grammar; and the script template generating unit is used for generating an experiment record script template according to the experiment record added with the variable label and the script mark.
In one embodiment, the script template generating unit includes:
the script grammar checking subunit is used for responding to the checking operation of the experiment record added with the variable label and the script mark and carrying out grammar checking on the script mark according to a preset grammar checking rule; when the grammar check is correct, obtaining an experiment record script template; and when the grammar checking has error content, correcting the error content of the script mark and checking again until the grammar checking of the script mark is correct to obtain an experiment record script template.
In one embodiment, a script markup unit, comprising:
and the script mark input subunit is used for responding to the input operation of the preset position of the paragraph where the variable label is located and acquiring the script mark currently input by the user, wherein the preset position comprises any one of the starting position of the paragraph, the middle position of the paragraph and the tail position of the paragraph.
In one embodiment, the template translation compilation module 1004 includes:
and the data processing file generating unit is used for extracting script marks from the experiment record script template through a script compiling engine, and converting the script marks into a preset file format to obtain a data processing file corresponding to the webpage label.
In one embodiment, the experiment record template generating module 1006 includes:
the webpage label analyzing unit is used for analyzing the webpage label through the script compiling engine to obtain the analyzed webpage label; the input control generating unit is used for generating a data input control according to the analyzed webpage label and the data processing file corresponding to the webpage label, wherein the data input control is used for receiving input experimental data corresponding to the webpage label and processing the experimental data according to the data processing file corresponding to the webpage label; and the experiment template generating unit is used for generating an experiment record template according to the analyzed webpage label and the data input control.
In one embodiment, the experiment record template generating module 1006 further includes:
the template debugging unit is used for responding to debugging operation of the experiment record template and receiving simulation data through the data input control corresponding to the webpage label; processing the simulation data through a data processing file corresponding to the webpage label, and issuing an experiment record template when the simulation data are determined to meet the constraint condition of the data processing file; and when the simulation data are determined not to meet the constraint condition of the data processing file, positioning and displaying the script marks corresponding to the webpage labels, acquiring the correction content of the script marks, generating a corrected experiment record template according to the corrected script marks, and issuing the corrected experiment record template after the corrected experiment record template is determined to be successfully debugged.
For specific definition of the template generating device, reference may be made to the above definition of the template generating method, which is not described herein again. The modules in the template generating apparatus may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a template generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A template generation method, the method comprising:
acquiring an experiment record script template, wherein the experiment record script template comprises a variable label and a script mark corresponding to the variable label, the variable label is generated by marking the text content in the existing experiment record, and the script mark is generated according to the preset grammar of the experiment record script;
carrying out format conversion on the text content in the experiment record script template to generate a webpage label, wherein the webpage label is used for displaying on a page;
extracting the script marks from the experiment record script template through a script compiling engine, converting the script marks into a preset file format, and obtaining a data processing file corresponding to the webpage label;
and generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
2. The method of claim 1, wherein obtaining an experiment record script template comprises:
acquiring and displaying the existing experiment record, wherein the experiment record comprises the text content;
in response to the marking operation of the target content in the text content, marking the position of the target content, and replacing the target content with the variable label;
acquiring script marks corresponding to the variable labels, wherein the script marks are generated according to the grammar of the experiment record script;
and generating the script template of the experiment record according to the experiment record added with the variable label and the script mark.
3. The method according to claim 2, wherein the generating the experiment record script template according to the experiment record to which the variable tag and the script tag have been added comprises:
responding to the verification operation of the experiment record added with the variable label and the script mark, and performing grammar verification on the script mark according to a preset grammar verification rule;
when the grammar check is correct, obtaining the experiment record script template;
and when the grammar verification has error content, correcting the error content marked by the script and verifying again until the grammar verification of the script mark is correct to obtain the experiment record script template.
4. The method of claim 2, wherein obtaining the script tag corresponding to the variable tag comprises:
responding to an input operation on a preset position of a paragraph where the variable label is located, and acquiring the script mark currently input by a user, wherein the preset position comprises any one of a starting position of the paragraph, a middle position of the paragraph and an ending position of the paragraph.
5. The method of claim 1, wherein generating an experiment record template according to the webpage tag and a data processing file corresponding to the webpage tag comprises:
analyzing the webpage label through the script compiling engine to obtain the analyzed webpage label;
generating a data input control according to the analyzed webpage label and a data processing file corresponding to the webpage label, wherein the data input control is used for receiving input experimental data corresponding to the webpage label and processing the experimental data according to the data processing file corresponding to the webpage label;
and generating the experiment record template according to the analyzed webpage label and the data input control.
6. The method of claim 5, further comprising:
responding to debugging operation of the experiment record template, and receiving simulation data through the data input control corresponding to the webpage label;
processing the simulation data through the data processing file corresponding to the webpage label, and issuing the experiment record template when the simulation data are determined to meet the constraint condition of the data processing file;
when the simulation data are determined not to meet the constraint condition of the data processing file, locating and displaying a script mark corresponding to the webpage label, acquiring the correction content of the script mark, generating a corrected experiment record template according to the corrected script mark, and issuing the corrected experiment record template after the corrected experiment record template is determined to be successfully debugged.
7. The method according to any one of claims 1 to 6, wherein the preset file format is a script JSON format.
8. A template generation apparatus, the apparatus comprising:
the script template acquiring module is used for acquiring an experiment record script template, wherein the experiment record script template comprises a variable tag and a script mark corresponding to the variable tag, the variable tag is generated by marking the text content in the existing experiment record, and the script mark is generated according to the preset grammar of the experiment record script;
the template conversion compiling module is used for carrying out format conversion on the text content in the experiment record script template to generate a webpage label, and the webpage label is used for displaying on a page; extracting the script marks from the experiment record script template through a script compiling engine, and converting the script marks into a preset file format to obtain a data processing file corresponding to the webpage label;
and the experiment record template generating module is used for generating an experiment record template according to the webpage label and the data processing file corresponding to the webpage label.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111170616.XA 2021-10-08 2021-10-08 Template generation method and device, computer equipment and storage medium Active CN113900641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111170616.XA CN113900641B (en) 2021-10-08 2021-10-08 Template generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111170616.XA CN113900641B (en) 2021-10-08 2021-10-08 Template generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113900641A CN113900641A (en) 2022-01-07
CN113900641B true CN113900641B (en) 2022-07-22

Family

ID=79190374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111170616.XA Active CN113900641B (en) 2021-10-08 2021-10-08 Template generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113900641B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115688733B (en) * 2022-12-29 2023-05-02 南方电网科学研究院有限责任公司 Method and system for writing standard document

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899203A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Webpage generating method, webpage generating device and terminal equipment
CN106339836A (en) * 2016-08-18 2017-01-18 杭州布理岚柏科技有限公司 Application extension method based on experimental variable
CN112114807A (en) * 2020-09-28 2020-12-22 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN112800724A (en) * 2020-12-29 2021-05-14 杭州涂鸦信息技术有限公司 Readable file export method of visual configuration template and related device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10474435B2 (en) * 2017-08-07 2019-11-12 Sap Se Configuration model parsing for constraint-based systems
CN110471899A (en) * 2018-05-11 2019-11-19 懿谷智能科技(上海)有限公司 A kind of laboratory test report preparing system and method
CN111414740B (en) * 2020-03-17 2020-12-25 北京三维天地科技股份有限公司 Electronic experiment record book report generation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899203A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Webpage generating method, webpage generating device and terminal equipment
CN106339836A (en) * 2016-08-18 2017-01-18 杭州布理岚柏科技有限公司 Application extension method based on experimental variable
CN112114807A (en) * 2020-09-28 2020-12-22 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN112800724A (en) * 2020-12-29 2021-05-14 杭州涂鸦信息技术有限公司 Readable file export method of visual configuration template and related device

Also Published As

Publication number Publication date
CN113900641A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN100444158C (en) Web page rendering mechanism using external programmatic themes
US11886792B1 (en) Model documentation generation system
US9367432B2 (en) Testing system
CN111222070A (en) Data processing method, device, equipment and storage medium
CN109977014A (en) Code error recognition methods, device, equipment and storage medium based on block chain
CN112230892B (en) Fault management method based on extensible markup language
CN113900641B (en) Template generation method and device, computer equipment and storage medium
CN114036425A (en) Page access method, client, server and system
CN112906361A (en) Text data labeling method and device, electronic equipment and storage medium
CN110704394B (en) Report configuration modification method and device
CN113590593A (en) Method and device for generating data table information, storage medium and electronic device
CN110362688B (en) Test question labeling method, device and equipment and computer readable storage medium
CN112433929A (en) Webpage debugging method and device, computer equipment and storage medium
CN112667202B (en) Software design method and device combining MDA and BPMN
CN115080039A (en) Front-end code generation method, device, computer equipment, storage medium and product
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN111026317A (en) Method, device and storage medium for determining user operation
CN115242638B (en) Feasible touch screening method and device, electronic equipment and storage medium
CN117436429B (en) Document export method, device, computer equipment and storage medium
CN113377712B (en) Buried data query method, buried data query device, buried data query equipment and computer readable storage medium
Brindha et al. Analytical comparison of waterfall model and object-oriented methodology in software engineering
CN111126015B (en) Report form compiling method and equipment
CN116301838A (en) Form creation method, device, equipment and storage medium

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