• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Location Finder(Urgent)!!!

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic