如何使SP日历仅在工作时间内显示任务 [英] How to make SP Calendar to only display tasks during work hours

查看:168
本文介绍了如何使SP日历仅在工作时间内显示任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们创建从星期五开始并在星期一完成的任务时,SharePoint日历会显示任务在星期五,星期六,星期日和星期一运行.我们通常在周末不工作,所以想在我们休假时屏蔽周末 不起作用.我们可以添加一个字段来说明是否在这一天工作.所以我们需要这样的东西,

When we create a tasks that starts on Friday and completes on Monday, SharePoint calendar shows the tasks as running Friday, Saturday, Sunday and Monday.  We usually don't work on the weekend and would like a way to block out the weekend when we're not working.  We can add a field that says if we're working on that day or not.  So we need something like this,

如果(TodayIsWorkingDay == true)显示任务

If (TodayIsWorkingDay == true) Display tasks

否则不显示任务

是否有SP日历的API?这是下面的屏幕截图.谢谢.

Is there an API for the SP Calendar?  Here is a screen shot below.  Thanks.

推荐答案

此处是供您参考的示例解决方案,如下所示更改网站的区域设置并将样式添加到脚本 编辑器Web部件/内容编辑器Web部件,您可以在下面的线程中查看详细信息:

Here is the sample solution for your reference, change the region settings of your site like below and add the style to script editor web part/content editor web part, you could check below thread for details:

<style type="text/css">  
    table.ms-acal-month > tbody > tr > th:nth-of-type(1) {  
        display: none !important;  
    }  
      
    table.ms-acal-month > tbody > tr > th:nth-of-type(7) {  
        display: none !important;  
    }  
      
    table.ms-acal-month > tbody > tr > th:nth-of-type(8) {  
        display: none !important;  
    }  
      
    table.ms-acal-month > tbody > tr > td:nth-of-type(6) {  
        display: none !important;  
    }  
      
    table.ms-acal-month > tbody > tr > td:nth-of-type(7) {  
        display: none !important;  
    }  
</style> 

http://www .c-sharpcorner.com/UploadFile/fc34aa/hide-weekends-in-sharepoint-calendar-view/

最佳问候

Lee


这篇关于如何使SP日历仅在工作时间内显示任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆