问题描述
嗨!我进行了资源更新,但收到错误" CICONotCheckedOut "。我查看了这个资源并设置了"签出"。但是更新不起作用。我使用的是MS Project 2010和PSI。
Hi! I do resource update but I get error "CICONotCheckedOut". I check out this resource and it set "check out" but update don't work. I use MS Project 2010 and PSI.
ResourceDataSet
rsDataSet = resourceCl ient.ReadResources( null ,
false );
ResourceDataSet rsDataSet = resourceClient.ReadResources(null,false);
Guid resourceId =
new
Guid (" 4FA600CA-9E81-40c5-B8EF-4E921F3D20D8" );
ResourceDataSet 。 ResourcesRow
resRow = rsDataSet.Resources.FindByRES_UID(resourceId);
Guid resourceId = newGuid("4FA600CA-9E81-40c5-B8EF-4E921F3D20D8");ResourceDataSet.ResourcesRow resRow = rsDataSet.Resources.FindByRES_UID(resourceId);
resourceClient.CheckOutResources( new
Guid []
{resRow.RES_UID});
resourceClient.CheckOutResources(newGuid[] { resRow.RES_UID });
resRow.RES_NAME
=" name" ;; false ,
true );
resRow.RES_NAME = "name"; false,true);
resourceClient.UpdateResources(rsDataSet,
resourceClient.UpdateResources(rsDataSet,
推荐答案
你能发布完整的代码吗?似乎它是不完整的。谢谢
Can you post the full code; seems that it is incomplete. Thanks
这篇关于资源更新时出错CICONotCheckedOut的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!