D
Danny Raharja
Dear all,
I'm currently trying to edit an actual work value from an assignment. I
managed to edit the actual work value (hour) only if the new value is bigger
than previous value. If I change the value become smaller than the previous
one, the actual work doesn't change. What the problem is? Did I took a wrong
procedure to change the actual work?
Below is my code to change the actual work.
-------------------------------------------------------------------------------
changeXml.AppendFormat("<Changes><Proj ID=\"{0}\">", projectUid.ToString());
changeXml.AppendFormat("<Assn ID=\"{0}\">", assn.ToString());
changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",
"251658246", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));
changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",
"251658250", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));
changeXml.Append("</Assn></Proj></Changes>");
---------------------------------------------------------------------------------
Regards,
Danny
I'm currently trying to edit an actual work value from an assignment. I
managed to edit the actual work value (hour) only if the new value is bigger
than previous value. If I change the value become smaller than the previous
one, the actual work doesn't change. What the problem is? Did I took a wrong
procedure to change the actual work?
Below is my code to change the actual work.
-------------------------------------------------------------------------------
changeXml.AppendFormat("<Changes><Proj ID=\"{0}\">", projectUid.ToString());
changeXml.AppendFormat("<Assn ID=\"{0}\">", assn.ToString());
changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",
"251658246", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));
changeXml.AppendFormat("<PeriodChange PID=\"{0}\" Start= \"{2}\"
End=\"{3}\">{1}</PeriodChange>",
"251658250", 6 * 10000 * hour, startDate.ToString("s"),
endDate.ToString("s"));
changeXml.Append("</Assn></Proj></Changes>");
---------------------------------------------------------------------------------
Regards,
Danny