1

我正在组合一个工具,允许用户为一类学生生成报告。我想合并报告“期间”或“时间表”,但我不确定如何这样做。

本质上,我希望用户为每个班级分配一个评估“时间表”,即从一个月的 5 号到下个月的 4 号。因此,报告将(并且必须)连续运行。但是,我确实希望用户能够临时调整学生日程的结束时间。

我想创建一个“时间表”表,但我不确定如何存储开始日期和结束日期,以便可以重复循环。有人有什么建议吗?

4

2 回答 2

2

I've used ice_cube (GitHub project) with some success. The module handles recurrences well, it's got its own serializer/deserializer, and it's well-documented.

于 2012-07-03T16:51:43.130 回答
0

You could create a report model/table with a start day and end day (such as 4 and 5) and use that to set the date with. This would persist to the database normally, but for a one off report that doesn't need to be stored, you could just create a new report with a different end date.

I.E., you have a reports table for persistent reports (A report for an entire class of students), but don't save your individual reports.

于 2012-07-03T16:52:47.780 回答