Embodiment
The embodiment of the invention provides a kind of information processing method and server, in order to convenient, fast, the uniformly processing of realization to work attendance information, and saves resource.
Referring to Fig. 1, a kind of information processing method that the embodiment of the invention provides comprises step:
S101, server obtain the work attendance information of uploading at the terminal, and judge wherein whether comprise locating information, temporal information and user profile.
S102, when comprising locating information, temporal information and user profile in the work attendance information that upload at the terminal, the work attendance information that server is uploaded according to the terminal generates attendance record.
Preferably, when not comprising locating information, temporal information and/or user profile in the work attendance information that upload at the terminal, this method also comprises:
Server is replied to the terminal of uploading this work attendance information and is uploaded failure.And, further can also in this message, indicate the reason of failing, imperfect like work attendance information, lack which information etc.
Preferably, when comprising locating information, temporal information and user profile in the work attendance information that upload at the terminal, the work attendance information that server is uploaded according to the terminal, the step that generates attendance record comprises:
When comprising locating information, temporal information and user profile in the work attendance information that upload at the terminal; Locating information that server is stored according to self in advance and user profile; Whether locating information and user profile in the work attendance information that upload at the verification terminal mate; If the temporal information in the work attendance information of then uploading according to the terminal generates the attendance record corresponding with this terminal; Otherwise, reply to the terminal of uploading this work attendance information and to upload failure, and, further can also inform the reason of failure, promptly locating information and user profile do not match.
Particularly, locating information that server is stored according to self in advance and user profile, whether locating information and user profile in the work attendance information that upload at the verification terminal mate, and can comprise:
Server stores a plurality of locating information in advance, and with the corresponding one or more user profile of each locating information.
Server is received the work attendance information of uploading at the terminal; And therefrom obtain locating information and user profile, search self and whether prestore this locating information, if having; Then continue to judge this user profile whether be included in store in advance with the corresponding user profile of this locating information; If comprise, then explanation is mated successfully, otherwise the coupling failure.That is to say that locating information in the work attendance information and user profile coupling promptly store this locating information and user profile in the server in advance, and this locating information are corresponding with this user profile, otherwise are not promptly matched.
Preferably, said terminal is a portable terminal.
Preferably; Said locating information; Be that Global Positioning System (GPS) (GPS is passed through at the terminal; Global Positioning System) or auxiliary global satellite positioning system (AGPS, Assisted Global Positioning System), the location obtains location information of terminals (comprising longitude, latitude information).
AGPS is a kind of technology that has combined network base station information and GPS information that portable terminal is positioned.
Preferably, said temporal information is the temporal information that work attendance information is uploaded at the terminal.
Preferably, said user profile comprises:
User name and/or terminal iidentification.
Provide concrete explaining below.
The locating information that has each shops on the server that the embodiment of the invention provides, and related with it sales promotion person and the information of inspection, i.e. user profile.
When needing work attendance, the sales promotion person locatees through portable terminal in affiliated shops with inspection, and locating information, current time and the user profile of oneself are uploaded onto the server.
Server judges according to locating information of uploading and user profile whether the work attendance information of uploading is effective, promptly whether matees; If effectively, then according to the time of uploading judge work attendance whether normally, whether be late, leave early, absence from work without reason etc., and generate corresponding attendance record.
Portable terminal described in the embodiment of the invention is uploaded to the work attendance information of server through wireless network, also can be other users' inputs or the data messages gathered, for example: logon data, sales data, return of goods data, the terminal image data or the like of taking pictures.The data that server is uploaded portable terminal are handled, and the result is returned.Portable terminal is prompted to the user through the interface with result.
Provide a specific embodiment below.
As shown in Figure 2, a kind of information processing method that the embodiment of the invention provides comprises:
Step 1: the user uses terminal positioning in affiliated shops.
Step 2: the user uploads onto the server locating information, current time and user profile through the terminal.
Step 3: whether data are uploaded in the server verification complete.If forward step 5 to; If, do not forward step 4 to.
Step 4: server returns uploads failed message, forwards step 7 to.
Step 5: server returns uploads success message, and whether verification locating information and user profile mate.If forward step 6 to; If not, forward step 7 to.
Step 6: server generates attendance record according to the time of uploading.
Step 7: success or failed message are uploaded according to result's demonstration that server returns in the terminal.
Step 8: finish.
Referring to Fig. 3, a kind of communication system that the embodiment of the invention provides comprises:
Terminal 11 andserver 12.
Terminal 11 is used to upload work attendance information.
Terminal 11 can be a portable terminal, links to each other withserver 12 through wireless network.
Portable terminal 11 includes but not limited to mobile phone, palm PC i.e. (PDA, Personal Digital Assistant) etc.Portable terminal 11 is connected with the server that is in thebackstage 12 through wireless network, and data are sent toserver 12 or receive data fromserver 12.
Server 12 is used to obtain the work attendance information of uploading atterminal 11, and judges wherein whether comprise locating information, temporal information and user profile; When comprising locating information, temporal information and user profile in the work attendance information that upload atterminal 11, the work attendance information according to upload atterminal 11 generates attendance record.
Preferably, referring to Fig. 4, a kind of server that the embodiment of the invention provides comprises:
Work attendance informationintegrity judging unit 101 is used to obtain the work attendance information of uploading at the terminal, and judges wherein whether comprise locating information, temporal information and user profile.
Attendancerecord generation unit 102, when the work attendance information that is used for uploading when the terminal comprised locating information, temporal information and user profile, the work attendance information according to upload at the terminal generated attendance record.
Preferably, said work attendance informationintegrity judging unit 101 comprises:
Acquiringunit 201 is used to obtain the work attendance information of uploading at the terminal.
Judgingunit 202 is used for judging whether the work attendance information of uploading at the terminal comprises locating information, temporal information and user profile, if then trigger attendancerecord generation unit 102; Otherwise, upload failure to the terminal answer of uploading this work attendance information.
Preferably, attendancerecord generation unit 102 comprises:
Matching unit 301; When the work attendance information that is used for uploading when the terminal comprises locating information, temporal information and user profile; According to the locating information and the user profile of storage in advance, whether locating information and user profile in the work attendance information that upload at the verification terminal mate; If then triggergeneration unit 302; Otherwise, upload failure to the terminal answer of uploading this work attendance information.
Generation unit 302 when the locating information of the work attendance information that is used for uploading when the terminal and user profile coupling, according to the temporal information in this work attendance information, generates the attendance record corresponding with this terminal.
The embodiment of the invention is obtained the work attendance information of uploading at the terminal through server, and judges wherein whether comprise locating information, temporal information and user profile; When comprising locating information, temporal information and user profile in the work attendance information that upload at the terminal; The work attendance information that server is uploaded according to the terminal generates attendance record, thereby has realized convenient, fast, processing uniformly to work attendance information; And need not traditional attendance recorder, saved resource.Making the waste that can not cause time, resource to the routine attendance check of sales promotion person and inspection has increased the dirigibility of sales promotion person with the inspection work attendance, has practiced thrift time and resource.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device; Make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computing machine or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.