[embodiment]
As shown in Figure 1, be the hardware structure diagram of the present invention one wireless telecommunications embodiment.Enterprise information system generally adopts three layers of (or multilayer) framework at present: a plurality of front station of dispersion, a series of application server, and a central database server.In the present invention, front station mainly adopts mobile computing device, this mobile computing device specifically can be personal digital assistant (PersonalDigital Assistant, PDA), laptop computer (Laptop Computer) or intelligent mobile phone (Smart Phone) etc.In the aftermentioned embodiments of the invention, the present invention is described with personal digital assistant 101 (hereinafter referred is PDA101).These PDA101 are generally hand-held by the different vehicle salesman, are used to handle the business relevant with 0vehicle marketing.Application server 103 has comprised core and business logic mutability (planning, How It Works, management mode etc.) in the system, and its function is the input that receives PDA101, handles and return results.Database server 107 is in charge of the read-write of database and maintenance, can carry out the renewal and the retrieval of mass data rapidly.This database server 107 can include database, or is connected (not drawing in Fig. 1) with database, is determined on a case-by-case basis.In this database, store the related data of present embodiment, pre-pay phase data, customer data and tentative calculation definition of data etc. as vehicle data, vehicle, can be elaborated hereinafter.
Communications tower 105 is carried out communication by communication channel 115 and communication channel 113 with PDA101 and application server 103, transmits the synchronization request message of PDA101 and the synchronous restore message of application server 103.Figure 1 shows that PDA101 utilizes a modulator-demodular unit (not drawing among the figure) and communications tower 105 to carry out communication with wireless mode.Communications tower 105 links to each other with application server 103 by special-purpose or public communication channel 113.Certainly, for the personage who knows this skill, communication channel 113 can be a wire message way, also can be wireless channel.(Local AreaNetwork, LAN) 117 link to each other with database server 107 application server 103 via LAN (Local Area Network).LAN (Local Area Network) 117 links to each other with computer equipment 109 again, and it can be the channel that application server 103 and computer equipment 109 provide access internet 111.Portable terminal 101 also can visit internet 111 via LAN (Local Area Network) 117, application server 103, communication channel 113 and communication channel 115.If an enterprise information system adopts distributed structure/architecture, application server 103 and database server 107 can have a plurality of.
Above-mentioned infosystem only is one embodiment of the invention, by some other system that this system derived, or even dissimilar systems, also can adopt method of the present invention.For the personage who knows this skill, disclosed method can be easily launches to have certain advantage in any communication system or other type exist the system of frequency range and/or device memory problem.Though the non-system that only limits to adopt the wireless telecommunications connection of the present invention is the easiest the embodying of this field convenience of the present invention.
As shown in Figure 2, be the hardware structure diagram of another embodiment of the present invention.In this embodiment, being connected between PDA101 and the application server 103 is to be undertaken by wired mode.Can adopt this kind framework under the situation of access to LAN easily the user, to guarantee better data-transmission efficiency.In this embodiment, PDA101 utilizes an Ethernet card (Ethernet Card) 119 access to LAN 117, and is connected to application server 103 and database server 107 through this LAN (Local Area Network) 117.Basic identical or similar among the principle of remainder and Fig. 1.
Seeing also shown in Figure 3ly, is the calcspar of application server of the present invention.In the present embodiment, wherein this application server 103 takes the framework of a Java servlet engine to set up the communication mechanism of PDA101 and database server 107.Certainly, this application server 103 also can adopt the framework of other type and PDA101 and database server 107 to link up.Java Servlet is equivalent to extend the Applet of web browser function, is one group and is used for strengthening Java application server (Java ApplicationServer) functional programs code.Java has the characteristic of flexible extension, can easier connection extend to different back-end systems.The Java application server just need not revised can accept new Servlet.Under this Servlet framework, system need not to reload any Servlet when each processing requirements, only just need load when needing to use for the first time.
In the present embodiment, application server 103 includes: a communication module 1031, one outline managers 1032, JDBC connection manager 1033, a cache manger 1034, a replication manager 1035, a domain manager 1036, a Data access module 1037.Wherein:
Communication module 1031 is used for linking up with PDA101, and by this communication module 1031, application server 103 can receive the message (as synchronization request message) that PDA101 sends, and also corresponding feedback message can be transmitted back to the PDA101 end.
Cache manger 1034 (Cache Manager) is used for providing cached data to all need data in buffer objects according to LRU (Least RecentlyUsed) logic, but its buffer memory receives to PDA101 and from the data object of database server 107 feedbacks.
JDBC connection manager 1033 (JDBC Connection Manager) can be set up one group of JDBC in advance and connect, and can manage being connected of described application server 103 and 107 of database servers, this management comprises obtaining to connect and is connected with giving back that it also can give back all data link resources when shutdown.It can handle the problem of connection failure and Communications failure simultaneously.
The bi-directional data that replication manager 1035 (Replication Manager) is used to control 107 of PDA101 and database servers upgrades operation, the transaction of control end opposite end, the conflict situations of the data that detecting and arbitration different clients are sent synchronously.In this replication manager 1035, include one first data selected parts device module 1038 (Data Filter), this first data selected parts device module 1038 is used for the change part of data that database server 107 is newly-increased or data with existing or the change among the PDA101 partly filters out, and carries out data sync with PDA101 and database server 107 respectively.
In the present embodiment, outline manager 1032 (Schema Manager) provide two kinds of data outlines, i.e. major database outline and PDA outline are all with the XML format design.The outline of the data in the major database outline descriptive data base server 107 and the relation between form, PDA outline are then complied with the difference of each PDA101, to the simplification of desired data.In case data get from the database acquisition, outline manager 1032 can be won data and be sent to PDA101 according to the PDA outline.
Domain manager 1036 is used for field object (Domain) is managed, and in disclosed technology, the data in the database server 107 are become the form of field object by deploying, and field object can abbreviate " territory " as.Each territory all includes the definition to the data object that presents with the attribute form, and it all includes a data type and a value.For example, an account domain comprises at least one account object, and it comprises attribute such as owner, account balance and tax rate information etc. successively.Wherein, account balance property is that type is " decimal system ", and value may be " 100.00 ", is representing 100 yuan.Each data selected parts device in the first data selected parts device module 1038 all corresponding or several data object territories in a certain special domain.
Data access module 1037 (Data Access Manager) is used for linking up with database server 107, and obtains object information through the first data selected parts device module 1038 in each territory.Data access module 1037 can obtain object information relevant in this territory automatically, and selects data with data selected parts device, and this function makes the object information of access special domain easier.
As shown in Figure 4, be the software architecture diagram of PDA101 of the present invention.This PDA101 includes an application area 300 and a data storage area 310.This application area 300 is used to the function that realizes that PDA101 possesses.Data storage area 310 is used to store the data that PDA101 stores in this locality.This application area 300 includes account's setting module 301, and connects handover module 303, an enquiry module 305, a tentative calculation module 306, one second data selected parts device module 307, a data processing module 308 and a data simultaneous module 309.
Wherein, data processing module 308, enquiry module 305 and tentative calculation module 306 data that all are used for data memory area 310 are handled.And the second data selected parts device module 307 and data simultaneous module 309 are used for PDA101 and 107 of database servers carry out data sync.
Account's setting module 301 is used to set the dial-up account of dial-up connection in this user zone of living in.When the user of this PDA101 often need roam into various places, just can use local dial-up account everywhere, to save communication fee.
Connect handover module 303 and be used to receive connection or the off-line instruction that the user sends, and the on line state between switching PDA101 and the application server 103, in the present embodiment, there are two kinds of on line states between PDA101 and the application server 103, be off-line state and on line state, off-line state refers to that not setting up effective channel as yet between PDA101 and the application server 103 is connected, and can not carry out communication between the two; And on line state refers to be assigned with between PDA101 and the application server 103 an effective channel, can carry out communication between the two.
Data processing module 308 is used for data that data memory area 310 stored to be upgraded or adds.The user can only just can upgrade or add authorized data wherein.
Enquiry module 305 is used for sending to application server 103 request of the data of Query Database server 107.Can also be used for inquiring about the data of the data storage area 310 of this machine PDA101.
The correlative charges that tentative calculation module 306 is used for vehicle that the client is desired to purchase carries out tentative calculation, and can generate a tentative calculation recommendation form.Wherein these correlative chargess include monthly payment plan expense, set-fee and premium of insurance etc.
Data simultaneous module 309 can produce a synchronization request message, is used to ask the data sync between PDA101 end and the database server 107, and it comprises the operation that request msg download and request msg are uploaded two aspects.This synchronization request message can be sent to the communication module 1031 of application server 103.
The second data selected parts device module 307 is used for the PDA101 change that data are done in the data memory area 310 when the off-line state is partly filtered out, the data in these data and the database server 107 are carried out synchronously when the on line state.If the execution second data selected parts device module 307 under on line state, then its meeting data download from database server 107.Data simultaneous module 309 is used for when PDA101 is on line state, and data that the second data selected parts device module 307 is separated and the data in the database server 107 are carried out synchronously.
As shown in Figure 5, be enquiry module pie graph among Fig. 4 of the present invention.This enquiry module 305 includes: vehicle data inquiry submodule 3050, a vehicle are pre-payed phase inquiry submodule 3052, a client inquires about submodule 3054 and tentative calculation definition of data inquiry submodule 3056.Wherein, vehicle data inquiry submodule 3050 is used to inquire about specification, the outfit of vehicle and the price message of vehicle of all vehicles that this business personnel acts on behalf of, and utilizes this vehicle data inquiry submodule 3050 also can inquire the responsible vehicle of this business personnel and can buy to resell data and friendship issue certificate in real time.Vehicle pre-pay phase inquiry submodule 3052 can be used for inquiring about client in the order that this business personnel obtains the reservation vehicle pre-pay the issue certificate, these are pre-payed issue and hand over phase, differentiation and neck according to the people etc. according to including such as vehicle-state, state day, O/No., contract.The client inquires about the data that submodule 3054 is used to inquire about all clients that this business personnel contacts, and these customer datas include client's basic document, communications data, vehicle data and visit record material; Inquire about in the submodule 3054 this client, can reach entry conditions such as " addresses " and inquire about by " name ", " unified editing ", " birthday ", " phone ".Tentative calculation definition of data inquiry submodule 3056 can be used for inquiring about the spreadsheet dataset of all kinds expense, and these charge types include monthly payment plan expense, set-fee and premium of insurance etc.; Described spreadsheet dataset includes tentative calculation condition data and the cut-and-try formula under these tentative calculation conditions.Above-mentioned all data all are stored in the data storage area 310 of PDA101 end, and the data in this data storage area 310 can be carried out with the corresponding data in the database server 107 synchronously.
As shown in Figure 6, be tentative calculation module structure drafting among Fig. 4 of the present invention.This tentative calculation module 306 can be carried out the tentative calculation of correlative charges at selected tentative calculation object, and it includes: a monthly payment plan tentative calculation submodule 3060, a set-fee tentative calculation submodule 3062, an insurance tentative calculation submodule 3064 and a tentative calculation recommendation form generate submodule 3066.Wherein, monthly payment plan tentative calculation submodule 3060 can calculate its monthly payment plan data according to a certain tentative calculation object and instalment terms.Set-fee tentative calculation submodule 3062 can be used for calculating the various set-fees of tentative calculation object, and these set-fees comprise such as tax on licences, fuel tax, moving premium and the moving tentative calculation expense etc. of protecting.And insurance tentative calculation submodule 3064 can be used for calculating the various insurance premiums of tentative calculation object, and these insurance premiums comprise such as car decreases danger, any danger, burglary insurance, pressure danger and passenger risks etc.At the tentative calculation of this each expense all to a cut-and-try formula should be arranged, these cut-and-try formulas are stored in the data storage area 310 of PDA101 end, it is by pre-defined, can not make amendment to it at the PDA101 end, can only just can revise it at database server 107 ends, these amended more new formulas can carry out synchronously with the PDA101 end.The tentative calculation recommendation form generates submodule 3066 and is used to generate a tentative calculation recommendation form, and this tentative calculation recommendation form can be listed as and be illustrated under the different tentative calculation conditions, and above-mentioned all expenses that institute's tentative calculation is come out can be selected and reference for the client.
As Fig. 7 and shown in Figure 8, be the typical home page synoptic diagram that the present invention shows on the display screen of PDA101.The user carries out and implements application program of the present invention, and this homepage promptly is presented on the screen.In the top of homepage is a title block 1011, has in comprising: a title " homepage ", current time " 11:47am ".Be " a welcome below the title block 1011! " message 1013, but this message content predefine, as, can adopt and " welcome to use the system of XX company! " wait and so on prompting message.Then be several screen-icons below the message 1013, they are respectively vehicle icon, client's icon, tentative calculation icon and system's icon.Each screen-icon is all being represented a certain specific function.Particularly, vehicle icon makes the user to browse through the software on the execution personal digital assistant and is stored in all data relevant with vehicle in this data storage area 310, and carries out the operation relevant with vehicle; Utilize client's icon, can carry out inquiry and upkeep operation the client; Utilize the tentative calculation icon, can carry out the tentative calculation operation of correlative charges to the vehicle that the client desires to purchase, and can generate a tentative calculation recommendation form; And utilize system's icon, can switch PDA101 on line state, carry out the basic document of the uploading and downloading of data (promptly synchronous) and maintenance service representative etc.Be a state area 1015 below screen-icon, comprise four options buttons such as " vehicle ", " client ", " tentative calculation ", " system ", corresponding one by one with screen-icon.The user selects some keys can move corresponding software by a stylus, and this software is identical with the software that sees through the screen-icon operation.In state area 1015, except four options buttons corresponding to screen-icon, also comprise one " archives " key, the function of this archives key is similar to " archives " key in the Microsoft Word supervisor, and the user sees through that this key executable file is opened, operations such as archives are closed, archives preservation.Especially, state area 1015 also includes one and connects switching icon 1017, shows the on line state between a PDA101 and the remote application server 103.Under off-line mode, connect and switch the oblique line (as shown in Figure 7) that a redness is arranged on the icon 1017.At this moment, PDA101 can't visit long-range database server 107, but the data in can data memory area 310 are handled.Under online mode, connect the red oblique line that switches on the icon 1017 and can disappear (as shown in Figure 8).At this moment, PDA101 can visit long-range database server 107, as can also uploading data to the database of database server 107 from the database data download of database server 107.
As shown in Figure 9, be main flow chart of the present invention.At first, user (business personnel) provides ID and password login PDA101, to avoid the data among this PDA101 of person's access without permission and to use the application software of this PDA101, in this embodiment, for avoiding user's stealing passwords, in case the continuous login failure of certain number of times takes place, application software can be automatically with the data Delete All (step S902) on the data storage area on this PDA101 310.As login success, at this moment PDA101 can point out the user to judge whether that data need carry out synchronously with the data in the database server 107, and these need data in synchronization to include such as customer data, pre-pay carfare material, vehicle data, tentative calculation definition of data or other data (step S904).When the data needs are synchronous, as after working start every day, the user just downloads data updated from database server 107, then send on-line order to connecting handover module 303 by connecting switching icon 1017, be connected with 103 of application servers to set up PDA101, thereby download corresponding data from database server 107, in like manner, PDA101 also can upload corresponding data and give application server 103 (step S906).If do not need data in synchronization, the step S908 that in this PDA101, inquires about or inspect then, in this step, the user can inquire about and inspect vehicle data, vehicle is pre-payed phase data, customer data and the definite item (step S910) that will carry out.Judge whether then to carry out tentative calculation operation (step S910).If carry out the tentative calculation operation, then select the corresponding expense of tentative calculation object and tentative calculation (step S912).And on PDA101, show The trial result, perhaps this result is exported (as printing) (step S914) by output device.If need not carry out the tentative calculation operation, then whole flow process finishes, and at this moment the user can also select to carry out synchronously with database server 107.
As shown in figure 10, be synchronous particular flow sheet among Fig. 9 of the present invention.This synchronous flow process comprises the steps: at first, connects handover module 303 state of PDA101 is switched on line state, and this PDA101 and application server 103 are coupled together (step S100); Data simultaneous module 309 among the PDA101 promptly can produce a synchronization request message according to real needs, and this synchronization request message is sent to application server 103 (step S102); After the communication module 1031 of application server 103 receives this synchronization request message, it is stored in the cache manger 1034, and by the first data selected parts device module, 1038 these synchronization request messages of analysis in the replication manager 1035, and, judge it asks synchronous object to belong to which object territory (step S104) according to domain manager 1036; Result after Data access module 1037 is analyzed according to this connects database server 107, obtains the data in synchronization that requires (S106) in the synchronization request message; These data in synchronization are stored in the cache manger 1034, and utilize communication module that it is transmitted back to PDA101 (step S108).The situation that the situation of request data download noted earlier, request msg are uploaded is similar with it, no longer narration.
As shown in figure 11, be the particular flow sheet of tentative calculation expense among Fig. 9 of the present invention.The flow process of this tentative calculation expense mainly utilizes tentative calculation module 306 to realize, it comprises the steps: at first to select tentative calculation object (step S100), in this step, the user can select to carry out the object of tentative calculation, vehicle comprising the client that will carry out tentative calculation and the tentative calculation of wanting, for example, can select the automobile of client's reserve purchase; Select tentative calculation condition (step S102) then, in this step, the user can select the tentative calculation condition, for example in the monthly payment plan tentative calculation, can select required payment front money, issue, remaining fund, interest rate and tentative calculation condition such as capital by stages by the tentative calculation module by stages of PDA101, in this step, the user need can select the cost category of tentative calculation; Moreover be to call cut-and-try formula (step S104), in this step, the user can analyse according to want tentative calculation object (price data of vehicle) and tentative calculation bar, and calls in the data storage area 310 cut-and-try formula correspondingly, carries out tentative calculation; Be to generate tentative calculation recommendation form (step S106) at last; In this step, the tentative calculation recommendation form generates submodule 3066 promptly can generate a tentative calculation recommendation form according to the The trial result under the aforesaid tentative calculation condition, carries out reference for business personnel and client.
The software configuration that most preferred embodiment of the present invention provided has very big elasticity and extendibility, can use various differences, the existing and following wireless telecommunication system.Its all wireless application softwares all are to develop on this mobile communcations system.When other coupling or complementary system occur, application software itself does not need change, as long as set in this mobile communcations system or increase the module that new system is supported.