CN113326042B - Method, device, storage medium and processor for visual configuration salary - Google Patents

Method, device, storage medium and processor for visual configuration salary Download PDF

Info

Publication number
CN113326042B
CN113326042B CN202110717697.4A CN202110717697A CN113326042B CN 113326042 B CN113326042 B CN 113326042B CN 202110717697 A CN202110717697 A CN 202110717697A CN 113326042 B CN113326042 B CN 113326042B
Authority
CN
China
Prior art keywords
salary
interface
configuration
calculation
payroll
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
CN202110717697.4A
Other languages
Chinese (zh)
Other versions
CN113326042A (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.)
Shanghai Zhijing Information Technology Co ltd
Original Assignee
Shanghai Zhijing Information Technology 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 Shanghai Zhijing Information Technology Co ltd filed Critical Shanghai Zhijing Information Technology Co ltd
Priority to CN202110717697.4A priority Critical patent/CN113326042B/en
Publication of CN113326042A publication Critical patent/CN113326042A/en
Application granted granted Critical
Publication of CN113326042B publication Critical patent/CN113326042B/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/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/37Compiler construction; Parser generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/105Human resources
    • G06Q10/1057Benefits or employee welfare, e.g. insurance, holiday or retirement packages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a method, a device, a processor and a storage medium for visually configuring salaries. The method comprises the following steps: obtaining calculation rules of salaries; generating a corresponding calculation script according to the calculation rule; compiling the calculation script into a corresponding class file; calling the class file to generate a corresponding salary configuration interface; acquiring interface parameters selected by a user through the salary configuration interface; and calculating corresponding salaries according to the interface parameters. Through the method, the payroll rule page and the daily payroll newly added page can be dynamically generated, the back-end processing logic of payroll processing is unified, the requirements of a new payroll scheme of a client are rapidly met, a release system is not needed, and meanwhile, visual configuration of payroll is realized, so that the configuration of payroll is more convenient, simple and efficient.

Description

Method, device, storage medium and processor for visual configuration salary
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, a storage medium and a processor for visually configuring salaries.
Background
When the knitting factory calculates the salary of the loom, different salary schemes exist in different knitting factories, different salary schemes exist in the same knitting factory in each time period, and even the same salary scheme, different salary rule allocation exists. In the early stage of the intelligent spinning system of the flying shuttle, in order to realize different schemes for calculating salary in a knitting factory, a hard coding mode is adopted for development. However, this method takes about two weeks to use after product design, development, testing, and online delivery to the knitting mill, and the time and labor costs are high, so that the requirements of the knitting mill cannot be met rapidly.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, a storage medium and a processor for visually configuring salaries.
To achieve the above object, a first aspect of the present invention provides a method for visually configuring salaries, including:
obtaining calculation rules of salaries;
generating a corresponding calculation script according to the calculation rule;
compiling the calculation script into a corresponding class file;
calling the class file to generate a corresponding salary configuration interface;
acquiring interface parameters selected by a user through the salary configuration interface;
and calculating corresponding salaries according to the interface parameters.
Optionally, generating the corresponding computation script according to the computation rule includes: unifying input data and output data of salary calculation; and extracting common data and non-common data in the input data and the output data.
Optionally, the interface parameters include a column header name, a field name, an option of newly adding a column header, a control type when the column header is newly added, and a new addition; at least one of configuration of control rendering in the column header, modification options of control type, whether the column header is displayed.
Optionally, the salary configuration interface includes a salary query interface and a salary newly-added interface; the step of calling the class file to generate a corresponding salary configuration interface comprises the following steps: determining a column header which is allowed to be added according to the class file; and dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration.
Optionally, generating the corresponding computation script according to the computation rule includes: and dynamically generating a corresponding Groovy script through a freemaker template according to the calculation rule.
A second aspect of the present invention provides an apparatus for visually configuring salaries, comprising:
the script generation module is used for acquiring calculation rules of salaries; generating a corresponding calculation script according to the calculation rule;
the interface generation module is used for compiling the calculation script into a corresponding class file; calling the class file to generate a corresponding salary configuration interface;
the salary parameter configuration module is used for acquiring interface parameters selected by a user through the salary configuration interface;
and the salary calculation module is used for calculating corresponding salary according to the interface parameters.
A third aspect of the invention provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to be configured to perform the method of visualizing configuration payroll described above.
A fourth aspect of the invention provides a processor configured to perform the method of visually configuring payroll described above.
Through the method, the payroll rule page and the daily payroll newly added page can be dynamically generated, the back-end processing logic of payroll processing is unified, the requirements of a new payroll scheme of a client are rapidly met, a release system is not needed, and meanwhile, visual configuration of payroll is realized, so that the configuration of payroll is more convenient, simple and efficient.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 schematically illustrates an application environment of a method of visualizing configuration of payroll in accordance with an embodiment of the invention;
FIG. 2 schematically illustrates a flow diagram of a method of visualizing configuration of payroll in accordance with an embodiment of the invention;
FIG. 3 schematically illustrates a block diagram of an apparatus for visually configuring salary in accordance with an embodiment of the present invention;
fig. 4 schematically shows an internal structural view of a computer device according to an embodiment of the present invention.
Detailed Description
The following describes the detailed implementation of the embodiments of the present invention with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
The method for visually configuring salaries can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The user may select interface parameters through the payroll configuration interface via the terminal 102 to enable visual configuration of payroll. The terminal 102 then transmits the interface parameters selected by the user to the server 104 via the network, thereby calculating the corresponding payroll. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
Fig. 2 schematically shows a flow diagram of a method of visualizing configuration of payroll in accordance with an embodiment of the invention. As shown in fig. 2, in an embodiment of the present invention, there is provided a method for visually configuring payroll, including the steps of:
step 201, obtaining calculation rules of payroll;
step 202, generating a corresponding calculation script according to a calculation rule;
step 203, compiling the calculation script into a corresponding class file;
step 204, calling a class file to generate a corresponding salary configuration interface;
step 205, obtaining interface parameters selected by a user through a payroll configuration interface;
and 206, calculating corresponding salaries according to the interface parameters.
Since there are different wages schemes of different factories when the factories calculate the wages of the weaving, there are different wages schemes of the same factory at each time, and there are different arrangements of the wage rule even though the same wages scheme. In order to realize dynamic configuration of salary schemes, namely in order to follow up when adjusting calculation rules of salary, codes do not need to be replaced every time, and a method capable of visually configuring salary can be provided. The method comprises the steps of firstly unifying payroll inquiry, export, editing, newly-added functional operation back-end processing logic codes, secondly sorting input and output data of payroll calculation, unifying the input and output data of payroll calculation, and formulating a payroll calculation tool template. The salary calculation tool template comprises an algorithm input parameter sorting method, a salary calculation method and a salary result output processing method.
In one embodiment, generating a corresponding computation script according to a computation rule includes: unifying input data and output data of salary calculation; and extracting common data and non-common data in the input data and the output data.
When input and output data of salary calculation are unified, public data and non-public data are extracted, and the non-public data are unified and stored in a JSON field; unified salary query, export, edit, add, bulk modify, recalculation.
In one embodiment, generating a corresponding computation script according to a computation rule includes: and dynamically generating a corresponding Groovy script through the freemaker template according to the calculation rule.
The method is characterized in that the writing of the salary calculation algorithm rules is divided into three methods, namely a salary calculation pre-calculation parameter arrangement method, a salary calculation method and a salary calculation post-result processing method. When a user issues payroll algorithm rules, the system dynamically generates a Groovy script file through a freemaker template technology, and compiles the Groovy script file into a class file for the back end to execute payroll calculation call. Wherein, freeMarker is a template engine: i.e., a generic tool based on templates and data to be changed and used to generate output text (HTML web pages, email, configuration files, source code, etc.). It is not end user oriented, but rather a Java class library, a component that programmers can embed in their developed products. The system can also be replaced by script languages such as JavaScript, php and Python, but considering that the rear end of the system is written by adopting java language, the Groovy script language can be directly compiled into class byte codes of java, and also supports class libraries of java, and the class libraries run on a java virtual machine, can well interact with the java, so that the dynamic characteristics of the Groovy are utilized to realize the requirements of frequent change and metamorphosis, and the server is not required to be restarted.
In one embodiment, the interface parameters include a column header name, a field name, an option to add a column header, a control type when adding a column header, and an addition; at least one of configuration of control rendering in the column header, modification options of control type, whether the column header is displayed.
In one embodiment, the payroll configuration interface includes a payroll query interface and a payroll add-on interface; the step of calling the class file to generate the corresponding salary configuration interface comprises the following steps: determining a column header which is allowed to be added according to the class file; and dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration.
Different payroll algorithm rules require different headers on payroll query interfaces, and different forms exist on payroll new interfaces of different payroll algorithm rules. For such dynamic variability, column header configuration may be provided at the operator platform. The name, field name, whether the new addition is possible, the control type (drop-down box, text box, time control, etc.) when the new addition is possible, the rendering configuration (can be configured in a JSON mode, the field verification rule can be configured, the data source of the drop-down box, the change event trigger processing function of the drop-down box, whether the text box is disabled, etc.), whether the modification is possible, the control type when the modification is possible, the control rendering configuration when the modification is possible, whether the column head is displayed, etc. configuration information can be provided on the column head configuration. After configuration of the column header information, the column header information can be associated with the payroll algorithm rule, the front end lifts the association between the query algorithm and the column header when rendering the table header of the payroll query interface, and the payroll query interface is dynamically rendered. Similarly, the salary newly-added interface can be processed in such a way that when the salary newly-added interface is rendered, the newly-added column header is queried, and the salary newly-added interface is dynamically rendered according to the control type and rendering configuration of the column header configuration.
For example, when a new salary scheme is required, a user only needs to add algorithm rules of the salary scheme on the operation platform, write a Groovy script of the salary algorithm, newly establish column header information of the algorithm, associate the column header information and the like, click an execution button, debug the Groovy script, compile the script into a corresponding class file, and call the class file to generate a corresponding salary configuration interface. The user can select parameters of salary through the salary configuration interface. And then clicking a calculation button to automatically calculate the salary of the employee according to the newly added salary calculation rule.
Through the method, the payroll rule page and the daily payroll newly added page can be dynamically generated, the back-end processing logic of payroll processing is unified, the requirements of a new payroll scheme of a client are rapidly met, a release system is not needed, and meanwhile, visual configuration of payroll is realized, so that the configuration of payroll is more convenient, simple and efficient.
In one embodiment, as shown in fig. 3, there is provided an apparatus for visually configuring salaries, comprising:
a script generation module 301, configured to obtain calculation rules of payroll; generating a corresponding calculation script according to the calculation rule;
the interface generating module 302 is configured to compile the computation script into a corresponding class file; calling a class file to generate a corresponding salary configuration interface;
the salary parameter configuration module 303 is configured to obtain interface parameters selected by the user through a salary configuration interface;
and the salary calculation module 304 is configured to calculate corresponding salary according to the interface parameters.
In one embodiment, script generation module 301 is further configured to unify input data and output data for payroll calculations; and extracting common data and non-common data in the input data and the output data.
In one embodiment, the payroll configuration interface includes a payroll query interface and a payroll add-on interface; the interface generating module 302 is further configured to determine a column header that allows addition according to the class file; and dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration.
In one embodiment, the script generating module 301 is further configured to dynamically generate a corresponding Groovy script through a freemaker template according to the calculation rule.
The device for visually configuring salary comprises a processor and a memory, wherein the script generation module, the interface generation module, the salary parameter configuration module, the salary calculation module and the like are all stored in the memory as program units, and the processor executes the program modules stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the method for visually configuring payroll is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, on which a program is stored, which when executed by a processor, implements the method of visually configuring payroll described above.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for visually configuring salaries is executed when the program runs.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor a01, a network interface a02, a memory (not shown) and a database (not shown) connected by a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes internal memory a03 and nonvolatile storage medium a04. The nonvolatile storage medium a04 stores an operating system B01, a computer program B02, and a database (not shown in the figure). The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a04. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program B02, when executed by the processor a01, implements a method of visually configuring payroll.
Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: obtaining calculation rules of salaries; generating a corresponding calculation script according to the calculation rule; compiling the calculation script into a corresponding class file; calling a class file to generate a corresponding salary configuration interface; acquiring interface parameters selected by a user through a payroll configuration interface; and calculating corresponding salaries according to the interface parameters.
In one embodiment, generating a corresponding computation script according to a computation rule includes: unifying input data and output data of salary calculation; and extracting common data and non-common data in the input data and the output data.
In one embodiment, the interface parameters include a column header name, a field name, an option to add a column header, a control type when adding a column header, and an addition; at least one of configuration of control rendering in the column header, modification options of control type, whether the column header is displayed.
In one embodiment, the payroll configuration interface includes a payroll query interface and a payroll add-on interface; the step of calling the class file to generate the corresponding salary configuration interface comprises the following steps: determining a column header which is allowed to be added according to the class file; and dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration.
In one embodiment, generating a corresponding computation script according to a computation rule includes: and dynamically generating a corresponding Groovy script through the freemaker template according to the calculation rule.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: obtaining calculation rules of salaries; generating a corresponding calculation script according to the calculation rule; compiling the calculation script into a corresponding class file; calling a class file to generate a corresponding salary configuration interface; acquiring interface parameters selected by a user through a payroll configuration interface; and calculating corresponding salaries according to the interface parameters.
In one embodiment, generating a corresponding computation script according to a computation rule includes: unifying input data and output data of salary calculation; and extracting common data and non-common data in the input data and the output data.
In one embodiment, the interface parameters include a column header name, a field name, an option to add a column header, a control type when adding a column header, and an addition; at least one of configuration of control rendering in the column header, modification options of control type, whether the column header is displayed.
In one embodiment, the payroll configuration interface includes a payroll query interface and a payroll add-on interface; the step of calling the class file to generate the corresponding salary configuration interface comprises the following steps: determining a column header which is allowed to be added according to the class file; and dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration.
In one embodiment, generating a corresponding computation script according to a computation rule includes: and dynamically generating a corresponding Groovy script through the freemaker template according to the calculation rule.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (6)

1. A method of visually configuring payroll, the method comprising:
obtaining calculation rules of salaries; the calculation rule of salary includes: a method for arranging parameters before salary calculation, a salary calculation method and a result processing method after salary calculation;
generating a corresponding calculation script according to the calculation rule; comprising the following steps: dynamically generating a corresponding Groovy script through a freemaker template according to the calculation rule; when a user issues payroll algorithm rules, the system dynamically generates a Groovy script file through a freemaker template technology, compiles the Groovy script file into a class file, and allows the back end to execute payroll calculation and call; further comprises: generating a corresponding script by using JavaScript, php or Python script language instead of Java language;
compiling the calculation script into a corresponding class file;
calling the class file to generate a corresponding salary configuration interface; comprising the following steps: determining a column header which is allowed to be added according to the class file; dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration;
the column header configuration includes: the name of the column header, the field name, whether the new addition can be performed, the control type (a drop-down box, a text box, a time control and the like) when the new addition is performed, the rendering configuration of the control when the new addition is performed, whether the modification can be performed, the control type when the modification is performed, the rendering configuration of the control when the modification is performed, and whether the column header is displayed;
the salary configuration interface includes: a salary query interface and a salary new interface; the column head configuration is associated with the payroll algorithm rule, the front end lifts the association between the query algorithm and the column head when rendering the table head of the payroll query interface, and dynamically renders the payroll query interface; when the salary newly-added interface is rendered, inquiring a newly-added column header, and dynamically rendering the salary newly-added interface according to the control type and rendering configuration of the column header;
acquiring interface parameters selected by a user through the salary configuration interface;
and calculating corresponding salaries according to the interface parameters.
2. The method of claim 1, wherein the generating a corresponding computation script according to the computation rule comprises:
unifying input data and output data of salary calculation;
and extracting common data and non-common data in the input data and the output data.
3. The method of claim 1, wherein the interface parameters include a column header name, a field name, an option to add a column header, a control type when a column header is added, and an addition; at least one of configuration of control rendering in the column header, modification options of control type, whether the column header is displayed.
4. An apparatus for visualizing a configuration payroll, the apparatus comprising:
the script generation module is used for acquiring calculation rules of salaries, wherein the calculation rules of salaries comprise: a method for arranging parameters before salary calculation, a salary calculation method and a result processing method after salary calculation; generating a corresponding calculation script according to the calculation rule; comprising the following steps: dynamically generating a corresponding Groovy script through a freemaker template according to the calculation rule; when a user issues payroll algorithm rules, the system dynamically generates a Groovy script file through a freemaker template technology, compiles the Groovy script file into a class file, and allows the back end to execute payroll calculation and call; further comprises: generating a corresponding script by using JavaScript, php or Python script language instead of Java language; the script generation module is also used for unifying input data and output data of salary calculation; extracting common data and non-common data in the input data and the output data;
the interface generation module is used for compiling the calculation script into a corresponding class file; calling the class file to generate a corresponding salary configuration interface; comprising the following steps: determining a column header which is allowed to be added according to the class file; the column header configuration includes: the name of the column header, the field name, whether the new addition can be performed, the control type (a drop-down box, a text box, a time control and the like) when the new addition is performed, the rendering configuration of the control when the new addition is performed, whether the modification can be performed, the control type when the modification is performed, the rendering configuration of the control when the modification is performed, and whether the column header is displayed; dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration; the salary configuration interface includes: a salary query interface and a salary new interface; the column head configuration is associated with the payroll algorithm rule, the front end lifts the association between the query algorithm and the column head when rendering the table head of the payroll query interface, and dynamically renders the payroll query interface; when the salary newly-added interface is rendered, inquiring a newly-added column header, and dynamically rendering the salary newly-added interface according to the control type and rendering configuration of the column header;
the salary parameter configuration module is used for acquiring interface parameters selected by a user through the salary configuration interface; the salary configuration interface comprises a salary inquiry interface and a salary newly-added interface; the interface generation module is also used for determining a column header which is allowed to be added according to the class file; dynamically rendering a salary newly-added interface according to the control type and rendering configuration of the column header configuration;
and the salary calculation module is used for calculating corresponding salary according to the interface parameters.
5. A machine-readable storage medium having instructions stored thereon, which when executed by a processor cause the processor to be configured to perform the method of visualizing configuration payroll of any one of claims 1 to 3.
6. A processor configured to perform the method of visualizing configured payroll as in any one of claims 1 to 3.
CN202110717697.4A 2021-06-28 2021-06-28 Method, device, storage medium and processor for visual configuration salary Active CN113326042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110717697.4A CN113326042B (en) 2021-06-28 2021-06-28 Method, device, storage medium and processor for visual configuration salary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110717697.4A CN113326042B (en) 2021-06-28 2021-06-28 Method, device, storage medium and processor for visual configuration salary

Publications (2)

Publication Number Publication Date
CN113326042A CN113326042A (en) 2021-08-31
CN113326042B true CN113326042B (en) 2023-05-26

Family

ID=77424923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110717697.4A Active CN113326042B (en) 2021-06-28 2021-06-28 Method, device, storage medium and processor for visual configuration salary

Country Status (1)

Country Link
CN (1) CN113326042B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108428104A (en) * 2018-01-03 2018-08-21 平安科技(深圳)有限公司 Wages computational methods, application server and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122220A (en) * 2017-04-12 2017-09-01 上海前隆金融信息服务有限公司 Construction method/system, business management method/system and the equipment of regulation engine
CN107146070A (en) * 2017-05-02 2017-09-08 广东网金云计算有限公司 A kind of intelligent delivery system of wage and method
CN109299913B (en) * 2018-08-27 2021-03-05 天津字节跳动科技有限公司 Employee salary scheme generation method and device
CN111476015B (en) * 2020-04-10 2024-01-05 北京字节跳动网络技术有限公司 Document processing method and device, electronic equipment and storage medium
CN111784304A (en) * 2020-07-08 2020-10-16 广东粤财金融云科技股份有限公司 Salary automatic issuing method and system based on RPA robot

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108428104A (en) * 2018-01-03 2018-08-21 平安科技(深圳)有限公司 Wages computational methods, application server and computer readable storage medium

Also Published As

Publication number Publication date
CN113326042A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN108228166B (en) Template-based back-end code generation method and system
US5740431A (en) Configuration file management
CN109564540B (en) System, method, and apparatus for debugging of JIT compiler
TW201308209A (en) Runtime system
CN107798030B (en) Splitting method and device of data table
US20180260437A1 (en) Code generation for queries in a database system
US20200167209A1 (en) Configurable Analytics For Microservices Performance Analysis
US11036527B2 (en) Class splitting in object-oriented environments
CN116028028A (en) Request function generation method, device, equipment and storage medium
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
CN105867886B (en) Method and device for writing table
US11841837B2 (en) Computer-based systems and methods for risk detection, visualization, and resolution using modular chainable algorithms
US20180052692A1 (en) Systems and methods for task parallelization
US11262986B2 (en) Automatic software generation for computer systems
CN113326042B (en) Method, device, storage medium and processor for visual configuration salary
US11182272B2 (en) Application state monitoring
CN111324332A (en) Big data task processing method and system, electronic device and storage medium
CN110968500A (en) Test case execution method and device
CN112181407B (en) Service realization processing method, device, system, electronic equipment and storage medium
US20210182041A1 (en) Method and apparatus for enabling autonomous acceleration of dataflow ai applications
CN114218278A (en) Data table field query method and system of http interface
US10936290B2 (en) Compile-time folding of assumed constant values
CN110674179A (en) Query interface generation method, device and medium
CN116661758B (en) Method, device, electronic equipment and medium for optimizing log framework configuration
CN117519691B (en) Application processing method, device, computer 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