WeekDay 元素
工作日定义日历中的星期几或例外日期。
<WeekDay>
ComplexTypeValue
</WeekDay>
父元素
子元素
元素 |
必需/可选 |
说明 |
---|---|---|
必需 |
工作日类型 (例外,或星期一至星期日) |
|
可选 |
指示指定的日期或日期类型是工作日。 |
|
可选 |
定义一组异常天数。 |
|
可选 |
定义工作时间的集合。 |
出现次数
最小值:0 最大值:无限制 |
示例
在以下示例中,星期六 (DayType = 7) 和 Sunday (DayType = 1) 是非工作日。
<WeekDays>
<WeekDay>
<DayType>1</DayType>
<DayWorking>0</DayWorking>
</WeekDay>
<WeekDay>
<DayType>2</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>3</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>4</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>5</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>6</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>7</DayType>
<DayWorking>0</DayWorking>
</WeekDay>
</WeekDays>