[embodiment]
Consult shown in Figure 1ly, be the enforcement environment synoptic diagram of the OO business website of the present invention construction system.This system includes a Web server 100, a database server 500, a database 510, a network 600 and a plurality of client computer 700.
Web server 100 is made up of known server software in this field and suitable type, this server software can be the internet information server (Intemet Information Server) of Microsoft, and it supports dynamic state server webpage (Active Server Page).Operation has a Website development platform 200, a management service website 300 and a commerce services website 400 on the Web server 100.
Wherein, Website development platform 200 includes a plurality of pre-set categories and a system configuration utility collection.This system configuration utility collection is existing pattern development tool set.These pre-set categories are provided by the present invention for setting up the general categories that the business website is used, and these classifications describe in detail with reference to Fig. 2.Website design person derives required business logic object by Website development platform 200, to support the operation of business website.Based on these business logic objects, website design person designs the dynamic state server webpage to set up management service website 300, and design static Web page and dynamic state server webpage are to set up commerce services website 400.
Database server 500 and database 510 provide storage and the visit to Website development platform 200, management service website 300 and commerce services website 400 required informations jointly.
Network 600 is the Internet or the wide area network that a plurality of LAN (Local Area Network) combined by router, small switch.
Client computer 700 is the known any suitable type in this field, and operation has Web browser on it.The client of business website is by Web browser login commerce services website 400, browses and carries out online transaction.The supvr of business website carries out website maintenance and management online transaction by Web browser login management site for service 300.
Consult shown in Figure 2ly, be the synoptic diagram of the employed Website development platform of the OO business website of the present invention construction system.In embodiment, Website development platform 200 is made up of a plurality of territories, and it includes: directory field 201, shopping cart territory 202, stock territory 203, price territory 204, purchase territory 205, funds on account processing domain 206, shipping territory 207, freight charges computational fields 208, member territory 209 and free email domain 210.The territory is the set of one group of related category, is used to realize a series of specific tasks, function or behavior.The definition in territory and integration have embodied the major function of this platform 200.
Wherein, directory field 201 has been concentrated all associated description information of business website institute merchandising, and these descriptors include brief introduction, image, weight, auxiliary products, marketing method and the customer evaluation of commodity.The design object of directory field 201 is for describing the relevant information of any kind commodity.
Shopping cart territory 202 provides a kind of client of preservation online mechanism of choosing information, is used to show the relevant information of buying the total price and the commodity of choosing.Shopping cart territory 202 is designed to and can have both can be used as shopping list and offer client for printing, and can offer businessman again and be used for sales analysis.Shopping cart territory 202 can be associated to the relevant information in directory field 201, stock territory 203, price territory 204 and the member territory 209.
Stock territory 203 be used to the to save contents stock information of territory 201 listed commodity.The purpose in design stock territory 203 is the convenient inventory management system that the third party provided that imports separately.
Price territory 204 is used to handle the pricing information of directory field 201 listed commodity, and it includes price, price list and price reduction information.The purpose in design price territory 204 is convenient multiple pricing and the transition information of handling commodity separately.
Buy territory 205 and be used to settle accounts the online transaction behavior that the client submits to, it handles project information, quantity information and the freightage information of current transaction.Purchase territory 205 can be associated to the relevant information in shopping cart territory 202, freight charges computational fields 208 and the member territory 209.Buy territory 205 and be designed to support handling return, it is used as handling return as the inverse process of buying processing and handles.
The purpose of design of funds on account processing domain 206 is to support multiple Payment Methods and the third-party funds on account disposal system of convenient importing.
Shipping territory 207 is used to handle the transport agent and the means of transportation of directory field 201 listed commodity.Each transport agent all can relate to a kind of freight charges account form.
Freight charges computational fields 208 is used for trucking costs and calculates, and not only relates to the general assembly (TW) or the total quantity of transporting kinds of goods, and the area that also relates to haulage track is provided with.
Member territory 209 is used to manage the member registration and the account information of a business website.Member territory 209 also is designed to support many members to share a number of the account so that enterprise's buying behavior.
Free email domain 210 is used for by the robotization of Email realization event notice, and for example acknowledgement of orders notice, shipping are confirmed notice, welcome to add notice and forgotten password alert notification etc.Free email domain 210 uses a plurality of different notice templates to create and to send different Emails.
Consult shown in Figure 3ly, be the synoptic diagram of the extendible Object-oriented Technique of Website development Platform Implementation in the construction system of the OO business website of the present invention.
OO design is the programmed method that application program is resolved into a plurality of objects, and purpose is PROBLEM DECOMPOSITION is become the problem of less and easy understanding, and wherein object is self-sufficient, application program original paper that again can collaborative work.Classification is the concrete definition of object in program, and it can include attribute, method, initialization program code, even includes other classification.And entity is object concrete definition in commission, and it has realized the structure of classification.
Carry out object based programming, need to use the compilation tool of supporting Object-oriented Technique, as SmallTalk, C++, Visual Basic etc.The so-called Object-oriented Technique of supporting promptly not necessarily needs strictness to follow the requirement of Object-Oriented Design technology.In the present embodiment, employed compilation tool is VisualBasic, and it is preset with a plurality of classifications, also supports the self-defined classification of developer.In the present embodiment, all pre-set categories are that the English word of capitalization is a sign to start letter all, as String etc.All self-defined classifications are sign with [item name] all, as [business category] etc.
Classification 800 be in a certain application program to the concrete definition of a certain object, it includes a plurality of attributes, as attribute 1, attribute 2 etc.These attributes have classification separately respectively, and it can be a pre-set categories, also can be self-defined classifications.Classification 800 also includes a plurality of methods, as method 1, method 2 etc.These methods are the operation to attribute in the classification 800.In program process, can produce a plurality of entities 810,820 by classification 800, these entities 810,820 have separately independently attribute, share the method in the classification 800.
As mentioned above, after the program that includes classification 800 was compiled, in this program process, the number of attribute and classification all can't be changed in the classification 800.For realizing extendible Object-oriented Technique, the present invention is divided into two parts with the attribute of classification: base attribute and variable attribute.Wherein, the part base attribute is designed in order to read the value of variable attribute or variable attribute.
[business category] 900 is a base class in the construction system of the OO business website of the present invention, and its base attribute is defined within [business category] 900, and variable attribute is defined within [business category] configuration file 901.The base attribute of [business category] 900 includes configurationName (configuration file name), the propertyValue (eigenwert) of Variant (variable) classification, the isValid (validity) of Boolean (boolean) classification and the brokenRuleList (table in violation of rules and regulations) of Variant classification of String (character string) classification.And include a plurality of variable attributes, attribute classification and property value in [business category] configuration file 901.
Wherein, configurationName be one readable, can write attribute, be used to specify [business category] configuration file 901, by it to read the variable attribute of [business category] 900.Under situation about not causing confusion, can in program process, change the value of attribute configurationName, thereby make [business category] 900 have different variable attributes.
Attribute propertyValue be one readable, can write attribute, be used at program process, the attributes of entities value of visit [business category] 900 comprises its base attribute and variable attribute.In order to visit the property value of specified attribute, can be with the attribute-name of specified attribute as parameter, the form by propertyValue (name) visits, and parameter " name " is the attribute-name of specified attribute.In addition, different access in [business category] 900 defines according to different attribute, and attribute propertyValue can carry out read and write access, read-only access or write-once visit to specified attribute.
Attribute isValid is a read only attribute, is used at program process the validity of the variable attribute of the entity of check [business category] 900.
Attribute brokenRuleList is a read only attribute, is used for arbitrary variable attribute when the entity of [business category] 900 and is verified as when invalid, returns one group of validity rule that is applicable to current entity.
In order to realize extendible Object-oriented Technique, [business category] 900 definition have one group of method that is used for initialization, preservation, deletion and replacement class instance.
Wherein, method load (sqlSP:String) (initialization) is used for the entity of initialization [business category] 900, by the variable attribute of parameter s qlSP with appointment [business category] 900 entities.In program process, by different parameter s qlSP, method load (sqlSP:String) can be the different variable attribute of [business category] 900 physical arrangements according to [business category] configuration file 901.The variable attribute of [business category] 900 entities can with [business category] configuration file 901 in the definition consistent, also can be its subclass.
Method save () (preservation) is used for preserving the entity of [business category] 900, and the information that wherein is saved includes base attribute value, variable attribute value and the entity relevant information of entity.If current entity is not to be saved for the first time, but wherein has at least an attribute to be modified, then method save () will preserve current entity again.
Method delete () (deletion) is used for deleting the entity of [business category] 900, and it is the inverse process of method save ().
Method reset () (replacement) be used for the resetting entity of [business category] 900, its base attribute value and variable attribute value with current entity resets to initial value, to utilize the entity that need not to use again.
[business category] entity 910,920 is in program process, a plurality of entities that produced by [business category] 900.According to the object based programming technology, [business category] entity 910,920 has separately independently attribute, and what define in the classification of its base attribute and number average and [business category] 900 is consistent.The extendible Object-oriented Technique according to the present invention, [business category] entity 910,920 all can have separately independently [business category] entity configuration file 911,921, comprising variable attribute independently separately.These [business category] entity configuration file 911,921 method load by [business category] 900 (sqlSP:String) create, and attribute configurationName separately specifies by [business category] entity 910,920.As mentioned above, by different parameter s qlSP, method load (sqlSP:String) can be [business category] entity 910,920 create different [business category] entity configuration file 911,921, thereby the different entities of same classification can have different attributes, even the variable attribute that entity had can dynamically decision in program process.
Consult shown in Figure 4ly, be the synoptic diagram of the defined a plurality of base class of Website development platform in the construction system of the OO business website of the present invention.In the present embodiment, definition has a plurality of base class [business category] 900, [list object classification] 930, [can enumerate object type] 940, [rule is confirmed classification] 950 and [configuration file classification] 960.So-called base class for constructing the basis of this platform, is known the object based programming operator and is known, can by these base class 900,930,940,950,960 gradually the complex structure classification to realize this platform.
Wherein, [business category] 900 describes in detail it in Fig. 3 for being used to construct the base class of individual subject.
[list object classification] 930 is for being used for the base class of construction set object, and it includes two base attribute: configurationName (profile name) and item (index:Integer) (appointed object).
Wherein, attribute configurationName be one readable, can write attribute, be used to specify the configuration file (not shown) of [list object classification] 930.According to the difference of configuration file, [list object classification] 930 can derive different collection object classifications, has different variable attributes.
Attribute item (index:Integer) be one readable, can write attribute, be used for according to parameter index visit [list object classification] 930 appointed objects that comprised.The classification of attribute item (index:Integer) is [business category] 900, because in the present embodiment, [business category] 900 is for being used to construct the base class of individual subject.
[list object classification] 930 also defines a plurality of methods.Wherein, method load (sqlSP:String) (initialization), method save () (preservation), method delete () (deletion) and method reset () (replacement) are respectively applied for the entity of initialization, preservation, deletion and replacement [list object classification] 930.
Method count () (calculating object number) is used to return the number of [list object classification] 930 individual subject that comprised.
Method newEnum () (return label object) is used to return the entity of [can enumerate object type] 940, and this entity is the tagged object of [list object classification] 930 individual subject that comprised.
[can enumerate object type] 940 is used for mark one can enumerate object, and it includes two base attribute: id, code and name, and does not contain variable attribute.Wherein, attribute id is for enumerating the sign of object.Attribute code is for enumerating the code of object.Attribute name is for enumerating the title of object.In the present embodiment, the unique method of creating the entity of [can enumerate object type] 940 is [the list object classification] 930 and the class method for distinguishing newEnum () that derives thereof, the uniqueness of the mark of the object enumerated that is comprised in the entity with assurance [the list object classification] 930 and the classification of deriving thereof.
[rule is confirmed classification] 950 is used for the ineffectivity of presentation-entity variable attribute, and it includes three base attribute: propertyName (characteristic attribute), ruleID (rule numbers) and ruleText (rule), and does not contain variable attribute.According to extendible Object-oriented Technique of the present invention, the variable attribute of entity can dynamically be determined, therefore for ensureing the validity of variable attribute in the entity, must carry out validity check to it when entity is changed.Wherein, attribute propertyName is a read only attribute, in order to preserve the attribute-name of invalid attribute.Attribute ruleID is a read only attribute, does not meet the sign of validity rule in order to preservation.Attribute ruleText is a read only attribute, does not meet the text description of validity rule in order to preservation.
[profile name] 960 is used for the relevant setting of access level, it includes two base attributes: configurationValue (configurationName:String, domainName:String, valueName:String) (profile value) and environmentVariable (varName:String) (environmental variance), and do not contain variable attribute.
Wherein, attribute configurationValue (configurationName:String, domainName:String, valueName:String) be one readable, can write attribute, be used for the defined variable attribute of access level configuration file.Parameter d omainName specified class another name, parameter c onfigurationName specifies classification configuration filename, parameter valueName specified attribute name.
Attribute environmentVariable (varName:String) is a read only attribute, is used to visit the Windows environmental variance.
Consult shown in Figure 5, the process flow diagram that carries out business website exploitation for the present invention by the Website development platform.
Beginning for website design person disposes Web server 100 and database server 500, and is installed Website development platform 200 (step S1) on Web server 100.Website design person treats the business website of setting up and is provided with by the system configuration utility that Website development platform 200 is provided.In the present embodiment, be provided with management service website 300 and commerce services website 400, different communication terminal slogans (step S2) be set so be necessary for it because put on the shelf at Web server 100.Website design person in database 510, is Website development platform 200 establishment databases by database server 500.The system configuration utility that website design person is provided by Website development platform 200 imports the database of being created.This system configuration utility is created Website development platform 200 required forms, index, self-defined triggering and storing process (step S3) automatically in this database.The system configuration utility that website design person is provided by Website development platform 200, on the basis of pre-set categories, derive required business logic object, promptly revise the variable attribute of pre-set categories, make it more be applicable to management service website 300 to be set up and commerce services website 400; Inherit pre-set categories to produce new classification, be used to realize 200 functions that do not provide of Website development platform (step S4).Based on these business logic objects, website design person designs the dynamic state server webpage to set up management service website 300 (step S5).Based on these business logic objects, design static Web page and dynamic state server webpage are to set up commerce services website 400 (step S6).