Configurable and adjustable dynamic quality cost management service implementation method
By designing a configurable and adjustable dynamic quality cost management business implementation method on the RS10 cloud platform, the problem of changing demands in discrete manufacturing industries in quality cost management is solved, flexible and efficient quality cost management is achieved, extending the software life cycle and reducing costs.
Patent Information
- Application Number
- CN202411860455.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
AI Technical Summary
The existing technology is difficult to meet the long quality cost management cycle and relatively variable late iteration needs of discrete manufacturing industries, and traditional ERP management software is difficult to cope with the difficulties of small and medium-sized enterprises in the data collection, import and export links.
Based on the RS10 cloud platform, a configurable and adjustable dynamic quality cost management business implementation method is designed. Through dynamic data sources and accounting algorithms, and the business decoupling model and dynamic business model are designed in combination with business processes and functions, users can adjust the model configuration themselves to adapt to changes in business demand.
It realizes the flexibility and efficiency of dynamic quality cost management business, can respond to changes in complex demands, extend the software life cycle, reduce development and operation and maintenance costs, and improve the company's cost reduction and efficiency improvement capabilities.
Smart Images

Figure CN119809429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer dynamic quality cost analysis, and in particular to a configurable and adjustable dynamic quality cost management business implementation method. Background Art
[0002] 1. The quality cost management of an enterprise is an ever-changing process. Due to the flexible process routes, a wide variety of products and a production mode of scattered assembly, the production factors of discrete manufacturing industry will change more frequently and diversely. With the expansion of business and the replacement of demand, the existing ERP quality cost module is often difficult to adapt to the ever-changing business needs of enterprises. This greatly affects the life cycle of the software and increases the cost of software iteration.
[0003] The research focus of the existing software development model is on how to develop software more efficiently rather than on later iterations, which cannot meet the longer quality cost management cycle and relatively changeable later iteration requirements of the discrete manufacturing industry.
[0004] 2. A considerable number of discrete manufacturing enterprises are small and medium-sized enterprises, and have not yet established a sound cost accounting framework, let alone promoted quality cost management. The difficulties of most enterprises in quality cost management are concentrated in the data collection and import and export links. Traditional customized ERP management software is difficult to deal with such problems.
[0005] 2.1RS10 cloud platform is a comprehensive solution, such as Fig.14 As shown, MES (Manufacturing Execution System), ERP (Enterprise Resource Planning) and MOM (Manufacturing Operations Management System) are integrated. Based on the microservice architecture, it builds a containerized front-end and back-end code agile development framework with continuous integration capabilities, supports independent service deployment, and is highly scalable. Provides 1. Data support (inventory management, procurement management, production management, cost management, enterprise master data management, outsourcing management, quality inspection management and other subsystem data) for the present invention. 2. Bottom-level functional support (bottom-level functions such as authorization platform, data dictionary maintenance, exception rollback, etc.).
[0006] 2.2 Model Driven Development (MDD) is a common development model used in enterprise development. It divides the overall requirements into highly abstract domain business model components, and implements various functions through automatic code conversion and model-driven engines. It can respond to flexible changes in requirements and thus reduce development costs. The framework can encapsulate technical details, allowing developers to focus only on the business rather than the basics, thereby reducing the difficulty of implementation, saving labor costs, and shortening development time. In addition, it can also precipitate various business models, analyze different businesses for enterprises, and accumulate technical solutions.
[0007] Model-driven development mainly solves the two major problems of complexity and changeability in the software development process. In the software development process, as the project size grows and functional requirements increase and change, complexity often becomes the main factor restricting software development efficiency. At this time, the abstract business model can greatly reduce the complexity of development and liberate developers from tedious programming.
[0008] The focus of existing MDD business model application cases is mostly on how to develop software more efficiently rather than later iterations, and the model-driven development process itself is only aimed at developers rather than users, which cannot meet the long-term software life cycle and relatively changeable later requirements of quality cost management.
[0009] Based on the above problems, this study proposes a dynamic model based on the rs10 cloud platform. By making the data source dynamic, the problem of difficult data collection can be solved. By making the accounting algorithm dynamic, the problem of changes in production factors causing the old software to be difficult to adapt to new process routes and product types can be solved. By building in several commonly used quality cost analysis methods, it helps small and medium-sized enterprises quickly establish a quality cost accounting management framework.
[0010] Chinese invention patent "Method and device for business classification based on at least one business classification model" (application number 201910187112.5) This patent uses at least one business classification model for each business category to determine the similarity between the user sentence to be classified and the representative user sentence samples of each business category, and then determines the business category of the user sentence to be classified based on the similarity, thereby avoiding the failure of business classification due to the neglect of certain business categories. For example, the source of the dynamic calculation model was originally written directly as business data. Field name; in this way, user modification requires modification of the calculation model. This method has not yet achieved decoupling between businesses, and it is difficult for users to add and modify the model business data source, calculation method, output method, etc. Summary of the invention
[0011] In view of the deficiencies of the prior art, the present invention provides a configurable and adjustable dynamic quality cost management business implementation method. The present invention performs dynamic demand analysis and function division based on actual business scenarios, and designs and implements a function-oriented business decoupling model; on the basis of the business decoupling model, the business-related model (i.e., dynamic business model) is designed and implemented in combination with business processes and business elements, and the dynamic adjustment of the model is achieved by exposing a part of the business elements to the user for maintenance and adjustment. When business requirements change, users can add, modify, and adjust the model configuration such as the source of business data, calculation method, and output method. The dynamic model can cope with complex demand changes, while improving the efficiency of development and operation and maintenance, greatly extending the software life cycle, and better helping enterprises reduce costs and increase efficiency. At the same time, because the model divides functions and businesses based on business processes, it can clearly describe the business logic and system structure, so that the system can make adjustments more efficiently when facing the arrival of new requirements.
[0012] The technical solution of the present invention is: a configurable and adjustable dynamic quality cost management business implementation method, including a basic model, a dynamic calculation model and a dynamic business model, the basic model maintains the table structure of the user's business form; the dynamic calculation model maintains a complex business processing process; the dynamic business model provides business functions and model dynamic adjustment functions to users; the characteristics are: the dynamic calculation model includes dynamic data sources, dynamic outputs, dynamic charts, algorithm template libraries, and calculation model configurations; the algorithm template library is stored in the calculation model to configure the calculation model instance, the calculation model configuration is associated with the algorithm template in the algorithm template library, and the background encapsulates the calculation model configuration and the template into an executable background calculation model algorithm interface for the front page or dynamic business model to call; the dynamic data source is input as business data; through the dynamic data source function module, the user can change the calculation model data source by adjusting the dynamic business model, the dynamic data source reserves a source rule table, the data source and data processing rules used are configured in the source rule table, and through the dynamic data source, each calculation method in the source rule table is associated with the method source, method processing process, and method output; when the calculation model is called, first get the "source rule table" from the configuration of the method source header table Name, perform "secondary analysis", get the user-defined data source table name from the source rule table, query and obtain the data in the business form according to the source field name, field type or group field information in the method source detail table; dynamically output the reserved output rule table, configure the data output form name, form field or data type in the output rule table, and the dynamic calculation model uses the output rule table as the configuration source of the model; after the calculation model executes the calculation, first get these "output rule table names" from the configuration of the method output header table, perform "secondary analysis", get the user-defined data output table name from the output rule table, and query according to the method source detail table. The method outputs the data source type, data source field, target field in the detailed table, and then processes the business output into a format that meets the requirements and writes it into the target result table; the dynamic chart output is used to merge the front-end code template into the front-end code in combination with the chart configuration items; the dynamic business model retains the dynamic accounting business model and the dynamic analysis business model. The data source table name, field, query condition, and grouping condition configured in the dynamic accounting business model are stored in the model instance library and instantiated as an interface called by the business interface. When the dynamic analysis business model calls the analysis algorithm interface, it first filters and groups the accounting result data; and the output results are list and chart types.
[0013] The beneficial effects of the present invention are as follows: (1) Business decoupling model: By analyzing the business process, the functional requirements of the enterprise are obtained, and the model built for these functions is the business decoupling model. The model cares about the function but not the specific business process. Subsequently, the business-related model can be generated by configuring the business process in the business decoupling model. (2) Business-related model: The dynamic business-related model is generated by combining the dynamic decoupling model with the business process and can be directly delivered to the user for use. When the user's business requirements change, the business-related model can adapt to the new business requirements by changing the configuration items. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 The overall architecture is shown in the figure.
[0015] Figure 2 Template call structure diagram.
[0016] Figure 3 Algorithm template definition structure diagram.
[0017] Figure 4 Schematic diagram of dynamic icons.
[0018] Figure 5 Overall structure of the dynamic calculation model.
[0019] Figure 6 Dynamic data source program data flow diagram.
[0020] Figure 7 Dynamic data source library table structure.
[0021] Figure 8 Dynamically output library table structure.
[0022] Fig. 9 Model packaging.
[0023] Fig.10 Dynamic chart association structure diagram.
[0024] Fig.11 Dynamic business model association structure.
[0025] Fig.12 Dynamic accounting business model structure diagram.
[0026] Fig.13 Dynamic analysis of business model structure diagram.
[0027] Fig.14 RS10 cloud platform architecture diagram. DETAILED DESCRIPTION
[0028] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0029] like Figures 1 to 5As shown, a configurable and adjustable dynamic quality cost management business implementation method of the present invention includes three main parts: a basic model, a dynamic calculation model and a dynamic business model, and also includes a user interface part. The overall architecture is as follows Figure 1 shown.
[0030] The basic model of the present invention is responsible for maintaining the table structure of user business forms (system forms, business forms), the relationship between business forms, relatively simple (can be directly executed in the database) business processing rules and the main platform underlying functional modules, including key business element definition, processing rule definition, business form relationship definition, dynamic data dictionary, exception rollback, operator definition, algorithm template definition, page template definition and other main functional modules ( Figure 1 The dotted part in the basic template is the existing underlying functions of the RS10 cloud platform).
[0031] The dynamic calculation model is mainly responsible for maintaining complex business processing processes, including calculation model configuration, front-end page template library, back-end algorithm template library, calculation model encapsulation, dynamic icon configuration and other functional modules. Developers or users can configure complex business processing processes here, and the model generates back-end interface services for business system calls based on configuration items and corresponding algorithm templates.
[0032] The dynamic business model is responsible for providing users with business functions and dynamic model adjustment functions. The dynamic business model includes two modules: dynamic accounting business model and dynamic analysis business model. The dynamic business model is developed by developers based on the business needs of the enterprise, combining the basic model and the dynamic calculation model. Users can complete the business configuration on the model call page and click the corresponding business button to call the background calculation model. When business needs change, users can dynamically adjust the model configuration items and calculation models on the model configuration page of the dynamic accounting business to adapt to the changes in needs.
[0033] The basic model of the present invention includes algorithm template definition and page template definition. The algorithm template definition mainly includes simple addition, subtraction, multiplication and division, mean, variance and other conventional algorithms. The dynamic calculation model will select these conventional algorithms and combine them with different data sources for processing. And output to the corresponding form.
[0034] The algorithm template definition is responsible for maintaining the algorithm registry, and the backend developer builds the corresponding algorithm into the code. According to the function, it is divided into the front-end page template and the back-end calculation template. The model extracts the corresponding calculation model algorithm template from the server according to the template file directory in the registry information and generates executable code in combination with the model configuration. The template call structure is as follows Figure 2 shown.
[0035] The calculation model configuration is dynamically configured and includes several processing processes. Each processing process includes input configuration, processing process configuration, and output configuration. Among them, the processing process configuration can select the algorithm template definition in the basic model according to business needs, and the calculation model encapsulation component encapsulates the configuration items and the algorithm template definition into an executable file; similarly, the page template definition in the basic model is also combined with the chart configuration as the front-end code, and the analysis result data output by the calculation model is combined to generate a visual analysis chart.
[0036] The algorithm templates in the basic model define preset general algorithms, including several (average, sum, maximum, minimum, sorting, formula calculation, ...), and one special algorithm (composition ratio analysis method), such as Figure 3 shown.
[0037] The page template is defined as a pre-developed calculation result graphic display page, that is, to realize dynamic charts, dynamic icons such as Figure 4 As shown, the page template definition is responsible for the front-end page template registry. Other places are fixed. The graphic part can be adjusted.
[0038] The page template definition generates a quality cost analysis result page by combining dynamic chart configuration. The implementation idea of the front-end page template is to reserve or hollow out the display position of the chart on the existing front-end page. The model generates chart code based on the user configuration item combined with the EChart front-end chart component to fill in the hollowed-out page template position, and finally generates a chart page. The present invention presets fan charts, bar charts, and line chart templates for users.
[0039] The dynamic calculation model includes dynamic data sources, dynamic outputs, calculation model encapsulation, dynamic charts, algorithm template libraries, calculation model configurations, dynamic translation operator configurations, dynamic processing process configurations and other parts. In the business of enterprise statistical analysis, there are some business scenarios for data processing. There are no so-called unified regulations or optimal algorithm rules. Different enterprises will customize their own business processing rules based on their own business characteristics in the process of conducting daily business. At the same time, the traditional development method makes the source, processing method and output of each processing step defined in the code. Once packaged and released, it cannot be modified during the operation of the software. The only way is to adjust the configuration and regenerate the program code package. This brings great inconvenience to development. Based on the above requirements, this section proposes a dynamic calculation model. The overall architecture is as follows: Figure 5 shown.
[0040] Figure 5In the process, developers configure the calculation model instance in the calculation model and store it in the server's algorithm template library (when the website is running, the server deploys the front-end, back-end code, database and other modules. Users access the server through the URL address and interact with the server through the browser.), the calculation model configuration is associated with the algorithm template in the algorithm template library, and the back-end encapsulates the calculation model configuration and template into an executable back-end calculation model algorithm interface for the front-end page or dynamic business model to call. Through the design of dynamic calculation models and dynamic business models, the software is designed with high cohesion and low coupling, which reduces the subsequent maintenance costs while realizing business functions.
[0041] The dynamic data sources of the present invention are as follows Figure 2 As shown, the dynamic data source input is business data. Conventional calculation functions and business data are coupled, which is not conducive to subsequent program adjustment. The present invention realizes the decoupling of calculation model and business data through dynamic data source.
[0042] The dynamic calculation model allows users to change the calculation model data source by adjusting the dynamic business model through the dynamic data source function module. The program data flow diagram of the dynamic data source is as follows: Figure 6 shown.
[0043] When designing and developing dynamic data sources, some source rule tables are reserved (that is, the source of the dynamic calculation model is written as the data source field in the dynamic business model, so that users only need to modify the dynamic business model later without modifying the dynamic calculation model. After the calculation model is called, the program first finds the data source field in the dynamic business model, and then takes the business data table name inside. The field name obtains data for subsequent calculations). Enterprise business personnel can configure the data sources and data processing rules they want to use in these source rule tables, and the dynamic calculation model uses these source rule tables as the data source of the model. Through dynamic data sources, users can realize the dynamic configuration of business abstract parts such as program data sources and query conditions without having to re-upload code and restart the service to update the code. At the same time, for changes in business needs, developers can also configure new business data through the dynamic data source mode to expand model functions.
[0044] The related database table association relationship and key fields in the source rule table are as follows Figure 7As shown in the figure, the calculation model is associated with many model calculation methods, and each calculation method is associated with the method source, method processing, and method output. Among them, the method source header table is associated with the dynamic business model table through the data source table name (SRC_NAME). When the calculation model is called, it will first get the names of these "source rule tables" (dynamic business model tables) from the configuration of the method source header table, perform "secondary analysis", and get the user-defined data source table name (DATA_SOU_TABLE) from the source rule table. According to the source field name, field type, grouping field and other information in the method source detail table, query and obtain the data in the business form. Users can realize the dynamic configuration of the program data source and business abstract part without having to re-upload the code or restart the service to update the code.
[0045] The idea of dynamic output of the present invention is similar to the dynamic data source. Some output rule tables are reserved during design and development. Business personnel can configure the data output form name, form field, data type and other information in these output rule tables, and the dynamic calculation model uses these output rule tables as the configuration source of the model. Figure 8 As shown: After the calculation model completes the calculation, it will first obtain the names of these "output rule tables" (dynamic business model tables) from the configuration of the method output header table, perform "secondary analysis", and obtain the user-defined data output table name (DATA_OUTPUT_TABLE) from the output rule table. According to the data source type, data source field, and target field in the method output details table, the business output is processed into a format that meets the requirements and written into the target result table.
[0046] The computing model packaging process of the present invention is as follows: after the developer configures the model, he can click the upload code button. The background packaging program automatically packages the configuration items and algorithm templates into the background code (AutoController.java). After the system is restarted, the page is refreshed to complete the code update and testing. Fig. 9 As shown, the calculation model is encapsulated as an RS10 cloud platform function. Click Upload Code, the system automatically generates code and restarts the service.
[0047] Among them, the detailed processing flow of the background code (AutoController.java) is as follows:
[0048] 1. Front-end parameter / data encapsulation: Encapsulate the parameters / data passed in by the front-end into the variable set MAP in the Key:Object format. The parameter name must be consistent with the variable data set;
[0049] 2. Call the method in the model list: Call the method in the order of the list, and first judge before calling the method
[0050] (1) Whether it is the main method. If the main method is marked as Y, it will be executed in sequence.
[0051] (2) Whether the method execution conditions are met
[0052] After the above conditions are met, the method is called. If other methods need to be called during the process of calling the main method, the process code of the other methods is filled in as the process code of the main method.
[0053] 3. Common processing in the method:
[0054] (1) Declare the variables and arrays in the processing process and in the source as global variables.
[0055] (2) For variables that need to obtain data from the database table, data is obtained after database compatibility processing and decimal general processing, and the query results are stored in the corresponding variables and written into the source data set MAP in the format of Kay: variable name;
[0056] (3) Execute the logic processing part.
[0057] (4) If the target data set is filled in the processing part, determine whether the target variable exists in the data set. If it does, update it. If not, add it to the data set. The Key is the name of the target variable.
[0058] (5) The variable into which the result is written is processed for database compatibility and then written into the data table.
[0059] 4. If all methods have no exceptions and are all executed, set the success attribute of the return value (MAP) to true. If there is an exception, set it to false and write errMsg.
[0060] The dynamic chart output of the present invention is used to combine the chart configuration items to merge the front-end code template into the front-end code. The dynamic chart is associated with other functional modules as shown in the following figure. Fig.10 As shown. The model presets commonly used chart templates for commonly used cost analysis business. Create a new configuration chart model on the front-end chart configuration page, associate the chart template in the server, and combine the front-end EChart chart component to convert and package the configuration items into page templates. In the dynamic business model configuration, the corresponding page template is associated to import the calculation result data after the analysis and calculation are completed to complete the chart display.
[0061] The workflow of the dynamic calculation model of the present invention is as follows: First, the developer builds the commonly used algorithm template into the algorithm template library. Figure 1The template and path are defined in the template definition, and the template code is added to the code library); then the user configures the calculation process for each calculation model in the model configuration item of the user interface. A model can be configured with one or more calculation processes, and each calculation process includes input, output, and algorithm template. Among them, the input and output can be a database table or a data set (that is, the data source is the result of other calculation processes in the same model, or the calculation result is temporarily stored in the data set and used by subsequent calculation processes); the algorithm template is the commonly used algorithm in the algorithm template library. The present invention realizes dynamic adjustment of the calculation algorithm through the dynamic configuration of each calculation process of the dynamic calculation model and the expansion of the algorithm template.
[0062] The dynamic business model of the present invention is developed by developers based on the basic model and the dynamic calculation model according to the business process and user needs. The dynamic business model and the user page, the dynamic calculation model association relationship and the call relationship structure architecture are as follows: Fig.11 shown.
[0063] The user page provides model maintenance page, basic element (dimensional element) maintenance page, and various business call pages to provide users with model configuration tools and business process interaction; the dynamic business model stores user configuration in the model instance library and instantiates it as a background function interface (business model instance interface). When called by the front-end business page, it first obtains the corresponding data from the business database based on the configuration items and splices the SQL query statement. After simple preprocessing, it is called as a parameter and passed to the calculation model interface.
[0064] The dynamic business model is configured by developers according to business needs. The calculation model examples or built-in special calculation algorithms are called and used by the dynamic business model or user pages.
[0065] The dynamic business model is divided into dynamic accounting business model and dynamic analysis business model according to its function. The former mainly completes the enterprise quality cost accounting business, and the latter completes the enterprise quality cost analysis business. The structures of the two are basically the same.
[0066] The present invention realizes the dynamics of data source through query, grouping and sorting conditions of the data source of the dynamic business model. The output is similar.
[0067] The dynamic accounting business model of the present invention mainly stores the data source table name, field, query condition, and grouping condition configured by the user into the model instance library, and instantiates it into an interface called by the business interface. The model calls the calculation model interface according to the associated calculation model to complete the accounting. The overall structure of the model and its relationship with other functional modules are as follows: Fig.12 As shown: The workflow of the dynamic accounting business model is as follows: 1. In the model configuration item of the user interface (i.e. the front end), select and create relevant business elements from the key business elements as alternative business elements in the accounting model and analysis model.
[0068] The workflow of the dynamic accounting business model is as follows:
[0069] 1. In the model configuration item of the user interface (i.e. the front end), select and create relevant business elements from the key business elements as alternative business elements in the accounting model and analysis model.
[0070] 2. The user configures the quality loss source document (source table, source field, query conditions, etc.) in the dynamic accounting business model (qcm_caculate_model) and saves it in the model configuration item; selects the enterprise-related business elements in the accounting business elements, associates the corresponding quality cost accounting calculation model, and saves it in the model configuration library.
[0071] 3. When the user initiates accounting. The system first calls the value calculation method in the associated calculation model through the model configuration library. The dynamic calculation model finds the corresponding dynamic business model according to the configuration item, and takes the business table name and field name in the model data source (qcm_caculate_model.Data_sou_table) field. The corresponding data (quality loss documents such as scrap orders) are found through the business database of the business model. According to the fields in the accounting business elements, the query conditions (que_cond), grouping conditions (gro_cond), and sorting conditions (sor_cond), the background spells out SQL statements to query the data source table to obtain the data to be accounted (scrap loss records).
[0072] 4. After that, call the corresponding calculation method of the background algorithm template library in the dynamic calculation model to calculate the loss amount for each loss record.
[0073] 5. Finally, the accounting results are stored in the business database (accounting results table) for users to query.
[0074] The workflow of the dynamic accounting business model is to coordinate the input content with the algorithm of the dynamic calculation model. Users only need to enter requirements in the user interface (i.e., the front end) to manage the configuration, which makes it convenient for the system to meet the user's special customization needs. The background functions can be adjusted at will through the model configuration library in the dynamic accounting business model to meet the needs of different users.
[0075] The dynamic analysis business model of the present invention is basically the same as the above-mentioned dynamic calculation model in terms of architecture design, except that the calculation result data is first filtered and grouped when the analysis algorithm interface is called. The output result is a list + chart type. The overall structure of the model and its relationship with other functional modules are shown in the figure. Fig.13 As shown: The workflow of the dynamic analysis business model is as follows: 1. Maintain the quality cost analysis algorithm template library in the model configuration item of the user interface (front end), and set the trend analysis algorithm template and composition ratio analysis algorithm template for dynamic analysis business model calls.
[0076] The workflow of the dynamic analysis business model is as follows:
[0077] 1. Maintain the quality cost analysis algorithm template library in the model configuration item of the user interface (front end), and set the trend analysis algorithm template and composition ratio analysis algorithm template for dynamic analysis business model calls.
[0078] 2. The user configures the quality accounting result table as the source document (source table data_sou_table, source field src_field, query condition que_cond, etc.) in the model configuration item in the dynamic analysis business model (qcm_analyse_model); and selects the summary dimension and analysis dimension in the key business elements.
[0079] 3. When the user initiates analysis, the dynamic business analysis model is first called, and the background spells SQL statements to query the data source table (cost accounting result table) in the model configuration item to obtain the data to be analyzed.
[0080] 4. According to the configuration content of the accounting key business elements in the model configuration items in the dynamic analysis model, summarize the dimension elements and group and classify the data to be analyzed; according to the analysis dimension elements, call the actual template of the cost analysis interface for each group of data to generate an analysis result table.
[0081] 5. Record the analysis configuration items in the model configuration items in the model configuration library (quality cost analysis record table) for easy viewing next time.
[0082] 6. The analysis result table results are transmitted to the front-end, and the corresponding front-end chart page template is used according to the page template definition configuration items to display the analysis results in the form of charts.
[0083] The present invention realizes the abstract division of business requirements through the two-layer model architecture of dynamic computing model and dynamic business model, and exposes the configuration items of dynamic business model for users to configure and adjust. From a business perspective, users can directly configure and adjust the dynamic business model to realize functional changes without relying on developers. Technically speaking, universality and specificity are always the focus in software engineering theoretical research. The present invention realizes the decoupling of business and function through the above-mentioned two-layer model architecture, and designs a configurable and extensible dynamic model with certain business characteristics to achieve a balance between universality and specificity.
[0084] The advantages of the present invention are: abstract division of business requirements is achieved through a two-layer model architecture of a dynamic computing model and a dynamic business model, and configuration items of the dynamic business model are exposed for users to configure and adjust, so as to achieve software iteration and maintenance. Users can adjust model configurations or add and modify configuration items in real time according to changes in business requirements without relying on software developers. At the same time, during the development and software iteration process, developers can also make adjustments more efficiently when faced with new requirements.
Claims
1. A configurable and adjustable dynamic quality cost management business implementation method, including a basic model, a dynamic calculation model and a dynamic business model, wherein the basic model maintains the table structure of the user's business form; the dynamic calculation model maintains the complex business processing process; the dynamic business model provides business functions and model dynamic adjustment functions to users; the characteristics are: The dynamic calculation model includes dynamic data source, dynamic output, dynamic chart, algorithm template library, and calculation model configuration; the algorithm template library is stored in the calculation model to configure the calculation model instance, and the calculation model configuration is associated with the algorithm template in the algorithm template library. The background encapsulates the calculation model configuration and template into an executable background calculation model algorithm interface for the front-end page or dynamic business model to call; the dynamic data source input is business data; through the dynamic data source function module, the user can change the calculation model data source by adjusting the dynamic business model, the dynamic data source reserves the source rule table, the data source and data processing rules used are configured in the source rule table, and through the dynamic data source, each calculation method in the source rule table is associated with the method source, method processing process, and method output; when the calculation model is called, first get the "source rule table" name from the configuration of the method source header table, perform "secondary analysis", get the user-defined data source table name from the source rule table, and query and obtain the data in the business form according to the source field name, field type or group field information in the method source detail table; Dynamic output reserves an output rule table, configures the data output form name, form field or data type in the output rule table, and the dynamic calculation model uses the output rule table as the configuration source of the model; after the calculation model completes the calculation, it first obtains these "output rule table" names from the configuration of the method output header table, performs "secondary analysis", obtains the user-defined data output table name from the output rule table, and processes the business output into a format that meets the requirements according to the data source type, data source field, and target field in the method output detail table, and then writes it into the target result table; dynamic chart output is used to combine the chart configuration items to merge the front-end code template into the front-end code; The dynamic business model retains the dynamic accounting business model and the dynamic analysis business model. The data source table name, fields, query conditions, and grouping conditions configured in the dynamic accounting business model are stored in the model instance library and instantiated as an interface called by the business interface. When the dynamic analysis business model calls the analysis algorithm interface, it first filters and groups the accounting result data; and outputs the results in list and chart types.
2. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: The basic model includes algorithm template definition and page template definition; the algorithm template definition is a conventional algorithm; the dynamic calculation model uses conventional algorithms combined with different data sources for processing.
3. The configurable and adjustable dynamic quality cost management service implementation method according to claim 2, characterized in that: The page template is defined as a calculation result graphic display page, and the page template definition generates a quality cost analysis result page by combining dynamic chart configuration.
4. The configurable and adjustable dynamic quality cost management service implementation method according to claim 2, characterized in that: The algorithm template definition is responsible for maintaining the algorithm registry.
5. The configurable and adjustable dynamic quality cost management service implementation method according to claim 2, characterized in that: The algorithm template definition is divided into the front-end page template and the back-end calculation template. The model extracts the corresponding calculation model algorithm template from the server according to the template file directory in the registry information and generates executable code in combination with the model configuration.
6. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: The calculation model configuration is dynamically configured and includes several processing processes. Each processing process includes input configuration, processing process configuration, and output configuration. Among them, the processing process configuration selects the algorithm template definition in the basic model according to business needs, and the calculation model encapsulation component encapsulates the configuration items and algorithm template definitions into an executable file.
7. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: It also includes computing model encapsulation. The computing model encapsulation process is as follows: after the developer configures the model, the background encapsulation program automatically encapsulates the configuration items and algorithm templates into background code.
8. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: The workflow of the dynamic calculation model is as follows: first, commonly used algorithm templates are built into the algorithm template library; then the calculation process is configured for each calculation model in the model configuration item of the user interface. A model can be configured with one or more calculation processes, and each calculation process includes input, output, and algorithm template; the algorithm template is the commonly used algorithm in the algorithm template library.
9. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: The workflow of the dynamic accounting business model is as follows: S1. Also includes a user interface, in which the model configuration items of the user interface select and create relevant business elements from the key business elements as business element options in the accounting model and analysis model; S2. The user configures the quality loss source document in the dynamic accounting business model and saves it in the model configuration item; selects the enterprise-related business elements in the accounting business elements, associates the corresponding quality cost accounting calculation model, and saves it in the model configuration library; S3. When the user initiates accounting, the system first calls the value calculation method in the associated calculation model through the model configuration library. The dynamic calculation model finds the corresponding dynamic business model according to the configuration item, and takes the business table name and field name in the model data source segment. The business database of the business model is found, and the backend spells out SQL statements to query the data source table to obtain the data to be calculated according to the fields, query conditions, grouping conditions, and sorting conditions in the accounting business elements. S4. Call the corresponding calculation method of the background algorithm template library in the dynamic calculation model; S5. Store the calculation results in the business database for user query.
10. The configurable and adjustable dynamic quality cost management service implementation method according to claim 1, characterized in that: The workflow of the dynamic analysis business model is as follows: S1. Also includes a user interface, in which the model configuration item of the user interface maintains a quality cost analysis algorithm template library, sets a trend analysis algorithm template and a composition ratio analysis algorithm template for dynamic analysis business model calls; S2. Configure the quality accounting result table as the source document in the model configuration item in the dynamic analysis business model; select the summary dimension and analysis dimension in the key business elements; S3. When initiating analysis, the dynamic business analysis model is first called, and the backend spells SQL statements to query the data source table in the model configuration item to obtain the data to be analyzed; S4. According to the configuration content of the key business elements of the accounting in the model configuration items in the dynamic analysis model, the dimensional elements are summarized and grouped to classify the data to be analyzed; According to the analysis dimension elements, each set of data is called the actual template of the cost analysis interface to generate an analysis result table; S5. Record the analysis configuration items in the model configuration items in the model configuration library for easy viewing next time; S6. The analysis result table is transmitted to the front-end, and the corresponding front-end chart page template is used according to the page template definition configuration item to display the analysis results.
Citation Information
Patent Citations
Method and device for classifying services based on at least one service classification model
CN110046648A