CN106126602A - Method for realizing price strategy dictionary based on XML - Google Patents
Method for realizing price strategy dictionary based on XML Download PDFInfo
- Publication number
- CN106126602A CN106126602A CN201610452011.2A CN201610452011A CN106126602A CN 106126602 A CN106126602 A CN 106126602A CN 201610452011 A CN201610452011 A CN 201610452011A CN 106126602 A CN106126602 A CN 106126602A
- Authority
- CN
- China
- Prior art keywords
- price
- strategy
- xml
- type
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000011217 control strategy Methods 0.000 abstract description 3
- 238000012423 maintenance Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/83—Querying
- G06F16/835—Query processing
- G06F16/8365—Query optimisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for realizing a price strategy dictionary based on XML, which comprises the following concrete realization processes: firstly, in a purchase information record table, modifying the table structure and adding price type fields capable of distinguishing different price types; based on the added fields, a price information strategy table is created, and price strategy information is stored; setting price strategy information, wherein the price strategy information is stored in a field in the price information strategy table through defining a standard XML format; and setting the priority control of the price strategy, and acquiring the price type according to the set priority strategy. Compared with the prior art, the method for realizing the price strategy dictionary based on the XML can realize the requirement of price control strategies proposed by customers by modifying the nodes in the XML file without modifying the table structure, greatly reduces the workload of developers and maintainers, greatly enhances the usability of products, and has strong practicability and easy popularization.
Description
Technical field
The present invention relates to field of computer technology, a kind of method realizing price strategy dictionary based on XML.
Background technology
In conventional management software product, the most do not provide the function of material different price lattice type of the same race.Now with respectively
The extension of the business of individual company, existing single price control strategy does not reaches far away customer personalized demand.And it is backward
Systems provider proposes new requirement request extension.This extension major part is all to be increased by amendment list structure to need client
The support asked, exploitation can cause maintenance workload big but also can revise the table being deployed to user rs environment in this way
Structure, the list structure of amendment client the most very likely produces data problem, brings the loss that cannot estimate to client and company.This
Invention is aiming at this situation and proposes, and based on this, the present invention provides a kind of side realizing price strategy dictionary based on XML
Method, makes user can need to arrange the satisfied price strategy meeting project demands according to disparity items.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of realize price strategy dictionary based on XML
Method.
A kind of method realizing price strategy dictionary based on XML, it implements process and is:
First in procurement information log, revise list structure, increase the price type word that can distinguish different price type
Section;
Field based on above-mentioned increase, creates pricing information Policy Table, preserves price strategy information;
Arranging price strategy information, this price strategy information, by defining the XML format of a standard, is stored in above-mentioned
In field inside pricing information Policy Table;
The control of price strategy priority is set, obtains price type according to the priority policy arranged.
The list structure of amendment can support the price type that multiple dimension controls, i.e. the field by arranging various combination carrys out sound
Bright different price type.
Described pricing information Policy Table includes following field information: strategy ID, supplier, client, system mobile type,
Type of transaction, price strategy, wherein, strategy ID is unique mark of price strategy;System mobile type is used for distinguishing different shifting
The business paper of dynamic type, makes price strategy table associate with mobile type table by this field so that every kind of mobile type has
Corresponding price strategy;It is that type of transaction is used for identifying for which kind of transaction;Price strategy is used for storing the price strategy letter of setting
Breath.
The extension of price type also can be carried out, by the XML to this price strategy information in above-mentioned price strategy information
File operation: by adding node, one dimension of the most each node on behalf in XML file, need according to user
The price type of different dimensions is added XML node and can be realized.
Arranging the preferential class control process of price strategy is: first according to the price arranged the most successively
Take price strategy, then use the price strategy got to make a look up, if it is found, just use the price found, otherwise
The price strategy just using the next one to get makes a look up, and makes a look up the most successively, until finding.
Compared to the prior art a kind of of the present invention realize the method for price strategy dictionary based on XML, has following useful
Effect:
A kind of method realizing price strategy dictionary based on XML of the present invention, by the node in amendment XML file not
Go to revise list structure and just can realize the demand of the price control strategy that client proposes, greatly reduce developer and maintenance
The workload of personnel, but also the loss being avoided that amendment list structure and producing, and enhance the ease for use of product greatly,
Practical;Applied widely, it is particularly suitable for multi-provider, the material of the same race under many tissues uses different price strategy
Sight, so that software product more conforms to the requirement of user, accomplishes on-demand to a certain extent, it is easy to promote;Can
Carry out succinct quickly exploitation only need to revising XML file according to customer personalized demand, and list structure need not be revised;Increase valency
The two priority classes of lattice strategy, improves the ease for use of product.
Accompanying drawing explanation
The flowchart of 1 present invention of accompanying drawing.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the invention will be further described.
As shown in Figure 1, the present invention provides a kind of method realizing price strategy dictionary based on XML, and it implemented
Cheng Wei:
First in procurement information log, revise list structure, increase the price type word that can distinguish different price type
Section;
Field based on above-mentioned increase, creates pricing information Policy Table, preserves price strategy information;
Arranging price strategy information, this price strategy information, by defining the XML format of a standard, is stored in above-mentioned
In field inside pricing information Policy Table;
The control of price strategy priority is set, obtains price type according to the priority policy arranged.
The list structure of amendment can support the price type that multiple dimension controls, and can be subject to by the multiple of support price policy statement
The price type that multiple dimensions such as supplier, client, tissue control, and state different by the field arranging various combination
Price type.
Described pricing information Policy Table includes following field information: strategy ID, supplier, client, system mobile type,
Type of transaction, price strategy, wherein, strategy ID is unique mark of price strategy;System mobile type is used for distinguishing different shifting
The business paper of dynamic type, makes price strategy table associate with mobile type table by this field so that every kind of mobile type has
Corresponding price strategy;It is that type of transaction is used for identifying for which kind of transaction;Price strategy is used for storing the price strategy letter of setting
Breath.
The extension of price type also can be carried out, by the XML to this price strategy information in above-mentioned price strategy information
File operation: by adding node, one dimension of the most each node on behalf in XML file, need according to user
The price type of different dimensions is added XML node and can be realized.
Arranging the preferential class control process of price strategy is: first according to the price arranged the most successively
Take price strategy, then use the price strategy got to make a look up, if it is found, just use the price found, otherwise
The price strategy just using the next one to get makes a look up, and makes a look up the most successively, until finding.
Based on said method, it is described in detail with example below:
One, price type field is increased.
The structure of amendment procurement information log InfoRecordOrgDatas, interpolation field Datatype:
Field number | Field name | Field type | Explanation |
Datatype | Price type | char(1) | Price type and the mark of priority number |
Two, pricing information Policy Table is created.
Design table PriceConfig is used for recording price policy information, and the structure of table is as follows:
Three, the XML format of price strategy information is defined.
XML template is to support the key of customer personalized demand, and the most each node represents a dimension, can according to
The price type of the different dimensions that family needs, can realize by adding XML node, and not spend amendment list structure and add word
Section, greatly reduces workload.The XML template of design price strategy information, structure is as follows:
Four, the control of price strategy priority is set.
Can be by adding node in XML file<pRICESEQ>sEQUENCE</PRICESEQ>realize, SEQUENCE
What character string stored is the price priority level of user oneself setting, and this character string is by the numbering group of price type DataType
Becoming, the core algorithm of two priority classes is as follows:
The core thinking of this step is through parsing priority character string from XML file, then by For circulate into
Row traversal, realizes the control of priority.
The present invention supports that in business management system, the price of different mobile type documents obtains control;Support operational control system
In system, document arranges the price strategy that exceptional price strategy is different with common price strategy both;Support in business management system
The price type of multiple different dimensions is set;Support the extension again to price type, compared with prior art, price of the present invention
The feature such as easy to control, transplantability is strong, the suitability is wide, autgmentability is strong, has good application value.
By detailed description of the invention above, described those skilled in the art can readily realize the present invention.But should
Working as understanding, the present invention is not limited to above-mentioned detailed description of the invention.On the basis of disclosed embodiment, described technical field
Technical staff can the different technical characteristic of combination in any, thus realize different technical schemes.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.
Claims (5)
1. the method realizing price strategy dictionary based on XML, it is characterised in that it implements process and is:
First in procurement information log, revise list structure, increase the price type field that can distinguish different price type;
Field based on above-mentioned increase, creates pricing information Policy Table, preserves price strategy information;
Arranging price strategy information, this price strategy information, by defining the XML format of a standard, is stored in above-mentioned price
In the field on informational strategy the exterior and the interior limit;
The control of price strategy priority is set, obtains price type according to the priority policy arranged.
A kind of method realizing price strategy dictionary based on XML the most according to claim 1, it is characterised in that amendment
List structure can support that the price type that multiple dimension controls, the i.e. field by arranging various combination state different price classes
Type.
A kind of method realizing price strategy dictionary based on XML the most according to claim 1, it is characterised in that described valency
Lattice informational strategy table includes following field information: strategy ID, supplier, client, system mobile type, type of transaction, price
Strategy, wherein, strategy ID is unique mark of price strategy;System mobile type is for distinguishing the business sheet of different mobile type
According to, make price strategy table associate with mobile type table by this field so that every kind of mobile type has corresponding price plan
Slightly;It is that type of transaction is used for identifying for which kind of transaction;Price strategy is used for storing the price strategy information of setting.
A kind of method realizing price strategy dictionary based on XML the most according to claim 1, it is characterised in that above-mentioned
Price strategy information also can carry out the extension of price type, by the XML file of this price strategy information is operated: logical
Crossing interpolation node in XML file, one dimension of the most each node on behalf, according to the price class of the different dimensions that user needs
Type adds XML node and can realize.
A kind of method realizing price strategy dictionary based on XML the most according to claim 1, it is characterised in that valency is set
Lattice policy priority class control process is: first take price strategy the most successively, so according to the price arranged
The price strategy that rear use is got makes a look up, if it is found, just use the price found, otherwise just uses the next one to take
To price strategy make a look up, make a look up the most successively, until find.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610452011.2A CN106126602A (en) | 2016-06-21 | 2016-06-21 | Method for realizing price strategy dictionary based on XML |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610452011.2A CN106126602A (en) | 2016-06-21 | 2016-06-21 | Method for realizing price strategy dictionary based on XML |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106126602A true CN106126602A (en) | 2016-11-16 |
Family
ID=57471253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610452011.2A Pending CN106126602A (en) | 2016-06-21 | 2016-06-21 | Method for realizing price strategy dictionary based on XML |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106126602A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153982A (en) * | 2017-04-11 | 2017-09-12 | 深圳市粮食集团有限公司 | The intelligent movable ordering method and system of a kind of grain |
CN107730316A (en) * | 2017-10-19 | 2018-02-23 | 深圳开思时代科技有限公司 | The more price application processes of commodity, apparatus and system |
CN115619466A (en) * | 2022-09-07 | 2023-01-17 | 广东云徙智能科技有限公司 | Multi-dimensional high-pass extensible price management system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135954A (en) * | 2010-12-31 | 2011-07-27 | 浪潮集团山东通用软件有限公司 | Method for describing bill conversion relationships in service management software based on extensive markup language (XML) |
CN103729781A (en) * | 2014-01-02 | 2014-04-16 | 辽宁博宇科技股份有限公司 | Automatic metal electronic commerce price information generation system and method |
CN105184600A (en) * | 2015-07-21 | 2015-12-23 | 浪潮通用软件有限公司 | Rule and operation-based electronic business platform price engine implementing method |
CN105678452A (en) * | 2016-01-04 | 2016-06-15 | 浪潮通用软件有限公司 | Method and device for fee counting and drawing |
-
2016
- 2016-06-21 CN CN201610452011.2A patent/CN106126602A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135954A (en) * | 2010-12-31 | 2011-07-27 | 浪潮集团山东通用软件有限公司 | Method for describing bill conversion relationships in service management software based on extensive markup language (XML) |
CN103729781A (en) * | 2014-01-02 | 2014-04-16 | 辽宁博宇科技股份有限公司 | Automatic metal electronic commerce price information generation system and method |
CN105184600A (en) * | 2015-07-21 | 2015-12-23 | 浪潮通用软件有限公司 | Rule and operation-based electronic business platform price engine implementing method |
CN105678452A (en) * | 2016-01-04 | 2016-06-15 | 浪潮通用软件有限公司 | Method and device for fee counting and drawing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153982A (en) * | 2017-04-11 | 2017-09-12 | 深圳市粮食集团有限公司 | The intelligent movable ordering method and system of a kind of grain |
CN107730316A (en) * | 2017-10-19 | 2018-02-23 | 深圳开思时代科技有限公司 | The more price application processes of commodity, apparatus and system |
CN115619466A (en) * | 2022-09-07 | 2023-01-17 | 广东云徙智能科技有限公司 | Multi-dimensional high-pass extensible price management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7472345B2 (en) | Document creation system and method using knowledge base, precedence, and integrated rules | |
US7925637B2 (en) | System and method for automatically refining ontology within specific context | |
US6397232B1 (en) | Method and system for translating the format of the content of document file | |
CN108228817A (en) | Data processing method, device and system | |
US20070136362A1 (en) | Systems and methods for report design and generation | |
US7752238B2 (en) | Method and apparatus for mapping one catalog into another catalog | |
CN100565521C (en) | Be used for generating the dynamic approach of XML document from database | |
US20100070500A1 (en) | Data processing | |
US20080306910A1 (en) | Method and process for end users to query hierarchical data | |
US20030110055A1 (en) | Electronic catalogue | |
US20060218160A1 (en) | Change control management of XML documents | |
US20100057806A1 (en) | Method and Apparatus for Managing Updates to a Catalog | |
JP2007087216A (en) | Hierarchical dictionary preparing device, program and hierarchical dictionary preparing method | |
Gassmann et al. | A comprehensive input format for stochastic linear programs | |
CN106126602A (en) | Method for realizing price strategy dictionary based on XML | |
US20040083135A1 (en) | Electronic catalogue | |
US20200201834A1 (en) | Systems and methods of efficient extensions of relational tables in a database | |
Zainol et al. | GN-DTD: Graphical notations for describing XML documents | |
JP2018521438A (en) | Component-based software system and development method | |
Belic et al. | User‐friendly web application for bibliographic material processing | |
US7953714B2 (en) | Method for maintaining parallelism in database processing using record identifier substitution assignment | |
US10607239B2 (en) | Enterprise evaluation using structured data | |
Liu et al. | Storing and querying fuzzy XML data in relational databases | |
AU2001248138B2 (en) | Electronic catalogue | |
JP6429736B2 (en) | Data access control device |
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: 20161116 |
|
RJ01 | Rejection of invention patent application after publication |