caf é net management system … prepared by : shereen atallah shereen atallah elham al_yaseen elham...

Post on 31-Mar-2015

223 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Café Net Management Café Net Management System…System…

Prepared By :Prepared By :

Shereen AtallahShereen Atallah

Elham AL_YaseenElham AL_Yaseen

Our project is Café Net Management Our project is Café Net Management System based on client server System based on client server application, using Microsoft application, using Microsoft Foundation Classes (MFC) dialog Foundation Classes (MFC) dialog based application , that supports based application , that supports TCP/IP socketsTCP/IP sockets..

Management of café net requires server Management of café net requires server program to control clientsprogram to control clients..

We need to handle communication We need to handle communication between server & clientsbetween server & clients..

Server waiting for clients to connect

Clients

Server a

ccept th

e

conn

ectio

n

Client tr

y to co

nnect

by sending aso

cket

Server program will look like thisServer program will look like this: :

Host information

CtrlList to view

clients & there status

Chat program

When any client connects to server an icon will appear, this icon has it’s color telling it’s current status :

Green icon means login client

Red icon means shutdown client

Blue icon means logout client

To add user

To add random users

To view all users

Users menu is for handling tickets

View menu to view clientsView menu to view clients

Command menu allows server control clients

Select the command you want, if you choose to lock PC this will change it’s icon to blue

If you want to shutdown any PC this will change it’s icon to red

unlock PC will change the color to green.

Print menu will print all tickets with times greater than zero

Tickets will look like this:

::

Orders menu provide services to clients

Add orders :add anew service to clients with it’s price and this will appear to all clients

If client selects an order this will appear

To view orders

To update orders

Configuration menu to change the port of server so Configuration menu to change the port of server so clicking on this menu will give the following dialogclicking on this menu will give the following dialog

Change the listening port here but this change won’t take an effect until you restart the server

So you will see this dialog:

Address book to add contacts and retrieve any information about them:

To fill the appropriate information we have this dialog.

To view contacts and retrieve any information about them

Accessories menu give some additional facilities to server :

Notepad to Notepad to add notesadd notes..

Command to add command

Calculator

Now we are to talk about client program which must run at startup:All pc’s must be locked with the lock screen.Locking pc need locking all hock keys by hock driver.

Press on any key will submit from you to enter valid username password then you can login.

Inserting invalid username & password will give the following dialog:

Client program will look like this :

Chat program

To display the remaining time for customer to logout

To view the current orders & there

costs

To submit order select what do you want from current orders then click order you will see this dialog:

If the time of the client becomes less than five minutes then a warning message will appear:

You can hide this dialog by clicking on hide button :

This will make the dialog iconic & will appear as this:

This icon has the menu show to show the dialog again.

If the client wants to logout.

top related