var TaskModel = Backbone.Model.extend({
defaults: {
name: 'New task',
description: '',
complete: 0, // in percents
sortindex: 0,
depend: undefined, // id of task
status: 110, Select List in properties modal (configdata)
health: 21, Select List in properties modal (configdata)
start: new Date(),
end: new Date(),
ProjectRef : params.project,
WBS_ID : params.profile,
color: '#0090d3', // user color
reportable: '', Check box in properties modal (true/false)
parentid: 0,
sitekey: params.sitekey,
// new items
wo: 2 Select List in properties modal (configdata)
milestone: Check box in properties modal (true/false)
deliverable: Check box in properties modal (true/false)
financial: Check box in properties modal (true/false)
timesheets: Check box in properties modal (true/false)
acttimesheets: Check box in properties modal (true/false)
wbstsid:
// can remove I think ? (they are not used)
aType: '', // can remove
resources: {}, // this will be a separate json file linked by ID to a task (1 Task -> Many Resources)
action: '',
active : true,
// app params
hidden : false,
collapsed : false
},
var TaskModel = Backbone.Model.extend({ defaults: { name: 'New task', description: '', complete: 0, // in percents
sortindex: 0, depend: undefined, // id of task status: 110, Select List in properties modal (configdata) health: 21, Select List in properties modal (configdata) start: new Date(), end: new Date(), ProjectRef : params.project, WBS_ID : params.profile, color: '#0090d3', // user color reportable: '', Check box in properties modal (true/false) parentid: 0, sitekey: params.sitekey,