/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/
Ext.define('SlateAdmin.model.person.ProgressReport', {
    extend: 'Ext.data.Model',
    fields: [
        'AuthorUsername',
        'Subject',
        {
            name: 'ID',
            type: 'integer',
            useNull: true,
            defaultValue: null
        }, {
            name: 'Class',
            defaultValue: 'Slate\\Progress\\Note'
        }, {
            name: 'Type',
            depends: [
                'Class'
            ],
            calculate: function (data) {
                switch (data.Class) {
                    case 'Slate\\Progress\\SectionInterimReport':
                        return 'InterimReport';
                    case 'Slate\\Progress\\SectionTermReport':
                    case 'NarrativeReport':
                        return 'TermReport';

                    case 'Slate\\Progress\\Note':
                    default:
                        return 'ProgressNote';
                    // case 'Standards':
                    //     return 'Standard';
                }
            }
        }, {
            name: 'Date',
            type: 'date',
            dateFormat: 'Y-m-d H:i:s'
        }, {
            name: 'StudentID',
            type: 'integer'
        }, {
            name: 'CourseSectionID',
            type: 'integer'
        }, {
            name: 'TermID',
            type: 'integer'
        }
    ],
    proxy: {
        type: 'slaterecords',
        url: '/progress'
    }
});

@@ -1535,16 +1535,78 @@
 rogress'
+,%0A        extraParams: %7B%0A            summarize: true%0A        %7D
 %0A    %7D%0A%7D

Add param to return summarized data