在Acumatica中,如果找不到项目任务ID的项,可以通过以下代码示例解决:
using PX.Objects.PM;
public string GetProjectTaskID(string projectTaskDescription)
{
PMTask projectTask = PXSelect>>>
.Select(this, projectTaskDescription);
if (projectTask != null)
{
return projectTask.TaskID;
}
return null;
}
using PX.Objects.PM;
public string GetProjectTaskID(string projectID, string projectTaskDescription)
{
PMTask projectTask = PXSelect>,
And>>>>
.Select(this, projectID, projectTaskDescription);
if (projectTask != null)
{
return projectTask.TaskID;
}
return null;
}
using PX.Objects.PM;
public string GetProjectTaskIDByCD(string projectTaskCD)
{
PMTask projectTask = PXSelect>>>
.Select(this, projectTaskCD);
if (projectTask != null)
{
return projectTask.TaskID;
}
return null;
}
请根据实际情况选择适合的代码示例来解决问题。