CN104572083A - Coding rule setting method and device - Google Patents

Coding rule setting method and device Download PDF

Info

Publication number
CN104572083A
CN104572083A CN201410812050.XA CN201410812050A CN104572083A CN 104572083 A CN104572083 A CN 104572083A CN 201410812050 A CN201410812050 A CN 201410812050A CN 104572083 A CN104572083 A CN 104572083A
Authority
CN
China
Prior art keywords
coding rule
priority
business object
template
rule template
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
CN201410812050.XA
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.)
Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Original Assignee
Shenzhen Kemanda Intelligent Management Science & Technology 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 Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd filed Critical Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Priority to CN201410812050.XA priority Critical patent/CN104572083A/en
Publication of CN104572083A publication Critical patent/CN104572083A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention is suitable for the technical field of data processing and provides a coding rule setting method and a coding rule setting device. The method comprises the following steps: loading a coding rule template setting interface; under the setting interface, setting a coding rule template of a business object and priority of the coding rule template; storing the coding rule template of the business object and the priority of the coding rule template. According to the coding rule setting method disclosed by the invention, the setting of the priority of the coding rule template is realized to unify coding rules of all subsidiary corporations under the same group for the business object, so that the subsidiary corporations code the business object according to the set coding rule templates, the consistency of business object data is guaranteed, and difficulty and heavy workload in counting the same business data are reduced.

Description

Coding rule method to set up and device
Technical field
The invention belongs to technical field of data processing, particularly relate to coding rule method to set up and device.
Background technology
In existing large-scale conglomerate, its organization structure of the enterprise is complicated, there is multiple subsidiary company simultaneously.Business object involved by different subsidiary companies is very many, and in existing business object coding rule system, each subsidiary company below group can set oneself coding rule to business object, be easy to cause the inconsistent of data, thus increase the difficulty of group demographic identical services data and workload large.
Summary of the invention
Given this, the embodiment of the present invention provides a kind of coding rule implementation method and device, to arrange the coding rule template of unified business object, ensures the consistance of data, and the difficulty and the workload that reduce statistics identical services data are large.
First aspect, a kind of coding rule method to set up, described method comprises:
Load coding rule template-setup interface;
Described interface is set under, the coding rule template of business object and the priority of described coding rule module are set;
Store the coding rule template of described business object and the priority of described coding rule template.
Further, described priority is the first priority, also comprises after the coding rule template of the described business object of described storage and the priority of described coding rule template:
Load coding rule definition interfaces;
Under described coding rule definition interfaces, obtain the business object of user's input;
Call the coding rule template that priority is the first priority;
Obtain the coding rule amendment information of user's input;
The coding rule in the coding rule template called is revised, to obtain amended coding rule according to described coding rule amendment information;
The priority arranging described amended coding rule is the second priority, and the authority of described first priority is higher than the second priority.
Further, the described priority arranging described amended coding rule also comprises after being the second priority:
Obtain the storage instruction of user's input;
Associate described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
Further, described first priority is group's priority; Described second priority is subsidiary company's priority.
Second aspect, a kind of coding rule setting device, described device comprises:
First load-on module, for loading coding rule template-setup interface;
Module is set, for described interface is set under, the coding rule template of business object is set, and the priority arranging coding rule template is group's priority;
Memory module, for the priority of the coding rule template and coding rule template that store described business object.
Further, described device also comprises:
Second load-on module, for loading coding rule definition interfaces;
First load-on module, for loading coding rule template-setup interface;
Module is set, for described interface is set under, the coding rule template of business object and the priority of described coding rule module are set;
Memory module, for the priority of the coding rule template and described coding rule template that store described business object.
Further, described priority is the first priority, and described device also comprises:
Second load-on module, for loading coding rule definition interfaces;
Acquisition module, under described coding rule definition interfaces, obtains the business object of user's input;
Calling module, for calling the coding rule template that priority is the first priority;
Described acquisition module also for: obtain user input coding rule amendment information;
Modified module, for revising the coding rule in the coding rule template called according to described coding rule amendment information, to obtain amended coding rule; The priority arranging described amended coding rule is the second priority, and the authority of described first priority is higher than the second priority.
Further, described acquisition module also for:
Receive the storage instruction of user's input;
Described memory module also for:
Associate described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
Further, described first priority is group's priority; Described second priority is subsidiary company's priority.
Compared with prior art, the embodiment of the present invention arranges in interface at existing coding rule and adds priority setting.When carrying out coding rule template-setup, load coding rule template-setup interface; Described interface is set under, the coding rule template of business object is set, and the priority of coding rule template is set; Store the coding rule template of described business object and the priority of described coding rule template; Thus achieve coding rule template and priority thereof are set, be described coding rule template with the system unifying all subsidiary companies under group to the coding rule of business object, subsidiary company is encoded to business object according to set coding rule template, ensure that the consistance of business object data, the difficulty and the workload that decrease statistics identical services data are large.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first realization flow figure of the coding rule method to set up that the embodiment of the present invention one provides;
Fig. 2 is the second realization flow figure of the coding rule method to set up that the embodiment of the present invention two provides;
Fig. 3 is the composition structural drawing of the coding rule setting device that the embodiment of the present invention three provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Compared with prior art, the embodiment of the present invention arranges in interface at existing coding rule and adds priority setting.When carrying out coding rule template-setup, load coding rule template-setup interface; Described interface is set under, the coding rule template of business object and the priority of coding rule template are set; Store the coding rule template of described business object and the priority of described coding rule template; Thus achieve coding rule template is set, be described coding rule template with the system unifying all subsidiary companies under group to the rule that business object is encoded, subsidiary company is encoded to business object according to set coding rule, ensure that the consistance of business object data, the difficulty and the workload that decrease statistics identical services data are large.Present invention also offers corresponding device, be described in detail respectively below.
embodiment one
Fig. 1 shows the first realization flow of the coding rule implementation method that the embodiment of the present invention one provides, and for convenience of explanation, illustrate only part related to the present invention.
Described coding refers to the coding of miscellaneous service object data in group enterprise.
As shown in Figure 1, described method comprises:
In step S101, load coding rule template-setup interface.
In embodiments of the present invention, described coding rule template-setup interface is the User Interface arranging coding rule template, and described interface comprises base attribute, range of application, coding composition etc.Wherein, described coding composition comprises following segmentation: attribute classification, attribute using forestland, value attribute, display format, length, initial value, step-length, cover symbol etc.; Described range of application refers to the priority of coding rule template, at least comprises the first priority, the second priority, and the authority of described first priority is higher than described second priority.Exemplarily, described first priority is group's priority, and described second priority is subsidiary company's priority.Described coding rule template is applicable to encode to multiple business object.
In step s 102, described interface is set under, the coding rule template of business object and the priority of coding rule template are set.
Preferably, in the embodiment of the present invention, the priority of coding rule template is set to the first priority (i.e. group's priority), be the coding rule template of described group priority to the rule that business object is encoded with the system unifying all subsidiary companies under group, this coding rule template can only be used when all subsidiary companies under group are encoded to business object, thus ensure that the consistance of business datum.And the priority of coding rule template being set to the second priority (i.e. subsidiary company's priority), then this coding rule template is only applicable to a subsidiary company, encodes to the business object of described subsidiary company.
In step s 103, the coding rule template of described business object and the priority of described coding rule template is stored.
By the priority of memory encoding rule template and correspondence, so that subsequent calls coding rule template, amendment coding rule template.
If the priority of coding rule is group's priority, then forbid all the other coding rules when encoding to business object.Wherein, all the other coding rules described are the coding rule outside coding rule template corresponding to group's priority.Because group's priority authority is higher than subsidiary company's priority authority, even if subsidiary company is provided with coding rule, when current priority is group's priority, the coding rule that can only call group's priority corresponding is encoded to business object, and the coding rule that subsidiary company is arranged then does not come into force.
Exemplarily, if coding is with date beginning, length is 4, and initial value is 1, and step-length is 1, then what the data of business object were corresponding is encoded to 201411170001,201411170002 ..., go down successively and to encode according to such coding rule.
The embodiment of the present invention arranges in interface at existing coding rule and adds priority setting.When carrying out coding rule template-setup, load coding rule template-setup interface; Described interface is set under, the coding rule template of business object and the priority of coding rule template are set; Store the coding rule template of described business object and the priority of described coding rule template; Thus achieve the priority that coding rule template is set, be described coding rule template with the system unifying all subsidiary companies under group to the rule that business object is encoded, subsidiary company is encoded to business object according to set coding rule, ensure that the consistance of business object data, the difficulty and the workload that decrease statistics identical services data are large.
embodiment two
By Fig. 1 embodiment, priority is that the coding rule of group's priority has unified the system of all subsidiary companies under group to the coding rule of business object.The embodiment of the present invention additionally provides the amending method of the subsidiary company's precedence level code rule based on described group precedence level code rule template, refers to Fig. 2.
Fig. 2 shows the second realization flow of the coding rule implementation method that the embodiment of the present invention two provides, and described method is for realizing the setting of subsidiary company's precedence level code rule.
As shown in Figure 2, described method comprises:
Step S201-S203, wherein, step S201-S203 is identical with the step S101-S103 described in Fig. 1 embodiment, specifically refers to describing of Fig. 1 embodiment, repeats no more herein.
Wherein, described coding rule template is the first priority (i.e. group's priority).
In step S204, load coding rule definition interfaces.
Described coding rule definition interfaces is the User Interface of the coding rule arranging single business object.Preferably, in described coding rule definition interfaces, a coding rule includes but not limited to following items: regular code name, rule name, business object, group is preferential, tissue preferential (namely subsidiary company is preferential), many tissues are preferential, apply organization unit etc.
In step S205, under described coding rule definition interfaces, obtain the business object of user's input.
In embodiments of the present invention, user is by input on the input frame of such as " business object " in coding rule definition interfaces or select business object from drop-down menu, and described business object includes but not limited to voucher, request slip of asking for leave, expenses claim sheer, warehouse entry list etc.
In step S206, call the coding rule template that priority is the first priority.
In step S207, obtain the coding rule amendment information of user's input.
In step S208, revise the coding rule in the coding rule template called according to described coding rule amendment information, to obtain amended coding rule, and the priority arranging described amended coding rule is the second priority.
In embodiments of the present invention, described first priority is group's priority, and described second priority is subsidiary company's priority.The described priority arranging coding rule corresponding to described business object is that subsidiary company's priority is arranged preferably by the tissue chosen in coding rule project preferential (namely subsidiary company is preferential).
Described method also comprises:
In step S209, obtain the storage instruction of user's input.
In step S210, associate described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
In embodiments of the present invention, if user have modified coding rule, then associate described business object and amended coding rule, and store the coding rule of described business object and correspondence thereof, described amended coding rule is described business object independent coding rule used in a certain subsidiary company, and namely the business object of subsidiary company has a set of independently coding rule; If user does not revise coding rule, then associate described business object and coding rule template, and store described business object and described coding rule template thereof.If there is multiple business object to need to define the coding rule of oneself, then directly call described coding rule template, described template is revised a little or directly stores and can obtain independently a set of coding rule, decrease a large amount of repeated workload, convenient and swift.
Pass through above-mentioned steps, if after being provided with the coding rule template with group's priority in advance, when defining the coding rule of an independent business object, by calling the coding rule template pre-set, coding rule is revised on the basis of the described coding rule template pre-set, thus decrease the workload repeating to arrange coding rule, improve the efficiency of data processing further.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic.Those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and should not form any restriction to the implementation process of the embodiment of the present invention.
embodiment three
Fig. 3 shows the coding rule setting device composition structure that the embodiment of the present invention three provides.For convenience of explanation, illustrate only part related to the present invention.
As shown in Figure 3, described device comprises:
First load-on module 31, for loading coding rule template-setup interface.
Module 32 is set, for described interface is set under, the coding rule template of business object and the priority of coding rule template are set.
Memory module 33, for the priority of the coding rule template and described coding rule template that store described business object.
Described priority at least comprises the first priority, the second priority, the authority of described first priority higher than tell the second priority.
Further, when the priority of described coding rule template is the first priority, described device also comprises:
Second load-on module 34, for loading coding rule definition interfaces.
Acquisition module 35, under described coding rule definition interfaces, obtains the business object of user's input.
Calling module 36, for calling the coding rule template that priority is the first priority.
Described acquisition module 35 also for: obtain user input coding rule amendment information.
Modified module 37, for revising the coding rule in the coding rule template called according to described coding rule amendment information, to obtain amended coding rule, and the priority arranging described amended coding rule is the second priority, the authority of described first priority higher than tell the second priority.
Further, described acquisition module 35 also for:
Obtain the storage instruction of user's input.
Described memory module 33 also for: for associating described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
In embodiments of the present invention, described first priority is group's priority, the second priority is subsidiary company's priority; Then the authority of described group priority is higher than described subsidiary company priority.
It should be noted that, device in the embodiment of the present invention may be used for the whole technical schemes realized in said method embodiment, the function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can refer to the associated description in above-described embodiment, repeats no more herein.
The embodiment of the present invention arranges in interface at existing coding rule and adds priority.When carrying out coding rule template-setup, load coding rule template-setup interface; Arrange in interface described, the priority of coding rule template corresponding to business object and coding rule template is set; Store the priority of coding rule template corresponding to described business object and described coding rule template; Thus achieve the priority that coding rule template is set.When editing business object, preferentially according to the coding rule of set group's priority, business object is encoded, even if be provided with the coding rule of subsidiary company's priority, also only according to group's precedence level code rule, business object is encoded under group's priority, thus ensure that the consistance of business object data, the difficulty and the workload that decrease statistics identical services data are large.The present invention also can revise coding rule to obtain subsidiary company's coding rule in the coding rule template pre-set, thus decreases the workload repeating to arrange coding rule, improves the efficiency of data processing further.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (8)

1. a coding rule method to set up, is characterized in that, described method comprises:
Load coding rule template-setup interface;
Described interface is set under, the coding rule template of business object and the priority of described coding rule module are set;
Store the coding rule template of described business object and the priority of described coding rule template.
2. coding rule method to set up as claimed in claim 1, it is characterized in that, described priority is the first priority, also comprises after the coding rule template of the described business object of described storage and the priority of described coding rule template:
Load coding rule definition interfaces;
Under described coding rule definition interfaces, obtain the business object of user's input;
Call the coding rule template that priority is the first priority;
Obtain the coding rule amendment information of user's input;
The coding rule in the coding rule template called is revised, to obtain amended coding rule according to described coding rule amendment information;
The priority arranging described amended coding rule is the second priority, and the authority of described first priority is higher than the second priority.
3. coding rule method to set up as claimed in claim 2, it is characterized in that, the described priority arranging described amended coding rule also comprises after being the second priority:
Obtain the storage instruction of user's input;
Associate described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
4. the coding rule implementation method as described in claims 1 to 3, is characterized in that, described first priority is group's priority; Described second priority is subsidiary company's priority.
5. a coding rule setting device, is characterized in that, described device comprises:
First load-on module, for loading coding rule template-setup interface;
Module is set, for described interface is set under, the coding rule template of business object and the priority of described coding rule module are set;
Memory module, for the priority of the coding rule template and described coding rule template that store described business object.
6. coding rule setting device as claimed in claim 5, it is characterized in that, described priority is the first priority, and described device also comprises:
Second load-on module, for loading coding rule definition interfaces;
Acquisition module, under described coding rule definition interfaces, obtains the business object of user's input;
Calling module, for calling the coding rule template that priority is the first priority;
Described acquisition module also for: obtain user input coding rule amendment information;
Modified module, for revising the coding rule in the coding rule template called according to described coding rule amendment information, to obtain amended coding rule; The priority arranging described amended coding rule is the second priority, and the authority of described first priority is higher than the second priority.
7. coding rule setting device as claimed in claim 6, is characterized in that, described acquisition module also for:
Receive the storage instruction of user's input;
Described memory module also for:
Associate described business object and amended coding rule or described coding rule template according to described storage instruction, store described business object and the amended coding rule that associates with it or described coding rule template.
8. the coding rule setting device as described in any one of claim 5 to 7, is characterized in that, described first priority is group's priority; Described second priority is subsidiary company's priority.
CN201410812050.XA 2014-12-23 2014-12-23 Coding rule setting method and device Pending CN104572083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410812050.XA CN104572083A (en) 2014-12-23 2014-12-23 Coding rule setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410812050.XA CN104572083A (en) 2014-12-23 2014-12-23 Coding rule setting method and device

Publications (1)

Publication Number Publication Date
CN104572083A true CN104572083A (en) 2015-04-29

Family

ID=53088249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410812050.XA Pending CN104572083A (en) 2014-12-23 2014-12-23 Coding rule setting method and device

Country Status (1)

Country Link
CN (1) CN104572083A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094199A1 (en) * 2005-08-30 2007-04-26 International Business Machines Corporation System and method for automatically processing dynamic business rules in a content management system
CN101673376A (en) * 2009-10-15 2010-03-17 金蝶软件(中国)有限公司 Method and device for acquiring business bill encodes
CN103729191A (en) * 2014-01-06 2014-04-16 中国南方电网有限责任公司 Code generating method and system capable of being flexibly adjusted

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094199A1 (en) * 2005-08-30 2007-04-26 International Business Machines Corporation System and method for automatically processing dynamic business rules in a content management system
CN101673376A (en) * 2009-10-15 2010-03-17 金蝶软件(中国)有限公司 Method and device for acquiring business bill encodes
CN103729191A (en) * 2014-01-06 2014-04-16 中国南方电网有限责任公司 Code generating method and system capable of being flexibly adjusted

Similar Documents

Publication Publication Date Title
CN108958714B (en) Business component type development method and device, computer equipment and storage medium
CN105487864A (en) Method and device for automatically generating code
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN108304329B (en) Test case design method and device, terminal and readable storage medium
CN108363684A (en) List creation method, device and server
CN105260293B (en) Output method, device and the terminal device of log information
CN106855861A (en) File merging method and device and electronic equipment
CN104516794A (en) Database document backup method, device and system
CN105335389A (en) Business visualization method and system
CN103425632A (en) Serializing method, device and processor
CN110069312A (en) A kind of method and device of UI component Configuration and generation UI Component Gallery
CN102866954A (en) Method and device for allocating internal memory
CN110471754A (en) Method for exhibiting data, device, equipment and storage medium in job scheduling
CN105389184A (en) Configuration method and apparatus for product interface information
CN113672204A (en) Interface document generation method, system, electronic equipment and storage medium
CN112182349A (en) Method, device and system for querying compliance file
CN103744952A (en) Method and system for implementing multi-table property of NoSQL database
CN106250501B (en) Report processing method and reporting system
CN104615422A (en) Procedure customizing method for application software interface
CN109783155A (en) Service Component management method, device, electronic equipment and storage medium
CN106293658A (en) A kind of interface assembly generates method and equipment thereof
CN104506630A (en) Method, server and system for generating authority data on basis of user roles
CN105701649A (en) Data management and control system
CN104572083A (en) Coding rule setting method and device
CN113138760B (en) Page generation method and device, electronic equipment and medium

Legal Events

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

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication