erp_app 3.1.10 → 3.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/erp_app/desktop/scaffold/base_controller.rb +1 -0
- data/app/controllers/erp_app/desktop/user_management/base_controller.rb +8 -10
- data/app/controllers/erp_app/organizer/crm/base_controller.rb +104 -88
- data/app/mailers/crm_mailer.rb +9 -0
- data/app/views/crm_mailer/send_message.html.erb +9 -0
- data/app/views/erp_app/desktop/base/index.erb +221 -213
- data/app/views/erp_app/mobile/base/index.erb +1 -0
- data/app/views/erp_app/organizer/base/index.erb +51 -43
- data/lib/erp_app/version.rb +1 -1
- data/lib/generators/organizer_application/templates/controllers/controller_template.erb +1 -1
- data/lib/generators/organizer_application/templates/public/base.js.erb +2 -2
- data/public/javascripts/erp_app/desktop/applications/scaffold/models_tree_panel.js +19 -0
- data/public/javascripts/erp_app/desktop/applications/user_management/module.js +432 -418
- data/public/javascripts/erp_app/desktop/applications/user_management/user_application_mgt_panel.js +1 -1
- data/public/javascripts/erp_app/login/window.js +2 -1
- data/public/javascripts/erp_app/organizer/applications/crm/contact_mechanism_grid.js +511 -389
- data/public/javascripts/erp_app/organizer/applications/crm/party_grid.js +1 -1
- data/public/javascripts/erp_app/shared/configuration/configuration_form.js +238 -262
- data/public/javascripts/erp_app/shared/configuration/configuration_panel.js +103 -104
- data/public/stylesheets/erp_app/mobile/mobile.css +6 -6
- metadata +5 -89
- data/spec/dummy/db/data_migrations/20130422163128_add_usd_currency.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20130422163129_add_iso_codes.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20130422163130_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -21
- data/spec/dummy/db/data_migrations/20130422163131_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20130422163132_add_guid_to_instances.erp_base_erp_svcs.rb +0 -10
- data/spec/dummy/db/data_migrations/20130422163133_create_capability_scope_types.erp_tech_svcs.rb +0 -15
- data/spec/dummy/db/data_migrations/20130422163134_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
- data/spec/dummy/db/data_migrations/20130422163135_setup_audit_log_types.erp_tech_svcs.rb +0 -22
- data/spec/dummy/db/data_migrations/20130422163136_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
- data/spec/dummy/db/data_migrations/20130422163137_note_capabilities.erp_tech_svcs.rb +0 -24
- data/spec/dummy/db/data_migrations/20130422163138_erp_app_setup.erp_app.rb +0 -252
- data/spec/dummy/db/data_migrations/20130422163139_update_preferences.erp_app.rb +0 -53
- data/spec/dummy/db/data_migrations/20130422163140_create_desktop_app_audit_log_viewer.erp_app.rb +0 -24
- data/spec/dummy/db/data_migrations/20130422163141_add_file_manager_application.erp_app.rb +0 -32
- data/spec/dummy/db/data_migrations/20130422163142_add_default_capabilities.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20130422163143_add_new_contact_widgets.erp_app.rb +0 -42
- data/spec/dummy/db/data_migrations/20130422163144_add_userinfo_widget.erp_app.rb +0 -29
- data/spec/dummy/db/data_migrations/20130422163145_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
- data/spec/dummy/db/data_migrations/20130422163146_create_user_management_mobile_application.erp_app.rb +0 -17
- data/spec/dummy/db/data_migrations/20130422163147_create_configuration_management_desktop_application.erp_app.rb +0 -27
- data/spec/dummy/db/data_migrations/20130422163148_create_job_tracker_desktop_application.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20130422163149_created_tracked_jobs.erp_app.rb +0 -15
- data/spec/dummy/db/data_migrations/20130422163150_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
- data/spec/dummy/db/data_migrations/20130422163151_create_security_management_desktop_application.erp_app.rb +0 -29
- data/spec/dummy/db/data_migrations/20130422163152_add_job_tracker_mobile_app.erp_app.rb +0 -17
- data/spec/dummy/db/migrate/20130422163121_base_erp_services.erp_base_erp_svcs.rb +0 -486
- data/spec/dummy/db/migrate/20130422163122_add_txn_status.erp_base_erp_svcs.rb +0 -37
- data/spec/dummy/db/migrate/20130422163123_upgrade_compass_ae_instances.erp_base_erp_svcs.rb +0 -34
- data/spec/dummy/db/migrate/20130422163124_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb +0 -17
- data/spec/dummy/db/migrate/20130422163125_add_long_lat_to_address.erp_base_erp_svcs.rb +0 -16
- data/spec/dummy/db/migrate/20130422163126_base_tech_services.erp_tech_svcs.rb +0 -271
- data/spec/dummy/db/migrate/20130422163127_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
- data/spec/dummy/db/migrate/20130422163128_create_groups.erp_tech_svcs.rb +0 -19
- data/spec/dummy/db/migrate/20130422163129_upgrade_security.erp_tech_svcs.rb +0 -54
- data/spec/dummy/db/migrate/20130422163130_upgrade_security2.erp_tech_svcs.rb +0 -275
- data/spec/dummy/db/migrate/20130422163131_add_queue_to_delayed_jobs.erp_tech_svcs.rb +0 -14
- data/spec/dummy/db/migrate/20130422163132_base_app_framework.erp_app.rb +0 -276
- data/spec/dummy/db/migrate/20130422163133_add_job_tracker.erp_app.rb +0 -20
- data/spec/dummy/db/migrate/20130422163134_update_mobile_application.erp_app.rb +0 -28
- data/spec/dummy/db/schema.rb +0 -883
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/adam.log +0 -1
- data/spec/dummy/log/spec.log +0 -113709
@@ -1,278 +1,254 @@
|
|
1
1
|
Ext.regModel('Compass.ErpApp.Shared.ConfigurationOption', {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
},
|
7
|
-
{
|
8
|
-
type: 'string',
|
9
|
-
name: 'value'
|
10
|
-
},
|
11
|
-
{
|
12
|
-
type: 'string',
|
13
|
-
name: 'comment'
|
14
|
-
}
|
15
|
-
]
|
16
|
-
});
|
17
|
-
|
18
|
-
Ext.define("Compass.ErpApp.Shared.ConfigurationForm",{
|
19
|
-
extend:"Ext.form.Panel",
|
20
|
-
alias:"widget.sharedconfigurationform",
|
21
|
-
configurationItems:null,
|
22
|
-
autoScroll:true,
|
23
|
-
bodyStyle:'padding:5px 5px 0',
|
24
|
-
frame:true,
|
25
|
-
alreadySetup:false,
|
26
|
-
border:false,
|
27
|
-
fieldDefaults: {
|
28
|
-
labelAlign: 'top'
|
29
|
-
},
|
30
|
-
// layout: "table",
|
31
|
-
// items:[{
|
32
|
-
// itemId:'leftContainer',
|
33
|
-
// xtype: 'container',
|
34
|
-
// style: {padding:'5px','vertical-align':'top'},
|
35
|
-
// columnWidth:.5,
|
36
|
-
// layout: 'anchor'
|
37
|
-
// },{
|
38
|
-
// itemId:'rightContainer',
|
39
|
-
// xtype: 'container',
|
40
|
-
// style: {padding:'5px','vertical-align':'top'},
|
41
|
-
// columnWidth:.5,
|
42
|
-
// layout: 'anchor'
|
43
|
-
// }],
|
44
|
-
buttonAlign:'center',
|
45
|
-
buttons:[
|
46
|
-
{
|
47
|
-
text:'Update',
|
48
|
-
handler:function(button){
|
49
|
-
var self = button.findParentByType('sharedconfigurationform');
|
50
|
-
self.getForm().submit({
|
51
|
-
reset:false,
|
52
|
-
waitMsg:'Updating configuration...',
|
53
|
-
success:function(form, action){
|
54
|
-
var response = Ext.decode(action.response.responseText);
|
55
|
-
var result = self.fireEvent('afterUpdate', self, response.configurationItems, action.response);
|
56
|
-
if(result !== false){
|
57
|
-
Ext.Msg.alert('Success', 'Configuration Saved');
|
58
|
-
}
|
2
|
+
fields: [
|
3
|
+
{
|
4
|
+
type: 'string',
|
5
|
+
name: 'description'
|
59
6
|
},
|
60
|
-
|
61
|
-
|
62
|
-
|
7
|
+
{
|
8
|
+
type: 'string',
|
9
|
+
name: 'value'
|
10
|
+
},
|
11
|
+
{
|
12
|
+
type: 'string',
|
13
|
+
name: 'comment'
|
63
14
|
}
|
64
|
-
|
65
|
-
|
66
|
-
}],
|
67
|
-
|
68
|
-
wait : function(msg){
|
69
|
-
this.waitMsg = Ext.MessageBox.show({
|
70
|
-
msg: msg || 'Processing your request, please wait...',
|
71
|
-
progressText: 'Working...',
|
72
|
-
width:300,
|
73
|
-
wait:true,
|
74
|
-
waitConfig: {
|
75
|
-
interval:200
|
76
|
-
},
|
77
|
-
iconCls:'icon-gear'
|
78
|
-
});
|
79
|
-
|
80
|
-
},
|
15
|
+
]
|
16
|
+
});
|
81
17
|
|
82
|
-
|
83
|
-
|
84
|
-
|
18
|
+
Ext.define("Compass.ErpApp.Shared.ConfigurationForm", {
|
19
|
+
extend: "Ext.form.Panel",
|
20
|
+
alias: "widget.sharedconfigurationform",
|
21
|
+
configurationItems: null,
|
22
|
+
autoScroll: true,
|
23
|
+
bodyStyle: 'padding:5px 5px 0',
|
24
|
+
frame: true,
|
25
|
+
alreadySetup: false,
|
26
|
+
border: false,
|
27
|
+
fieldDefaults: {
|
28
|
+
labelAlign: 'top'
|
29
|
+
},
|
30
|
+
// layout: "table",
|
31
|
+
// items:[{
|
32
|
+
// itemId:'leftContainer',
|
33
|
+
// xtype: 'container',
|
34
|
+
// style: {padding:'5px','vertical-align':'top'},
|
35
|
+
// columnWidth:.5,
|
36
|
+
// layout: 'anchor'
|
37
|
+
// },{
|
38
|
+
// itemId:'rightContainer',
|
39
|
+
// xtype: 'container',
|
40
|
+
// style: {padding:'5px','vertical-align':'top'},
|
41
|
+
// columnWidth:.5,
|
42
|
+
// layout: 'anchor'
|
43
|
+
// }],
|
44
|
+
buttonAlign: 'center',
|
45
|
+
buttons: [
|
46
|
+
{
|
47
|
+
text: 'Update',
|
48
|
+
handler: function (button) {
|
49
|
+
var self = button.findParentByType('sharedconfigurationform');
|
50
|
+
self.getForm().submit({
|
51
|
+
reset: false,
|
52
|
+
waitMsg: 'Updating configuration...',
|
53
|
+
success: function (form, action) {
|
54
|
+
var response = Ext.decode(action.response.responseText);
|
55
|
+
var result = self.fireEvent('afterUpdate', self, response.configurationItems, action.response);
|
56
|
+
if (result !== false) {
|
57
|
+
Ext.Msg.alert('Success', 'Configuration Saved');
|
58
|
+
}
|
59
|
+
},
|
60
|
+
failure: function (form, action) {
|
61
|
+
var message = 'Error saving configuraiton.'
|
62
|
+
Ext.Msg.alert("Status", message);
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}
|
66
|
+
}
|
67
|
+
],
|
85
68
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
this.wait('Loading configuration...');
|
94
|
-
Ext.Ajax.request({
|
95
|
-
url:url,
|
96
|
-
success: function(responseObject) {
|
97
|
-
self.clearWait();
|
98
|
-
var response = Ext.decode(responseObject.responseText);
|
99
|
-
self.buildConfigurationForm(response.configurationItemTypes)
|
100
|
-
},
|
101
|
-
failure: function() {
|
102
|
-
self.clearWait();
|
103
|
-
Ext.Msg.alert('Status', 'Error setting up configruation.');
|
104
|
-
}
|
105
|
-
});
|
106
|
-
},
|
69
|
+
setup: function () {
|
70
|
+
var self = this;
|
71
|
+
var url = '/erp_app/shared/configuration/setup/' + self.initialConfig.configurationId
|
72
|
+
if (!Compass.ErpApp.Utility.isBlank(self.initialConfig.categoryId)) {
|
73
|
+
url += '/' + self.initialConfig.categoryId;
|
74
|
+
}
|
75
|
+
this.disable();
|
107
76
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
if(configurationItemType.allowUserDefinedOptions){
|
117
|
-
field = Ext.create('Ext.form.field.Text',{
|
118
|
-
itemId:configurationItemType.internalIdentifier + '_id',
|
119
|
-
fieldLabel:configurationItemType.description,
|
120
|
-
name:configurationItemType.internalIdentifier,
|
121
|
-
iconCls:'icon-add',
|
122
|
-
width:150
|
123
|
-
});
|
124
|
-
}
|
125
|
-
else
|
126
|
-
{
|
127
|
-
var store = Ext.create('Ext.data.Store',{data:[], model:'Compass.ErpApp.Shared.ConfigurationOption'});
|
128
|
-
Ext.each(configurationItemType.configurationOptions,function(option){
|
129
|
-
store.add({
|
130
|
-
value:option.internalIdentifier,
|
131
|
-
description:option.description,
|
132
|
-
comment:option.comment
|
133
|
-
});
|
134
|
-
});
|
135
|
-
if(configurationItemType.isMultiOptional){
|
136
|
-
field = Ext.create('Ext.ux.form.MultiSelect',{
|
137
|
-
itemId:configurationItemType.internalIdentifier + '_id',
|
138
|
-
fieldLabel:configurationItemType.description,
|
139
|
-
name:configurationItemType.internalIdentifier,
|
140
|
-
displayField:'description',
|
141
|
-
valueField:'value',
|
142
|
-
width:150,
|
143
|
-
queryMode: 'local',
|
144
|
-
height:100,
|
145
|
-
listConfig: {
|
146
|
-
getInnerTpl: function() {
|
147
|
-
return '<div data-qtip="{comment}">{description}</div>';
|
148
|
-
}
|
149
|
-
},
|
150
|
-
store:store
|
151
|
-
});
|
152
|
-
}
|
153
|
-
else{
|
154
|
-
field = Ext.create('Ext.form.field.ComboBox',{
|
155
|
-
editable:false,
|
156
|
-
forceSelection:true,
|
157
|
-
itemId:configurationItemType.internalIdentifier + '_id',
|
158
|
-
fieldLabel:configurationItemType.description,
|
159
|
-
name:configurationItemType.internalIdentifier,
|
160
|
-
width:150,
|
161
|
-
displayField:'description',
|
162
|
-
valueField:'value',
|
163
|
-
queryMode: 'local',
|
164
|
-
listConfig: {
|
165
|
-
getInnerTpl: function() {
|
166
|
-
return '<div data-qtip="{comment}">{description}</div>';
|
167
|
-
}
|
168
|
-
},
|
169
|
-
store:store
|
170
|
-
});
|
77
|
+
Ext.Ajax.request({
|
78
|
+
url: url,
|
79
|
+
success: function (responseObject) {
|
80
|
+
var response = Ext.decode(responseObject.responseText);
|
81
|
+
self.buildConfigurationForm(response.configurationItemTypes)
|
82
|
+
},
|
83
|
+
failure: function () {
|
84
|
+
Ext.Msg.alert('Status', 'Error setting up configruation.');
|
171
85
|
}
|
172
|
-
}
|
173
|
-
if(!configurationItemType.defaultOptions.empty()){
|
174
|
-
field.value = configurationItemType.defaultOptions.collect('value');
|
175
|
-
}
|
176
|
-
self.add(field);
|
177
86
|
});
|
178
|
-
|
179
|
-
self.alreadySetup = true;
|
180
|
-
self.doLayout();
|
181
|
-
}
|
182
|
-
self.loadConfigurationItems();
|
183
|
-
},
|
87
|
+
},
|
184
88
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
89
|
+
buildConfigurationForm: function (configurationItemTypes) {
|
90
|
+
var self = this;
|
91
|
+
if (!self.alreadySetup) {
|
92
|
+
var result = this.fireEvent('beforeAddItemsToForm', self, configurationItemTypes);
|
93
|
+
if (result !== false) {
|
94
|
+
Ext.each(configurationItemTypes, function (configurationItemType) {
|
95
|
+
var field = null;
|
96
|
+
if (configurationItemType.allowUserDefinedOptions) {
|
97
|
+
field = Ext.create('Ext.form.field.Text', {
|
98
|
+
itemId: configurationItemType.internalIdentifier + '_id',
|
99
|
+
fieldLabel: configurationItemType.description,
|
100
|
+
name: configurationItemType.internalIdentifier,
|
101
|
+
iconCls: 'icon-add',
|
102
|
+
width: 150
|
103
|
+
});
|
104
|
+
}
|
105
|
+
else {
|
106
|
+
var store = Ext.create('Ext.data.Store', {data: [], model: 'Compass.ErpApp.Shared.ConfigurationOption'});
|
107
|
+
Ext.each(configurationItemType.configurationOptions, function (option) {
|
108
|
+
store.add({
|
109
|
+
value: option.internalIdentifier,
|
110
|
+
description: option.description,
|
111
|
+
comment: option.comment
|
112
|
+
});
|
113
|
+
});
|
114
|
+
if (configurationItemType.isMultiOptional) {
|
115
|
+
field = Ext.create('Ext.ux.form.MultiSelect', {
|
116
|
+
itemId: configurationItemType.internalIdentifier + '_id',
|
117
|
+
fieldLabel: configurationItemType.description,
|
118
|
+
name: configurationItemType.internalIdentifier,
|
119
|
+
displayField: 'description',
|
120
|
+
valueField: 'value',
|
121
|
+
width: 150,
|
122
|
+
queryMode: 'local',
|
123
|
+
height: 100,
|
124
|
+
listConfig: {
|
125
|
+
getInnerTpl: function () {
|
126
|
+
return '<div data-qtip="{comment}">{description}</div>';
|
127
|
+
}
|
128
|
+
},
|
129
|
+
store: store
|
130
|
+
});
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
field = Ext.create('Ext.form.field.ComboBox', {
|
134
|
+
editable: false,
|
135
|
+
forceSelection: true,
|
136
|
+
itemId: configurationItemType.internalIdentifier + '_id',
|
137
|
+
fieldLabel: configurationItemType.description,
|
138
|
+
name: configurationItemType.internalIdentifier,
|
139
|
+
width: 150,
|
140
|
+
displayField: 'description',
|
141
|
+
valueField: 'value',
|
142
|
+
queryMode: 'local',
|
143
|
+
listConfig: {
|
144
|
+
getInnerTpl: function () {
|
145
|
+
return '<div data-qtip="{comment}">{description}</div>';
|
146
|
+
}
|
147
|
+
},
|
148
|
+
store: store
|
149
|
+
});
|
150
|
+
}
|
151
|
+
}
|
152
|
+
if (!configurationItemType.defaultOptions.empty()) {
|
153
|
+
field.value = configurationItemType.defaultOptions.collect('value');
|
154
|
+
}
|
155
|
+
self.add(field);
|
156
|
+
});
|
157
|
+
}
|
158
|
+
self.alreadySetup = true;
|
159
|
+
self.doLayout();
|
160
|
+
}
|
161
|
+
self.loadConfigurationItems();
|
162
|
+
},
|
163
|
+
|
164
|
+
loadConfigurationItems: function () {
|
165
|
+
var self = this;
|
166
|
+
var url = '/erp_app/shared/configuration/load/' + self.initialConfig.configurationId
|
167
|
+
if (!Compass.ErpApp.Utility.isBlank(self.initialConfig.categoryId)) {
|
168
|
+
url += '/' + self.initialConfig.categoryId;
|
169
|
+
}
|
205
170
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
var id = '#' + configruationItem.configruationItemType.internalIdentifier + '_id';
|
215
|
-
var comp = self.query(id).first();
|
216
|
-
if(configruationItem.configruationItemType.allowUserDefinedOptions){
|
217
|
-
comp.setValue(configruationItem.configurationOptions.first().value);
|
218
|
-
}
|
219
|
-
else if(configruationItem.configruationItemType.isMultiOptional){
|
220
|
-
var values = configruationItem.configurationOptions.collect('internalIdentifier');
|
221
|
-
comp.setValue(values);
|
222
|
-
}
|
223
|
-
else{
|
224
|
-
if(!configruationItem.configurationOptions.empty()){
|
225
|
-
comp.setValue(configruationItem.configurationOptions.first().internalIdentifier)
|
171
|
+
Ext.Ajax.request({
|
172
|
+
url: url,
|
173
|
+
success: function (responseObject) {
|
174
|
+
var response = Ext.decode(responseObject.responseText);
|
175
|
+
self.setConfigurationItems(response.configurationItems);
|
176
|
+
},
|
177
|
+
failure: function () {
|
178
|
+
Ext.Msg.alert('Status', 'Error loading configuration.');
|
226
179
|
}
|
227
|
-
|
180
|
+
});
|
181
|
+
},
|
182
|
+
|
183
|
+
setConfigurationItems: function (configurationItems) {
|
184
|
+
var self = this;
|
185
|
+
self.configurationItems = configurationItems
|
186
|
+
var result = this.fireEvent('beforeSetConfigurationItems', self, configurationItems);
|
187
|
+
if (result !== false) {
|
188
|
+
Ext.each(configurationItems, function (configruationItem) {
|
189
|
+
if (!configruationItem.configurationOptions.empty()) {
|
190
|
+
var id = '#' + configruationItem.configruationItemType.internalIdentifier + '_id';
|
191
|
+
var comp = self.query(id).first();
|
192
|
+
if (configruationItem.configruationItemType.allowUserDefinedOptions) {
|
193
|
+
comp.setValue(configruationItem.configurationOptions.first().value);
|
194
|
+
}
|
195
|
+
else if (configruationItem.configruationItemType.isMultiOptional) {
|
196
|
+
var values = configruationItem.configurationOptions.collect('internalIdentifier');
|
197
|
+
comp.setValue(values);
|
198
|
+
}
|
199
|
+
else {
|
200
|
+
if (!configruationItem.configurationOptions.empty()) {
|
201
|
+
comp.setValue(configruationItem.configurationOptions.first().internalIdentifier)
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
});
|
228
206
|
}
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
"afterUpdate"
|
266
|
-
);
|
207
|
+
this.fireEvent('afterSetConfigurationItems', self, configurationItems);
|
208
|
+
self.enable();
|
209
|
+
},
|
210
|
+
|
211
|
+
initComponent: function () {
|
212
|
+
this.addEvents(
|
213
|
+
/**
|
214
|
+
* @event beforeAddItemsToForm
|
215
|
+
* Fired before loaded configuration item types a added to form before layout is called
|
216
|
+
* if false is returned items are not added to form
|
217
|
+
* @param {FormPanel} this
|
218
|
+
* @param {Array} array of configurationItemTypes
|
219
|
+
*/
|
220
|
+
"beforeAddItemsToForm",
|
221
|
+
/**
|
222
|
+
* @event beforeSetConfigurationItems
|
223
|
+
* Fired brefore fields are set with configuration options
|
224
|
+
* @param {FormPanel} this
|
225
|
+
* @param {Array} array of configurationItems
|
226
|
+
*/
|
227
|
+
"beforeSetConfigurationItems",
|
228
|
+
/**
|
229
|
+
* @event afterSetConfigurationItems
|
230
|
+
* Fired after fields have been set with configuration options
|
231
|
+
* @param {FormPanel} this
|
232
|
+
* @param {Array} array of configurationItems
|
233
|
+
*/
|
234
|
+
"afterSetConfigurationItems",
|
235
|
+
/**
|
236
|
+
* @event afterUpdate
|
237
|
+
* Fired after update of configuration items
|
238
|
+
* @param {FormPanel} this
|
239
|
+
* @param {Array} array of updated configurationItems
|
240
|
+
*/
|
241
|
+
"afterUpdate"
|
242
|
+
);
|
267
243
|
|
268
|
-
|
269
|
-
|
244
|
+
this.callParent(arguments);
|
245
|
+
},
|
270
246
|
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
247
|
+
constructor: function (config) {
|
248
|
+
config = Ext.apply({
|
249
|
+
url: '/erp_app/shared/configuration/update/' + config.configurationId
|
250
|
+
}, config);
|
275
251
|
|
276
|
-
|
277
|
-
|
252
|
+
this.callParent([config]);
|
253
|
+
}
|
278
254
|
});
|