| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Ext.define('saas.model.Base', {
- extend: 'Ext.data.Model',
- // requires: [
- // 'Ext.direct.RemotingProvider',
- // 'Ext.data.identifier.Uuid'
- // ],
- // fields: [
- // { name: 'url', calculate: function (data) {
- // return Ext.String.format('{0:lowercase}/{1}',
- // this.owner.entityName,
- // data.id);
- // }}
- // ],
- // schema: {
- // namespace: 'saas.model',
- // proxy: {
- // type: 'direct',
- // api: {
- // create: 'insert',
- // read: 'list',
- // update: 'update',
- // destroy: 'remove'
- // },
- // reader: {
- // type: 'json',
- // rootProperty: 'data',
- // messageProperty: 'message'
- // }
- // }
- // },
- // toUrl: function() {
- // return this.get('url');
- // },
- // toEditUrl: function() {
- // return this.toUrl() + '/edit';
- // }
- });
|