CN103810551B - The method and device of organizational unit object is generated in ERP system - Google Patents
The method and device of organizational unit object is generated in ERP system Download PDFInfo
- Publication number
- CN103810551B CN103810551B CN201210447847.5A CN201210447847A CN103810551B CN 103810551 B CN103810551 B CN 103810551B CN 201210447847 A CN201210447847 A CN 201210447847A CN 103810551 B CN103810551 B CN 103810551B
- Authority
- CN
- China
- Prior art keywords
- organizational unit
- unit object
- type
- business
- service
- 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
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of method that organizational unit object is generated in ERP system, including:Obtain organizational unit object request to create;Corresponding organizational unit object definition is obtained according to the organizational unit object request to create, the organizational unit object definition includes default type of service mark;Corresponding type of service mark is extracted according to organizational unit object definition, and business object is obtained according to type of service mark;The business object generation organizational unit object is assembled according to organizational unit object definition.In addition, additionally providing the device that organizational unit object is generated in a kind of ERP system.The method and apparatus of organizational unit object are generated in above-mentioned ERP system can improve rate of code reuse, so as to improve the autgmentability of ERP system.
Description
Technical field
The present invention relates to ERP technical fields, in more particularly to a kind of ERP system the method for generation organizational unit object and
Device.
Background technology
ERP(Enterprise Resource Planning, Enterprise Resources Plan)System is a kind of common enterprise's pipe
Software systems are managed, its core is supply chain management.ERP system is unified by the logistics of enterprise, the stream of people, cash flow, information flow
Get up to be managed, in the hope of maximally utilising enterprise's existing resource, realize the maximization of Business Economic Benefit.
Organizational unit object is basic business object in ERP system.Organizational unit can include multiple business attribute, so that
Suitable for multiple operation flows.For example, multiple organizational unit objects can be included in Departmental organization framework in ERP system, point
Dai Biao not have the business enterprice sector of a hierarchy.If some organizational unit belongs to procurement process, class can be created accordingly
Type is the organizational unit object A of buying, and the business demand in terms of buying is handled for participation;If the organizational unit still belongs to administration
Flow, then it is administrative organizational unit object B that can correspondingly create type, for business demand of the participation processing in terms of administrative.
However, as it was previously stated, the ERP system of conventional art is when creating organizational unit, meeting is according to involved by organizational unit
Operation flow classification different types of organizational unit object is respectively created.And different types of organizational unit object is participated in respectively
The different business demands of processing, bulk redundancy is caused in code realization, and if when thering is the new operation flow classification to occur, industry
Business logical process code can not be multiplexed, it is necessary to create the organizational unit object of new type to adapt to the operation flow, made
The autgmentability for obtaining ERP system is relatively low.
The content of the invention
Based on this, it is necessary to provide a kind of method that organizational unit object is generated in ERP system that can improve autgmentability.
A kind of method that organizational unit object is generated in ERP system, including:
Obtain organizational unit object request to create;
Corresponding organizational unit object definition, the organizational unit pair are obtained according to the organizational unit object request to create
As definition includes default type of service mark;
Corresponding type of service mark is extracted according to organizational unit object definition, and identified according to the type of service
Obtain business object;
The business object generation organizational unit object is assembled according to organizational unit object definition.
In one of the embodiments, methods described also includes:
Obtain organizational unit object definition generation request;
Corresponding base attribute information and type of service mark is extracted according to organizational unit object definition generation request;
According to the base attribute information and type of service mark generation organizational unit object definition.
In one of the embodiments, the step of mark acquisition business object according to the type of service includes:
Corresponding business object definition is obtained according to type of service mark;
According to business object definition generation business object.
In one of the embodiments, it is described according to the base attribute information and type of service mark generation tissue
The step of unit object is defined includes:
Obtain the corresponding base attribute field of the base attribute information;
The business type field in the base attribute field is obtained, the quantity of the business type field is 1;
Type of service mark is added in the business type field;
Organizational unit object definition is generated according to the base attribute field.
In one of the embodiments, it is described that corresponding type of service mark is obtained according to organizational unit object definition
The step of be:
The type of service mark for obtaining and being included in corresponding business type field is defined according to the organizational unit object.
In addition, there is a need to the device for providing and organizational unit object being generated in a kind of ERP system that can improve autgmentability.
The device of organizational unit object is generated in a kind of ERP system, including:
Request to create acquisition module, for obtaining organizational unit object request to create;
Organizational unit object defines acquisition module, for obtaining corresponding group according to the organizational unit object request to create
Unit object definition is knitted, the organizational unit object definition includes default type of service mark;
Business object acquisition module, is identified for extracting corresponding type of service according to organizational unit object definition,
And business object is obtained according to type of service mark;
Object load module, assembles the business object according to organizational unit object definition and generates organizational unit pair
As.
In one of the embodiments, described device also defines generation module including organizational unit object, for obtaining group
Unit object definition generation request is knitted, corresponding base attribute information is extracted according to organizational unit object definition generation request
With type of service mark, defined according to the base attribute information and type of service mark generation organizational unit object.
In one of the embodiments, the business object acquisition module is additionally operable to be identified according to the type of service and obtained
Corresponding business object definition, according to business object definition generation business object.
In one of the embodiments, the organizational unit object defines generation module and is additionally operable to obtain the base attribute
The corresponding base attribute field of information, obtains the business type field in the base attribute field, the business type field
Quantity be 1, by the type of service mark be added in the business type field;Generated according to the base attribute field
Organizational unit object is defined.
In one of the embodiments, the business object acquisition module is additionally operable to be defined according to the organizational unit object
Obtain the type of service mark included in corresponding business type field.
The method and apparatus that organizational unit object is generated in above-mentioned ERP system, different business classification is applicable in establishment
Organizational unit object when, obtain organizational unit object definition, acquisition is defined according to the organizational unit object and has corresponded to multiple spies
Determine the business object of class of service, and business object is assembled into by organizational unit object according to its definition so that the specific industry of correspondence
The code of business processing logic part in the business object for classification of being engaged in is multiplexed, so as to improve the extension of ERP system
Property.
Brief description of the drawings
Fig. 1 is the flow chart of a kind of method of generation organizational unit object in ERP system in one embodiment;
Fig. 2 defines the flow chart of establishment process for organizational unit object in one embodiment;
Fig. 3 is to be used to configure the schematic diagram of the visualization interface that organizational unit object is defined in one embodiment;
The flow chart for the step of Fig. 4 is identifies acquisition business object in one embodiment according to type of service;
The flow chart of Fig. 5 is defines according to base attribute information generation organizational unit object in one embodiment the step of;
Fig. 6 is a kind of structural representation of the device of generation organizational unit object in ERP system in one embodiment;
Fig. 7 is a kind of structural representation of the device of generation organizational unit object in ERP system in another embodiment.
Embodiment
In one embodiment, as shown in figure 1, generating the method for organizational unit object in a kind of ERP system, including:
Step S102, obtains organizational unit object request to create.
The classification logotype of organizational unit object can be included in organizational unit object request to create, organizational unit pair can be also included
As the initiation parameter when creating.Initiation parameter can be specific service attribute.
Step S104, obtains corresponding organizational unit object according to organizational unit object request to create and defines, organizational unit
Object definition includes the one or more type of service marks of default correspondence.
In one embodiment, the classification logotype of organizational unit object can be extracted according to organizational unit object request to create,
And organizational unit object definition is obtained according to category mark.
Organizational unit object definition can be configuration file, script file or class file.Organizational unit object is defined as pre-
First create, as shown in Fig. 2 its establishment process is specifically included:
Step S202, obtains organizational unit object definition generation request.
Step S204, corresponding base attribute information and type of service are extracted according to organizational unit object definition generation request
Mark.
Step S206, according to base attribute information and type of service mark generation organizational unit object definition.
In one embodiment, as shown in figure 3, the configuration interface that organizational unit object is defined can be shown, by configuring boundary
Face obtains organizational unit object definition generation request.
Organizational unit object includes base attribute information and extended attribute information.The base attribute information of organizational unit object
The basic ERP system letter such as mark, creation time, founder, description information, enabling time including the organizational unit object
Breath.Generation request is defined by organizational unit object and extracts the organizational unit object that obtained base attribute information can obtain for establishment
Initial value.
The extended attribute information of organizational unit object includes the service attribute of the operation flow where the organizational unit object
Information.Extended attribute information includes multiple classifications, and each classification identifies correspondence with corresponding type of service.If for example, tissue is single
Meta object is in procurement process, then its extended attribute information includes procurement business attribute information classification, with procurement business type
Mark correspondence;If the organizational unit object is also in administrating process, its extended attribute information includes administrative service attribute letter
Classification is ceased, it is corresponding with administrative type of service mark.In the present embodiment, extended attribute information is preset value.I.e. by operation flow
Designer identifies corresponding service attribute for the type of service and set in the corresponding service attribute of the specific type of service of definition
The preset value put.For example, business Process Design personnel can pre-define the corresponding extended attribute information of procurement business type identification
Initial value is provided with including service attributes such as buying hour, purchaser, purchase quantities, and for it.So that creating organizational unit
During object definition, it is associated by type of service mark with extended attribute information, you can should according to type of service mark multiplexing
Extended attribute information.In other embodiments, extended attribute information can also be defined by organizational unit object extracts in generation request.
In the present embodiment, as shown in figure 3, can be divided into accordingly on configuration interface base attribute information configuration region A and
Extended attribute information configuration region B.User can be fixed for organizational unit object in the base attribute information configuration region of configuration interface
The base attribute information of justice sets initial value.User can be also organizational unit in the extended attribute information configuration region of configuration interface
Object definition chooses the type of service mark involved by the organizational unit object, please so as to generate organizational unit object definition generation
Ask.
Further, base attribute information is may also include in organizational unit object definition generation request to identify with type of service
And the dependence between type of service mark.As shown in Fig. 2 can be by setting base in extended attribute information configuration region
This attribute information sets above-mentioned dependence with the corresponding relation of type of service mark.
In the present embodiment, organizational unit object can be defined in generation request and extracts obtained base attribute information and industry
Service type identification record is in configuration file.Corresponding organizational unit object definition is obtained according to organizational unit object request to create
The step of can be specially:Corresponding organizational unit object is obtained by reading configuration file according to organizational unit object request to create
Definition.
Step S106, extracts corresponding type of service according to organizational unit object definition and identifies, and according to type of service mark
Know and obtain business object.
In the present embodiment, as shown in figure 4, the step of obtaining business object according to organizational unit object definition includes:
Step S302, obtains corresponding business object according to type of service mark and defines.
Step S304, according to business object definition generation business object.
Business object is defined patrols comprising foregoing extended attribute information and business processing corresponding with extended attribute information
Volume.Business object definition can be pre-set.As it was previously stated, business of the extended attribute information for default correspondence specific transactions flow
Attribute information, can be stored in configuration file or tables of data.Business processing logic corresponding with extended attribute information can be used to
Processing function, thread dispatching or the data structure of specific business demand are handled, can be stored in class file or code file.Example
Such as, the industry being related in the extended attribute information related to procurement business and procurement process is included in procurement business object definition
Business processing logic;Occurrences in human life business object includes in defining in the extended attribute information related to occurrences in human life business and occurrences in human life flow
The business processing logic being related to.
That is, being divided in advance to the operation flow in ERP system, according to the kind of the operation flow after division
Class(That is type of service)Extended attribute information corresponding with corresponding operation flow is pre-defined, so that by each type of service
Attribute definition makes a distinction so that the business processing logic of different service types is encapsulated in business object more independent each other
In, the code degree of coupling is reduced, so as to improve code reuse and autgmentability.
Step S108, assembling work object generation organizational unit object is defined according to organizational unit object.
It can be assembled to business object as the attribute of organizational unit object in organizational unit object.If organizational unit object
The dependence of business object, then in assembling process, the dependence included in being defined according to organizational unit object are included in definition
Relation sets the dependence of the attribute of organizational unit object.
In one embodiment, organizational unit object definition include configuration file, can rely on inject by way of basis
The configuration file generates organizational unit object.
Rely on injection(IoC, Inversion of Control, also known as control reversion)It is a kind of Code Design pattern.Can
The dependence of the business object defined in configuration file and organizational unit object., can basis when assembling organizational unit object
Business object is injected into organizational unit object by the dependence recorded in configuration file.
In one embodiment, as shown in figure 5, according to base attribute information and type of service mark generation organizational unit pair
Also include as the step of definition:
Step S402, obtains the corresponding base attribute field of base attribute information.
Step S404, obtains the business type field in base attribute field, the quantity of business type field is 1.
Step S406, type of service mark is added in the business type field.
Step S408, organizational unit object definition is generated according to base attribute field.
In the present embodiment, further, defined according to organizational unit object and obtain the step that corresponding type of service is identified
Suddenly also include:
The type of service mark for obtaining and being included in corresponding business type field is defined according to organizational unit object.
In the present embodiment, the base attribute information for defining generation request extraction by organizational unit object is stored in database
In, its corresponding field is base attribute field.Also include business type field in base attribute field, for storing the tissue
Unit object defines corresponding type of service mark.In the present embodiment, business type field only one of which, the i.e. organizational unit
The corresponding type of service mark of object definition is stored in the business type field.Base attribute field is as shown in table 1:
Table 1
Base attribute field 1 | Base attribute field 2 | Base attribute field 3 | Business type field |
And in the conventional technology, as shown in table 2:
Table 2
Base attribute field 1 | Base attribute field 2 | Business type field 1 | Business type field 2 |
When redesigning database in conventional art, business type field is set multiple, and each type of service is identified
The specific business type field of correspondence, and mark whether the organizational unit object includes by storing Boolean in the field
The type of service identifies corresponding extended attribute information.Therefore, divide when the species of type of service is more, it is necessary in database
Carry out storage service type identification with very many fields, its Boolean has substantially constituted a sparse matrix, so as to reduce
The utilization rate of memory space.And in the present embodiment by unique type of service identify storage organization unit object define it is corresponding
The method of type of service mark only just stores type of service by single field and identified, so as to improve the profit of memory space
With rate.
And in conventional art, if there is the species of demand Added Business type, need to create new field to store novel species
The type of service mark of class.And in the present embodiment, it is only necessary to the type of service mark of New raxa is equally added to unique industry
In service type field, so that autgmentability is stronger.
In the present embodiment, extended attribute information can separate storage in the extended attribute data different from base attribute information
In table, and it is corresponding by type of service mark generation with organizational unit object definition.That is, fixed according to organizational unit object
Justice extracts the step of corresponding type of service is identified:Its corresponding basic category is obtained by organizational unit object definition
Property information, and extract from base attribute information its corresponding type of service mark.Obtain corresponding according to type of service mark
The step of business object is defined can be specially:The extended attribute letter obtained in extended attribute tables of data is identified according to type of service
Breath, and obtain the code file for defining corresponding business processing logic.
In the present embodiment, type of service is identified to the step being added in business type field to be specially:By dividing
Type of service mark is spliced into a character string every symbol, and added in business type field.
If for example, organizational unit object, which defines the type of service mark included in generation request, includes tri- kinds of business of A, B and C
In type, i.e. ERP system, the organizational unit object is related to tri- kinds of operation flows of A, B and C.Semicolon separated symbol generation then can be used
Character string " A;B;C ", is then store in business type field.Obtain what the type of service included in business type field was identified
Step can be specifically, can accord with character string " A according to semicolon separated;B;C " is divided into multistage, then extracts type of service mark
A, B and C.
In another embodiment, type of service mark can be also spliced into according to default sequential conversions into boolean vector
Binary number, and be added in business type field.
As above in example, organizational unit object, which defines the type of service mark included in generation request, includes tri- kinds of industry of A, B and C
Service type, and type of service whole in ERP system includes A, B, C, D, E, F and G7 kind.If default ABCDEFG order,
Tri- kinds of A, B and C is only then included because organizational unit object defines the type of service mark included in generation request, then can generate cloth
The binary number " 1110000 " that your vector is spliced into.In the binary number, each represents certain specific type of service mark
Know, if comprising type of service mark in organizational unit object definition, the position is set to " 1 ", if not including, and the position is set
It is set to " 0 ".
In the present embodiment, obtaining the step of type of service included in business type field is identified can be specially:According to
Default order judges that type of service is extracted from business type field to be identified by boolean.As above in example, if service class type-word
The binary number stored in section is " 0101101 ", then according to default ABCDEFG order, and the every of binary number is extracted successively
One, and boolean's judgement is carried out, it can obtain type of service and identify B, D, E and G4 type of service marks.
Using the method for binary number in business type field storage service type identification, the storage of database can be saved
Space, and boolean judges that, compared to character string comparison, execution speed faster, can improve execution efficiency.
In one embodiment, as shown in fig. 6, generating the device of organizational unit object in a kind of ERP system, including:Wound
Build acquisition request module 102, organizational unit object and define acquisition module 104, business object acquisition module 106 and object assembling
Module 108, wherein:
Request to create acquisition module 102, for obtaining organizational unit object request to create.
The classification logotype of organizational unit object can be included in organizational unit object request to create, organizational unit pair can be also included
As the initiation parameter when creating.Initiation parameter can be specific service attribute.
Organizational unit object defines acquisition module 104, for obtaining corresponding group according to organizational unit object request to create
Unit object definition is knitted, organizational unit object definition includes the one or more type of service marks of default correspondence.
In one embodiment, the classification logotype of organizational unit object can be extracted according to organizational unit object request to create,
And organizational unit object definition is obtained according to category mark.
Organizational unit object definition can be configuration file, script file or class file.
In the present embodiment, as shown in fig. 7, the device of organizational unit object is generated in ERP system also includes organizational unit
Object definition generation module 110, for obtaining organizational unit object definition generation request, defines according to organizational unit object and generates
Corresponding base attribute information and type of service mark is extracted in request, and generation group is identified according to base attribute information and type of service
Knit unit object definition.
In one embodiment, as shown in figure 3, the configuration interface that organizational unit object is defined can be shown, by configuring boundary
Face obtains organizational unit object definition generation request.
Organizational unit object includes base attribute information and extended attribute information.The base attribute information of organizational unit object
The basic ERP system letter such as mark, creation time, founder, description information, enabling time including the organizational unit object
Breath.Generation request is defined by organizational unit object and extracts the organizational unit object that obtained base attribute information can obtain for establishment
Initial value.
The extended attribute information of organizational unit object includes the service attribute of the operation flow where the organizational unit object
Information.Extended attribute information includes multiple classifications, and each classification identifies correspondence with corresponding type of service.If for example, tissue is single
Meta object is in procurement process, then its extended attribute information includes procurement business attribute information classification, with procurement business type
Mark correspondence;If the organizational unit object is also in administrating process, its extended attribute information includes administrative service attribute letter
Classification is ceased, it is corresponding with administrative type of service mark.In the present embodiment, extended attribute information is preset value.I.e. by operation flow
Designer identifies corresponding service attribute for the type of service and set in the corresponding service attribute of the specific type of service of definition
The preset value put.For example, business Process Design personnel can pre-define the corresponding extended attribute information of procurement business type identification
Initial value is provided with including service attributes such as buying hour, purchaser, purchase quantities, and for it.So that creating organizational unit
During object definition, it is associated by type of service mark with extended attribute information, you can should according to type of service mark multiplexing
Extended attribute information.In other embodiments, extended attribute information can also be defined by organizational unit object carries in generation request
Take..
In the present embodiment, as shown in figure 3, can be divided into accordingly on configuration interface base attribute information configuration region A and
Extended attribute information configuration region B.User can be fixed for organizational unit object in the base attribute information configuration region of configuration interface
The base attribute information of justice sets initial value.User can be also organizational unit in the extended attribute information configuration region of configuration interface
Object definition chooses the type of service mark involved by the organizational unit object, please so as to generate organizational unit object definition generation
Ask.
Further, base attribute information is may also include in organizational unit object definition generation request to identify with type of service
And the dependence between type of service mark.As shown in Fig. 2 can be by setting base in extended attribute information configuration region
This attribute information sets above-mentioned dependence with the corresponding relation of type of service mark.
In the present embodiment, organizational unit object defines generation module 110 and can also be used to organizational unit object defining life
Obtained base attribute information and type of service identification record are extracted into request in configuration file.Organizational unit object is defined
Acquisition module 104 can also be used to obtain corresponding organizational unit by reading configuration file according to organizational unit object request to create
Object definition.
Business object acquisition module 106, is identified for extracting corresponding type of service according to organizational unit object definition, and
Business object is obtained according to type of service mark.
In the present embodiment, business object acquisition module 106 can be used for obtaining corresponding according to organizational unit object definition
Type of service is identified, and obtaining corresponding business object according to type of service mark is defined, and generation business is defined according to business object
Object.
Business object is defined patrols comprising foregoing extended attribute information and business processing corresponding with extended attribute information
Volume.Business object definition can be pre-set.As it was previously stated, business of the extended attribute information for default correspondence specific transactions flow
Attribute information, can be stored in configuration file or tables of data.Business processing logic corresponding with extended attribute information can be used to
Processing function, thread dispatching or the data structure of specific business demand are handled, can be stored in class file or code file.Example
Such as, the industry being related in the extended attribute information related to procurement business and procurement process is included in procurement business object definition
Business processing logic;Occurrences in human life business object includes in defining in the extended attribute information related to occurrences in human life business and occurrences in human life flow
The business processing logic being related to.
That is, being divided in advance to the operation flow in ERP system, according to the kind of the operation flow after division
Class(That is type of service)Extended attribute information corresponding with corresponding operation flow is pre-defined, so that by each type of service
Attribute definition makes a distinction so that the business processing logic of different service types is encapsulated in business object more independent each other
In, the code degree of coupling is reduced, so as to improve code reuse and autgmentability.
Object load module 108, for defining assembling work object generation organizational unit object according to organizational unit object.
It can be assembled to business object as the attribute of organizational unit object in organizational unit object.If organizational unit object
The dependence of business object, then in assembling process, the dependence included in being defined according to organizational unit object are included in definition
Relation sets the dependence of the attribute of organizational unit object.
In one embodiment, organizational unit object definition includes configuration file.Object load module 108 can be used for passing through
The mode for relying on injection generates organizational unit object according to the configuration file.
Rely on injection(IoC, Inversion of Control, also known as control reversion)It is a kind of Code Design pattern.Can
The dependence of the business object defined in configuration file and organizational unit object., can basis when assembling organizational unit object
Business object is injected into organizational unit object by the dependence recorded in configuration file.
In one embodiment, organizational unit object defines generation module 110 and can also be used to obtain base attribute information pair
Business type field in the base attribute field answered, base attribute field, the quantity of business type field is 1, by service class
Type mark is added in the business type field, and organizational unit object definition is generated according to base attribute field.
In the present embodiment, further, business object acquisition module 106 can also be used to be defined according to organizational unit object
Obtain the type of service mark that corresponding type of service is included.
In the present embodiment, the base attribute information for defining generation request extraction by organizational unit object is stored in database
In, its corresponding field is base attribute field.Also include business type field in base attribute field, for storing the tissue
Unit object defines corresponding type of service mark.In the present embodiment, business type field only one of which, the i.e. organizational unit
The corresponding type of service mark of object definition is stored in the business type field.Base attribute field is as shown in table 3:
Table 3
Base attribute field 1 | Base attribute field 2 | Base attribute field 3 | Business type field |
And in the conventional technology, as shown in table 4:
Table 4
Base attribute field 1 | Base attribute field 2 | Business type field 1 | Business type field 2 |
When redesigning database in conventional art, business type field is set multiple, and each type of service is identified
The specific business type field of correspondence, and mark whether the organizational unit object includes by storing Boolean in the field
The type of service identifies corresponding extended attribute information.Therefore, divide when the species of type of service is more, it is necessary in database
Carry out storage service type identification with very many fields, its Boolean has substantially constituted a sparse matrix, so as to reduce
The utilization rate of memory space.And in the present embodiment by unique type of service identify storage organization unit object define it is corresponding
The method of type of service mark only just stores type of service by single field and identified, so as to improve the profit of memory space
With rate.
And in conventional art, if there is the species of demand Added Business type, need to create new field to store novel species
The type of service mark of class.And in the present embodiment, it is only necessary to the type of service mark of New raxa is equally added to unique industry
In service type field, so that autgmentability is stronger.
In the present embodiment, extended attribute information can separate storage in the extended attribute data different from base attribute information
In table, and it is corresponding by type of service mark generation with organizational unit object definition.That is, fixed according to organizational unit object
Justice extracts the step of corresponding type of service is identified:Its corresponding basic category is obtained by organizational unit object definition
Property information, and extract from base attribute information its corresponding type of service mark.Obtain corresponding according to type of service mark
The step of business object is defined can be specially:The extended attribute letter obtained in extended attribute tables of data is identified according to type of service
Breath, and obtain the code file for defining corresponding business processing logic.
In the present embodiment, organizational unit object defines generation module 110 and can be additionally used in type of service by separator
Mark is spliced into a character string, and adds business type field.
If for example, organizational unit object, which defines the type of service mark included in generation request, includes tri- kinds of business of A, B and C
In type, i.e. ERP system, the organizational unit object is related to tri- kinds of operation flows of A, B and C.Semicolon separated symbol generation then can be used
Character string " A;B;C ", is then store in the business type field.Business object acquisition module 106 can be used for according to branch point
Every symbol by character string " A;B;C " is divided into multistage, then extracts type of service mark A, B and C.
In another embodiment, organizational unit object define generation module 110 can be additionally used in by type of service mark by
The binary number being spliced into according to default sequential conversions into boolean vector, and be added in business type field.
As above in example, organizational unit object, which defines the type of service mark included in generation request, includes tri- kinds of industry of A, B and C
Service type, and type of service whole in ERP system includes A, B, C, D, E, F and G7 kind.If default ABCDEFG order,
Tri- kinds of A, B and C is only then included because organizational unit object defines the type of service mark included in generation request, then can generate cloth
The binary number " 1110000 " that your vector is spliced into.In the binary number, each represents certain specific type of service mark
Know, if comprising type of service mark in organizational unit object definition, the position is set to " 1 ", if not including, and the position is set
It is set to " 0 ".
In the present embodiment, business object acquisition module 106 can be used for being judged to obtain employment by boolean according to default order
Type of service mark is extracted in service type field.As above in example, if the binary number stored in business type field is
" 0101101 ", then according to default ABCDEFG order, extract each of binary number successively, and carries out boolean's judgement,
It can obtain type of service and identify B, D, E and G4 type of service marks.
Using the method for binary number in business type field storage service type identification, the storage of database can be saved
Space, and boolean judges that, compared to character string comparison, execution speed faster, can improve execution efficiency.
The method and apparatus that organizational unit object is generated in above-mentioned ERP system, different business classification is applicable in establishment
Organizational unit object when, obtain organizational unit object definition, acquisition is defined according to the organizational unit object and has corresponded to multiple spies
Determine the business object of class of service, and business object is assembled into by organizational unit object according to its definition so that the specific industry of correspondence
The code of business processing logic part in the business object for classification of being engaged in is multiplexed, so as to improve the extension of ERP system
Property.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. the method for organizational unit object is generated in a kind of ERP system, including:
Obtain organizational unit object request to create;
Corresponding organizational unit object definition is obtained according to the organizational unit object request to create, the organizational unit object is determined
Justice includes default multiple type of service marks, and multiple type of service marks are stored in unique business type field;
Corresponding type of service mark is extracted according to organizational unit object definition, and acquisition is identified according to the type of service
Business object;
The business object generation is assembled according to organizational unit object definition and is applicable different service types organizational unit object.
2. the method for organizational unit object is generated in ERP system according to claim 1, it is characterised in that methods described
Also include:
Obtain organizational unit object definition generation request;
Corresponding base attribute information and type of service mark is extracted according to organizational unit object definition generation request;
According to the base attribute information and type of service mark generation organizational unit object definition.
3. the method for organizational unit object is generated in ERP system according to claim 2, it is characterised in that the basis
The step of type of service mark obtains business object includes:
Corresponding business object definition is obtained according to type of service mark;
According to business object definition generation business object.
4. the method for organizational unit object is generated in ERP system according to claim 3, it is characterised in that the basis
The step of base attribute information and the type of service mark generation organizational unit object is defined includes:
Obtain the corresponding base attribute field of the base attribute information;
The business type field in the base attribute field is obtained, the quantity of the business type field is 1;
Type of service mark is added in the business type field;
Organizational unit object definition is generated according to the base attribute field.
5. the method for organizational unit object is generated in ERP system according to claim 4, it is characterised in that the basis
The organizational unit object definition obtains the step of corresponding type of service is identified and is:
The type of service mark for obtaining and being included in corresponding business type field is defined according to the organizational unit object.
6. the device of organizational unit object is generated in a kind of ERP system, it is characterised in that including:
Request to create acquisition module, for obtaining organizational unit object request to create;
Organizational unit object defines acquisition module, single for obtaining corresponding tissue according to the organizational unit object request to create
Meta object is defined, and the organizational unit object definition includes default multiple type of service marks, multiple type of service marks
Knowledge is stored in unique business type field;
Business object acquisition module, is identified for extracting corresponding type of service according to organizational unit object definition, and root
Business object is obtained according to type of service mark;
Object load module, assembles the business object according to organizational unit object definition and generates applicable different service types
Organizational unit object.
7. the device of organizational unit object is generated in ERP system according to claim 6, it is characterised in that described device
Generation module also is defined including organizational unit object, for obtaining organizational unit object definition generation request, according to the tissue
Corresponding base attribute information and type of service mark is extracted in unit object definition generation request, according to the base attribute information
With type of service mark generation organizational unit object definition.
8. the device of organizational unit object is generated in ERP system according to claim 7, it is characterised in that the business
Object acquisition module is additionally operable to obtain corresponding business object definition according to type of service mark, according to the business object
Definition generation business object.
9. the device of organizational unit object is generated in ERP system according to claim 8, it is characterised in that the tissue
Unit object defines generation module and is additionally operable to obtain the corresponding base attribute field of the base attribute information, obtains described basic
Business type field in attribute field, the quantity of the business type field is 1, and type of service mark is added into institute
State in business type field;Organizational unit object definition is generated according to the base attribute field.
10. the device of organizational unit object is generated in ERP system according to claim 9, it is characterised in that the business
Object acquisition module is additionally operable to define the business for obtaining and including in corresponding business type field according to the organizational unit object
Type identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210447847.5A CN103810551B (en) | 2012-11-09 | 2012-11-09 | The method and device of organizational unit object is generated in ERP system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210447847.5A CN103810551B (en) | 2012-11-09 | 2012-11-09 | The method and device of organizational unit object is generated in ERP system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103810551A CN103810551A (en) | 2014-05-21 |
CN103810551B true CN103810551B (en) | 2017-08-18 |
Family
ID=50707288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210447847.5A Active CN103810551B (en) | 2012-11-09 | 2012-11-09 | The method and device of organizational unit object is generated in ERP system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103810551B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106529027A (en) * | 2016-11-09 | 2017-03-22 | 济南浪潮高新科技投资发展有限公司 | Organization modeling method |
CN109934628B (en) * | 2019-03-08 | 2021-03-19 | 智者四海(北京)技术有限公司 | Feature processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281466A (en) * | 2008-05-27 | 2008-10-08 | 北京中企开源信息技术有限公司 | Service object modeling method based on service main body characteristic |
CN101520869A (en) * | 2009-04-17 | 2009-09-02 | 武汉刻度科技发展有限公司 | Business logic object modeling method and device thereof |
CN101582026A (en) * | 2008-05-12 | 2009-11-18 | 上海格尔卫信软件有限公司 | Application method of dynamic service creation in service system application software |
CN102542363A (en) * | 2010-12-07 | 2012-07-04 | 金蝶软件(中国)有限公司 | Business object generation method and device and ERP (Enterprise Resource Planning) system |
CN102682357A (en) * | 2011-02-14 | 2012-09-19 | 微软公司 | Automatically creating business applications from description of business processes |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2772824C (en) * | 2011-03-30 | 2018-08-21 | Accenture Global Services Limited | Role mapping and training tool |
-
2012
- 2012-11-09 CN CN201210447847.5A patent/CN103810551B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582026A (en) * | 2008-05-12 | 2009-11-18 | 上海格尔卫信软件有限公司 | Application method of dynamic service creation in service system application software |
CN101281466A (en) * | 2008-05-27 | 2008-10-08 | 北京中企开源信息技术有限公司 | Service object modeling method based on service main body characteristic |
CN101520869A (en) * | 2009-04-17 | 2009-09-02 | 武汉刻度科技发展有限公司 | Business logic object modeling method and device thereof |
CN102542363A (en) * | 2010-12-07 | 2012-07-04 | 金蝶软件(中国)有限公司 | Business object generation method and device and ERP (Enterprise Resource Planning) system |
CN102682357A (en) * | 2011-02-14 | 2012-09-19 | 微软公司 | Automatically creating business applications from description of business processes |
Also Published As
Publication number | Publication date |
---|---|
CN103810551A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108764984A (en) | A kind of power consumer portrait construction method and system based on big data | |
CN107688591B (en) | A kind of actuarial treating method and apparatus | |
US8782597B2 (en) | Ontology updating apparatus, method and system | |
CN103530808A (en) | Whole-process tracing system for quality safety of fruit logistics | |
CN107957867B (en) | Electric power retail market model modeling method and system | |
CN104463621A (en) | E-commerce platform promotion engine implementation method | |
CN106294439A (en) | A kind of data recommendation system and data recommendation method thereof | |
EP3217335A1 (en) | Method and system for generating a training model for fabricating synthetic data and for fabricating synthetic data | |
CN104714957B (en) | A kind of variation and device of table structure | |
CN109284920A (en) | The method and system of user information risk assessment based on big data | |
CN108536718A (en) | A kind of method and system for the IT application in management realized based on input and output semantization | |
CN107103035A (en) | This earth's surface data-updating method and device | |
CN107729330A (en) | The method and apparatus for obtaining data set | |
CN103810551B (en) | The method and device of organizational unit object is generated in ERP system | |
CN103778154A (en) | Form property reverse writing method and device | |
CN105589900A (en) | Data mining method based on multi-dimensional analysis | |
CN108959229A (en) | Planning report generation method, terminal and storage medium based on customer information | |
CN113536737A (en) | Material code generation method and device and electronic equipment | |
CN108268604A (en) | BOM table data conversion method and system | |
CN104380321B (en) | For generating the method, system and equipment of lot number and validity date | |
CN102323956B (en) | Data management device and method | |
CN111191180A (en) | Method and device for constructing micro-service system in invoice field and storage medium | |
Tan et al. | Finding similar time series in sales transaction data | |
CN109976719A (en) | A kind of design method of management system, electronic equipment, storage medium and platform | |
KR102054070B1 (en) | Graph storage management method and graph storage management device for changing tracking and historical graph retrieval |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |