每月重复的日历事件的计划逻辑
我目前正在为一家在医院和医生办公室之间运送患者的公司开发一个内部应用程序。我现在正在开发的模块将使公司能够跟踪其各种车辆维护费用和执行的服务,并使他们能够为其车队中的每辆车安排不同的维护服务。
不同类型的维护以不同的时间间隔进行。这些都是重复发生的事件。有些每周重复一次,有些每月重复一次,有些每三个月重复一次。
对于每月或半月重复的维护活动,我有点不确定如果日期在本月晚些时候并且该特定日期没有在未来几个月中确定应该安排活动的日期,我有点不确定在接下来的一个月中存在 a。
例如,如果我将一个活动安排在 1 月 31 日,并且每月重复一次,那么我不确定该活动应分配在 2 月的哪个位置。我非常感谢任何开发过调度应用程序的人提供的任何建议,详细说明如何解决这些类型的调度问题。
I'm currently developing a internal application for a company that does patient transport between hospitals and doctor's offices. The module that I'm working on now will give the company the ability to track their various vehicle maintenance expenses and services performed as well as give them the ability to schedule different maintenance services for each vehicle in their fleet.
Different types of maintenance are performed at different time intervals. These are to be repeating events. Some are to be repeated weekly, some monthly, and others every three months.
For the maintenance events that repeat on a monthly or semi-monthly basis I'm a little unsure how I should go about determining days in future months that a event should be scheduled if the date is late in the month and that particular day does not exist a in a subsequent month.
For example, if I schedule a event on January 31st that is to be repeated monthly then I'm unsure where in February that event should be assigned. I would appreciate any suggestions from anyone who has developed a scheduling application detailing how you accounted for these types of scheduling problems.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我问这个问题是操之过急。我决定看看 Google 日历如何处理每月重复发生的事件。如果我添加 2012 年 1 月 31 日的事件并将其设置为重复事件,那么我可以选择让该事件在每个月的第 31 天重复,或者重复每个月的最后一个星期二。
就我而言,最好让该活动在每个月的最后一个星期二重复,因为车辆维修店周日不营业,并且维修不能仅仅因为每个月不存在该特定日期就跳过一个月。
Looks like I jumped the gun asking this question. I decided to see how Google Calendar handles monthly recurring events. If I add a event for January 31st 2012 and set it as a recurring event then I am given the option to have that event repeat every month that has day 31 or to repeat the last Tuesday of each month.
In my case it would be best to have the event repeat the last Tuesday of each month because the vehicle maintenance shop is closed on Sundays and the maintenance cannot skip a month just because that particular day did not exist in each month.