经电话沟通,此问题已解决。
以下信息供其他客户参考:
日历中的defaultStartTime和defaultFinishTime仅适用于没有具体时间的新任务,如果任务是auto模式,则开始日期和完成日期将由项目计划引擎计算。
另外,请参考以下代码以正确切换日历。
- var customCalendar = GC.Spread.Sheets.GanttSheet.Calendar.standard;
- // ...
- // change some setting on customCalendar
- // ...
- ganttSheet.project.calendar = customCalendar;
- // switch the calender to another
- ganttSheet.project.calendar = GC.Spread.Sheets.GanttSheet.Calendar.hours24;
- // switch the calendar back
- // correct way √: could switch back with the customer setting (9:00~18:00)
- ganttSheet.project.calendar = customCalendar;
- // wrong way x: could not switch back with the customer setting (8:00~17:00)
- ganttSheet.project.calendar = GC.Spread.Sheets.GanttSheet.Calendar.standard;
复制代码 |