如何在项目详细信息页面webpart中访问项目状态 [英] How to access project state in a Project Detail Page webpart
问题描述
亲爱的所有人,
我正在开发一个项目服务器Web部件来放置项目详细信息页面。任何人都知道如何在项目详细信息页面中访问当前打开的项目的状态,以便如果未检查项目
out或用户没有更新的访问权限,则在Web部件上禁用控件。
I am developing a project server web part to put on a project detail page. Anybody knows how can I access the state of currently opened project in a Project Detail Page so that if the project is not checked out or the user does not have access rights to update then the controls are disabled on the web part.
谢谢你
问候<
Adil
Thanks
Regards
Adil
推荐答案
Hello Adil,
您可以使用
Project.ReadProject 方法 。$
http://msdn.microsoft.com/en-us/library/websvcproject.project.readprojectlist.aspx
它将在
ProjectDataSet.Project 跨度> 。从那里你可以查看
PROJ_CHECKOUTBY 和
PROJ_CHECKOUTDATE 列&然后你可以根据需要显示信息。
http: //msdn.microsoft.com/en-us/library/gg204413.aspx
$
Hoep有帮助。
Hello Adil,
You can use Project.ReadProject method .
http://msdn.microsoft.com/en-us/library/websvcproject.project.readprojectlist.aspx
it will return a ProjectDataTable in ProjectDataSet.Project. From there you can check the PROJ_CHECKOUTBY and PROJ_CHECKOUTDATE columns & then you can display the information as desired.
http://msdn.microsoft.com/en-us/library/gg204413.aspx
Hoep that helps.
这篇关于如何在项目详细信息页面webpart中访问项目状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!