I was hoping you guys can give me an idea on this, I have 3 columns in the database, Emp Name, Emp Schedule, and a bit for fix sched(Boolean). I have a grid that will display their names, and their corresponding schedule for the month and a button that will generate their schedule on the grid.. My question is this, how can I make the generate button work? I mean how can I generate a random schedule for each employee? also their is a condition that if the fix sched column is checked, that employee should not be included in the list..Thanks in advance!
also it should follow this kind of schedule, graveyard shift > mid shift > morning shift.. therefore if an employee already had a morning shift last month his/her next shift should be graveyard shift already..sample codes would be much appreciated.