Hi,
Hi Zhencheng,
<span style=“font-size: 9pt; font-family: “Courier New”;”>Project proj = <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:navy”>new <span style=“font-size: 9pt; font-family: “Courier New”;”>Project(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>"<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>ActualStartNA.xml"<span style=“font-size: 9pt; font-family: “Courier New”;”>);
java.util.Calendar tempDate = java.util.Calendar.getInstance();
tempDate.set(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>1<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>1<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>);
Date MinDate = tempDate.getTime();
Task task1 = proj.getRootTask().getChildren().getByUid(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:blue”>1<span style=“font-size: 9pt; font-family: “Courier New”;”>);
Date dt1 = task1.get(Tsk.<span style=“font-size:9.0pt;font-family:
“Courier New”;mso-fareast-font-family:“Times New Roman”;color:#660E7A”>ACTUAL_START<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>if<span style=“font-size: 9pt; font-family: “Courier New”;”>(dt1.toString().compareTo(MinDate.toString())
== <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>)
System.<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“NA”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>else
<span style=“font-size: 9pt; font-family: “Courier New”;”>System.<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(dt1.toString());
Task task2 = proj.getRootTask().getChildren().getByUid(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:blue”>2<span style=“font-size: 9pt; font-family: “Courier New”;”>);
Date dt2 = task2.get(Tsk.<span style=“font-size:9.0pt;font-family:
“Courier New”;mso-fareast-font-family:“Times New Roman”;color:#660E7A”>ACTUAL_START<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>if<span style=“font-size: 9pt; font-family: “Courier New”;”>(dt2.toString().compareTo(MinDate.toString())
== <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:blue”>0<span style=“font-size: 9pt; font-family: “Courier New”;”>)
System.<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“NA”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:
“Times New Roman”;color:navy”>else
<span style=“font-size: 9pt; font-family: “Courier New”;”>System.<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(dt2.toString());
Hi ,