3, summary of the invention
The present invention mainly opens up the space of storage fixed length and random length invoice in the tax-control cash register storer, adopt the mode of setting up concordance list to search or store invoice detail, electronics counterfoil.Concordance list and electronics counterfoil are corresponded manner one by one, and promptly the electronics counterfoil comprises the concordance list most information, and concordance list is specified electronics counterfoil memory location capacity etc.According to the different application of concordance list and electronics counterfoil storage mode, data in different functional modules.For the information of searching, adopt the mode of binary search concordance list record, speed is very fast.And find the more detailed invoice information of data according to index record.This kind storage mode is safe and reliable, and can satisfy multiple storage demand.Help upgrading and increase or reduce storage space.This storage means is applied in the product of all kinds of embedded systems such as all kinds of tax-control cash registers, finance tax-controlling cashing machine, common commercial cashing machine, fiscal printer, fuel charger, taximeter, commercial cashing machine, tobacco terminal equally.
5, embodiment
The invention discloses a kind of method that the storage mode of supporting different invoice tax-control cash registers is set up concordance list and counterfoil file satisfies the demands.Thereby adopt this kind storage means to improve exploitative saving greatly, maintenance management is convenient.Step is as follows:
5) in tax-control cash register Flash, open up the concordance list record space
A, concordance list interrecord structure are the fixed storage mode;
B, concordance list record number is certain, is the maximum quantity of stored record.
6) in tax-control cash register Flash, open up electronics counterfoil storage space
How much calculating of a, stored record with maximum storage capacity;
B, need with part-structure check and correction in the concordance list, to confirm the correctness of data.
7) storage
A, note the address of an index table information;
B, according to the calculation of capacity of this logon data if the successful address space that takies of storage;
C, store assigned address into.
8) inquiry
A, according to querying condition search index table record;
The concordance list recording address that b, basis inquire takes out the electronics counterfoil;
C, concordance list record and electronics counterfoil comparison verification;
D, affirmation find effective record.
Storage means of the present invention adopts the mode of concordance list to store, be two files of each bar invoice recording storage, index record is a static store, be used to store the address of the critical item and the dynamic electron counterfoil log file of invoice, dynamic electron counterfoil log file stored be all the elements of invoice, comprising order.
Storage means of the present invention adopts the mode of binary search concordance list record to search information fast, and the details of invoice are searched according to the index record data.
In storage means of the present invention, different functional modules are meant the utility appliance of tax-control cash register.
5, embodiment
Method of the present invention has been applied to tide RE-350FB tax-control cash register.Because the function of RE-350FB tax-control cash register is more, belongs to a kind of multi-functional commercial version tax-control cash register, also satisfies the national tax demand when satisfying the land tax demand.Also support to print the random length invoice the fixed length invoice except supporting to print,, also support the food and drink demand except supporting the supermarket demand.Various types will not developed different types according to the demand in market before using the inventive method, take a large amount of spaces.Be unfavorable for version management and later upgrade maintenance.Adopt method of the present invention, the tax-control cash register that is suitable for the current market demand can be set easily, saved various exploiting natural resources greatly, can guarantee reliably operation accurately of software.Reduced the quantity of product version.