• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Owner ID Question

 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • 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
 
mike acre
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks, Mike. Just what I needed.

Rich
 
Eric Pu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11941
211
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic