Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location Finder(Urgent)!!!

 
amit malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Freinds,
We are developing an application in which when you enter the name of an employee(in a text box) it will list out his details and when you click on the location(that's one of the columns of a table), you can find out about his exact location (ie a graphics view of as to where he is located at a particular floor).Could some suggest a way to do it.We have 6 floors in our building with employees sitting on each floor. and i have gif images of each floor.could some one give a logical solution to this problem
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Save the images of the floor plan of the building in a 6 member array. In the employee object, save the floor they are on ( 0-5 ) and the x and y location they are located at on the appropriate floor plan image... then, when a user clicks to see the employee's location, just display the image specified in the employee object, and then draw a dot at the x,y location specified.

-Nate
 
amit malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I find out the X and Y postion of the employee and how do i store and retrive the images in an array could you be more specific please.......my email id is amitkumar_j_malhotra@ril.com
is there any other way i can do this(i mean client side scripting)
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to do the x,y mapping of employees to locations yourself... if you know Bob sits in cubicle 47A you'll have to find cubical 47A on your map image and note the x,y location you should mark. ( Personally, I would make a little program that displayed the image and had a mouse listener returning x and y position to help me with this... ) You could also have a translation method that translated coordinates from whatever the company uses to x,y locations on the image depending on if the companys coordinate system makes sense...

To store and retrieve images in an array...


HTH,
-Nate
 
amit malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx a lot for the answer,I will try out the same in a small way and then post my answer again....
bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic