P
pratyajai
--
Pratya Silasuwan
i try to update project team by this following code but it it not update
###
ProjectWS.ProjectTeamDataSet dsTeam=new ProjectTeamDataSet();
for (int i=0;i<resourceName.Length;i++)
{
ResourceWS.ResourceDataSet.ResourcesRow
r=this.GetResourceData(resourceName);
dsTeam.ProjectTeam.AddProjectTeamRow(projectGuid, r.RES_UID,
Guid.NewGuid(), r.RES_NAME,
r.RES_BOOKING_TYPE, true, r.RES_TYPE, true);
}
Guid jobGuid = Guid.NewGuid();
Guid sessionGuid = Guid.NewGuid();
project.CheckOutProject(projectGuid, sessionGuid, "Auto");
System.Threading.Thread.Sleep(1000);
jobGuid = Guid.NewGuid();
project.QueueUpdateProjectTeam(jobGuid, sessionGuid,
projectGuid, dsTeam);
System.Threading.Thread.Sleep(10000);
jobGuid = Guid.NewGuid();
project.QueueCheckInProject(jobGuid, projectGuid, true,
sessionGuid, "Auto Check In");
Pratya Silasuwan
i try to update project team by this following code but it it not update
###
ProjectWS.ProjectTeamDataSet dsTeam=new ProjectTeamDataSet();
for (int i=0;i<resourceName.Length;i++)
{
ResourceWS.ResourceDataSet.ResourcesRow
r=this.GetResourceData(resourceName);
dsTeam.ProjectTeam.AddProjectTeamRow(projectGuid, r.RES_UID,
Guid.NewGuid(), r.RES_NAME,
r.RES_BOOKING_TYPE, true, r.RES_TYPE, true);
}
Guid jobGuid = Guid.NewGuid();
Guid sessionGuid = Guid.NewGuid();
project.CheckOutProject(projectGuid, sessionGuid, "Auto");
System.Threading.Thread.Sleep(1000);
jobGuid = Guid.NewGuid();
project.QueueUpdateProjectTeam(jobGuid, sessionGuid,
projectGuid, dsTeam);
System.Threading.Thread.Sleep(10000);
jobGuid = Guid.NewGuid();
project.QueueCheckInProject(jobGuid, projectGuid, true,
sessionGuid, "Auto Check In");