Summary of the invention
The purpose of this invention is to provide a kind of customizing method to wide capable invoice simulation template in the taxation control system, changing method realizes in the following manner, the tax-controlled invoice component that meets State Tax Administration's requirement is decomposed, and set up the visualization component framework, by the user it is carried out the drag and drop combination and sets logical relation, specify framework element coordinate and Data Source, thereby set up the tax-controlled invoice simulation modular fast, for the method that the final user opens tax-controlled invoice and prints, the method step that makes up self-defined invoice simulation modular is as follows:
(1) at first the user adds up the invoice element of tax control physical invoices, and in visual framework, search out the abstract data model corresponding with it, 1) find this abstract data model, then for this model generates a new example, and storage allocation adds in the user working area; 2) can not find corresponding abstract model, then use the corresponding with it public abstract data model of data structure to replace or redefine corresponding new abstract model in adding framework, using;
(2) attribute information in the modification model makes the outward appearance of model consistent with physical invoices; And revise the particular restriction condition of model, the coordinate content of adjustment visualization component, make it to be consistent with actual relative coordinate;
(3) Data Source of the corresponding invoice element of appointment, set default value or specified database field, after self-defined emulation invoice masterplate compiling is finished, the data file that generates corresponding data field in the automatic reading database when operation outputs in the workspace as data source, finishes the workspace file that utilizes visual framework of tax-controlled invoice and back data binding mode to make emulation invoice masterplate;
(4) compile this workspace file, generation emulation invoice masterplate file is also issued.
The invention has the beneficial effects as follows: at improve risk and the efficiency that exists when the invoice cover technology of beating is used in tax control industry, developed a cover VCL, Component Gallery has been contained all characteristic elements of physical invoices, can accomplish in full accord with physical invoices in appearance, its data model is abstract all data-interfaces of invoice component, can be with generating self-defined emulation invoice masterplate, and adopted back data binding technology, make whole operations, can finish from line operate by the user.The invoice masterplate that generates is stored with file mode, can issue and be authorized to the user easily and adjust, and the independent cipher mode that file content adopts is encrypted, and guarantees that file content do not changed by illegal user from malicious.
Embodiment
Adopt visual framework of invoice and the back data binding technology of making up, the visual framework of invoice adopts object-oriented way to make up, the visual framework of invoice is contained all unique points of tax-controlled invoice, and its interdepartment invoice element abstract model comprises characteristic attribute, logical relation and the data-interface of this element; Adopting back data binding technology is to guarantee the visual appointment invoice of user element data source.
The tax-controlled invoice component that meets State Tax Administration's requirement is decomposed, and set up the visualization component framework, by the user it is carried out the drag and drop combination and sets logical relation, specify framework element coordinate and Data Source, thereby set up the tax-controlled invoice simulation modular fast, for the method that the final user opens tax-controlled invoice and prints, the method step that makes up self-defined invoice simulation modular is as follows:
(1) at first the user adds up the invoice element of tax control physical invoices, and in visual framework, search out the abstract data model corresponding with it, 1) find this abstract data model, then for this model generates a new example, and storage allocation adds in the user working area; 2) can not find corresponding abstract model, then use the corresponding with it public abstract data model of data structure to replace or redefine corresponding new abstract model in adding framework, using;
(2) attribute information in the modification model makes the outward appearance of model consistent with physical invoices; And revise the particular restriction condition of model, the coordinate content of adjustment visualization component, make it to be consistent with actual relative coordinate;
(3) Data Source of the corresponding invoice element of appointment, set default value or specified database field, after self-defined emulation invoice masterplate compiling is finished, the data file that generates corresponding data field in the automatic reading database when operation outputs in the workspace as data source, finishes the workspace file that utilizes visual framework of tax-controlled invoice and back data binding mode to make emulation invoice masterplate;
(4) compile this workspace file, generation emulation invoice masterplate file is also issued.
Embodiment
At first, invoice element by user's statistical physics tax-controlled invoice, and in visual framework, search out abstract data model corresponding with it, if find this abstract data model, then generate a new example and storage allocation adds in the user working area for this model, if do not find corresponding abstract data model, then can use the corresponding with it public abstract data model of data structure to replace or redefine new data data models and add in the framework and use.
Added after the invoice element, can revise the attribute information in the model, made the outward appearance of model consistent with physical invoices; And can revise the peculiar restrictive condition of model, the contents such as coordinate of adjustment visualization component, make it to be consistent with actual relative coordinate.
Finish after the outward appearance setting, can specify the Data Source of corresponding invoice element, set default value or specified database field (after self-defined emulation invoice masterplate compiling finishes, the data file of generation can be when operation the corresponding data field in the automatic reading database output in the workspace as data source).So far, finish the workspace file that utilizes visual framework of tax-controlled invoice and back data binding mode to make emulation invoice masterplate.
Compile this workspace file, generate emulation invoice masterplate file, and issue.
The present invention adopts VCL and back data binding mode to generate self-defining emulation invoice masterplate, and issues with the form of unique file, thereby has improved development efficiency greatly, has reduced maintenance cost.