通过 PSI Web 服务读取实际工作 (Project Server 2007)

发布于 2024-10-01 16:36:14 字数 543 浏览 3 评论 0原文

我想通过 Project Server 2007 上的 Project Server 接口 (PSI) 读取已批准的实际工作

我偶然发现了 PSIStatusing 命名空间上的 ReadStatusTimephasedData 函数。这正是我想要的,除了:它为我提供了项目成员在 PWA 中输入的实际工作。不是项目经理批准后批准的实际工作。

DateTime start = DateTime.Today.AddDays(-10);
DateTime end = DateTime.Today.AddDays(5);
long interval = 1 * 24 * 60; //one day

PSIStatusing.StatusingTimephasedActualsDataSet actualsDs = statusService.ReadStatusTimephasedData(projectGuid, assignGuid, start, end, interval);

我如何获得批准的实际工作?有大佬指点一下吗?如果你能帮助我,我会很高兴,

马库斯

I want to read the approved actual work via the Project Server Interface (PSI) on a Project Server 2007

I stumbled upon the ReadStatusTimephasedData function on the PSIStatusing namespace. This does exactly what I want, EXCEPT: It gives me the actual work as entered by the project member in the pwa. It is not the approved actual work after the project manager approves it.

DateTime start = DateTime.Today.AddDays(-10);
DateTime end = DateTime.Today.AddDays(5);
long interval = 1 * 24 * 60; //one day

PSIStatusing.StatusingTimephasedActualsDataSet actualsDs = statusService.ReadStatusTimephasedData(projectGuid, assignGuid, start, end, interval);

HOw do I get the approved actual work? Has anyboy a hint? I'd be very glad if you can help me

Markus

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

极度宠爱 2024-10-08 16:36:14

这个问题的答案很快就会变得复杂。
将“批准的实际工作”添加到项目计划中。对于项目计划中的任务,实际工作会发生更改以匹配新批准的数据。 PSI 可以获取此数据,但不能获取时间分段特征。也就是说,每个作业的总数,而不是每天的总数。

但这里有一个大问题:根据服务器配置,项目经理可能有能力在批准后编辑此工作。如果服务器未设置为限制此操作,则无法确定哪些工作已获得批准。另一方面,如果服务器设置为限制项目经理编辑此数据的能力,则可以在 _Reporting 数据库中的AssignmentByDay 表中(在项目发布后)找到该数据。

最容易获得的与此接近的部分是

  • 资源在时间表上输入的时间。
  • 已发布的实际工作,无论是来自资源还是由项目编辑
    经理。

希望这有帮助,这就是您所追求的。

如果您对此有疑问,请告诉我...
詹姆斯·弗雷泽

The answer to this question can get complicated in a hurry.
The "approved actual work" is added to the project plan. For the assignments in the project plan, the actual work is changed to match the newly approved data. The PSI can get at this data, but not with the timephased characteristic. That is, totals per assignment, not by day.

But here's the big catch: depending on server configuration the project manager may have the ability to edit this work after it is approved. If the server is not set up to limit this action, then there is no way to determine what work was approved. On the other hand, if the server is set up to restrict a project manager's ability to edit this data, then it can be found (after a project publish) in the _Reporting database, in the AssignmentByDay tables.

The easiest pieces to get that are close to this are the

  • time entered by resources on timesheets.
  • published Actual Work, whether from resources or editted by the project
    manager.

Hope this helps, and is what you were after.

Let me know if you have questions on this...
James Fraser

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文