Hi all,
I am working on an attendance system that has the following tables:
Entry
+---------+-----------+
+ EntryID + EntryDate +
+---------+ ----------+
Hour
+---------+--------+---------+
+ EntryID + InHour + OutHour +
+---------+--------+---------+
With the following example data:
Entry
+---------+---------------------+
+ EntryID + EntryDate +
+---------+---------------------+
+ 1 + 1/1/2010 8:00:00 AM +
+ 2 + 1/1/2010 8:01:02 AM +
+---------+---------------------+
Hour
+---------+---------------------+-----------------------+
+ EntryID + InHour + OutHour +
+---------+---------------------+-----------------------+
+ 1 + 1/1/2010 8:00:00 AM + 1/1/2010 1:00:00 PM +
+ 1 + 1/1/2010 2:04:00 PM + 1/1/2010 6:03:00 PM +
+ 2 + 1/1/2010 8:01:02 AM + 1/1/2010 1:02:00 PM +
+---------+---------------------+-----------------------+
And I have the following gridview:
I need help with how I should approach a request my client has done today...
Currently, when calling this gridview the "Arrives At" and "Leaves At" fields are retrieved by querying the database and concatenating all the hours in a string then printing it out. However, my client now wants the ability to modify any of the hours in the "Leaves At" column. I don't know how to approach this request at all, since the hours are grouped together in one cell. I've thought showing the hours in a textarea but there's no way that the changes will be correctly applied on the database if I did this.
Any help will be greatly appreciated as I feel overwhelmed by this.
Thanks in advance, Eton B.