CN106126602A - A kind of method realizing price strategy dictionary based on XML - Google Patents

A kind of method realizing price strategy dictionary based on XML Download PDF

Info

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
Application number
CN201610452011.2A
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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610452011.2A priority Critical patent/CN106126602A/en
Publication of CN106126602A publication Critical patent/CN106126602A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information 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/83Querying
    • G06F16/835Query processing
    • G06F16/8365Query 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 kind of method realizing price strategy dictionary based on XML, it implements process and is: first in procurement information log, revises list structure, increases 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 the field inside above-mentioned pricing information Policy Table;The control of price strategy priority is set, obtains price type according to the priority policy arranged.The a kind of of the present invention realizes the method for price strategy dictionary compared with prior art based on XML, do not go to revise list structure just can realize the demand of the price control strategy that client proposes by the node in amendment XML file, greatly reduce the workload of developer and attendant, enhance the ease for use of product greatly, practical, it is easy to promote.

Description

A kind of method realizing price strategy dictionary based on XML
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.
CN201610452011.2A 2016-06-21 2016-06-21 A kind of method realizing price strategy dictionary based on XML Pending CN106126602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610452011.2A CN106126602A (en) 2016-06-21 2016-06-21 A kind of method 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 A kind of method 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 A kind of method realizing price strategy dictionary based on XML

Country Status (1)

Country Link
CN (1) CN106126602A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
Arenas et al. A direct mapping of relational data to RDF
US6397232B1 (en) Method and system for translating the format of the content of document file
CN101676910B (en) A page generation method facing to Web application system
CN101263476B (en) Method and system for automatically generating dataset report during the report construction
CN100527127C (en) Query intermediate language method and system
US6836778B2 (en) Techniques for changing XML content in a relational database
US8868620B2 (en) Techniques for composing data queries
US20070136362A1 (en) Systems and methods for report design and generation
US7676741B2 (en) Structural context for fixed layout markup documents
CN108228817A (en) Data processing method, device and system
CN103020027A (en) Method, device and system for generating dynamic report
CN103593456B (en) Worksheet self-defining method for designing and device
JPH04503881A (en) Document management and creation system
CN101908040A (en) Data report system
US20190228071A1 (en) Style extensibility applied to a group of shapes by editing text files
CN101171582A (en) Dynamic method for xml documents generation from a database
US20140040322A1 (en) Xbrl flat table mapping system and method
CN111435347A (en) Efficient expansion method and system for relational table in database
CN106126602A (en) A kind of method realizing price strategy dictionary based on XML
CN103077022A (en) Visual operation configuration method and device for operation flow
CN104572939B (en) A kind of data query method of heterogeneous database exchange in industry
AU5405401A (en) Method and apparatus for managing updates to a catalog
CN114443006A (en) Software design method based on template self-adaptation
US20200201834A1 (en) Systems and methods of efficient extensions of relational tables in a database
US7721198B2 (en) Story tracking for fixed layout markup documents

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116