spbu-se / baobab

Electronic university shedule engine
http://mat-mex.ru/photogallery/matmex/inside_pic-354.html
3 stars 2 forks source link

Draft of a web-view of a calendar of a single attendee #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A very basic draft should be a table with days at horizontal axis and time 
slots at vertical axis, like this:

          пн    вт    ср    чт    пт    сб    вс 
1я пара

2я пара

3я пара

4я пара

Original issue reported on code.google.com by dbarashev on 16 Oct 2012 at 8:07

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 6 Nov 2012 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by dbarashev on 20 Nov 2012 at 9:32

GoogleCodeExporter commented 9 years ago
Am I right: I need to do something like simpleshedulepdfservlet, but using html?

Original comment by usd....@gmail.com on 24 Nov 2012 at 1:14

GoogleCodeExporter commented 9 years ago
..simpleshedulepdfservlet which itself does the same what 
SimpleScheduleDemoServlet does.

Well, technically, you'll be using the same things, but you probably see that 
their output (axis) is quite different: all attendees+all time slots in one 
case vs. days+per-day time slots in your case.

Original comment by dbarashev on 24 Nov 2012 at 4:07

GoogleCodeExporter commented 9 years ago
I always need to use  пн    вт    ср    чт    пт    сб    вс   
all of them, or only only those which is in timeslots.getdayofweek()?  For 
example if there is no timeslots.getdayofweek()==7, I don't need to draw 
вс-column it in the table.

Original comment by usd....@gmail.com on 25 Nov 2012 at 7:28

GoogleCodeExporter commented 9 years ago
Good question. Let's try to do what you suggest: no time slot for some day => 
no day in the result

Original comment by dbarashev on 25 Nov 2012 at 7:38

GoogleCodeExporter commented 9 years ago
May be I was inattentive, but is TimeSlot checks that day of week is in [1..7]?

Original comment by usd....@gmail.com on 25 Nov 2012 at 8:24

GoogleCodeExporter commented 9 years ago
What do you mean? Whether it is enforced in the runtime? Probably not.

Original comment by dbarashev on 25 Nov 2012 at 9:01

GoogleCodeExporter commented 9 years ago
so, in this way am i need to check it in my code? I mean to check if 
getdayofweek() is correct or not?

Original comment by usd....@gmail.com on 25 Nov 2012 at 9:08

GoogleCodeExporter commented 9 years ago
You may assume that if you have an instance of TimeSlot then it obeys all 
constraints. So, if the question is "do I have to make sure in my servlet code 
if every time slot is correct" then the answer is "no".

Original comment by dbarashev on 25 Nov 2012 at 9:17

GoogleCodeExporter commented 9 years ago
Can I get the next task? ))

Original comment by usd....@gmail.com on 28 Nov 2012 at 6:16

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 2662db20ddf6.

Original comment by dbarashev on 3 Dec 2012 at 8:28