Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

micros SIM - clock in / clock out function

Status
Not open for further replies.

jd11111

Programmer
Apr 29, 2010
160
US
I have a sim that is checking to verify that servers have completed some custom processes that we've developed before letting them clock out.

The issue I'm having is that we require mag cards for servers in our restaurants, so after getting the employee card number and checking to make sure they have done everything, the time clock gets an error because I'm passing their password id as a string. The system doesn't think they have swiped their card.

Does anyone have a solution for this. I've thought about using a stored procedure for each time clock function, so the sim would then call the stored procedure, but is there a way to make the system think the password was swiped in the sim?
 
I am not following the issue. You should swipe the card and grab the ID, then use a makekeys function to key in that ID. makekeys doesn't care if it is a string or a number.

Can you post the portion of clockin in/out on here?
 
the time clock is what cares if the number was swiped
 
Thanks, but this is a slim version of what I already have.

The issue happens here:

loadkybdmacro clock_in_key, makekeys( ID ),\
@Key_Enter, @Key_Enter, @Key_Enter


Because we require magnetic cards, we receive the error "magnetic card required" because this is not a swiped number.

I was just hoping to avoid using a stored procedure to clock people in and out if there was a way for the sim to "trick" the system into thinking the ID was swiped.
 
I think I've figured out a solution. I'm just going to make users that need magnetic cards swipe their card twice to clock in or out. The problem I'm having, though, is sending these users to a different screen with the micros clock in/out function key programmed. I'm using displaytouchscreen, but it's not staying on this screen, it just goes back to the sign-in screen.

This is a section of the sim to show where I'm having the problem...

Event inq: 21
var empPW : A16 = ""
touchscreen 205
input empPW{M2,1,4,15}, "Please Enter ID"
if @MAGSTATUS = "Y"
mag = "c"
else
mag = ""
endif

call GetSeqfromPW
call GetClockStatus
if trim(ClockOutStatus) = "F"
exitwitherror "Already Clocked In"
else
call ClockIn
endif

EndEvent

sub ClockIn
if mag = "c"
displaytouchscreen 106 //this is the screen with the clock in/out function key

else
if len(empPW) < 10
loadKybdMacro key (1,655368)
loadKybdMacro makekeys (empPW)
loadKybdMacro key (1, 65549)
else
exitwitherror "Mag Card Required"
endif
endif

endsub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top