- Messages
- 397
- Reaction score
- 0
- Points
- 26
Help ? kapag po nag = 1 yung minutes_label.text ko, mag + 5 yung label7.text, kaso ang nangyayari, kapag nka equal na sa 1 yung minutes_label.text ko, tuloy pa din yung dagdag ng label7 ng 5.
http://i59.tinypic.com/34yy8lx.png
http://i59.tinypic.com/4qhwy.png
cafe timer yung program diba? compute the amount base on the time, if you wanna calculate it via minutes, gumawa ka ng variable na mag hohold ng running total, add the price on each minute na mag tick then display it, do not compute directly sa label.
ex.
dim running_price as double
dim start_time as datetime
dim time_consumed as datetime
time_consumed = now() - start_time
' do your calculations here base on the time na na consume
' like
running_price = time_consumed * price_per_minute ' considering na ang time consumed is converted into minutes
label7.text = running_price
**NOTE: code is untested, im just giving you the logic on how you do it...
- - - Updated - - -
Hello po sir Eric,
I need a suggestion from an expert like you,
Pa help naman in terms sa database, I'm developing patient information management system using vb.net
There are 2 kind of patient like Inpatient(For patient admitting) and Outpatient (for checkup only), so I decide to make 2 tables.
Balak ko po sanang gawing isa pero i'm not sure if tama ba ang gagawin ko, below are my sample databases.
Nalilito kasi ako kasi ang inpatient type sa table ko is merong attribute na admissionID but sa outpatient is wala, okay lang ba imerge as 1 table nalang?
INPATIENT PAYMENT DATABASE
http://i.imgur.com/0Sb8TAB.png
OUTPATIENT PAYMENT DATABASE
http://i.imgur.com/gHit4WJ.png
make a table for patients, make a table for transactions, make a table for transaction_types, and a table for transaction_details