Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Павел Резуненко
/
MTAweb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9514aee0
authored
Mar 27, 2013
by
Павел Резуненко
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Удален
1 parent
f3bb6197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
1031 deletions
public/app/model/model.js
public/app/store/store.js
public/app/model/model.js
deleted
100644 → 0
View file @
f3bb619
Ext
.
define
(
'MyMA.model.Users'
,
{
extend
:
'Ext.data.Model'
,
fields
:
[{
name
:
'id'
,
type
:
'int'
},
{
name
:
'name'
,
type
:
'string'
},
{
name
:
'login'
,
type
:
'string'
},
{
name
:
'passwd'
,
type
:
'string'
},
{
name
:
'uid'
,
type
:
'int'
,
defaultValue
:
8
},
{
name
:
'gid'
,
type
:
'int'
,
defaultValue
:
12
},
{
name
:
'maildir'
,
type
:
'string'
},
{
name
:
'smtp'
,
type
:
'int'
},
{
name
:
'imap'
,
type
:
'int'
},
{
name
:
'quota'
,
type
:
'int'
,
defaultValue
:
10000000
},
{
name
:
'manager'
,
type
:
'int'
}],
validations
:
[{
type
:
'format'
,
field
:
'maildir'
,
matcher
:
/^
\/[
a-z
]\.
ru
\/[
a-z_0-9
]\/
Maildir
\/
$/
}],
proxy
:
{
type
:
'rest'
,
url
:
Ext
.
Ajax
.
getRestUrl
(
'api/user'
),
reader
:
{
type
:
'json'
,
root
:
'results'
},
writer
:
{
type
:
'json'
,
allowSingle
:
true
}
}
});
Ext
.
define
(
'MyMA.model.Brief'
,
{
extend
:
'Ext.data.Model'
,
fields
:
[
'id'
,
'name'
],
proxy
:
{
type
:
'memory'
,
reader
:
{
type
:
'json'
,
root
:
'results'
}
}
});
Ext
.
define
(
'MyMA.model.Aliases'
,
{
extend
:
'Ext.data.Model'
,
fields
:
[{
name
:
'id'
,
type
:
'int'
},
{
name
:
'alias'
,
type
:
'string'
},
{
name
:
'recipient'
,
type
:
'string'
},
{
name
:
'comment'
,
type
:
'string'
}],
proxy
:
{
type
:
'rest'
,
url
:
Ext
.
Ajax
.
getRestUrl
(
'api'
,
'alias'
),
reader
:
{
type
:
'json'
,
root
:
'results'
,
totalProperty
:
'total'
},
writer
:
{
type
:
'json'
,
allowSingle
:
true
}
}
});
Ext
.
define
(
'MyMA.model.Transports'
,
{
extend
:
'Ext.data.Model'
,
fields
:
[{
name
:
'id'
,
type
:
'int'
},
{
name
:
'domain'
,
type
:
'string'
},
{
name
:
'transport'
,
type
:
'string'
}],
proxy
:
{
type
:
'rest'
,
url
:
Ext
.
Ajax
.
getRestUrl
(
'api'
,
'transport'
),
reader
:
{
type
:
'json'
,
root
:
'results'
,
totalProperty
:
'total'
},
writer
:
{
type
:
'json'
,
allowSingle
:
true
}
}
});
public/app/store/store.js
deleted
100644 → 0
View file @
f3bb619
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Transports'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Transports'
,
model
:
'MyMA.model.Transports'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Ext
.
define
(
'MyMA.store.Users'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Users'
,
model
:
'MyMA.model.Users'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Programs'
,
{
extend
:
'Ext.data.ArrayStore'
,
fields
:
[
'id'
,
'name'
,
'state'
,
'item'
,
'title'
,
'control'
],
data
:
[],
/**
* Get item record from process storage
* @param object
*/
getProccess
:
function
(
data
)
{
var
data
=
data
||
{
property
:
'id'
,
value
:
null
},
idx
=
-
1
;
if
((
idx
=
this
.
find
(
data
.
property
,
data
.
value
,
0
,
false
,
true
,
true
))
>
-
1
)
{
return
this
.
getAt
(
idx
);
}
return
null
;
}
});
Ext
.
define
(
'MyMA.store.Aliases'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Aliases'
,
model
:
'MyMA.model.Aliases'
,
groupField
:
'alias'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Transports'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Transports'
,
model
:
'MyMA.model.Transports'
,
remoteSort
:
true
,
pageSize
:
100
});
Ext
.
define
(
'MyMA.store.Choice'
,
{
extend
:
'Ext.data.Store'
,
requires
:
'MyMA.model.Brief'
,
model
:
'MyMA.model.Brief'
,
data
:
[{
id
:
0
,
name
:
'No'
},
{
id
:
1
,
name
:
'Yes'
}]
});
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment