I offered to help someone the other day with a rostering system with a web interface and admin.
Let's assume they have 20 employees in a 24-hour restaurant.
These 20 people can work any one of three shifts a day. We don't need to worry about when they finish. If they start at nine, they always finish at five.
So the problem is, roughly:
- 20 employees
- 3 shifts a day
- indefinitely into the future
And I want to be able to create
- a roster on a web page that will always show "now and the next seven days" to anyone who wants to see it, and
- an interface for the manager to put in "Employees A, B and C working Monday from 9. Employees D, E and F working Thursday from 4" and so on
Assuming some database back end, how would monks approach this? What would be the objects, and so on? It's not that I don't know how to do it, it's that I can't figure out the most sensible way.
I need to tie a list of people to a list of times indefinitely into the future. Would you for instance have a "person-works" oriented structure and have the manager input "person A works (list of shifts)" or have a "shift-is-worked-by" structure and have them pick a list of employees to roster against "monday 9 AM"?
Thanks in advance.
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.