Electronic data table calculation method and device
A technology of electronic data sheet and calculation method, which is applied in the direction of electrical digital data processing, calculation, complex mathematical operation, etc., can solve the problems of low calculation rate, low efficiency, waste of system computing resources, etc., to improve the calculation speed and increase the calculation speed. , the effect of saving system resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0062] The external secondary development module is written in Java language as the electronic data sheet, which is used to provide ACCT query function to query the data in the ERP (Enterprise Resource Planning, enterprise resource management) database. ACCT is defined as: public BigDecimal ACCT (String subject code). You can enter the formula "=ACCT("001")" in the cell of the spreadsheet to query the account code whose ID is 001 in the ERP system. For example, this code corresponds to the cash amount, that is, query the ERP system to obtain the corresponding cash amount data.
[0063] In the internal implementation of ACCT, the query to the database is completed by assembling the following SQL statement: select amount from subject balance table while subject code = "001". In the execution of an ACCT query function, the following series of operations need to be performed: connecting to the database, assembling SQL statements according to function parameters, executing SQL stat...
Embodiment 2
[0070] Assume that the cell formulas in the 100 cells of the spreadsheet in the first embodiment not only include the ACCT function, but also include rules for calculating the function or other parameters.
[0071] For the above case. The present invention can be calculated in the following two ways:
[0072] A. Set a complex function execution engine in the secondary development module to execute unit formulas including ACCT functions.
[0073] This solution is preferably applicable to the case where the unit formulas in the above 100 cells are all the same or similar. During the batch collection step, the entire unit formula is collected and submitted to the complex function execution engine. After the batch is completed, the execution result is returned Give the spreadsheet.
[0074] B. The function execution engine only for ACCT is still set in the secondary development module. After the execution is completed, the execution result is returned to the electronic data shee...
Embodiment 3
[0077] On the basis of the above-mentioned embodiments, for the collected functions and their parameters, multi-thread technology can also be used to parallelize the various types of collected functions. For computing scenarios where there are multiple CPUs in the computing environment or function execution requires remote data access, it can help make full use of computer resources and significantly improve computing efficiency.
[0078]The following is a specific example to illustrate the process of using the direct matching method to collect functions and complete the calculation:
[0079] The core idea of the direct matching method is to collect functions and their parameters through string matching. For example, use Excel to complete a report for an ERP system: enter the formula =SUM(ACCT("001"), 100) in the Excel cell, the SUM function can be recognized by Excel, and the ACCT function is used to extract from the ERP system The extension function for extracting data ca...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 