• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Owner ID Question

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My instruction read:


The id value (an 8 digit number) of the customer who has booked this. Note that for this application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale.



Right now, when the user decides to book a particular contractor the ID value is automatically generated for them before the contractor is booked. After successfully booking the contractor, the random, 8-digit number I've generated appears in the JTable.

I'm beginning to think now that I may want the user to actually enter the number themselves instead of generating it for them. Or, is it even important at all that this number is be displayed? In which case I can continue what I'm doing.

What is everyone else doing?

Rich
 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can you interpret 'CSR's know their customer ID's' to mean it would be okay for your system to generate a random one?

If the CSR knows the ID then that means they must input that value into your system. You must therefore provide a widget that allows them to do just that.

I hardly think that this is open to interpretation, it seems pretty black and white to me, which is rare with the given spec.
 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Mike. Just what I needed.

Rich
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also doubt about the ID.
I'd like to provide a JTextField to let the user enter the ID.

I don't know if my solution is right.
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,

As Mike just mentioned, the instructions tell us that the CSRs (user of the system) already know the customer IDs. So having a JTextField where the CSR can enter this number will work.

Regards, Andrew
 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FYI... I've decided to prompt the user for their ID when the client gui is started instead of them having to do it everytime they decide to book a contractor.

Rich
 
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Richard Everhart:
FYI... I've decided to prompt the user for their ID when the client gui is started instead of them having to do it everytime they decide to book a contractor.

Rich



That is wrong for URLyBird, I'm not sure about B&S, but each customer calling the CSR on the phone has a different customer ID. Therefore the CSR cn't just provide it a signon, its a per booking attribute.
 
Does this tiny ad smell okay to you?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic