forked from partkeepr/PartKeepr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgot to commit important file for the new project report :(
- Loading branch information
Felicitus
committed
Jan 4, 2012
1 parent
af40987
commit 956aa64
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Represents a project report list | ||
*/ | ||
Ext.define("PartKeepr.ProjectReportList", { | ||
extend: "Ext.data.Model", | ||
fields: [ | ||
{ id: 'id', name: 'id', type: 'int' }, | ||
{ name: 'name', type: 'string'}, | ||
{ name: 'description', type: 'string'}, | ||
{ name: 'user_id', type: 'int'}, | ||
{ name: 'amount', type: 'int', defaultValue: 1 } | ||
], | ||
hasMany: [ | ||
{ model: 'PartKeepr.ProjectPart', name: 'parts'}, | ||
{ model: 'PartKeepr.ProjectAttachment', name: 'attachments' } | ||
], | ||
proxy: PartKeepr.getRESTProxy("Project"), | ||
getRecordName: function () { | ||
return this.get("name"); | ||
} | ||
}); |