- 注册时间
- 2013-6-10
- 最后登录
- 2024-3-8
- 阅读权限
- 10
- 积分
- 883
- 精华
- 0
- 帖子
- 238
|
你好,我问一个问题就普通增加一行数据,
var newTask = project.newTask();
newTask.UID = data.ID;
newTask.Name = data.NAME;
newTask.ParentTaskUID = data.PARENTTASKUID;
newTask.ProjectUID = data.PROJECTUID;
newTask.Start = mini.formatDate(data.START, "yyyy-MM-dd");
newTask.Finish = mini.formatDate(data.FINISH, "yyyy-MM-dd");
newTask.Duration = data.DURATION;
newTask.PercentComplete = data.PERCENTCOMPLETE;
newTask.Principal = data.PRINCIPAL;
newTask.Principal_MC = data.PRINCIPAL_MC;
if (data.CONSTRAINTDATE != null) {
newTask.ConstraintDate = mini.formatDate(data.CONSTRAINTDATE, "yyyy-MM-dd");
}
else {
newTask.ConstraintDate = null;
}
newTask.ConstraintType = data.CONSTRAINTTYPE;
newTask.Critical = data.CRITICAL;
newTask.Manual = data.Manual;
newTask.Work = data.WORK;
newTask.OutlineLevel = data.OutlineLevel;
newTask.OutlineNumber = data.OutlineNumber;
newTask.Conflict = data.Conflict;
project.addTask(newTask);这样增加为什么Start和Finish会变。和我赋值的不一样。
|
|