通过 PSI 从 Project Server 检索资源工作时间
我正在通过 PSI 使用 SharePoint 和 ProjectServer 2007。
我需要检索某个日期范围内项目中员工的工作时间,但我找不到方法。我获得的最接近的数据是来自 Project.ReadProject() 的 RES_ACT_WORK,但这是一个总值。
有什么想法吗?
I'm working with SharePoint and ProjectServer 2007 via PSI.
I need to retrieve the working hours of an employee in a project during a date range but I can't find a way to do it. The closest data I've gotten is the RES_ACT_WORK from Project.ReadProject(), but this is a total value.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于找到找回的方法了!!!
Statusing.ReadStatusTimephasedData
编辑:
此方法返回当前登录用户的状态数据。如果用户是项目所有者,它将获取每个分配的资源的数据。否则,仅返回用户的数据。
为了检索全部数据(每个项目和每个资源),必须使用
[PSI 模拟][2]
。但这在我的情况下是不可能的,因此我正在开发一个
[PSI 扩展][3]
来公开我需要的信息和[自定义权限][4]
控制对其的访问。注意:我还不能发布多个链接:P
Finally I've found the way to retrieve it!!!
Statusing.ReadStatusTimephasedData
Edit:
This method return the statusing data for the currently logged user. If the user is the project owner, it will get the data for every assigned resource. Otherwise, only the user's data will be returned.
In order to retrieve the whole of the data (every project and every resource), the
[PSI impersonation][2]
must be used.But that is not possible in my case, so I am developing a
[PSI extension][3]
to expose the information I need and[custom permission][4]
to control access to it.NB: I cannot post more than one link yet :P