Ext.define('TradePortal.store.Statements', {
    extend: 'Ext.data.Store',
    model: 'TradePortal.model.Statements',
    storeId: 'Statements',
    pageSize: 1000,
    proxy: {
        type: 'jsonajax',
        url: BASE_URL + '/fluid/FluidAppServerProxy?ipApi=presenter&ipService=Frameworks.Interfaces.Mobile.TradePortal&ipFunction=getStatementList',
        reader: {
            type: 'json',
            root: 'dataset.StatementList'
        }
    },
    listeners: {
        load: {
            fn: function (store, records, options) {
                Ext.getCmp('viewport').setLoading(false);
            }
        }
    }
});
