CN103729191B - A kind of can the code generating method of flexible and system - Google Patents

A kind of can the code generating method of flexible and system Download PDF

Info

Publication number
CN103729191B
CN103729191B CN201410004562.3A CN201410004562A CN103729191B CN 103729191 B CN103729191 B CN 103729191B CN 201410004562 A CN201410004562 A CN 201410004562A CN 103729191 B CN103729191 B CN 103729191B
Authority
CN
China
Prior art keywords
code
coding
coding rule
rule
next step
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.)
Active
Application number
CN201410004562.3A
Other languages
Chinese (zh)
Other versions
CN103729191A (en
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.)
Guangdong Zhuowei Networks Co Ltd
GUIZHOU GUANGSI INFORMATION NETWORK CO Ltd
Information & Communication Branch Of Guizhou Grid Co
China Southern Power Grid Co Ltd
Original Assignee
Guangdong Zhuowei Networks Co Ltd
GUIZHOU GUANGSI INFORMATION NETWORK CO Ltd
Information & Communication Branch Of Guizhou Grid Co
China Southern Power Grid 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 Guangdong Zhuowei Networks Co Ltd, GUIZHOU GUANGSI INFORMATION NETWORK CO Ltd, Information & Communication Branch Of Guizhou Grid Co, China Southern Power Grid Co Ltd filed Critical Guangdong Zhuowei Networks Co Ltd
Priority to CN201410004562.3A priority Critical patent/CN103729191B/en
Publication of CN103729191A publication Critical patent/CN103729191A/en
Application granted granted Critical
Publication of CN103729191B publication Critical patent/CN103729191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of can the code generating method of flexible and system, comprise coding rule and module be set and call the coding generation module that coding rule carries out encoding; Coding rule arranges module and comprises the coding rule database storing at least one coding rule program and the amendment interface of modifying to coding rule; Interface comprises coding rule chooser interface, pre-generatmg encodes sub-interface and coding rule revises sub-interface in amendment; Coding generation module is connected with coding rule database communication, calls the coding rule in coding rule database, and coding generation module is also provided with coded message entry terminal.The present invention can select flexibly according to the actual requirements or arrange coding rule, is conducive to staff and carries out monitor and managment to data.

Description

A kind of can the code generating method of flexible and system
Technical field
The present invention relates to a kind of code generating method and system, in particular a kind of can the code generating method of flexible and system.
Background technology
Along with the construction of IT application in enterprises, each enterprise database quantity of information is excessive, is difficult to effectively manage (comprise the storage to information, monitor, call and inquiry etc.) to information.In order to solve due to ever-increasing information data and cause the problem being difficult to manage information, industry propose to data carry out Unified coding, Unicode management, with realize to business datum unified standard management, guarantee increasing in order of data.
Operation system realizes the unified management of enterprise core business coding by pre-setting coding rule.Traditional encode management is enforceable, and coding rule generates together with service convergence with coding, and operation system can not be modified to existing coding rule and adjust, and staff can only be adjusted coding rule by amendment backstage algorithm realization.Traditional code generating method has the following disadvantages: 1, dirigibility is not enough: coding rule can not adjust in time, because coding exists in operation system, if coding rule changes, needs to safeguard operation system, very inconvenient.2, management dispersion: operation system can not carry out universe management and covering to enterprises standard code, coding.3, promptness is poor: sent the documents by enterprise consuming time very long, is badly in need of effectively managing when standard code cannot accomplish urgency to enterprises.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The object of the present invention is to provide a kind of can the code generating method of flexible and system, be intended to solve traditional coding generation system and coding rule and coding generation feature merged, regulate the technical matters that coding rule is very inconvenient.
Technical scheme of the present invention is as follows: a kind of can the coding generation system of flexible, wherein, comprise coding rule and module be set and call the coding generation module that coding rule carries out encoding;
Described coding rule arranges module and comprises the coding rule database storing at least one coding rule program and the amendment interface of modifying to coding rule; Described amendment interface comprises coding rule chooser interface and coding rule revises sub-interface;
Described coding generation module is connected with coding rule database communication, calls the coding rule in coding rule database, and described coding generation module is also provided with coded message entry terminal.
Described can the coding generation system of flexible, wherein, described coding rule database purchase has Monomers code rule program, many bodies coding rule program and special defects coding rule program.
Described can the code generating method of coding generation system of flexible, wherein, comprise the following steps:
A. pass through encode request information entry terminal to coding generation module input coding solicited message, encode request information is verified, resolved, is proved to be successful, carry out next step, otherwise return error message;
B. select coding rule and call from coding rule database;
C. encode according to coding rule, and the coding of generation is outputted to terminal demonstration;
In described steps A, the encode request information of coding generation module to input carries out record, and generates daily record;
In described step B, described coding rule comprises Monomers code rule, many bodies coding rule and special defects coding rule;
In described step B, select coding rule automatically according to encode request information, or manual on amendment interface, select coding rule;
In described step C, coding generation module carries out uniqueness checking to the coding generated, simultaneously record coding.
Described can the code generating method of flexible, wherein, the step of described Monomers code generate rule coding is as follows:
X1. select Monomers code rule, analyze monomer coding rule and judge code hop count;
X2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
X3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return X2, otherwise acquisition is quoted code and spliced result, and obtain maximal sequence code;
X4. code splicing result will be quoted and maximal sequence code carries out assembling and obtains coding result, output encoder result.
Described can the code generating method of flexible, wherein, the step that described many bodies coding rule generates coding is as follows:
S1. select many bodies coding rule, analyze many bodies coding rule and judge code hop count;
S2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
S3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return S2, otherwise enter next step;
S4. judge whether code section is empty, is, obtain and quote code splicing result, and obtain maximal sequence code, enter next step, otherwise code splicing result is quoted in acquisition, enters next step;
S5. code and sequence code are quoted in splicing, return S2.
Described can the code generating method of flexible, wherein, the step that described special defects coding rule generates coding is as follows:
K1. select special defects coding rule, analyze special defects coding rule and judge code hop count;
K2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
K3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return K2, otherwise enter next step;
K4. judge whether code section is empty, is enter next step, otherwise code splicing result is quoted in acquisition and present encoding first place is spliced, then enter next step;
K5. obtain and quote code splicing result, and obtain maximal sequence code, enter next step;
K6. to encode splicing, and judge whether a batch project, be then after present encoding, add batch special symbol, then return K5, otherwise direct output encoder result.
Described can the code generating method of flexible, wherein, in described step K 6, only carry out once the judgement of whether batch project.
Described can the code generating method of flexible, wherein, when obtaining maximal sequence code, judge whether there is sequence code, be the maximal value of already present sequence code is added the new sequence code of 1 generation, preserve and return new sequence code, otherwise returning the initial code of sequence code.
Described can the code generating method of flexible, wherein, described encode request information comprises the parameter that control coding generates number.
Beneficial effect of the present invention: the present invention is by being provided separately coding rule and coding generation service, and be provided with amendment interface, change traditional coding rule and generate the set-up mode of service convergence in same code with coding, make staff select on amendment interface flexibly according to actual needs or suitable coding rule is set.
Accompanying drawing explanation
Fig. 1 is can the module map of coding generation system of flexible in the present invention.
Fig. 2 is can the process flow diagram of code generating method of flexible in the present invention.
Fig. 3 is the process flow diagram of Monomers code generate rule coding in the present invention.
Fig. 4 is the process flow diagram that in the present invention, many bodies coding rule generates coding.
Fig. 5 is the process flow diagram that in the present invention, special defects coding rule generates coding.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.
The invention discloses a kind of can the coding generation system of flexible, as shown in Figure 1, comprise coding rule and module be set and call the coding generation module that coding rule carries out encoding; Coding rule arranges module and comprises the coding rule database storing at least one coding rule program and the amendment interface of modifying to coding rule; Coding generation module is connected with coding rule database communication, calls the coding rule in coding rule database, and coding generation module is also provided with encode request information entry terminal.
In practical application, coding rule database purchase has Multi-encoding rule program, also reserve the space of adding new coding rule simultaneously, in present embodiment, coding rule database purchase has three kinds of coding rule programs, is respectively Monomers code rule program, many bodies coding rule program and special defects coding rule program.Wherein, the definition of Monomers code rule is one or more quotes code and a sequence code forms a coding; The definition of many bodies coding rule is one or more quotes code and multiple sequence code forms a coding; Special defects coding rule defines according to user's actual needs.
Coding rule arranges module installation amendment interface, user can directly modify to coding rule on amendment interface, be included in amendment interface on specify use some coding rules, or amendment interface on to some coding rules quote code or sequence code length is modified; User can also be fixed the operations such as code (i.e. specific coding) is arranged, forbidding coding rule by amendment interface; Such as, for data, need to give its specific coding 001, so user can select fixed code to arrange on amendment interface, input 001, then encodes to these data, returns coding 001 after having encoded.The present invention is by being provided separately coding rule and coding generation service, and be provided with amendment interface, change traditional coding rule and generate the set-up mode of service convergence in same code with coding, make staff select on amendment interface flexibly according to actual needs or suitable coding rule is set.
Concrete, amendment interface of the present invention comprises coding rule chooser interface and coding rule revises sub-interface.Wherein, coding rule chooser interface is mainly selected coding rule, such as, select Monomers code rule to encode; Coding rule is revised sub-interface and is mainly modified for concrete coding rule, such as, revise the number of encoding in monomer coding rule.The present invention by arranging the sub-interface of difference in functionality on amendment interface, and user can select the coding of different coding rule according to actual needs, simultaneously can self-defined code length, is conducive to user flexibility and arranges coding.
The invention also discloses the coding method about this system, as shown in Figure 2, comprise the following steps:
A. pass through encode request information entry terminal to coding generation module input coding solicited message, encode request information is verified, resolved, is proved to be successful, carry out next step, otherwise return error message;
B. select suitable coding rule and call from coding rule database;
C. encode according to coding rule, and the coding of generation is outputted to terminal demonstration.
In steps A, the encode request information of coding generation module to input carries out record, and generates daily record, facilitates staff to monitor.
In step B, suitable coding rule can be selected automatically according to encode request information, also can be manual amendment interface on select suitable coding rule.
In step C, coding generation module carries out uniqueness checking to the coding generated, and record coding, facilitates staff to inquire about simultaneously.
Implement 1: Monomers code generate rule is encoded
To coding generation module input coding solicited message, and in the specific fields of encode request information, add the identification character of Monomers code rule, coding generation module selects Monomers code rule automatically according to this identification character.
As shown in Figure 3, the coding step of Monomers code rule is as follows:
X1. select Monomers code rule according to the identification character of encode request information, analyze monomer coding rule and judge code hop count;
X2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
X3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return X2, otherwise acquisition is quoted code and spliced result, and obtain maximal sequence code;
X4. code splicing result will be quoted and maximal sequence code carries out assembling and obtains coding result, output encoder result.
Wherein, quote code defined by the user, be stored in system database, sequence code is then generated by system.
Wherein, in step X3, when obtaining maximal sequence code, need to judge whether there is sequence code, be that already present maximal sequence code is added the new sequence code of 1 generation, preserve and return this new sequence code, otherwise returning the initial code of sequence code.Such as, Monomers code rule in the present embodiment is 3 and quotes code and 5 bit sequence codes form a coding, if there is maximal sequence code 00006 in coding generation module, has so then preserved and returns 00007, if there is no 5 bit sequence codes in coding generation module, then return 00001.
Concrete, the number that the number returning coding is encoded according to encode request information request is determined, a parameter is set in encode request information, this Parametric Representation request returns the number of coding, coding generation module is monitored this parameter, and returns the quantity of coding according to this parameter, and such as encode request information request coding generation module generates 10 codings, after coding generation module completes coding, return 10 continuous print codings.For a simple example, suppose that current code of quoting is 110, sequence code is 0001, and when needs return 10 codings, coding generation module returns 110 0001-110 0010.
In the present embodiment, can be modified to sequence code in Monomers code rule or the figure place of quoting code by amendment interface, such as, the figure place of sequence code is revised as 7, then output encoder is: 0100000007, and wherein 010 for quoting code, and 0000007 is sequence code.
Implement 2: many bodies coding rule generates coding
Many bodies coding rule is selected at amendment interface, and arranges the figure place respectively quoting code and each sequence code of many bodies coding rule, to coding generation module input coding solicited message, coding generation module calls many bodies coding rule and encodes.
As shown in Figure 4, the coding step of many bodies coding rule is as follows:
S1. analyze many bodies coding rule and judge code hop count;
S2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
S3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return S2, otherwise enter next step;
S4. judge whether code section is empty, is, obtain and quote code splicing result, and obtain maximal sequence code, enter next step, otherwise code splicing result is quoted in acquisition, enters next step;
S5. code and sequence code are quoted in splicing, return S2.
Wherein, in S2 step, until nonexistent code section, then output encoder, coding generation module carries out uniqueness check to the coding exported, and record coding.
Wherein, in step S3, when obtaining maximal sequence code, need to judge whether there is sequence code, be that already present maximal sequence code is added the new sequence code of 1 generation, preserve and return this new sequence code, otherwise returning the initial code of sequence code.Concrete, the number that the number returning coding is encoded according to encode request information request is determined.
Embodiment 3: special defects coding rule
Special defects coding rule is selected at amendment interface, and to coding generation module input coding solicited message, coding generation module calls special defects coding rule and encodes.
As shown in Figure 5, the coding step of special defects coding rule is as follows:
K1. analyze special defects coding rule and judge code hop count;
K2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
K3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return K2, otherwise enter next step;
K4. judge whether code section is empty, is enter next step, otherwise code splicing result is quoted in acquisition and present encoding first place is spliced, then enter next step;
K5. obtain and quote code splicing result, and obtain maximal sequence code, enter next step;
K6. to encode splicing, and judge whether a batch project, be then after present encoding, add batch special symbol, then return K5, otherwise direct output encoder result.
Wherein, in step K 5, when obtaining maximal sequence code, need to judge whether there is sequence code, be that already present maximal sequence code is added the new sequence code of 1 generation, preserve and return this new sequence code, otherwise returning the initial code of sequence code.Concrete, the number that the number returning coding is encoded according to encode request information request is determined.
Wherein in step K 6, only carry out once the judgement of whether batch project.Wherein a batch special symbol is specified according to the actual requirements, such as, PC can be specified to be a batch special symbol, so after judgement is batch project, needs to add PC after present encoding.By this setup, convenient staff encodes to a collection of product, and such as, the computer of same batch in October, 2013 is numbered, and can add 201310PC as a batch special symbol in coding.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (6)

1. can the code generating method of coding generation system of flexible, it is characterized in that, comprise the following steps:
A. pass through encode request information entry terminal to coding generation module input coding solicited message, encode request information is verified, resolved, is proved to be successful, carry out next step, otherwise return error message;
B. select coding rule and call from coding rule database;
C. encode according to coding rule, and the coding of generation is outputted to terminal demonstration;
In described steps A, the encode request information of coding generation module to input carries out record, and generates daily record;
In described step B, described coding rule comprises Monomers code rule, many bodies coding rule and special defects coding rule;
In described step B, select coding rule automatically according to encode request information, or manual on amendment interface, select coding rule;
In described step C, coding generation module carries out uniqueness checking to the coding generated, simultaneously record coding;
The step that described special defects coding rule generates coding is as follows:
K1. select special defects coding rule, analyze special defects coding rule and judge code hop count;
K2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
K3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return K2, otherwise enter next step;
K4. judge whether code section is empty, is enter next step, otherwise the first place that code splicing result and present encoding are quoted in acquisition is spliced, then enter next step;
K5. obtain and quote code splicing result, and obtain maximal sequence code, enter next step;
K6. to encode splicing, and judge whether a batch project, be then after present encoding, add batch special symbol, then return K5, otherwise direct output encoder result.
2. according to claim 1 can the code generating method of flexible, it is characterized in that, the step of described Monomers code generate rule coding is as follows:
X1. select Monomers code rule, analyze monomer coding rule and judge code hop count;
X2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
X3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return X2, otherwise acquisition is quoted code and spliced result, and obtain maximal sequence code;
X4. code splicing result will be quoted and maximal sequence code carries out assembling and obtains coding result, output encoder result.
3. according to claim 1 can the code generating method of flexible, it is characterized in that, the step that described many bodies coding rule generates coding is as follows:
S1. select many bodies coding rule, analyze many bodies coding rule and judge code hop count;
S2. obtain code section, judge whether to there is code section, be, enter next step, otherwise output encoder;
S3. judging that whether code section is for quoting code, is, carrying out quoting code splicing, quote code and splice successfully and return S2, otherwise enter next step;
S4. judge whether code section is empty, is, obtain and quote code splicing result, and obtain maximal sequence code, enter next step, otherwise code splicing result is quoted in acquisition, enters next step;
S5. code and sequence code are quoted in splicing, return S2.
4. according to claim 1 can the code generating method of flexible, it is characterized in that, in described step K 6, only carry out once the judgement of whether batch project.
5. according to Claims 2 or 3 can the code generating method of flexible, it is characterized in that, when obtaining maximal sequence code, judge whether there is sequence code, the maximal value of already present sequence code is added the new sequence code of 1 generation, preserve and return new sequence code, otherwise returning the initial code of sequence code.
6. according to Claims 2 or 3 can the code generating method of flexible, it is characterized in that, described encode request information comprises the parameter that control coding generates number.
CN201410004562.3A 2014-01-06 2014-01-06 A kind of can the code generating method of flexible and system Active CN103729191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410004562.3A CN103729191B (en) 2014-01-06 2014-01-06 A kind of can the code generating method of flexible and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410004562.3A CN103729191B (en) 2014-01-06 2014-01-06 A kind of can the code generating method of flexible and system

Publications (2)

Publication Number Publication Date
CN103729191A CN103729191A (en) 2014-04-16
CN103729191B true CN103729191B (en) 2015-08-19

Family

ID=50453277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410004562.3A Active CN103729191B (en) 2014-01-06 2014-01-06 A kind of can the code generating method of flexible and system

Country Status (1)

Country Link
CN (1) CN103729191B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572083A (en) * 2014-12-23 2015-04-29 深圳市科漫达智能管理科技有限公司 Coding rule setting method and device
CN107122947A (en) * 2017-05-04 2017-09-01 四川省红地科技有限责任公司 A kind of method of materiel code generation and management based on material catalogue
CN109753637A (en) * 2018-11-30 2019-05-14 远光软件股份有限公司 A kind of datamation coding control method, device, equipment and storage medium
CN110399127A (en) * 2019-08-01 2019-11-01 山东浪潮通软信息科技有限公司 A kind of universal method generating continuous business number across ERP
CN112417660B (en) * 2020-11-12 2024-04-12 中国核电工程有限公司 Automatic coding method and system for pipeline support and hanger
CN113157319A (en) * 2021-04-27 2021-07-23 上海申铁信息工程有限公司 Rule coding device and method of PHM system
CN113590132A (en) * 2021-08-03 2021-11-02 重庆忽米网络科技有限公司 Handle identification code generation method based on configuration rule
CN116306503A (en) * 2023-05-16 2023-06-23 中科科界(北京)科技有限公司 Member number generation method and device and computer equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145226A (en) * 2007-10-30 2008-03-19 金蝶软件(中国)有限公司 Method and system for creating operation code
JP5097217B2 (en) * 2008-01-24 2012-12-12 日本電信電話株式会社 ENCODING METHOD, ENCODING DEVICE, PROGRAM THEREOF, AND RECORDING MEDIUM
CN103106082B (en) * 2013-03-06 2016-01-20 西安工业大学 The graphic flexible robot arms system that a kind of easily extensible rule knowledge drives

Also Published As

Publication number Publication date
CN103729191A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103729191B (en) A kind of can the code generating method of flexible and system
CN101635114A (en) Method and system for updating road codes and map data server
CN104363072A (en) Error information transfer and escape method, error information transfer and escape device and error information transfer and escape system
CN103729742B (en) A kind of Data Resources Management System based on SOA framework and executing model drive structure
CN102236709A (en) Flex-based monitoring page display method and system
CN103746746A (en) Business system of network device
CN110264361A (en) A kind of data analysis method and device of block chain
CN105512392A (en) State grid ERP material device coding and application system
CN107909164B (en) Operation and maintenance processing method, system, electronic equipment and computer readable medium
CN113283917A (en) Quality tracing method and device for engineering raw materials
CN116070663A (en) Material identification coding method, device, equipment and storage medium
CN104156455A (en) Method and system for inquiring about maintenance information of relay protection device
CN103984540A (en) Method and device for generating hardware interface running program
Kulkarni et al. Modelling and enterprises-the past, the present and the future
CN115811513A (en) Third-party interface request design method, device and storage medium
CN115220852A (en) Method and device for generating human-computer interaction interface
CN101145959A (en) A method and system for automatic realization of network management function
CN114723976A (en) Subgraph pattern matching method and device for computational graph
CN107862428A (en) Water planing method and Internet of things system are used based on compound Internet of Things
CN112102058A (en) Management system parameter configuration method and device
CN111178010A (en) Method and system for displaying digital signature, data editing method and terminal
CN103186576B (en) Heterogeneous system data are carried out to method and the cooperative system of associated treatment
CN110784780B (en) Route uniqueness detection method and detection system
CN105512833A (en) Intelligent transportation operation and maintenance system
CN101826035A (en) Communication method between application programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant