백분율 계산
resource 클래스에 의해 노출 된 백분율 Complete 속성은 리소스가 완료 한 작업 백분율을 관리하는 데 사용됩니다. WorksComplete 속성 백분율은 리소스가 완료 한 모든 과제에서 작업의 백분율을 나타냅니다. 정수 데이터 유형을 지원합니다.
Aspose.Tasks로 백분율 받기 다음 예는 Aspose.Tasks 를 사용하여 모든 과제에 대해 리소스에 의해 작업 백분율을 얻는 방법을 보여줍니다.
1// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
2// The path to the documents directory.
3String dataDir = Utils.getDataDir(PercentageCalculations.class);
4Project prj = new Project(dataDir + "project5.mpp");
5for (Resource res : prj.getResources()) {
6 if (res.get(Rsc.NAME) != null) {
7 System.out.println(res.get(Rsc.PERCENT_WORK_COMPLETE));
8 }
9}