CN101650808A - Business code-processing method, coding module and system - Google Patents

Business code-processing method, coding module and system Download PDF

Info

Publication number
CN101650808A
CN101650808A CN200910172946A CN200910172946A CN101650808A CN 101650808 A CN101650808 A CN 101650808A CN 200910172946 A CN200910172946 A CN 200910172946A CN 200910172946 A CN200910172946 A CN 200910172946A CN 101650808 A CN101650808 A CN 101650808A
Authority
CN
China
Prior art keywords
coding
business
module
apply property
rule
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.)
Pending
Application number
CN200910172946A
Other languages
Chinese (zh)
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN200910172946A priority Critical patent/CN101650808A/en
Publication of CN101650808A publication Critical patent/CN101650808A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a business code-processing method, a coding module and a system. The business code-processing method comprises the following steps: acquiring the application attribute of a business requirement, wherein the application attribute is selected from at least two application attributes; acquiring a coding rule corresponding to the application attribute of the business requirement; acquiring an input business receipt; and generating codes of the business receipt according to the acquired coding rule corresponding to the application attribute of the business requirement. The embodiment of the invention also provides the corresponding coding module and the system. The technical scheme improves the business code-processing expansibility and satisfies different application requirements.

Description

Business code-processing method, coding module and system
Technical field
The present invention relates to the coding techniques field, be specifically related to a kind of business code-processing method, coding module and system.
Background technology
Coding has in practical business widely and uses as a kind of identification information, and usually said code name, numbering, code all are a kind of coding forms of coding.
The application scenarios of coding is very general, for example is applied in the processing procedure to business paper.Every document all needs unique identifier to identify, and this identifier can be a coding.Be coded in require in the system unique, so generate and the management coding by a kind of auto-mechanism, Here it is coding rule.When the code processing method of prior art is applied in the processing of business paper, coding rule and apply property binding generally speaking, coding rule is set to generate coding according to apply property.The existing application attribute only is provided with an attribute, and promptly encoded attributes is in particular in that setting application field has only a field, the attribute of this field coding by name, and attribute is a numeral (number).According to the application field of attribute coding by name, can generate different coding to the different business document and distinguish.
In research and practice process to the method, the present inventor finds: the business code-processing method of prior art, an apply property only is set, generate the coding of business paper according to this apply property, can't for example the title, lot number etc. of business paper be handled according to other utilizable attributes, therefore extendability is low, can't satisfy the different application demand.
Summary of the invention
The embodiment of the invention provides a kind of business code-processing method, coding module and system, can improve the extendability that operation code is handled, and satisfies the different application demand.
The embodiment of the invention provides a kind of business code-processing method, comprising:
Obtain the apply property of business need, the apply property of the apply property of described business need for from least two apply properties, selecting;
Obtain the apply property corresponding codes rule of described business need;
Obtain the business paper of input;
According to the apply property corresponding codes rule of the described described business need of obtaining, for described business paper generates coding.
The embodiment of the invention provides a kind of coding module, comprising:
First acquisition module is used to obtain the apply property of business need, the apply property of the apply property of described business need for selecting from least two apply properties;
Second acquisition module is used to obtain the apply property corresponding codes rule of described business need;
The 3rd acquisition module is used to obtain the business paper of input;
Processing module is used for the apply property corresponding codes rule according to the described described business need of obtaining, for described business paper generates coding.
The embodiment of the invention provides a kind of operation code disposal system, comprising:
Business module is used for the apply property of the business need of user input is sent to coding module, the apply property of the apply property of described business need for selecting from least two apply properties; The business paper of user's input is sent to coding module;
Coding module is used to receive the apply property of the business need that business module sends; Obtain the apply property corresponding codes rule of described business need; Receive the business paper that business module sends; According to the apply property corresponding codes rule of the described described business need of obtaining, for described business paper generates coding.
Technique scheme as can be seen, embodiment of the invention technical scheme is provided with plural at least apply property, and different coding rules is set for the different application attribute, therefore after obtaining the apply property of business need, obtain the apply property corresponding codes rule of described business need, utilize this coding rule to generate coding for the business paper of input, thereby expanded the availability of code processing method, make and to satisfy the different application demand, and use also very simply, also safeguard easily.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the business code-processing method process flow diagram of the embodiment of the invention one;
Fig. 2 is an embodiment of the invention two system rough schematic;
Fig. 3 is the synoptic diagram of two application field being provided with in the embodiment of the invention two business code-processing method;
Fig. 4 is the business code-processing method process flow diagram of the embodiment of the invention two;
Fig. 5 is the coding module structural representation of the embodiment of the invention;
Fig. 6 is the operation code disposal system structural representation of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of business code-processing method, can improve the extendability that operation code is handled, and satisfies the different application demand.The embodiment of the invention also provides respective coding module and operation code disposal system.Below be elaborated respectively.
Fig. 1 is the business code-processing method process flow diagram of the embodiment of the invention one, comprising:
Step 101, obtain the apply property of business need, the apply property of the apply property of described business need for from least two apply properties, selecting;
Wherein, described at least two apply properties are the apply property that generates according to configuration file.
The described apply property that obtains, can be from a plurality of apply properties select one or more.
Step 102, obtain the apply property corresponding codes rule of described business need;
Step 103, obtain the business paper of input;
Described business paper can be meant various documents, invoice, voucher, record etc.
Step 104, according to the apply property corresponding codes rule of the described described business need of obtaining, be that described business paper generates coding.
Wherein, the described apply property corresponding codes rule of obtaining described business need also comprises before: the apply property corresponding codes rule that judges whether to exist described business need; If the step of the apply property corresponding codes rule of described business need is obtained in execution; If not, return the information of the apply property corresponding codes rule that does not have described business need.
This method also comprises: the coding rule state that obtains business need; The described apply property corresponding codes rule of obtaining described business need also comprises before: whether the coding rule state that judgement is being used is identical with the coding rule state of described business need, if the step of the apply property corresponding codes rule of described business need is obtained in execution; If not, return the information of the apply property corresponding codes rule of not enabling described business need.
Described for also comprising after the described business paper generation coding: with the coding output of described generation, but described output format comprises preview format or edit format.
From this embodiment as can be seen, embodiment of the invention technical scheme is provided with plural at least apply property, and different coding rules is set for the different application attribute, therefore after obtaining the apply property of business need, obtain the apply property corresponding codes rule of described business need, utilize this coding rule to generate coding for the business paper of input, thereby expanded the availability of code processing method, make and to satisfy the different application demand, and use also very simply, also safeguard easily.
Carry out more detailed introduction below in conjunction with two pairs of embodiment of the invention technical schemes of embodiment.
Simply introduce earlier the operation code disposal system that the embodiment of the invention relates to.Fig. 2 is an embodiment of the invention two system rough schematic.
In the embodiment of the invention, the operation code disposal system mainly comprises business module and coding module.Comprise a plurality of application interfaces between business module and coding module, for example many apply properties interface, coding rule state interface, obtain addressable port, read addressable port, reclaim addressable port etc.Business module calls coding module according to user's requirement, and adopting different application attribute corresponding codes rule by coding module according to user's requirement is that the business paper that the user imports generates coding.Described business paper can be meant various documents, invoice, voucher, record etc.
In the embodiment of the invention, at least two above apply properties are set, the corresponding application field of each apply property, and each apply property is to there being a coding rule.Fig. 3 is the synoptic diagram of two application field being provided with in the embodiment of the invention two business code-processing method.
Shown in the middle forms partial content of Fig. 3, set application field and comprise: first sets application field and second sets application field.First sets the attribute coding by name of application field, and attribute is a numeral (number); Second sets application field attribute simplified title by name, and attribute is name (name).
Need to prove, just illustrate two here and set application field, can also be plural setting application field.
Fig. 4 is the business code-processing method process flow diagram of the embodiment of the invention two, mainly comprises step:
Step 401, business module are collected the current business parameter.
Business module is collected some attribute informations of business paper before calling coding module generation coding.The attribute information of business paper comprises: the type of business paper, the department of submitting business paper to and department's organizational form etc.
Step 402, business module obtain the coding rule state and the apply property of the current business of user's input, and are transferred to coding module.
The coding rule state generally can comprise following state: 1, whether coding rule exists; 2, coding requirement new display; 3, coding does not allow disconnected number; 4, coding requirement new display and not allowing disconnected number.
Business module calls the coding rule state interface, reads the coding rule state of the current business of user's input, so that integrated processing is carried out in user-defined requirement.
Business module calls many apply properties interface, and that reads user input generates the desired application attribute of encoding for current business.Business module can provide a plurality of apply properties of setting to the user, selects for the user.Therefore, reading the apply property of user's input, can be to read one or more apply properties that the user selects, and also can be that the user is known one or more apply property of directly importing behind a plurality of apply properties of existence.
Business module is transferred to coding module with the coding rule state of the current business obtained by the coding rule state interface.
Business module is transferred to coding module with the apply property that obtains by many apply properties interface.
Need to prove, also can not obtain and the transfer encoding rule state, and only carry out by the coding rule state of acquiescence.
Step 403, coding module judge whether to exist this apply property corresponding codes rule according to the apply property that obtains, and if not, enter step 404, if enter step 406.
Be provided with and stored the coding rule of corresponding different application attribute in the coding module, the corresponding application field of each apply property.For example has only an application field in the prior art, the attribute of this field coding by name, attribute is a numeral (number), newly-increased application field in the embodiment of the invention, for example the attribute of a Xin Zeng field is called simplified title, attribute is name (name), the attribute of another newly-increased field lot number by name, and attribute is a numeral (number) etc.So corresponding application field is the coding rule of " lot number ", and requirement is to encode for business paper according to " lot number ", and the concrete setting of coding rule is identical with existing set-up mode, and different is that coding basis changes.Other by that analogy.
Each application field in the embodiment of the invention, all correspondence is provided with configuration file, and coding module calls configuration file, then can generate corresponding application field.
Step 404, return the information that does not have coding rule to use to business module;
If there is not the correlative coding rule in the apply property that current business requires, return the information that does not have coding rule to use to business module.
Step 405, business module are to user's display reminding information.
Business module shows the information that does not have coding rule to use to the user, does other processing for the user, for example revises apply property etc.
Step 406, judge the current apply property corresponding codes rule of obtaining from business module of whether enabling, if not,, enter step 409 if enter step 407.
Coding module can only use a kind of coding rule state simultaneously, if the coding rule state that coding module is using is identical with the coding rule state that obtains from business module, then enable the apply property corresponding codes rule of obtaining from business module,, then do not enable if inequality.For example, the coding rule state that coding module is using is " a coding requirement new display ", and the coding rule state that obtains from business module is " coding requirement new display and do not allow disconnected number ", then judges current this apply property corresponding codes rule of not enabling.
Step 407, return the information of not enabling the apply property corresponding codes rule of obtaining from business module to business module.
Step 408, business module are to user's display reminding information.
Business module shows the information do not enable the apply property corresponding codes rule of obtaining from business module to the user, does other for the user and handles, and for example revises the coding rule state that requires etc.
Step 409, coding module obtain the apply property corresponding codes rule of requirement.
Be provided with and stored the coding rule of corresponding different application attribute in the coding module, apply property as requested, coding module obtain the corresponding codes rule.
The coding rule state that step 410, coding module obtain to the business module response can be used.
Need to prove that step 409 and 410 does not have ordinal relation.
Step 411, business module received code module are about the response of coding rule state.
Need to prove that step 410 and 411 not necessarily.
Step 412, business module obtain the business paper of user's input and submit to coding module.
Step 413, coding module are that business paper generates coding according to the coding rule that obtains.
Step 414, coding module are given business module with the coding transmission that generates.
When generating coding, the coding rule state that coding module is using is identical with the coding rule state that obtains from business module, therefore generates coding according to the coding rule state that obtains from business module.
If adopt the addressable port that obtains between coding module and the business module, be that non-preview format for example is the coding of edit format but then business module obtains, if what adopt is to read addressable port, what then business module read is the coding of preview format.
In addition, coding module can also advance to reclaim to the coding that has generated before, can utilize the coding of described recovery to encode when this generates coding.Coding module can also reclaim the coding of this generation, uses when being used for encoding next time.
Step 415, business module are put into the business paper attribute with the coding that coding module generates, and are shown to the user.
From this embodiment content as can be seen, embodiment of the invention technical scheme is by being provided with plural at least apply property, and different coding rules is set for the different application attribute, therefore can be that business paper generates different codings according to the different application attribute of business need, thereby expanded the availability of code processing method, make and to satisfy the different application demand, and use is also very simple, also safeguard easily.Simultaneously, also provide the application interface of difference in functionality, the service interaction of each module between the more convenient system satisfies the needs that system performance is expanded.
Foregoing describes the business code-processing method of the embodiment of the invention in detail, below introduces coding module and the operation code disposal system that the embodiment of the invention provides in detail.
Fig. 5 is the coding module structural representation of the embodiment of the invention.
As shown in Figure 5, coding module comprises: first acquisition module 51, second acquisition module 52, the 3rd acquisition module 53, processing module 54.
First acquisition module 51 is used to obtain the apply property of business need, the apply property of the apply property of described business need for selecting from least two apply properties; The described apply property that obtains, can be from a plurality of apply properties select one or more.
Second acquisition module 52 is used to obtain the apply property corresponding codes rule of described business need;
The 3rd acquisition module 53 is used to obtain the business paper of input;
Processing module 54 is used for the apply property corresponding codes rule according to the described described business need of obtaining, for described business paper generates coding.
Coding module also comprises: first judge module 55.
First judge module 55 is used to judge whether to exist the apply property corresponding codes rule of described business need; Described second acquisition module 52 when being, obtains the apply property corresponding codes rule of described business need in the judged result of described first judge module 55.
Coding module also comprises: second judge module 56.
First acquisition module 51 also comprises the coding rule state that obtains business need.Second judge module 56 is used to judge whether the coding rule state of the coding rule state that using and described business need is identical; Described second acquisition module 52 when being, obtains the apply property corresponding codes rule of described business need in the judged result of described second judge module 56.
In addition, described processing module 54 also is used to export the coding of described generation.But described output format comprises preview format or edit format.Described processing module 54 comprises for described business paper generates coding: utilizing the number that reclaims is that described business paper generates coding.
Fig. 6 is the operation code disposal system structural representation of the embodiment of the invention.
As shown in Figure 6, the operation code disposal system comprises: business module 61, coding module 62.
Business module 61 is used for the apply property of the business need of user input is sent to coding module 62, the apply property of the apply property of described business need for selecting from least two apply properties; The business paper of user's input is sent to coding module 62; The described apply property that obtains, can be from a plurality of apply properties select one or more.
Coding module 62 is used to receive the apply property of the business need that business module 61 sends; Obtain the apply property corresponding codes rule of described business need; Receive the business paper that business module 61 sends; According to the apply property corresponding codes rule of the described described business need of obtaining, for described business paper generates coding.
Wherein, coding module 62 has structure shown in Figure 5, specifically referring to the description of Fig. 5, repeats no more herein.
Need to prove, contents such as the information interaction between said apparatus and intrasystem each unit, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than a kind of business code-processing method, coding module and system that the embodiment of the invention provided are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, a kind of business code-processing method is characterized in that, comprising:
Obtain the apply property of business need, the apply property of the apply property of described business need for from least two apply properties, selecting;
Obtain the apply property corresponding codes rule of described business need;
Obtain the business paper of input;
According to the apply property corresponding codes rule of the described described business need of obtaining, for described business paper generates coding.
2, business code-processing method according to claim 1 is characterized in that:
The described apply property corresponding codes rule of obtaining described business need also comprises before:
Judge whether to exist the apply property corresponding codes rule of described business need;
If the step of the apply property corresponding codes rule of described business need is obtained in execution;
If not, return the information of the apply property corresponding codes rule that does not have described business need.
3, business code-processing method according to claim 1 is characterized in that, also comprises:
Obtain the coding rule state of business need;
The described apply property corresponding codes rule of obtaining described business need also comprises before:
Whether the coding rule state that judgement is being used is identical with the coding rule state of described business need, if the step of the apply property corresponding codes rule of described business need is obtained in execution;
If not, return the information of the apply property corresponding codes rule of not enabling described business need.
4, according to each described business code-processing method of claim 1 to 3, it is characterized in that:
Described at least two apply properties are the apply property that generates according to configuration file.
5, according to each described business code-processing method of claim 1 to 3, it is characterized in that:
Described for also comprising after the described business paper generation coding: with the coding output of described generation, but described output format comprises preview format or edit format.
6, according to each described business code-processing method of claim 1 to 3, it is characterized in that:
Described is that described business paper generation coding comprises: utilizing the number that reclaims is that described business paper generation is encoded.
7, a kind of coding module is characterized in that, comprising:
First acquisition module is used to obtain the apply property of business need, the apply property of the apply property of described business need for selecting from least two apply properties;
Second acquisition module is used to obtain the apply property corresponding codes rule of described business need;
The 3rd acquisition module is used to obtain the business paper of input;
Processing module is used for the apply property corresponding codes rule according to the described described business need of obtaining, for described business paper generates coding.
8, coding module according to claim 7 is characterized in that, also comprises:
First judge module is used to judge whether to exist the apply property corresponding codes rule of described business need;
Described second acquisition module when being, obtains the apply property corresponding codes rule of described business need in the judged result of described first judge module.
9, according to claim 7 or 8 described coding modules, it is characterized in that:
First acquisition module also comprises the coding rule state that obtains business need;
Described coding module also comprises second judge module, is used to judge whether the coding rule state of the coding rule state that using and described business need is identical;
Described second acquisition module when being, obtains the apply property corresponding codes rule of described business need in the judged result of described second judge module.
10, a kind of operation code disposal system is characterized in that, comprising:
Business module is used for the apply property of the business need of user input is sent to coding module, the apply property of the apply property of described business need for selecting from least two apply properties; The business paper of user's input is sent to coding module;
Coding module is used to receive the apply property of the business need that business module sends; Obtain the apply property corresponding codes rule of described business need; Receive the business paper that business module sends; According to the apply property corresponding codes rule of the described described business need of obtaining, for described business paper generates coding.
CN200910172946A 2009-09-11 2009-09-11 Business code-processing method, coding module and system Pending CN101650808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910172946A CN101650808A (en) 2009-09-11 2009-09-11 Business code-processing method, coding module and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910172946A CN101650808A (en) 2009-09-11 2009-09-11 Business code-processing method, coding module and system

Publications (1)

Publication Number Publication Date
CN101650808A true CN101650808A (en) 2010-02-17

Family

ID=41673042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910172946A Pending CN101650808A (en) 2009-09-11 2009-09-11 Business code-processing method, coding module and system

Country Status (1)

Country Link
CN (1) CN101650808A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933560A (en) * 2015-12-30 2017-07-07 远光软件股份有限公司 A kind of automatic coding and device
CN108182285A (en) * 2018-01-29 2018-06-19 中国平安人寿保险股份有限公司 Information processing method, terminal and computer readable storage medium
CN110362542A (en) * 2019-07-15 2019-10-22 岭澳核电有限公司 Nuclear power station document No. method, apparatus, computer equipment and storage medium
CN111494956A (en) * 2020-04-13 2020-08-07 北京字节跳动网络技术有限公司 Task data acquisition method and device and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933560A (en) * 2015-12-30 2017-07-07 远光软件股份有限公司 A kind of automatic coding and device
CN108182285A (en) * 2018-01-29 2018-06-19 中国平安人寿保险股份有限公司 Information processing method, terminal and computer readable storage medium
CN110362542A (en) * 2019-07-15 2019-10-22 岭澳核电有限公司 Nuclear power station document No. method, apparatus, computer equipment and storage medium
CN110362542B (en) * 2019-07-15 2022-03-29 岭澳核电有限公司 Nuclear power station file encoding method and device, computer equipment and storage medium
CN111494956A (en) * 2020-04-13 2020-08-07 北京字节跳动网络技术有限公司 Task data acquisition method and device and electronic equipment
CN111494956B (en) * 2020-04-13 2022-03-04 北京字节跳动网络技术有限公司 Task data acquisition method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN101639899B (en) Methods and devices for encoding and decoding two-dimension code and terminal
CN101339599A (en) Method and terminal for obtaining two-dimension code
CN101645140A (en) Two-dimensional code generation method, decoding method and device
CN102055763B (en) Rights management method and system
CN104766209A (en) Data batch processing method and system
CN101655944A (en) Method and system for coding service receipt
CN101650808A (en) Business code-processing method, coding module and system
CN104158889A (en) Business card information querying method and cloud server
CN103064757A (en) Method and system for backing up data
CN101547289B (en) Image log management device and image log management method
CN101668047A (en) Method and device for automatically generating composite service description language
CN109901888A (en) A kind of design method of configuration file Auto-Generation Tool
CN104239840A (en) One-dimension code and two-dimension code integrator system integrating scanning, generation and conversion functions
CN101400182A (en) Self log-on method and system for device management terminal and device management terminal thereof
CN113794581B (en) Distributed CP unified deployment method, network equipment and storage medium
CN102298689A (en) Method and server employing graphic identifier to obtain information
CN104238965A (en) Printing selection method and electronic device
CN101674327B (en) Heterogeneous system message integration method, framework and system
CN108243207B (en) A kind of date storage method of network cloud disk
CN1881213B (en) Document audit trail system and method
CN101650807A (en) Business code-processing method, coding module and system
CN1996432A (en) Application method of moving 2D code map
CN102377894A (en) Method and device for revising imaging box chip
CN107506341A (en) Document conversion method and device
CN103020189A (en) Data processing device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100217