MS Project-导入的XML具有错误的持续时间,开始日期和完成日期 [英] MS Project - XML imported with wrong duration, Start and Finish dates

查看:148
本文介绍了MS Project-导入的XML具有错误的持续时间,开始日期和完成日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个XML文件,使用Javascript导入到MS Project 2019.

I have created a XML file to import to MS Project 2019 using Javascript.

我只在工期,开始和结束日期上遇到问题.我不明白,如果在XML上正确,为什么MS Project会更改值.使用正确的值来修饰XML,并使用错误的值来导入项目的屏幕截图.有什么问题吗?

The problems I have only on duration, start and finish dates. I don't understand why MS Project changes the values if on XML is correct. Bellow the XML with correct values and screenshot of the project imported with wrong values. What is the problem?

例如,在XML上,任务配置端口"包含以下数据:

For example, on the XML, the task "configure port" is with this data:

<Name>Configure ports</Name>
<Duration>P2DT0H0M0S</Duration>
<Start>2019-01-14T00:00:00</Start>
<Finish>2019-01-16T00:00:00</Finish>

但是图像显示了我导入MS Project的xml并将其转换为:

But the image show the xml I imported the MS Project converted it to:

duration: 0 days
start: 2019-01-14
finish: 2019-01-14

屏幕截图: XML文件: https://www.dropbox.com/s/yt89b7pagnagac2/launch%20saas%20product.xml?dl=0

推荐答案

解决了该问题.

需要工作才能在字段中添加字段"RemainingDuration".任务,然后将格式从几天更改为几小时.甚至Microsoft文档都假定要格式化2天1小时的持续时间,例如P2DT1H0M,但他们支持的正确格式仅是PT25H0M天,为2天1小时.

To work is required to add the field "RemainingDuration" to the tasks and change the format to hours from days to hours. Even microsoft doc to suppose to format duration like P2DT1H0M for 2 days 1 hour but the correct they support is only in days PT25H0M for 2 days and 1 hour.

谢谢!

这篇关于MS Project-导入的XML具有错误的持续时间,开始日期和完成日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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