Added Translation Labels to ExtJs

This commit is contained in:
safan
2011-02-12 13:09:49 +00:00
parent c06e253974
commit 3817061c47
5 changed files with 502 additions and 496 deletions

View File

@@ -44,14 +44,14 @@ ProcessMapContext.prototype.editProcess= function()
width: 450, width: 450,
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
fieldLabel: 'Title', fieldLabel: _('ID_TITLE'),
name: 'PRO_TITLE', name: 'PRO_TITLE',
width: 300, width: 300,
//value: editProcessData.PRO_TITLE, //value: editProcessData.PRO_TITLE,
allowBlank:false allowBlank:false
},{ },{
xtype: 'textarea', xtype: 'textarea',
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
name: 'PRO_DESCRIPTION', name: 'PRO_DESCRIPTION',
//value: editProcessData.PRO_DESCRIPTION, //value: editProcessData.PRO_DESCRIPTION,
width: 300, width: 300,
@@ -65,7 +65,7 @@ ProcessMapContext.prototype.editProcess= function()
forceSelection: true, forceSelection: true,
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
fieldLabel: 'Calendar', fieldLabel: _('ID_CALENDAR'),
name: 'PRO_CALENDAR', name: 'PRO_CALENDAR',
hiddenName: 'calendar', hiddenName: 'calendar',
displayField: 'name', displayField: 'name',
@@ -85,7 +85,7 @@ ProcessMapContext.prototype.editProcess= function()
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Category', fieldLabel: _('ID_CATEGORY'),
name: 'PRO_CATEGORY', name: 'PRO_CATEGORY',
hiddenName: 'category', hiddenName: 'category',
displayField: 'CATEGORY_NAME', displayField: 'CATEGORY_NAME',
@@ -97,13 +97,13 @@ ProcessMapContext.prototype.editProcess= function()
}) })
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: 'Debug', fieldLabel: _('ID_PRO_DEBUG'),
name: 'PRO_DEBUG', name: 'PRO_DEBUG',
checked:workflow.checkdebug checked:workflow.checkdebug
} }
] ]
}],buttons: [{ }],buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(form, action){ handler: function(form, action){
//waitMsg: 'Saving...', // Wait Message //waitMsg: 'Saving...', // Wait Message
@@ -123,7 +123,7 @@ ProcessMapContext.prototype.editProcess= function()
Ext.Ajax.request({ Ext.Ajax.request({
url: "processes_Ajax.php"+ urlparams, url: "processes_Ajax.php"+ urlparams,
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Process Information Saved Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_PROCESS_SAVE') );
window.hide(); window.hide();
} }
@@ -131,7 +131,7 @@ ProcessMapContext.prototype.editProcess= function()
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.hide(); window.hide();
@@ -151,7 +151,7 @@ ProcessMapContext.prototype.editProcess= function()
window.show(); window.show();
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
@@ -159,7 +159,7 @@ ProcessMapContext.prototype.editProcess= function()
//workflow.editProcessForm = editProcess; //workflow.editProcessForm = editProcess;
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Edit Process', title: _('ID_EDIT_PROCESS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 480, width: 480,
@@ -203,22 +203,22 @@ ProcessMapContext.prototype.exportProcess= function()
items: [ items: [
{ {
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Process Title', fieldLabel : _('ID_PRO_TITLE'),
name : 'PRO_TITLE', name : 'PRO_TITLE',
readOnly :true readOnly :true
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Description', fieldLabel : _('ID_DESCRIPTION'),
name : 'PRO_DESCRIPTION', name : 'PRO_DESCRIPTION',
readOnly :true readOnly :true
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Size in bytes', fieldLabel : _('ID_SIZE_IN_BYTES'),
name : 'SIZE', name : 'SIZE',
readOnly :true readOnly :true
},{ },{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'File', fieldLabel : _('ID_FILE'),
name : 'FILENAME_LINK', name : 'FILENAME_LINK',
readOnly :true readOnly :true
//},{ //},{
@@ -290,7 +290,7 @@ ProcessMapContext.prototype.exportProcess= function()
} }
}); });
var exportProcesswindow = new Ext.Window({ var exportProcesswindow = new Ext.Window({
title : 'Export Process', title : _('ID_EXPORT_PROCESS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width : 450, width : 450,
@@ -319,17 +319,17 @@ ProcessMapContext.prototype.addTask= function()
ProcessMapContext.prototype.horiLine= function() ProcessMapContext.prototype.horiLine= function()
{ {
Ext.MessageBox.alert('Status','Horizontal Line'); PMExt.notify( _('ID_STATUS') , _('ID_HORIZONTAL_LINE') );
} }
ProcessMapContext.prototype.vertiLine= function() ProcessMapContext.prototype.vertiLine= function()
{ {
Ext.MessageBox.alert('Status','Vertical Line'); PMExt.notify( _('ID_STATUS') , _('ID_VERTICAL_LINE') );
} }
ProcessMapContext.prototype.delLines= function() ProcessMapContext.prototype.delLines= function()
{ {
Ext.MessageBox.alert('Status','Delete All Lines'); PMExt.notify( _('ID_STATUS') , _('ID_DELETE_LINES') );
} }
ProcessMapContext.prototype.processPermission= function() ProcessMapContext.prototype.processPermission= function()
@@ -382,7 +382,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'TASK_TARGET', id: 'TASK_TARGET',
header: 'Target Task', header: _('ID_TARGET_TASK'),
dataIndex: 'TASK_TARGET', dataIndex: 'TASK_TARGET',
autoWidth: true, autoWidth: true,
editable: false, editable: false,
@@ -393,7 +393,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'GROUP_USER', id: 'GROUP_USER',
header: 'Group or Users', header: _('ID_GROUP_USER'),
dataIndex: 'GROUP_USER', dataIndex: 'GROUP_USER',
width: 150, width: 150,
sortable: true, sortable: true,
@@ -402,7 +402,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'TASK_SOURCE', id: 'TASK_SOURCE',
header: 'Origin Task', header: _('ID_ORIGIN_TASK'),
dataIndex: 'TASK_SOURCE', dataIndex: 'TASK_SOURCE',
width: 120, width: 120,
sortable: true, sortable: true,
@@ -411,7 +411,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'PARTICIPATED', id: 'PARTICIPATED',
header: 'Participation', header: _('ID_PARTICIPATION'),
dataIndex: 'PARTICIPATED', dataIndex: 'PARTICIPATED',
width: 120, width: 120,
sortable: true, sortable: true,
@@ -420,7 +420,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'OBJECT_TYPE', id: 'OBJECT_TYPE',
header: 'Type', header: _('ID_TYPE'),
dataIndex: 'OBJECT_TYPE', dataIndex: 'OBJECT_TYPE',
width: 100, width: 100,
editable: false, editable: false,
@@ -430,7 +430,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'OBJECT', id: 'OBJECT',
header: 'Object', header: _('ID_OBJECT'),
name:'OBJECT', name:'OBJECT',
dataIndex: 'OBJECT', dataIndex: 'OBJECT',
width: 100, width: 100,
@@ -440,7 +440,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'ACTION', id: 'ACTION',
header: 'Permission', header: _('ID_PERMISSION'),
dataIndex: 'ACTION', dataIndex: 'ACTION',
width: 120, width: 120,
sortable: true, sortable: true,
@@ -449,7 +449,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'OP_CASE_STATUS', id: 'OP_CASE_STATUS',
header: 'Status', header: _('ID_STATUS'),
dataIndex: 'OP_CASE_STATUS', dataIndex: 'OP_CASE_STATUS',
width: 120, width: 120,
sortable: true, sortable: true,
@@ -460,13 +460,13 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
] ]
}); });
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnCreate = new Ext.Button({ var btnCreate = new Ext.Button({
id: 'btnCreate', id: 'btnCreate',
text: 'New', text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function () { handler: function () {
formWindow.show(); formWindow.show();
@@ -475,7 +475,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}); });
var btnEdit = new Ext.Button({ var btnEdit = new Ext.Button({
id: 'btnEdit', id: 'btnEdit',
text: 'Edit', text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: function (s) { handler: function (s) {
var selectedRow = PermissionGrid.getSelectionModel().getSelections(); var selectedRow = PermissionGrid.getSelectionModel().getSelections();
@@ -508,7 +508,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete', text: _('ID_DELETE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -573,7 +573,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}); });
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title: 'Process Permissions', title: _('ID_PROCESS_PERMISSIONS'),
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 800, width: 800,
@@ -662,7 +662,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Status Case', fieldLabel :_('ID_STATUS_CASE'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OP_CASE_STATUS', name :'OP_CASE_STATUS',
@@ -679,7 +679,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
{name : 'COMPLETED', value: '4'}]}) {name : 'COMPLETED', value: '4'}]})
}, },
new Ext.form.ComboBox({ new Ext.form.ComboBox({
fieldLabel: 'Target Task', fieldLabel: _('ID_TARGET_TASK'),
//hiddenName:'popType', //hiddenName:'popType',
//autoload: true, //autoload: true,
name: 'TASK_TARGET_NAME', name: 'TASK_TARGET_NAME',
@@ -699,7 +699,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}), }),
new Ext.form.ComboBox({ new Ext.form.ComboBox({
fieldLabel: 'Group or Users', fieldLabel: _('ID_GROUP_USERS'),
//hiddenName:'popType', //hiddenName:'popType',
name: 'USR_FULLNAME', name: 'USR_FULLNAME',
//autoload: true, //autoload: true,
@@ -718,7 +718,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
, ,
new Ext.form.ComboBox({ new Ext.form.ComboBox({
fieldLabel: 'Origin Task', fieldLabel: _('ID_ORIGIN_TASK'),
name : 'TASK_SOURCE_NAME', name : 'TASK_SOURCE_NAME',
store: selectTaskStore, store: selectTaskStore,
valueField:'LABEL', valueField:'LABEL',
@@ -739,7 +739,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Participation Required?', fieldLabel :_('ID_PARTICIPATION_REQUIRED'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OP_PARTICIPATE', name :'OP_PARTICIPATE',
@@ -756,7 +756,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Type', fieldLabel :_('ID_TYPE'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OP_OBJ_TYPE', name :'OP_OBJ_TYPE',
@@ -796,7 +796,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
border: false, border: false,
items: [{ items: [{
xtype: 'combo', xtype: 'combo',
fieldLabel: 'Dynaform', fieldLabel: _('ID_DYNAFORM'),
//hiddenName:'UID', //hiddenName:'UID',
autoload: true, autoload: true,
width:200, width:200,
@@ -822,7 +822,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
border: false, border: false,
items: [{ items: [{
xtype: 'combo', xtype: 'combo',
fieldLabel: 'Input Document', fieldLabel: _('ID_INPUT_DOCUMENT'),
//hiddenName:'UID', //hiddenName:'UID',
name: 'INPUT_NAME', name: 'INPUT_NAME',
width:200, width:200,
@@ -848,7 +848,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
border: false, border: false,
items: [{ items: [{
xtype: 'combo', xtype: 'combo',
fieldLabel: 'Output Document', fieldLabel: _('ID_OUTPUT_DOCUMENT'),
//hiddenName:'popType', //hiddenName:'popType',
width:200, width:200,
autoload: true, autoload: true,
@@ -874,7 +874,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Permission', fieldLabel :_('ID_PERMISSION'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OP_ACTION', name :'OP_ACTION',
@@ -918,7 +918,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
], ],
buttons: [{ buttons: [{
text: 'Create', text: _('ID_CREATE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
var getForm = PermissionForm.getForm().getValues(); var getForm = PermissionForm.getForm().getValues();
@@ -957,7 +957,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
OUTPUTS :Outputs OUTPUTS :Outputs
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Process Permission created successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_PROCESS_PERMISSIONS_CREATE') );
formWindow.hide(); formWindow.hide();
PermissionStore.reload(); PermissionStore.reload();
formWindow.hide(); formWindow.hide();
@@ -985,7 +985,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
OUTPUTS :Outputs OUTPUTS :Outputs
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Process Permission edited successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_PROCESS_PERMISSIONS_EDIT') );
formWindow.hide(); formWindow.hide();
PermissionStore.reload(); PermissionStore.reload();
formWindow.hide(); formWindow.hide();
@@ -995,7 +995,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
} }
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
formWindow.hide(); formWindow.hide();
@@ -1004,7 +1004,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}) })
var formWindow = new Ext.Window({ var formWindow = new Ext.Window({
title: 'New specific Permission', title: _('ID_PERMISSION_NEW'),
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 400, width: 400,
@@ -1032,12 +1032,12 @@ ProcessMapContext.prototype.processSupervisors= function()
{name: 'USR_EMAIL',type: 'string'} {name: 'USR_EMAIL',type: 'string'}
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
@@ -1052,7 +1052,7 @@ ProcessMapContext.prototype.processSupervisors= function()
//storeUsers.reload(); //storeUsers.reload();
if(availableProcessesUser.data.items.length == 0) if(availableProcessesUser.data.items.length == 0)
Ext.MessageBox.alert ('Status','No supervisors are available. All supervisors have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_SUPERVISOR_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
@@ -1066,7 +1066,7 @@ ProcessMapContext.prototype.processSupervisors= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1085,7 +1085,7 @@ ProcessMapContext.prototype.processSupervisors= function()
url : 'processes_Ajax.php'+urlparams, url : 'processes_Ajax.php'+urlparams,
method: 'GET', method: 'GET',
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Supervisor has been removed successfully from Process.'); PMExt.notify( _('ID_STATUS') , _('ID_SUPERVISOR_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
processUser.remove(r); processUser.remove(r);
//Reloading available user store //Reloading available user store
@@ -1147,7 +1147,7 @@ ProcessMapContext.prototype.processSupervisors= function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'USR_FIRSTNAME', id: 'USR_FIRSTNAME',
header: 'First Name', header: _('ID_FIRST_NAME'),
dataIndex: 'USR_FIRSTNAME', dataIndex: 'USR_FIRSTNAME',
width: 200, width: 200,
sortable: true, sortable: true,
@@ -1179,7 +1179,7 @@ ProcessMapContext.prototype.processSupervisors= function()
} }
}) })
},{ },{
header: 'Last Name', header: _('ID_LAST_NAME'),
dataIndex: 'USR_LASTNAME', dataIndex: 'USR_LASTNAME',
width: 200, width: 200,
editable: false, editable: false,
@@ -1215,19 +1215,19 @@ ProcessMapContext.prototype.processSupervisors= function()
url: 'processes_Ajax.php'+urlparams, url: 'processes_Ajax.php'+urlparams,
method: 'GET', method: 'GET',
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','Supervisor has been successfully assigned to a Process'); PMExt.notify( _('ID_STATUS') , _('ID_SUPERVISOR_ASSIGNED') );
processUser.reload(); processUser.reload();
availableProcessesUser.reload(); availableProcessesUser.reload();
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed saving Supervisor Assigned to process'); PMExt.notify( _('ID_STATUS') , _('ID_SUPERVISOR_FAILED') );
} }
}); });
} }
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Supervisor', title: _('ID_SUPERVISOR'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 400, width: 400,
@@ -1261,7 +1261,7 @@ ProcessMapContext.prototype.processDynaform= function()
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
@@ -1288,7 +1288,7 @@ ProcessMapContext.prototype.processDynaform= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1315,7 +1315,7 @@ ProcessMapContext.prototype.processDynaform= function()
action : 'removeSupervisorDynaform' action : 'removeSupervisorDynaform'
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Dynaform has been removed successfully from Process.'); PMExt.notify( _('ID_STATUS') , _('ID_DYANFORM_REMOVE') );
//Secondly deleting from Grid //Secondly deleting from Grid
supervisorDynaforms.remove(r); supervisorDynaforms.remove(r);
//Reloading available user store //Reloading available user store
@@ -1378,7 +1378,7 @@ ProcessMapContext.prototype.processDynaform= function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'DYN_TITLE', id: 'DYN_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'DYN_TITLE', dataIndex: 'DYN_TITLE',
width: 200, width: 200,
sortable: true, sortable: true,
@@ -1440,19 +1440,19 @@ ProcessMapContext.prototype.processDynaform= function()
DYN_UID : dynUID DYN_UID : dynUID
}, },
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','Dynaform has been successfully assigned to a Process'); PMExt.notify( _('ID_STATUS') , _('ID_DYNAFORM_ASSIGN') );
supervisorDynaforms.reload(); supervisorDynaforms.reload();
availableSupervisorDynaforms.reload(); availableSupervisorDynaforms.reload();
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed saving Dynaform Assigned to process'); PMExt.notify( _('ID_STATUS') , _('ID_DYNAFORM_ASSIGN_FAILED') );
} }
}); });
} }
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Dynaform', title: _('ID_DYNAFORMS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 440, width: 440,
@@ -1481,12 +1481,12 @@ ProcessMapContext.prototype.processIODoc = function()
{name: 'INP_DOC_UID',type: 'string'} {name: 'INP_DOC_UID',type: 'string'}
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
@@ -1500,7 +1500,7 @@ ProcessMapContext.prototype.processIODoc = function()
//storeUsers.reload(); //storeUsers.reload();
if(availableSupervisorInputDoc.data.items.length == 0) if(availableSupervisorInputDoc.data.items.length == 0)
Ext.MessageBox.alert ('Status','No Input Document are available. All Input Document have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
@@ -1514,7 +1514,7 @@ ProcessMapContext.prototype.processIODoc = function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1541,7 +1541,7 @@ ProcessMapContext.prototype.processIODoc = function()
action : 'removeSupervisorInput' action : 'removeSupervisorInput'
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Input Document has been removed successfully from Process.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_REMOVE') );
//Secondly deleting from Grid //Secondly deleting from Grid
supervisorInputDoc.remove(r); supervisorInputDoc.remove(r);
//Reloading available user store //Reloading available user store
@@ -1604,7 +1604,7 @@ ProcessMapContext.prototype.processIODoc = function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'INP_DOC_TITLE', id: 'INP_DOC_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'INP_DOC_TITLE', dataIndex: 'INP_DOC_TITLE',
width: 200, width: 200,
sortable: true, sortable: true,
@@ -1666,19 +1666,19 @@ ProcessMapContext.prototype.processIODoc = function()
INP_DOC_UID : inputDocUID INP_DOC_UID : inputDocUID
}, },
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','Input Document has been successfully assigned to a Process'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_ASSIGN') );
supervisorInputDoc.reload(); supervisorInputDoc.reload();
availableSupervisorInputDoc.reload(); availableSupervisorInputDoc.reload();
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed saving Input Document Assigned to process'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_FAILED') );
} }
}); });
} }
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Input Documents', title: _('ID_REQUEST_DOCUMENTS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 430, width: 430,
@@ -1709,7 +1709,7 @@ ProcessMapContext.prototype.processFileManager= function()
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Process File Manager', title: _('ID_PROCESS_FILE_MANAGER'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 500, width: 500,
@@ -1722,7 +1722,7 @@ ProcessMapContext.prototype.processFileManager= function()
buttonAlign: 'center', buttonAlign: 'center',
items: AwesomeUploaderInstance, items: AwesomeUploaderInstance,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
//waitMsg: 'Saving...', // Wait Message //waitMsg: 'Saving...', // Wait Message
@@ -1746,12 +1746,12 @@ ProcessMapContext.prototype.processFileManager= function()
window.hide(); window.hide();
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.hide(); window.hide();
@@ -1793,7 +1793,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
triggerAction :'all', triggerAction :'all',
forceSelection :true, forceSelection :true,
editable :false, editable :false,
fieldLabel :'Map Type', fieldLabel :_('ID_MAP_TYPE'),
name :'CT_MAP_TYPE', name :'CT_MAP_TYPE',
displayField :'name', displayField :'name',
value :'PROCESSMAP', value :'PROCESSMAP',
@@ -1829,16 +1829,16 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
}] }]
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: 'Derivation History', fieldLabel: _('ID_DERIVATION_HISTORY'),
name: 'CT_DERIVATION_HISTORY' name: 'CT_DERIVATION_HISTORY'
//checked:checkDerivation //checked:checkDerivation
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: 'Messages History', fieldLabel: _('ID_MESSAGES_HISTORY'),
name: 'CT_MESSAGE_HISTORY' name: 'CT_MESSAGE_HISTORY'
// checked:checkMessages // checked:checkMessages
}], buttons: [{ }], buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
var getForm = PropertiesForm.getForm().getValues(); var getForm = PropertiesForm.getForm().getValues();
@@ -1866,12 +1866,12 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
CT_MESSAGE_HISTORY :MessageHistory CT_MESSAGE_HISTORY :MessageHistory
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Connection Saved Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_CASE_PROPERTIES_SAVE') );
} }
}); });
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
Propertieswindow.hide(); Propertieswindow.hide();
} }
@@ -1879,7 +1879,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
}); });
var Propertieswindow = new Ext.Window({ var Propertieswindow = new Ext.Window({
title: 'Case tracker', title: _('ID_CASE_TRACKERS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 300, width: 300,
@@ -1932,13 +1932,13 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
} }
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = Objectsgrid.getStore(); var User = Objectsgrid.getStore();
@@ -1950,8 +1950,8 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
}); });
if(availableStore.data.items.length == 0) if(availableStore.data.items.length == 0)
Ext.MessageBox.alert ('Status','No Objects are available. All Objects have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_OBJECTS_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
assignedStore.insert(0, e); assignedStore.insert(0, e);
@@ -1964,7 +1964,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1992,7 +1992,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Object has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_OBJECT_REMOVE') );
//Secondly deleting from Grid //Secondly deleting from Grid
assignedStore.remove(r); assignedStore.remove(r);
//Reloading available user store //Reloading available user store
@@ -2008,7 +2008,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
var btnObjectsCondition = new Ext.Button({ var btnObjectsCondition = new Ext.Button({
id: 'btnCondition', id: 'btnCondition',
text: 'Condition', text: _('ID_CONDITION'),
handler: function (s) { handler: function (s) {
workflow.variablesAction = 'grid'; workflow.variablesAction = 'grid';
workflow.gridField = 'CTO_CONDITION'; workflow.gridField = 'CTO_CONDITION';
@@ -2071,14 +2071,14 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'CTO_TITLE', id: 'CTO_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'CTO_TITLE', dataIndex: 'CTO_TITLE',
width: 100, width: 100,
sortable: true, sortable: true,
editor: new Ext.form.ComboBox({ editor: new Ext.form.ComboBox({
xtype: 'combo', xtype: 'combo',
store:availableStore, store:availableStore,
fieldLabel : 'Title', fieldLabel : _('ID_TITLE'),
hiddenName : 'number', hiddenName : 'number',
displayField : 'OBJECT_TITLE' , displayField : 'OBJECT_TITLE' ,
valueField : 'OBJECT_TITLE', valueField : 'OBJECT_TITLE',
@@ -2097,11 +2097,11 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
} }
}) })
},{ },{
header : 'Type', header : _('ID_TYPE'),
dataIndex : 'CTO_TYPE_OBJ', dataIndex : 'CTO_TYPE_OBJ',
editable : false editable : false
},{ },{
header : 'Condition', header : _('ID_CONDITION'),
dataindex: 'CTO_CONDITION', dataindex: 'CTO_CONDITION',
name : 'CTO_CONDITION', name : 'CTO_CONDITION',
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
@@ -2168,14 +2168,14 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
CTO_CONDITION : condition CTO_CONDITION : condition
}, },
success: function (response){ success: function (response){
Ext.MessageBox.alert ('Status','Objects has been successfully assigned'); PMExt.notify( _('ID_STATUS') , _('ID_OBJECT_ASSIGNED') );
availableStore.reload(); availableStore.reload();
assignedStore.reload(); assignedStore.reload();
} }
}) })
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed to assign Objects'); PMExt.notify( _('ID_STATUS') , _('ID_OBJECT_FAILED') );
} }
}) })
//Updating the user incase if already assigned user has been replaced by other user //Updating the user incase if already assigned user has been replaced by other user
@@ -2198,8 +2198,8 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
STEP_POSITION : obj_position STEP_POSITION : obj_position
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','User has been updated successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_OBJECT_UPDATE') );
} }
}); });
} }
availableStore.reload(); availableStore.reload();
@@ -2258,14 +2258,14 @@ ProcessMapContext.prototype.ExtVariables = function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'FLD_NAME', id: 'FLD_NAME',
header: 'Variable', header: _('ID_VARIABLES'),
dataIndex: 'variable', dataIndex: 'variable',
width: 170, width: 170,
editable: false, editable: false,
sortable: true sortable: true
},{ },{
id: 'PRO_VARIABLE', id: 'PRO_VARIABLE',
header: 'Label', header: _('ID_LABEL'),
dataIndex: 'label', dataIndex: 'label',
width: 150, width: 150,
sortable: true sortable: true
@@ -2288,7 +2288,7 @@ ProcessMapContext.prototype.ExtVariables = function()
autoHeight:true autoHeight:true
}, },
items:[{ items:[{
title:'All Variables', title:_('ID_ALL_VARIABLES'),
id :'allVar', id :'allVar',
layout:'form', layout:'form',
listeners: { listeners: {
@@ -2402,7 +2402,7 @@ ProcessMapContext.prototype.ExtVariables = function()
} }
}] }]
},{ },{
title:'System', title:_('ID_SYSTEM'),
id:'system', id:'system',
layout:'form', layout:'form',
listeners:{ listeners:{
@@ -2475,7 +2475,7 @@ ProcessMapContext.prototype.ExtVariables = function()
} }
}] }]
},{ },{
title:'Process', title:_('ID_CASESLIST_APP_PRO_TITLE'),
id :'process', id :'process',
layout:'form', layout:'form',
listeners: { listeners: {
@@ -2549,7 +2549,7 @@ ProcessMapContext.prototype.ExtVariables = function()
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Steps Of', title: _('ID_VARIABLES'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
scrollable: true, scrollable: true,

View File

@@ -84,7 +84,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
}, },
success: function(response) { success: function(response) {
//PMExt.notify( _('ID_TITLE_JS') , _('ID_TITLE') ); //PMExt.notify( _('ID_TITLE_JS') , _('ID_TITLE') );
Ext.MessageBox.alert ('Status','Dynaform has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_DYNAFORM_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
taskDynaform.remove(r); taskDynaform.remove(r);
//Reloading store after deleting dynaform //Reloading store after deleting dynaform
@@ -215,7 +215,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'FLD_NAME', id: 'FLD_NAME',
header: 'Primary Key', header: _('ID_PRIMARY_KEY'),
dataIndex: 'FLD_NAME', dataIndex: 'FLD_NAME',
width: 200, width: 200,
editable: false, editable: false,
@@ -225,7 +225,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'PRO_VARIABLE', id: 'PRO_VARIABLE',
header: 'Variables', header: _('ID_VARIABLES'),
dataIndex: 'PRO_VARIABLE', dataIndex: 'PRO_VARIABLE',
width: 200, width: 200,
sortable: true, sortable: true,
@@ -284,7 +284,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
xtype: 'fieldset', xtype: 'fieldset',
layout: 'fit', layout: 'fit',
border:true, border:true,
title: 'Please select the Dynaform Type', title: _('ID_SELECT_DYNAFORM'),
width: 500, width: 500,
collapsible: false, collapsible: false,
labelAlign: 'top', labelAlign: 'top',
@@ -292,19 +292,19 @@ var dynaformColumns = new Ext.grid.ColumnModel({
xtype: 'radiogroup', xtype: 'radiogroup',
//id: 'dynaformType', //id: 'dynaformType',
layout: 'fit', layout: 'fit',
fieldLabel: 'Type', fieldLabel: _('ID_TYPE'),
itemCls: 'x-check-group-alt', itemCls: 'x-check-group-alt',
columns: 1, columns: 1,
items: [ items: [
{ {
boxLabel: 'Blank Dynaform', boxLabel: _('ID_BLANK_DYNAFORM'),
name: 'DYN_SOURCE', name: 'DYN_SOURCE',
inputValue: 'blankDyna', inputValue: 'blankDyna',
checked: true checked: true
}, },
{ {
boxLabel: 'PM Table Dynaform', boxLabel: _('ID_PM_DYNAFORM'),
name: 'DYN_SOURCE', name: 'DYN_SOURCE',
inputValue: 'pmTableDyna' inputValue: 'pmTableDyna'
}], }],
@@ -329,7 +329,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
id: 'blankDynaform', id: 'blankDynaform',
border:true, border:true,
hidden: false, hidden: false,
title: 'Dynaform Information', title: _('ID_DYNAFORM_INFORMATION'),
width: 500, width: 500,
items:[{ items:[{
xtype : 'textfield', xtype : 'textfield',
@@ -379,7 +379,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
editable: true, editable: true,
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
fieldLabel: 'Create from a PM Table', fieldLabel: _('ID_CREATE_PM_TABLE'),
emptyText : 'Select Table', emptyText : 'Select Table',
displayField: 'ADD_TAB_NAME', displayField: 'ADD_TAB_NAME',
valueField: 'ADD_TAB_UID', valueField: 'ADD_TAB_UID',
@@ -462,7 +462,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
} }
if(sTitle == '' || sAction == '') if(sTitle == '' || sAction == '')
Ext.MessageBox.alert ('Error','Dynaform Title required.'); PMExt.notify( _('ID_ERROR') , _('ID_DYNAFORM_TITLE_REQUIRED') );
else else
{ {
Ext.Ajax.request({ Ext.Ajax.request({
@@ -480,7 +480,7 @@ var dynaformColumns = new Ext.grid.ColumnModel({
DYN_DESCRIPTION : sDesc DYN_DESCRIPTION : sDesc
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Dynaform has been created successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_DYANFORM_CREATED') );
taskDynaform.reload(); taskDynaform.reload();
formWindow.hide() formWindow.hide()
} }
@@ -576,8 +576,8 @@ ProcessOptions.prototype.dbConnection = function()
// setTaskAssignType(form); // setTaskAssignType(form);
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
} }
}); });
@@ -606,7 +606,7 @@ ProcessOptions.prototype.dbConnection = function()
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Database Connection has been removed successfully.'); PMExt.notify (_('ID_STATUS'),_('DBS_REMOVE'));
//Secondly deleting from Grid //Secondly deleting from Grid
dbStore.remove(r); dbStore.remove(r);
//Reloading store after removing steps //Reloading store after removing steps
@@ -647,7 +647,7 @@ ProcessOptions.prototype.dbConnection = function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'DBS_TYPE', id: 'DBS_TYPE',
header: 'Type', header: _('ID_TYPE'),
dataIndex: 'DBS_TYPE', dataIndex: 'DBS_TYPE',
//width: 100, //width: 100,
editable: false, editable: false,
@@ -657,7 +657,7 @@ ProcessOptions.prototype.dbConnection = function()
}) })
},{ },{
id: 'DBS_SERVER', id: 'DBS_SERVER',
header: 'Server', header: _('ID_SERVER'),
dataIndex: 'DBS_SERVER', dataIndex: 'DBS_SERVER',
//width: 100, //width: 100,
sortable: true, sortable: true,
@@ -666,7 +666,7 @@ ProcessOptions.prototype.dbConnection = function()
}) })
},{ },{
id: 'DBS_DATABASE_NAME', id: 'DBS_DATABASE_NAME',
header: 'Database Name', header: _('ID_DATABASE_NAME'),
dataIndex: 'DBS_DATABASE_NAME', dataIndex: 'DBS_DATABASE_NAME',
width: 150, width: 150,
sortable: true, sortable: true,
@@ -675,7 +675,7 @@ ProcessOptions.prototype.dbConnection = function()
}) })
},{ },{
id: 'DBS_DESCRIPTION', id: 'DBS_DESCRIPTION',
header: 'Description', header: _('ID_DESCRIPTION'),
dataIndex: 'DBS_DESCRIPTION', dataIndex: 'DBS_DESCRIPTION',
width: 100, width: 100,
sortable: true, sortable: true,
@@ -736,7 +736,7 @@ ProcessOptions.prototype.dbConnection = function()
width: 200, width: 200,
mode: 'local', mode: 'local',
editable: false, editable: false,
fieldLabel: 'Engine', fieldLabel: _('ID_ENGINE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
name: 'DBS_TYPE', name: 'DBS_TYPE',
@@ -781,7 +781,7 @@ ProcessOptions.prototype.dbConnection = function()
mode: 'local', mode: 'local',
// hidden: true, // hidden: true,
editable: false, editable: false,
fieldLabel: 'Encode', fieldLabel: _('ID_ENCODE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
//dataIndex : 'ENGINE', //dataIndex : 'ENGINE',
@@ -846,7 +846,7 @@ ProcessOptions.prototype.dbConnection = function()
mode: 'local', mode: 'local',
// hidden: true, // hidden: true,
editable:false, editable:false,
fieldLabel: 'Encode', fieldLabel:_('ID_ENCODE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
//dataIndex : 'ENGINE', //dataIndex : 'ENGINE',
@@ -907,7 +907,7 @@ ProcessOptions.prototype.dbConnection = function()
width: 220, width: 220,
mode: 'local', mode: 'local',
editable: false, editable: false,
fieldLabel: 'Encode', fieldLabel: _('ID_ENCODE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
//dataIndex : 'ENGINE', //dataIndex : 'ENGINE',
@@ -928,32 +928,32 @@ ProcessOptions.prototype.dbConnection = function()
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Server', fieldLabel: _('ID_SERVER'),
name: 'DBS_SERVER', name: 'DBS_SERVER',
width: 200, width: 200,
allowBlank: false allowBlank: false
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Database name', fieldLabel: _('ID_DATABASE_NAME'),
name: 'DBS_DATABASE_NAME', name: 'DBS_DATABASE_NAME',
width: 200, width: 200,
allowBlank: false allowBlank: false
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Username', fieldLabel: _('ID_USERNAME'),
name: 'DBS_USERNAME', name: 'DBS_USERNAME',
width: 200, width: 200,
allowBlank: false allowBlank: false
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Password', fieldLabel: _('ID_CACHE_PASSWORD'),
inputType:'password', inputType:'password',
width: 200, width: 200,
name: 'DBS_PASSWORD', name: 'DBS_PASSWORD',
allowBlank: true allowBlank: true
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Port', fieldLabel: _('ID_PORT'),
name: 'DBS_PORT', name: 'DBS_PORT',
width: 200, width: 200,
id:'port', id:'port',
@@ -961,7 +961,7 @@ ProcessOptions.prototype.dbConnection = function()
editable:false editable:false
},{ },{
xtype: 'textarea', xtype: 'textarea',
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
name: 'DBS_DESCRIPTION', name: 'DBS_DESCRIPTION',
allowBlank: true, allowBlank: true,
width: 220, width: 220,
@@ -975,7 +975,7 @@ ProcessOptions.prototype.dbConnection = function()
xtype: 'hidden', xtype: 'hidden',
name : 'DBS_ENCODE' name : 'DBS_ENCODE'
}], }],
buttons: [{text:'Test Connection', buttons: [{text:_('ID_TEST_CONNECTION'),
id: 'test', id: 'test',
//formbind: true, //formbind: true,
handler: function(){ handler: function(){
@@ -1020,13 +1020,13 @@ ProcessOptions.prototype.dbConnection = function()
action :'testConnection' action :'testConnection'
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Connection Tested Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_DBS_CONNECTION_TEST') );
} }
}); });
} }
} }
},{ },{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
var getForm = dbconnForm.getForm().getValues(); var getForm = dbconnForm.getForm().getValues();
@@ -1060,7 +1060,7 @@ ProcessOptions.prototype.dbConnection = function()
action :'saveConnection' action :'saveConnection'
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Connection Saved Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_DBS_CONNECTION_SAVE') );
} }
}); });
} }
@@ -1083,15 +1083,15 @@ ProcessOptions.prototype.dbConnection = function()
action :'saveEditConnection' action :'saveEditConnection'
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Connection Edited Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_DBS_CONNECTION_EDIT') );
} }
}); });
} }
formWindow.hide(); formWindow.hide();
dbStore.reload(); dbStore.reload();
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
formWindow.hide(); formWindow.hide();
@@ -1119,7 +1119,7 @@ var testConnWindow = new Ext.Window({
});*/ });*/
var formWindow = new Ext.Window({ var formWindow = new Ext.Window({
title: 'Add new Database Source', title: _('ID_DBS_SOURCE'),
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 400, width: 400,
@@ -1132,7 +1132,7 @@ var testConnWindow = new Ext.Window({
}); });
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title: 'Database Source List', title: _('ID_DBS_LIST'),
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 480, width: 480,
@@ -1178,7 +1178,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var inputDocStore = new Ext.data.JsonStore({ var inputDocStore = new Ext.data.JsonStore({
@@ -1229,7 +1229,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
INP_DOC_UID : inputDocUID INP_DOC_UID : inputDocUID
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Input document has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
inputDocStore.remove(r); inputDocStore.remove(r);
//reloading store after deleting input document //reloading store after deleting input document
@@ -1238,8 +1238,8 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
}); });
} }
else else
Ext.MessageBox.alert ('Status','Input document assigned to a process supervisors cannot be deleted.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_WARNING') );
} }
}); });
} }
else else
@@ -1250,7 +1250,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New', text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function () { handler: function () {
newIOWindow.show(); newIOWindow.show();
@@ -1278,7 +1278,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
Ext.getCmp("INP_DOC_UID").setValue(inputDocUID); Ext.getCmp("INP_DOC_UID").setValue(inputDocUID);
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
} }
@@ -1295,14 +1295,14 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
xtype: 'fieldset', xtype: 'fieldset',
layout: 'form', layout: 'form',
border:true, border:true,
title: 'Input Document Information', title: _('ID_INPUT_INFO'),
width: 500, width: 500,
//height:500, //height:500,
collapsible: false, collapsible: false,
labelAlign: '', labelAlign: '',
items:[{ items:[{
xtype : 'textfield', xtype : 'textfield',
fieldLabel: 'Title', fieldLabel: _('ID_TITLE'),
width : 200, width : 200,
name : 'INP_DOC_TITLE', name : 'INP_DOC_TITLE',
allowBlank: false allowBlank: false
@@ -1311,7 +1311,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
xtype: 'combo', xtype: 'combo',
mode: 'local', mode: 'local',
editable: false, editable: false,
fieldLabel: 'Type', fieldLabel: _('ID_TYPE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
name: 'INP_DOC_FORM_NEEDED', name: 'INP_DOC_FORM_NEEDED',
@@ -1348,7 +1348,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
width: 150, width: 150,
mode: 'local', mode: 'local',
editable: false, editable: false,
fieldLabel: 'Format', fieldLabel: _('ID_FORMAT'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
name: 'INP_DOC_ORIGINAL', name: 'INP_DOC_ORIGINAL',
@@ -1366,7 +1366,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
}] }]
},{ },{
xtype : 'textarea', xtype : 'textarea',
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
name : 'INP_DOC_DESCRIPTION', name : 'INP_DOC_DESCRIPTION',
height : 120, height : 120,
width : 300 width : 300
@@ -1375,7 +1375,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
xtype: 'combo', xtype: 'combo',
mode: 'local', mode: 'local',
editable: false, editable: false,
fieldLabel: 'Enable Versioning', fieldLabel: _('ID_ENABLE_VERSIONING'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
name: 'INP_DOC_VERSIONING', name: 'INP_DOC_VERSIONING',
@@ -1399,7 +1399,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
xtype : 'textfield', xtype : 'textfield',
width : 200, width : 200,
//id : 'DestPath', //id : 'DestPath',
fieldLabel : 'Destination Path', fieldLabel : _('ID_DESTINATION_PATH'),
name : 'INP_DOC_DESTINATION_PATH', name : 'INP_DOC_DESTINATION_PATH',
anchor :'100%' anchor :'100%'
}] }]
@@ -1433,7 +1433,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
xtype : 'textfield', xtype : 'textfield',
width : 200, width : 200,
//id :'tags', //id :'tags',
fieldLabel : 'Tags', fieldLabel : _('ID_TAGS'),
name : 'INP_DOC_TAGS', name : 'INP_DOC_TAGS',
anchor :'100%' anchor :'100%'
}] }]
@@ -1463,7 +1463,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
}] }]
}], }],
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
var getForm = inputDocForm.getForm().getValues(); var getForm = inputDocForm.getForm().getValues();
@@ -1524,15 +1524,15 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
INP_DOC_DESTINATION_PATH : sDestPath INP_DOC_DESTINATION_PATH : sDestPath
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Input document has been created successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_CREATE') );
newIOWindow.hide(); newIOWindow.hide();
inputDocStore.reload(); inputDocStore.reload();
} }
}); });
} }
else else
Ext.MessageBox.alert ('Status','There is an Input Document with the same name in this process. It is not saving'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_NOT_SAVE') );
} }
}) })
} }
else else
@@ -1553,7 +1553,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
INP_DOC_DESTINATION_PATH : sDestPath INP_DOC_DESTINATION_PATH : sDestPath
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Input document has been updated successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_INPUT_UPDATE') );
newIOWindow.hide(); newIOWindow.hide();
inputDocStore.reload(); inputDocStore.reload();
} }
@@ -1561,7 +1561,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
} }
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
newIOWindow.hide(); newIOWindow.hide();
@@ -1575,7 +1575,7 @@ var inputDocColumns = new Ext.grid.ColumnModel({
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'INP_DOC_TITLE', id: 'INP_DOC_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'INP_DOC_TITLE', dataIndex: 'INP_DOC_TITLE',
width: 280, width: 280,
editable: false, editable: false,
@@ -1584,7 +1584,7 @@ var inputDocColumns = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'INP_DOC_VERSIONING', id: 'INP_DOC_VERSIONING',
header: 'Versioning', header: _('ID_VERSIONING'),
dataIndex: 'INP_DOC_VERSIONING', dataIndex: 'INP_DOC_VERSIONING',
width: 280, width: 280,
editable: false, editable: false,
@@ -1593,7 +1593,7 @@ var inputDocColumns = new Ext.grid.ColumnModel({
}) })
},{ },{
id: 'INP_DOC_DESTINATION_PATH', id: 'INP_DOC_DESTINATION_PATH',
header: 'Destination Path', header: _('ID_DESTINATION_PATH'),
dataIndex: 'INP_DOC_DESTINATION_PATH', dataIndex: 'INP_DOC_DESTINATION_PATH',
width: 280, width: 280,
editable: false, editable: false,
@@ -1637,7 +1637,7 @@ var inputDocColumns = new Ext.grid.ColumnModel({
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title: 'Input Document', title: _('ID_REQUEST_DOCUMENTS'),
width: 550, width: 550,
height: 420, height: 420,
minWidth: 200, minWidth: 200,
@@ -1649,7 +1649,7 @@ var inputDocColumns = new Ext.grid.ColumnModel({
}); });
var newIOWindow = new Ext.Window({ var newIOWindow = new Ext.Window({
title: 'New Input Document', title: _('ID_NEW_INPUTDOCS'),
width: 550, width: 550,
height: 400, height: 400,
minWidth: 200, minWidth: 200,
@@ -1690,7 +1690,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
@@ -1730,8 +1730,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
OUT_DOC_UID : outputDocUID OUT_DOC_UID : outputDocUID
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Output document has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_OUTPUT_REMOVE') );
//Secondly deleting from Grid //Secondly deleting from Grid
outputDocStore.remove(r); outputDocStore.remove(r);
//reloading store after deleting output document //reloading store after deleting output document
@@ -1746,7 +1745,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New', text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function () { handler: function () {
outputDocForm.getForm().reset(); outputDocForm.getForm().reset();
@@ -1771,7 +1770,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
// setTaskAssignType(form); // setTaskAssignType(form);
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
} }
@@ -1798,7 +1797,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'OUT_DOC_TITLE', id: 'OUT_DOC_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'OUT_DOC_TITLE', dataIndex: 'OUT_DOC_TITLE',
width: 280, width: 280,
editable: false, editable: false,
@@ -1808,7 +1807,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
}, },
{ {
id: 'OUT_DOC_TYPE', id: 'OUT_DOC_TYPE',
header: 'Type', header: _('ID_TYPE'),
dataIndex: 'OUT_DOC_TYPE', dataIndex: 'OUT_DOC_TYPE',
editable: false, editable: false,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
@@ -1861,13 +1860,13 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
xtype : 'fieldset', xtype : 'fieldset',
layout : 'form', layout : 'form',
border :true, border :true,
title : 'Output Document Information', title : _('ID_OUTPUT_INFO'),
width : 450, width : 450,
collapsible : false, collapsible : false,
labelAlign : '', labelAlign : '',
items :[{ items :[{
xtype : 'textfield', xtype : 'textfield',
fieldLabel : 'Title', fieldLabel : _('ID_TITLE'),
allowBlank : false, allowBlank : false,
width : 300, width : 300,
blankText : 'Enter Title of Output Document', blankText : 'Enter Title of Output Document',
@@ -1883,7 +1882,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
items: [{ items: [{
xtype : 'textfield', xtype : 'textfield',
//id : 'filenameGenerated', //id : 'filenameGenerated',
fieldLabel : 'Filename generated', fieldLabel : _('ID_FILENAME_GENERATED'),
name : 'OUT_DOC_FILENAME', name : 'OUT_DOC_FILENAME',
allowBlank : false, allowBlank : false,
width : 250, width : 250,
@@ -1912,7 +1911,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
}] }]
},{ },{
xtype : 'textarea', xtype : 'textarea',
fieldLabel : 'Description', fieldLabel : _('ID_DESCRIPTION'),
name : 'OUT_DOC_DESCRIPTION', name : 'OUT_DOC_DESCRIPTION',
height : 120, height : 120,
width : 300 width : 300
@@ -1921,7 +1920,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Orientation', fieldLabel :_('ID_ORIENTATION'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OUT_DOC_LANDSCAPE', name :'OUT_DOC_LANDSCAPE',
@@ -1938,7 +1937,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Media', fieldLabel :_('ID_MEDIA'),
triggerAction :'all', triggerAction :'all',
forceSelection : true, forceSelection : true,
name :'OUT_DOC_MEDIA', name :'OUT_DOC_MEDIA',
@@ -1972,22 +1971,22 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
}) })
},{ },{
xtype : 'numberfield', xtype : 'numberfield',
fieldLabel : 'Left Margin', fieldLabel : _('ID_LEFT_MARGIN'),
name : 'OUT_DOC_LEFT_MARGIN', name : 'OUT_DOC_LEFT_MARGIN',
width : 50 width : 50
},{ },{
xtype : 'numberfield', xtype : 'numberfield',
fieldLabel : 'Right Margin', fieldLabel : _('ID_RIGHT_MARGIN'),
name : 'OUT_DOC_RIGHT_MARGIN', name : 'OUT_DOC_RIGHT_MARGIN',
width : 50 width : 50
},{ },{
xtype : 'numberfield', xtype : 'numberfield',
fieldLabel : 'Top Margin', fieldLabel : _('ID_TOP_MARGIN'),
name : 'OUT_DOC_TOP_MARGIN', name : 'OUT_DOC_TOP_MARGIN',
width : 50 width : 50
},{ },{
xtype : 'numberfield', xtype : 'numberfield',
fieldLabel : 'Bottom Margin', fieldLabel : _('ID_BOTTOM_MARGIN'),
name : 'OUT_DOC_BOTTOM_MARGIN', name : 'OUT_DOC_BOTTOM_MARGIN',
width : 50 width : 50
},{ },{
@@ -1995,7 +1994,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Output Document to Generate', fieldLabel :_('ID_OUTPUT_GENERATE'),
triggerAction :'all', triggerAction :'all',
forceSelection :true, forceSelection :true,
name :'OUT_DOC_GENERATE', name :'OUT_DOC_GENERATE',
@@ -2013,7 +2012,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
editable :false, editable :false,
fieldLabel :'Enable Versioning', fieldLabel :_('ID_ENABLE_VERSIONING'),
triggerAction :'all', triggerAction :'all',
forceSelection :true, forceSelection :true,
name :'OUT_DOC_VERSIONING', name :'OUT_DOC_VERSIONING',
@@ -2035,7 +2034,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
items : [{ items : [{
xtype : 'textfield', xtype : 'textfield',
//id : 'DestPath', //id : 'DestPath',
fieldLabel : 'Destination Path', fieldLabel : _('ID_DESTINATION_PATH'),
name : 'OUT_DOC_DESTINATION_PATH', name : 'OUT_DOC_DESTINATION_PATH',
anchor :'100%', anchor :'100%',
width : 250 width : 250
@@ -2068,7 +2067,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
items : [{ items : [{
xtype : 'textfield', xtype : 'textfield',
//id :'tags', //id :'tags',
fieldLabel : 'Tags', fieldLabel : _('ID_TAGS'),
name : 'OUT_DOC_TAGS', name : 'OUT_DOC_TAGS',
anchor :'100%', anchor :'100%',
width : 250 width : 250
@@ -2099,7 +2098,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
] ]
}], }],
buttons : [{ buttons : [{
text : 'Save', text : _('ID_SAVE'),
formBind :true, formBind :true,
handler : function(){ handler : function(){
var getForm = outputDocForm.getForm().getValues(); var getForm = outputDocForm.getForm().getValues();
@@ -2160,7 +2159,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
PRO_UID : pro_uid PRO_UID : pro_uid
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Output document has been created successfully.'); PMExt.notify( _('ID_STATUS') , _('OUTPUT_CREATE') );
outputDocStore.reload(); outputDocStore.reload();
newOPWindow.hide(); newOPWindow.hide();
} }
@@ -2170,8 +2169,8 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
else else
Ext.MessageBox.alert ('Status','There is an Output Document with the same name in this process. It is not saving'); PMExt.notify( _('ID_STATUS') , _('ID_OUTPUT_NOT_SAVE') );
} }
}); });
} }
else else
@@ -2198,8 +2197,8 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
PRO_UID : pro_uid PRO_UID : pro_uid
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Output document has been updated successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_OUTPUT_UPDATE') );
outputDocStore.reload(); outputDocStore.reload();
newOPWindow.hide(); newOPWindow.hide();
} }
}); });
@@ -2207,7 +2206,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
} }
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
newOPWindow.hide(); newOPWindow.hide();
@@ -2230,7 +2229,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
}); });
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title : 'Output Document', title : _('ID_OUTPUT_DOCUMENTS'),
collapsible : false, collapsible : false,
maximizable : false, maximizable : false,
width : 550, width : 550,
@@ -2274,7 +2273,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var reportStore = new Ext.data.JsonStore({ var reportStore = new Ext.data.JsonStore({
@@ -2306,7 +2305,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'REP_TAB_TITLE', id: 'REP_TAB_TITLE',
header: 'Title', header: _('ID_TITLE'),
dataIndex: 'REP_TAB_TITLE', dataIndex: 'REP_TAB_TITLE',
width: 380, width: 380,
editable: false, editable: false,
@@ -2319,7 +2318,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New', text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function () { handler: function () {
formWindow.show(); formWindow.show();
@@ -2344,7 +2343,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
// setTaskAssignType(form); // setTaskAssignType(form);
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
} }
@@ -2371,7 +2370,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
REP_TAB_UID : r.data.REP_TAB_UID REP_TAB_UID : r.data.REP_TAB_UID
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Report Table has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_REPORT_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
reportGrid.remove(r); reportGrid.remove(r);
//Reloading store after deleting report table //Reloading store after deleting report table
@@ -2416,7 +2415,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
}); });
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title : 'Report Tables', title : _('ID_REPORT_TABLES'),
collapsible : false, collapsible : false,
maximizable : false, maximizable : false,
width : 420, width : 420,
@@ -2443,14 +2442,14 @@ var reportForm =new Ext.FormPanel({
buttonAlign: 'center', buttonAlign: 'center',
items:[{ items:[{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Title', fieldLabel: _('ID_TITLE'),
width: 250, width: 250,
name: 'REP_TAB_TITLE', name: 'REP_TAB_TITLE',
allowBlank: false allowBlank: false
},{ },{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Table Name', fieldLabel: _('ID_TABLE_NAME'),
width: 250, width: 250,
name: 'REP_TAB_NAME', name: 'REP_TAB_NAME',
allowBlank: false allowBlank: false
@@ -2460,7 +2459,7 @@ var reportForm =new Ext.FormPanel({
width: 250, width: 250,
mode: 'local', mode: 'local',
editable:false, editable:false,
fieldLabel: 'Type', fieldLabel: _('ID_TYPE'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
name: 'REP_TAB_TYPE', name: 'REP_TAB_TYPE',
@@ -2505,7 +2504,7 @@ var reportForm =new Ext.FormPanel({
mode: 'local', mode: 'local',
style : 'margin-bottom:10px', style : 'margin-bottom:10px',
editable:true, editable:true,
fieldLabel: 'Fields', fieldLabel: _('ID_FIELDS'),
triggerAction: 'all', triggerAction: 'all',
allowblank: true, allowblank: true,
forceSelection: false, forceSelection: false,
@@ -2526,7 +2525,7 @@ var reportForm =new Ext.FormPanel({
width: 200, width: 200,
mode: 'local', mode: 'local',
editable:false, editable:false,
fieldLabel: 'Grid Fields', fieldLabel: _('ID_GRID_FIELDS'),
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
displayField: 'name', displayField: 'name',
@@ -2539,7 +2538,7 @@ var reportForm =new Ext.FormPanel({
}] }]
} }
], buttons: [{ ], buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
var getForm = reportForm.getForm().getValues(); var getForm = reportForm.getForm().getValues();
@@ -2571,8 +2570,8 @@ var reportForm =new Ext.FormPanel({
FIELDS :Fields FIELDS :Fields
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Report Table Saved Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_REPORT_SAVE') );
} }
}); });
} }
else else
@@ -2593,8 +2592,8 @@ var reportForm =new Ext.FormPanel({
REP_TAB_CONNECTION: Connection REP_TAB_CONNECTION: Connection
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Report Table Edited Successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_REPORT_EDITED') );
} }
}); });
@@ -2604,7 +2603,7 @@ var reportForm =new Ext.FormPanel({
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
formWindow.hide(); formWindow.hide();
@@ -2613,7 +2612,7 @@ var reportForm =new Ext.FormPanel({
}) })
var formWindow = new Ext.Window({ var formWindow = new Ext.Window({
title: 'New Report Table', title: _('ID_NEW_REPORT_TABLE'),
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 400, width: 400,

View File

@@ -43,12 +43,12 @@ TaskContext.prototype.editTaskSteps = function(_3252){
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
@@ -63,7 +63,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
}); });
if(availableSteps.data.items.length == 0) if(availableSteps.data.items.length == 0)
Ext.MessageBox.alert ('Status','No steps are available. All Steps have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_STEPS_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
@@ -77,7 +77,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -101,7 +101,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
STEP_POSITION : stepPosition STEP_POSITION : stepPosition
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Step has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_STEP_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
taskSteps.remove(r); taskSteps.remove(r);
//Reloading store after removing steps //Reloading store after removing steps
@@ -147,7 +147,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
var btnStepsCondition = new Ext.Button({ var btnStepsCondition = new Ext.Button({
id: 'btnCondition', id: 'btnCondition',
text: 'Condition', text: _('ID_CONDITION'),
handler: function (s) { handler: function (s) {
workflow.taskUID = taskId workflow.taskUID = taskId
workflow.variablesAction = 'grid'; workflow.variablesAction = 'grid';
@@ -339,8 +339,8 @@ TaskContext.prototype.editTaskSteps = function(_3252){
sMode : stepMode sMode : stepMode
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Step has been assigned successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_STEP_ASSIGNED') );
} }
}); });
//availableSteps.reload(); //availableSteps.reload();
//Deleting previously assigned step on updating/replacing with new step. //Deleting previously assigned step on updating/replacing with new step.
@@ -481,14 +481,14 @@ TaskContext.prototype.editUsers= function()
} }
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: _('ID_ASSIGN'), text: _('ID_ASSIGN'),
iconCls: 'application_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
var e = new userFields({ var e = new userFields({
@@ -499,7 +499,7 @@ TaskContext.prototype.editUsers= function()
}); });
//storeUsers.reload(); //storeUsers.reload();
if(storeUsers.data.items.length == 0) if(storeUsers.data.items.length == 0)
Ext.MessageBox.alert ('Status','No users are available. All users have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_USERS_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
@@ -512,7 +512,7 @@ TaskContext.prototype.editUsers= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: _('ID_DE_ASSIGN'), text: _('ID_REMOVE'),
iconCls: 'application_delete', iconCls: 'application_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -532,8 +532,8 @@ TaskContext.prototype.editUsers= function()
Ext.Ajax.request({ Ext.Ajax.request({
url : 'processes_Ajax.php' +urlparams , url : 'processes_Ajax.php' +urlparams ,
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','User has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_USERS_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
taskUsers.remove(r); taskUsers.remove(r);
//Reloading available user store //Reloading available user store
@@ -670,11 +670,11 @@ TaskContext.prototype.editUsers= function()
Ext.Ajax.request({ Ext.Ajax.request({
url: 'processes_Ajax.php' +urlparams , url: 'processes_Ajax.php' +urlparams ,
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','User has been successfully assigned'); PMExt.notify( _('ID_STATUS') , _('ID_USER_ASSIGNED') );
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed saving User Assigned to Task'); PMExt.notify( _('ID_STATUS') , _('ID_USER_SAVE_FAIL') );
} }
}); });
//Updating the user incase if already assigned user has been replaced by other user //Updating the user incase if already assigned user has been replaced by other user
@@ -741,19 +741,19 @@ TaskContext.prototype.editTaskProperties= function()
}, },
items:[ items:[
{ {
title:'Definition', title:_('ID_DEFINITION'),
layout:'form', layout:'form',
defaults: { defaults: {
width: 230 width: 230
}, },
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
fieldLabel: 'Title', fieldLabel: _('ID_TITLE'),
name: 'TAS_TITLE', name: 'TAS_TITLE',
width: 350 width: 350
},{ },{
xtype: 'textarea', xtype: 'textarea',
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
name: 'TAS_DESCRIPTION', name: 'TAS_DESCRIPTION',
allowBlank: true, allowBlank: true,
width: 350, width: 350,
@@ -770,7 +770,7 @@ TaskContext.prototype.editTaskProperties= function()
items: [{ items: [{
xtype: 'textfield', xtype: 'textfield',
labelWidth : 130, labelWidth : 130,
fieldLabel: 'Variable for Case priority', fieldLabel: _('ID_VARIABLES_CASE_PRIORITY'),
name: 'TAS_PRIORITY_VARIABLE', name: 'TAS_PRIORITY_VARIABLE',
anchor:'100%' anchor:'100%'
}] }]
@@ -794,12 +794,12 @@ TaskContext.prototype.editTaskProperties= function()
}] }]
},{ },{
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: 'Starting Task', fieldLabel: _('ID_START_TASK'),
name: 'TAS_START', name: 'TAS_START',
checked:workflow.checkStartingTask checked:workflow.checkStartingTask
}] }]
},{ },{
title:'Assignment Rules', title:_('ID_ASSIGNMENT_RULES'),
layout : 'form', layout : 'form',
defaults: { defaults: {
width: 260 width: 260
@@ -807,25 +807,25 @@ TaskContext.prototype.editTaskProperties= function()
items: [{ items: [{
xtype: 'radiogroup', xtype: 'radiogroup',
id: 'assignType', id: 'assignType',
fieldLabel: 'Cases to be Assigned by', fieldLabel: _('ID_CASES_ASSIGNED_BY'),
itemCls: 'x-check-group-alt', itemCls: 'x-check-group-alt',
columns: 1, columns: 1,
items: [{ items: [{
boxLabel: 'Cyclic Assignment', boxLabel: _('ID_CYCLIC_ASSIGNMENT'),
id: 'BALANCED', id: 'BALANCED',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'BALANCED', inputValue: 'BALANCED',
checked: false, checked: false,
listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}} listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}}
},{ },{
boxLabel: 'Manual Assignment', boxLabel: _('ID_MANUAL_ASSIGNMENT'),
id: 'MANUAL', id: 'MANUAL',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'MANUAL', inputValue: 'MANUAL',
checked:false, checked:false,
listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}} listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}}
},{ },{
boxLabel: 'Value Based', boxLabel: _('ID_VALUE_BASED'),
id:'EVALUATE', id:'EVALUATE',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'EVALUATE', inputValue: 'EVALUATE',
@@ -840,21 +840,21 @@ TaskContext.prototype.editTaskProperties= function()
} }
} }
},{ },{
boxLabel: 'Reports to', boxLabel: _('ID_REPORTS_TO'),
id:'REPORT_TO', id:'REPORT_TO',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'REPORT_TO', inputValue: 'REPORT_TO',
checked:false, checked:false,
listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}} listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}}
},{ },{
boxLabel: 'Self Service', boxLabel: _('ID_SELF_SERVICE'),
id:'SELF_SERVICE', id:'SELF_SERVICE',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'SELF_SERVICE', inputValue: 'SELF_SERVICE',
checked:false, checked:false,
listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}} listeners: {'check':{fn: function(){Ext.getCmp("staticMI").hide();Ext.getCmp("cancelMI").hide();Ext.getCmp("evaluate").hide();}}}
},{ },{
boxLabel: 'Static Partial Join for Multiple Instance', boxLabel: _('ID_STATIC_PARTIAL_JOIN_MULTIPLE_INSTANCES'),
id:'STATIC_MI', id:'STATIC_MI',
name: 'TAS_ASSIGN_TYPE', name: 'TAS_ASSIGN_TYPE',
inputValue: 'STATIC_MI', inputValue: 'STATIC_MI',
@@ -869,7 +869,7 @@ TaskContext.prototype.editTaskProperties= function()
} }
} }
},{ },{
boxLabel: 'Cancelling Partial Join for Multiple Instance', boxLabel: _('ID_CANCEL_PARTIAL_JOIN_MULTIPLE_INSTANCE'),
id : 'CANCEL_MI', id : 'CANCEL_MI',
name : 'TAS_ASSIGN_TYPE', name : 'TAS_ASSIGN_TYPE',
inputValue: 'CANCEL_MI', inputValue: 'CANCEL_MI',
@@ -897,7 +897,7 @@ TaskContext.prototype.editTaskProperties= function()
border:false, border:false,
items: [{ items: [{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Variable for Value Based Assignment', fieldLabel: _('ID_VARIABLES_VALUE_ASSIGNMENT'),
name: 'TAS_ASSIGN_VARIABLE', name: 'TAS_ASSIGN_VARIABLE',
anchor:'100%' anchor:'100%'
}] }]
@@ -926,7 +926,7 @@ TaskContext.prototype.editTaskProperties= function()
border:false, border:false,
items: [{ items: [{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Variable for No of Instances', fieldLabel: _('ID_VARIABLES_NO_INSTANCES'),
name: 'TAS_MI_INSTANCE_VARIABLE', name: 'TAS_MI_INSTANCE_VARIABLE',
anchor:'100%' anchor:'100%'
}] }]
@@ -954,7 +954,7 @@ TaskContext.prototype.editTaskProperties= function()
border:false, border:false,
items: [{ items: [{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Variable for No of Instances to complete', fieldLabel: _('ID_VARIABLES_INSTANCES_TO _COMPLETE'),
name: 'TAS_MI_COMPLETE_VARIABLE', name: 'TAS_MI_COMPLETE_VARIABLE',
anchor:'100%' anchor:'100%'
}] }]
@@ -979,7 +979,7 @@ TaskContext.prototype.editTaskProperties= function()
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
xtype: 'checkbox', xtype: 'checkbox',
boxLabel: 'Allow user defined timing control', boxLabel: _('ID_USER_DEFINED_TIMING_CONTROL'),
name: 'TAS_TRANSFER_FLY', name: 'TAS_TRANSFER_FLY',
checked: 'TAS_TRANSFER_FLY', checked: 'TAS_TRANSFER_FLY',
labelWidth: 100, labelWidth: 100,
@@ -1005,7 +1005,7 @@ TaskContext.prototype.editTaskProperties= function()
items:[{ items:[{
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Task Duration', fieldLabel: _('ID_TASK_DURATION'),
name: 'TAS_DURATION', name: 'TAS_DURATION',
width : 100, width : 100,
allowBlank:false allowBlank:false
@@ -1016,7 +1016,7 @@ TaskContext.prototype.editTaskProperties= function()
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Time Unit', fieldLabel: _('ID_TIME_UNIT'),
name: 'TAS_TIMEUNIT', name: 'TAS_TIMEUNIT',
hiddenName: 'TAS_TIMEUNIT', hiddenName: 'TAS_TIMEUNIT',
displayField: 'name', displayField: 'name',
@@ -1040,7 +1040,7 @@ TaskContext.prototype.editTaskProperties= function()
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Count Days by', fieldLabel: _('ID_COUNT_DAYS'),
name: 'TAS_TYPE_DAY', name: 'TAS_TYPE_DAY',
hiddenName: 'TAS_TYPE_DAY', hiddenName: 'TAS_TYPE_DAY',
displayField: 'name', displayField: 'name',
@@ -1068,7 +1068,7 @@ TaskContext.prototype.editTaskProperties= function()
forceSelection: true, forceSelection: true,
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
fieldLabel: 'Calendar', fieldLabel: _('ID_CALENDAR'),
name: 'TAS_CALENDAR', name: 'TAS_CALENDAR',
hiddenName: 'TAS_CALENDAR', hiddenName: 'TAS_CALENDAR',
displayField: 'name', displayField: 'name',
@@ -1090,7 +1090,7 @@ TaskContext.prototype.editTaskProperties= function()
}] }]
}] }]
},{ },{
title:'Permission', title:_('ID_PERMISSION'),
layout:'form', layout:'form',
defaults: { defaults: {
width: 260 width: 260
@@ -1100,13 +1100,13 @@ TaskContext.prototype.editTaskProperties= function()
items: [{ items: [{
xtype: 'checkbox', xtype: 'checkbox',
id: 'ADHOC', id: 'ADHOC',
fieldLabel: 'Allow arbitary transfer (Ad hoc)', fieldLabel: _('ID_ALLOW_ARBITARY_TRANSFER'),
inputValue:'ADHOC', inputValue:'ADHOC',
checked: false, checked: false,
name: 'TAS_TYPE' name: 'TAS_TYPE'
}] }]
},{ },{
title:'Case Labels', title:_('ID_CASE_LABELS'),
layout:'form', layout:'form',
defaults: { defaults: {
width: 600 width: 600
@@ -1124,7 +1124,7 @@ TaskContext.prototype.editTaskProperties= function()
border:false, border:false,
items: [{ items: [{
xtype: 'textarea', xtype: 'textarea',
fieldLabel: 'Case Title', fieldLabel: _('ID_CASE_TITLE'),
id: 'caseTitle', id: 'caseTitle',
name: 'TAS_DEF_TITLE', name: 'TAS_DEF_TITLE',
height : 120, height : 120,
@@ -1162,7 +1162,7 @@ TaskContext.prototype.editTaskProperties= function()
items: [{ items: [{
xtype: 'textarea', xtype: 'textarea',
id: 'caseDescription', id: 'caseDescription',
fieldLabel: 'Case Description', fieldLabel: _('ID_CASE_DESCRIPTION'),
name: 'TAS_DEF_DESCRIPTION', name: 'TAS_DEF_DESCRIPTION',
height : 120, height : 120,
anchor:'100%' anchor:'100%'
@@ -1189,13 +1189,13 @@ TaskContext.prototype.editTaskProperties= function()
}] }]
}] }]
},{ },{
title:'Notification', title:_('ID_NOTIFICATION'),
layout:'form', layout:'form',
defaultType: 'textfield', defaultType: 'textfield',
labelWidth: 170, labelWidth: 170,
items: [{ items: [{
xtype: 'checkbox', xtype: 'checkbox',
boxLabel: 'After routing notify the next assigned user(s).', boxLabel: _('ID_NOTIFY_USERS_AFTER_ASSIGN'),
labelWidth: 100, labelWidth: 100,
name: 'TAS_DEF_MESSAGE_CHECKBOX', name: 'TAS_DEF_MESSAGE_CHECKBOX',
checked: 'TAS_DEF_MESSAGE_CHECKBOX', checked: 'TAS_DEF_MESSAGE_CHECKBOX',
@@ -1290,7 +1290,7 @@ TaskContext.prototype.editTaskProperties= function()
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
@@ -1298,7 +1298,7 @@ TaskContext.prototype.editTaskProperties= function()
workflow.taskPropertiesTabs = taskPropertiesTabs; workflow.taskPropertiesTabs = taskPropertiesTabs;
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Task:', title: _('ID_TASK'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 600, width: 600,
@@ -1310,7 +1310,7 @@ TaskContext.prototype.editTaskProperties= function()
buttonAlign: 'center', buttonAlign: 'center',
items: taskPropertiesTabs, items: taskPropertiesTabs,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
formBind :true, formBind :true,
handler: function(){ handler: function(){
//var getstore = taskPropertiesTabs.getStore(); //var getstore = taskPropertiesTabs.getStore();
@@ -1320,7 +1320,7 @@ TaskContext.prototype.editTaskProperties= function()
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.hide(); window.hide();
@@ -1367,11 +1367,11 @@ TaskContext.prototype.saveTaskProperties= function()
Ext.Ajax.request({ Ext.Ajax.request({
url: '../tasks/tasks_Ajax.php' , url: '../tasks/tasks_Ajax.php' ,
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','Task properties has been saved successfully'); PMExt.notify( _('ID_STATUS') , _('ID_TASK_PROPERTIES_SAVE') );
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Error in saving Task Properties'); PMExt.notify( _('ID_STATUS') , _('ID_ERROR_TASK_SAVE') );
}, },
params: { params: {
functions:'saveTaskData', functions:'saveTaskData',
oData:object_data oData:object_data
@@ -1416,7 +1416,7 @@ TaskContext.prototype.stepTriggers = function()
]); ]);
var triggerEditor = new Ext.ux.grid.RowEditor({ var triggerEditor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var root = new Ext.tree.AsyncTreeNode({text: 'treeRoot',id:'0'}); var root = new Ext.tree.AsyncTreeNode({text: 'treeRoot',id:'0'});
@@ -1471,7 +1471,7 @@ TaskContext.prototype.stepTriggers = function()
var addBtn = new Ext.Button({ var addBtn = new Ext.Button({
id: 'addBtn', id: 'addBtn',
text: 'Add', text: _('ID_ADD'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
//var User = triggerGrid.getStore(); //var User = triggerGrid.getStore();
@@ -1487,7 +1487,7 @@ TaskContext.prototype.stepTriggers = function()
}); });
if(availableTriggers.data.items.length == 0) if(availableTriggers.data.items.length == 0)
Ext.MessageBox.alert ('Status','No triggers are available. All triggers have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_TRIGGERS_UNAVAILABLE') );
else else
{ {
triggerEditor.stopEditing(); triggerEditor.stopEditing();
@@ -1502,7 +1502,7 @@ TaskContext.prototype.stepTriggers = function()
var removeBtn = new Ext.Button({ var removeBtn = new Ext.Button({
id: 'removeBtn', id: 'removeBtn',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
triggerEditor.stopEditing(); triggerEditor.stopEditing();
@@ -1523,9 +1523,8 @@ TaskContext.prototype.stepTriggers = function()
Ext.Ajax.request({ Ext.Ajax.request({
url : '../steps/steps_Ajax.php' + urlparams, url : '../steps/steps_Ajax.php' + urlparams,
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Trigger has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_TRIGGER_REMOVE') );
//Secondly deleting from Grid
//Secondly deleting from Grid
stepsTriggers.remove(r); stepsTriggers.remove(r);
availableTriggers.reload(); availableTriggers.reload();
@@ -1541,7 +1540,7 @@ TaskContext.prototype.stepTriggers = function()
var btnTriggerCondition = new Ext.Button({ var btnTriggerCondition = new Ext.Button({
//id: 'btnCondition', //id: 'btnCondition',
text: 'Condition', text: _('ID_CONDITION'),
handler: function (s) { handler: function (s) {
workflow.variablesAction = 'grid'; workflow.variablesAction = 'grid';
workflow.variable = '@@', workflow.variable = '@@',
@@ -1615,7 +1614,7 @@ TaskContext.prototype.stepTriggers = function()
}, },
{ {
id: 'CON_VALUE', id: 'CON_VALUE',
header: 'Triggers', header: _('ID_TRIGGERS'),
dataIndex: 'CON_VALUE', dataIndex: 'CON_VALUE',
//width: 200, //width: 200,
sortable: true, sortable: true,
@@ -1655,7 +1654,7 @@ TaskContext.prototype.stepTriggers = function()
}, },
{ {
//id: 'STEP_TITLE', //id: 'STEP_TITLE',
header: 'Condition', header: _('ID_CONDITION'),
dataIndex: 'ST_CONDITION', dataIndex: 'ST_CONDITION',
//width: 200, //width: 200,
editable: true, editable: true,
@@ -1706,7 +1705,7 @@ TaskContext.prototype.stepTriggers = function()
ST_CONDITION : sCondition ST_CONDITION : sCondition
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Triggers has been assigned successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_TRIGGER_ASSIGN') );
tree.getLoader().dataUrl = 'get-triggers-tree.php?tid='+taskId; tree.getLoader().dataUrl = 'get-triggers-tree.php?tid='+taskId;
tree.getLoader().load(tree.root); tree.getLoader().load(tree.root);
tree.reload(); tree.reload();
@@ -1750,7 +1749,7 @@ TaskContext.prototype.stepTriggers = function()
columnWidth: 0.6, columnWidth: 0.6,
xtype: 'fieldset', xtype: 'fieldset',
//labelWidth: 120, //labelWidth: 120,
title:'Assign Triggers', title:_('ID_ASSIGN_TRIGGERS'),
defaults: {width: 140, border:false}, defaults: {width: 140, border:false},
autoHeight: true, autoHeight: true,
border: false, border: false,
@@ -1785,7 +1784,7 @@ TaskContext.prototype.editUsersAdHoc= function()
} }
]); ]);
var editor = new Ext.ux.grid.RowEditor({ var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var taskUsers = new Ext.data.JsonStore({ var taskUsers = new Ext.data.JsonStore({
root : 'data', root : 'data',
@@ -1814,8 +1813,8 @@ TaskContext.prototype.editUsersAdHoc= function()
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'Assign', text: _('ID_ASSIGN'),
iconCls: 'application_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var User = grid.getStore(); var User = grid.getStore();
var e = new userFields({ var e = new userFields({
@@ -1829,7 +1828,7 @@ TaskContext.prototype.editUsersAdHoc= function()
//storeUsers.reload(); //storeUsers.reload();
if(storeUsers.data.items.length == 0) if(storeUsers.data.items.length == 0)
Ext.MessageBox.alert ('Status','No users are available. All users have been already assigned.'); PMExt.notify( _('ID_STATUS') , _('ID_USERS_UNAVAILABLE') );
else else
{ {
editor.stopEditing(); editor.stopEditing();
@@ -1846,8 +1845,8 @@ TaskContext.prototype.editUsersAdHoc= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: _('ID_REMOVE'),
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = grid.getSelectionModel().getSelections(); var s = grid.getSelectionModel().getSelections();
@@ -1875,7 +1874,7 @@ TaskContext.prototype.editUsersAdHoc= function()
},*/ },*/
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','User has been removed successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_USERS_REMOVED') );
//Secondly deleting from Grid //Secondly deleting from Grid
taskUsers.remove(r); taskUsers.remove(r);
//Reloading available user store //Reloading available user store
@@ -1912,7 +1911,7 @@ TaskContext.prototype.editUsersAdHoc= function()
new Ext.grid.RowNumberer(), new Ext.grid.RowNumberer(),
{ {
id: 'LABEL', id: 'LABEL',
header: 'Group or User', header: _('ID_GROUP_USER'),
dataIndex: 'LABEL', dataIndex: 'LABEL',
width: 100, width: 100,
sortable: true, sortable: true,
@@ -1984,7 +1983,7 @@ TaskContext.prototype.editUsersAdHoc= function()
url: '../users/users_Ajax.php', url: '../users/users_Ajax.php',
METHOD:'post', METHOD:'post',
success: function (response) { // When saving data success success: function (response) { // When saving data success
Ext.MessageBox.alert ('Status','User has been successfully assigned'); PMExt.notify( _('ID_STATUS') , _('ID_USER_ASSIGNED') );
}, },
params:{ params:{
functions : 'assign', functions : 'assign',
@@ -1995,8 +1994,8 @@ TaskContext.prototype.editUsersAdHoc= function()
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Status','Failed saving User Assigned to Task'); PMExt.notify( _('ID_STATUS') , _('ID_USER_SAVE_FAIL') );
} }
}); });
//Updating the user incase if already assigned user has been replaced by other user //Updating the user incase if already assigned user has been replaced by other user
@@ -2010,7 +2009,8 @@ TaskContext.prototype.editUsersAdHoc= function()
url : '../users/users_Ajax.php', url : '../users/users_Ajax.php',
method: 'POST', method: 'POST',
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','User has been updated successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_USER_ASSIGNED') );
//Ext.MessageBox.alert ('Status','User has been updated successfully.');
}, },
params:{ params:{
functions : 'ofToAssign', functions : 'ofToAssign',
@@ -2033,7 +2033,7 @@ TaskContext.prototype.editUsersAdHoc= function()
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Users and User Groups(Ad Hoc)', title: _('ID_USER_GROUPS_ADHOC'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 400, width: 400,
@@ -2077,16 +2077,16 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
]); ]);
var editorOut = new Ext.ux.grid.RowEditor({ var editorOut = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
var editorIn = new Ext.ux.grid.RowEditor({ var editorIn = new Ext.ux.grid.RowEditor({
saveText: 'Update' saveText: _('ID_UPDATE')
}); });
//Variable out grid configuration starts here //Variable out grid configuration starts here
var btnAddOut = new Ext.Button({ var btnAddOut = new Ext.Button({
id: 'btnAddOut', id: 'btnAddOut',
text: 'Assign Variables Out', text: _('ID_ASSIGN_VARIABLES_OUT'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var storeData = variableOutGrid.getStore(); var storeData = variableOutGrid.getStore();
@@ -2111,7 +2111,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
var btnRemoveOut = new Ext.Button({ var btnRemoveOut = new Ext.Button({
id: 'btnRemoveOut', id: 'btnRemoveOut',
text: 'Remove Variables Out', text: _('ID_REMOVE_VARIABLES_OUT'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editorOut.stopEditing(); editorOut.stopEditing();
@@ -2130,7 +2130,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
//Variable out grid configuration starts here //Variable out grid configuration starts here
var btnAddIn = new Ext.Button({ var btnAddIn = new Ext.Button({
id: 'btnAddIn', id: 'btnAddIn',
text: 'Assign Variables In', text: 'ID_ASSIGN_VARIABLES_IN',
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function(){ handler: function(){
var e = new subProcessFields({ var e = new subProcessFields({
@@ -2151,7 +2151,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
var btnRemoveIn = new Ext.Button({ var btnRemoveIn = new Ext.Button({
id: 'btnRemoveIn', id: 'btnRemoveIn',
text: 'Remove Variables In', text: 'ID_REMOVE_VARIABLES_IN',
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editorIn.stopEditing(); editorIn.stopEditing();
@@ -2223,7 +2223,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
columns : [{ columns : [{
id : 'VAR_OUT1', id : 'VAR_OUT1',
name : 'VAR_OUT1', name : 'VAR_OUT1',
header : 'Origin', header : _('ID_ORIGIN'),
dataIndex: 'VAR_OUT1', dataIndex: 'VAR_OUT1',
width : 200, width : 200,
sortable : true, sortable : true,
@@ -2241,7 +2241,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
{ {
id : 'VAR_OUT2', id : 'VAR_OUT2',
name : 'VAR_OUT2', name : 'VAR_OUT2',
header : 'Target', header : _('ID_TARGET'),
dataIndex : 'VAR_OUT2', dataIndex : 'VAR_OUT2',
width : 200, width : 200,
sortable : true, sortable : true,
@@ -2277,7 +2277,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
columns : [{ columns : [{
id : 'VAR_IN1', id : 'VAR_IN1',
name : 'VAR_IN1', name : 'VAR_IN1',
header : 'Origin', header : _('ID_ORIGIN'),
dataIndex: 'VAR_IN1', dataIndex: 'VAR_IN1',
width : 200, width : 200,
sortable : true, sortable : true,
@@ -2295,7 +2295,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
{ {
id : 'VAR_IN2', id : 'VAR_IN2',
name : 'VAR_IN2', name : 'VAR_IN2',
header : 'Target', header : _('ID_TARGET'),
dataIndex : 'VAR_IN2', dataIndex : 'VAR_IN2',
width : 200, width : 200,
sortable : true, sortable : true,
@@ -2325,7 +2325,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
items: [ items: [
{ {
xtype:'fieldset', xtype:'fieldset',
title: 'Sub-Process', title: _('ID_SUBPROCESS'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
//width: 600, //width: 600,
@@ -2335,7 +2335,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
id: 'subProcessName', id: 'subProcessName',
xtype: 'textfield', xtype: 'textfield',
width: 350, width: 350,
fieldLabel: 'SubProcess name', fieldLabel: _('ID_SUBPROCESS_NAME'),
name : 'SPROCESS_NAME', name : 'SPROCESS_NAME',
allowBlank: false allowBlank: false
}, },
@@ -2346,7 +2346,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Process', fieldLabel: _('ID_PROCESS'),
name: 'PRO_TITLE', name: 'PRO_TITLE',
emptyText : 'Select Process', emptyText : 'Select Process',
displayField: 'PRO_TITLE', displayField: 'PRO_TITLE',
@@ -2371,7 +2371,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Type', fieldLabel: _('ID_TYPE'),
name: 'SP_SYNCHRONOUS', name: 'SP_SYNCHRONOUS',
hiddenName: 'SP_SYNCHRONOUS', hiddenName: 'SP_SYNCHRONOUS',
displayField: 'name', displayField: 'name',
@@ -2399,7 +2399,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
id :'variableout', id :'variableout',
name :'VAR_OUT1', name :'VAR_OUT1',
xtype:'fieldset', xtype:'fieldset',
title: 'Variables Out', title: _('ID_VARIABLES_OUT'),
collapsible: false, collapsible: false,
labelAlign: 'top', labelAlign: 'top',
items:[variableOutGrid] items:[variableOutGrid]
@@ -2408,7 +2408,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
id :'variablein', id :'variablein',
name :'VAR_IN1', name :'VAR_IN1',
xtype:'fieldset', xtype:'fieldset',
title: 'Variables In', title: _('ID_VARIABLES_IN'),
//hidden: true, //hidden: true,
collapsible: false, collapsible: false,
labelAlign: 'top', labelAlign: 'top',
@@ -2445,14 +2445,14 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
form.findField('SPROCESS_NAME').setValue(processName); form.findField('SPROCESS_NAME').setValue(processName);
}, },
failure:function(form, action) { failure:function(form, action) {
Ext.MessageBox.alert('Message', 'Load failed'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
//subProcessProperties.render(document.body); //subProcessProperties.render(document.body);
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Properties ', title: _('ID_PROPERTIES'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 800, width: 800,
@@ -2462,7 +2462,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
buttonAlign: 'center', buttonAlign: 'center',
items: subProcessProperties, items: subProcessProperties,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
handler: function(){ handler: function(){
var getForm = subProcessProperties.getForm().getValues(); var getForm = subProcessProperties.getForm().getValues();
@@ -2522,7 +2522,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
SP_SYNCHRONOUS : sSync SP_SYNCHRONOUS : sSync
}, },
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Sub Process Properties has been saved successfully.'); PMExt.notify( _('ID_STATUS') , _('ID_SUBPROCESS_SAVE') );
window.close(); window.close();
workflow.currentSelection.bpmnNewText.clear(); workflow.currentSelection.bpmnNewText.clear();
workflow.currentSelection.bpmnNewText.drawStringRect(sSPNAME,20,5,150,'center'); workflow.currentSelection.bpmnNewText.drawStringRect(sSPNAME,20,5,150,'center');
@@ -2532,7 +2532,7 @@ TaskContext.prototype.editSubProcessProperties= function(_3525)
}); });
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.close(); window.close();

View File

@@ -1,4 +1,4 @@
new Ext.KeyMap(document, { /*new Ext.KeyMap(document, {
key: Ext.EventObject.F5, key: Ext.EventObject.F5,
fn: function(keycode, e) { fn: function(keycode, e) {
e.stopEvent(); e.stopEvent();
@@ -10,7 +10,7 @@ new Ext.KeyMap(document, {
document.location = document.location; document.location = document.location;
} }
}); });
*/
var saveProcess; var saveProcess;

View File

@@ -20,7 +20,7 @@ pmosExt.prototype.addExtJsWindow = function(items,width,height,title)
buttonAlign: 'center', buttonAlign: 'center',
items: items, items: items,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
handler: function(){ handler: function(){
// when this button clicked, sumbit this form // when this button clicked, sumbit this form
items.getForm().submit({ items.getForm().submit({
@@ -31,13 +31,13 @@ pmosExt.prototype.addExtJsWindow = function(items,width,height,title)
//simpleForm.getForm().reset(); //simpleForm.getForm().reset();
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Message','Authentication Failed'); PMExt.notify( _('ID_STATUS') , _('ID_AUTHENTICATION_FAILED') );
} }
}); });
// var test = webForm.getForm().submit({url:'../cases/cases_SchedulerValidateUser.php', submitEmptyText: false}); // var test = webForm.getForm().submit({url:'../cases/cases_SchedulerValidateUser.php', submitEmptyText: false});
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.close(); window.close();
@@ -70,7 +70,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
items: [ items: [
{ {
xtype:'fieldset', xtype:'fieldset',
title: 'WebEntry Link', title: _('ID_WEBENTRY_LINK'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -94,7 +94,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
items: [{ items: [{
xtype: 'button', xtype: 'button',
id: 'edit', id: 'edit',
text: 'Edit', text: _('ID_EDIT'),
bodyStyle: 'padding-left:35px;', bodyStyle: 'padding-left:35px;',
// width:50, // width:50,
handler: function(){ handler: function(){
@@ -115,7 +115,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
xtype: 'button', xtype: 'button',
id: 'cancel', id: 'cancel',
//width:50, //width:50,
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
var properties = _5678.workflow.webForm.items.items[1]; var properties = _5678.workflow.webForm.items.items[1];
var credential = _5678.workflow.webForm.items.items[2]; var credential = _5678.workflow.webForm.items.items[2];
@@ -158,7 +158,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
}, },
{ {
xtype:'fieldset', xtype:'fieldset',
title: 'Properties', title: _('ID_PROPERTIES'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
defaults: {width: 210}, defaults: {width: 210},
@@ -171,7 +171,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
allowBlank:false, allowBlank:false,
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
fieldLabel: 'Initial Task', fieldLabel: _('ID_INITIAL_TASK'),
name: 'initTask', name: 'initTask',
hiddenName: 'initTask', hiddenName: 'initTask',
displayField: 'name', displayField: 'name',
@@ -188,7 +188,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
allowBlank:false, allowBlank:false,
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
fieldLabel: 'Initial Dynaform', fieldLabel: _('ID_INITIAL_DYNAFORM'),
name: 'initDyna', name: 'initDyna',
hiddenName: 'initDyna', hiddenName: 'initDyna',
displayField: 'name', displayField: 'name',
@@ -205,7 +205,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
allowBlank:false, allowBlank:false,
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
fieldLabel: 'Methods', fieldLabel: _('ID_METHODS'),
name: 'methods', name: 'methods',
hiddenName: 'methods', hiddenName: 'methods',
displayField: 'name', displayField: 'name',
@@ -244,7 +244,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
triggerAction: 'all', triggerAction: 'all',
editable: false, editable: false,
allowBlank:false, allowBlank:false,
fieldLabel: 'Input Document Access', fieldLabel: _('ID_INPUT_DOC_ACCESS'),
name: 'inputDocAccess', name: 'inputDocAccess',
hiddenName: 'inputDocAccess', hiddenName: 'inputDocAccess',
displayField: 'name', displayField: 'name',
@@ -259,17 +259,17 @@ pmosExt.prototype.popWebEntry= function(_5678)
}] }]
},{ },{
xtype:'fieldset', xtype:'fieldset',
title: 'PHP & Web Service options', title: _('ID_PHP_WEB_SERVICE'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
defaults: {width: 210}, defaults: {width: 210},
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
fieldLabel: 'Web Service User', fieldLabel: _('ID_WEB_SERVICE_USER'),
name: 'webserviceUser', name: 'webserviceUser',
allowBlank:true allowBlank:true
},{ },{
fieldLabel: 'Web Service Password', fieldLabel: _('ID_WEB_SERVICE_PASSWORD'),
name: 'webservicePassword', name: 'webservicePassword',
allowBlank:true, allowBlank:true,
inputType:'password' inputType:'password'
@@ -285,7 +285,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
//oPmosExt.addExtJsWindow(webForm,600,500,'Add New webentry'); //oPmosExt.addExtJsWindow(webForm,600,500,'Add New webentry');
var webEntrywindow = new Ext.Window({ var webEntrywindow = new Ext.Window({
title: 'Start Message Event(Web Entry)', title: _('ID_START_MESSAGE_EVENT_WEB_ENTRY'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 450, width: 450,
@@ -299,7 +299,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
items: webForm, items: webForm,
scope:_5678, scope:_5678,
buttons: [{ buttons: [{
text: 'Test Configuration', text: _('ID_TEST_CONFIGURATION'),
handler: function(){ handler: function(){
var propertiesfields = _5678.workflow.webForm.items.items[1].items.items; var propertiesfields = _5678.workflow.webForm.items.items[1].items.items;
var credentialFields = _5678.workflow.webForm.items.items[2].items.items; var credentialFields = _5678.workflow.webForm.items.items[2].items.items;
@@ -324,12 +324,12 @@ pmosExt.prototype.popWebEntry= function(_5678)
} }
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
} }
},{ },{
text: 'Generate Web Entry Page', text: _('ID_GENERATE_WEB_ENTRY_PAGE'),
disabled:true, disabled:true,
handler: function(){ handler: function(){
var webEntryLink = _5678.workflow.webForm.items.items[0].items.items; var webEntryLink = _5678.workflow.webForm.items.items[0].items.items;
@@ -356,7 +356,7 @@ pmosExt.prototype.popWebEntry= function(_5678)
Ext.Msg.alert(response.responseText); Ext.Msg.alert(response.responseText);
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
} }
@@ -397,7 +397,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
labelWidth: 120, // label settings here cascade unless overridden labelWidth: 120, // label settings here cascade unless overridden
url:'cases_Scheduler_Save.php', url:'cases_Scheduler_Save.php',
frame:true, frame:true,
title: 'General Information', title: _('ID_GENERATE_INFO'),
bodyStyle:'padding:5px 5px 0', bodyStyle:'padding:5px 5px 0',
width: 500, width: 500,
height: 400, height: 400,
@@ -405,7 +405,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
defaultType: 'textfield', defaultType: 'textfield',
items: [{ items: [{
xtype:'fieldset', xtype:'fieldset',
title: 'Please insert a valid processmaker user name and password, in order to assign the case <br />to their respective owner', title: 'ID_PROCESSMAKER_VALIDATION',
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -413,12 +413,12 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
defaultType: 'textfield', defaultType: 'textfield',
items: [ items: [
{ {
fieldLabel: 'Username', fieldLabel: _('ID_USERNAME'),
name: 'SCH_DEL_USER_NAME', name: 'SCH_DEL_USER_NAME',
allowBlank:false, allowBlank:false,
blankText:'Enter username' blankText:'Enter username'
},{ },{
fieldLabel: 'Password', fieldLabel: _('ID_CACHE_PASSWORD'),
inputType:'password', inputType:'password',
name: 'SCH_USER_PASSWORD', name: 'SCH_USER_PASSWORD',
allowBlank:false, allowBlank:false,
@@ -427,7 +427,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
xtype: 'button', xtype: 'button',
id: 'testUser', id: 'testUser',
width:75, width:75,
text: 'Test User', text: _('ID_TEST_USER'),
arrowAlign: 'center', arrowAlign: 'center',
scope:_5678, scope:_5678,
align:'center', align:'center',
@@ -439,8 +439,8 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
var username = credentialFieldset.items.items[0].getValue(); var username = credentialFieldset.items.items[0].getValue();
var password = credentialFieldset.items.items[1].getValue(); var password = credentialFieldset.items.items[1].getValue();
if(username == '' || password == ''){ if(username == '' || password == ''){
Ext.Msg.alert('Please enter valid credentials'); PMExt.notify( _('ID_ERROR') , _('ID_VALID_CREDENTIALS') );
} }
else else
{ {
Ext.Ajax.request({ Ext.Ajax.request({
@@ -459,7 +459,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
Ext.Msg.alert(result.message); Ext.Msg.alert(result.message);
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_LOAD_FAILED') );
} }
}); });
} }
@@ -468,7 +468,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
xtype: 'button', xtype: 'button',
id: 'editUser', id: 'editUser',
width:75, width:75,
text: 'Edit User', text: _('ID_EDIT_USER'),
arrowAlign: 'center', arrowAlign: 'center',
scope:_5678, scope:_5678,
align:'center', align:'center',
@@ -484,43 +484,35 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
credentialFieldset.items.items[2].show(); //Show Test User credentialFieldset.items.items[2].show(); //Show Test User
} }
},{ },{
fieldLabel: 'Usr_uid',
name: 'SCH_DEL_USER_UID', name: 'SCH_DEL_USER_UID',
hidden:true hidden:true
},{ },{
fieldLabel: 'pro_uid',
name: 'PRO_UID', name: 'PRO_UID',
hidden:true hidden:true
},{ },{
fieldLabel: 'SCH_DAYS_PERFORM_TASK',
name: 'SCH_DAYS_PERFORM_TASK', name: 'SCH_DAYS_PERFORM_TASK',
hidden:true, hidden:true,
value:1 value:1
},{ },{
fieldLabel: 'TAS_UID',
name: 'TAS_UID', name: 'TAS_UID',
hidden:true, hidden:true,
value:1 value:1
},{ },{
fieldLabel: 'SCH_WEEK_DAYS',
name: 'SCH_WEEK_DAYS', name: 'SCH_WEEK_DAYS',
hidden:true hidden:true
},{ },{
fieldLabel: 'SCH_MONTHS',
name: 'SCH_MONTHS', name: 'SCH_MONTHS',
hidden:true hidden:true
},{ },{
fieldLabel: 'EVN_UID',
name: 'EVN_UID', name: 'EVN_UID',
hidden:true hidden:true
},{ },{
fieldLabel: 'SCH_UID',
name: 'SCH_UID', name: 'SCH_UID',
hidden:true hidden:true
}] }]
},{ },{
xtype:'fieldset', xtype:'fieldset',
title: 'Properties', title: _('ID_PROPERTIES'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -528,7 +520,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
defaultType: 'textfield', defaultType: 'textfield',
items: [ items: [
{ {
fieldLabel: 'TASK', fieldLabel: _('ID_TASK'),
name: 'TAS_NAME', name: 'TAS_NAME',
value: taskName, value: taskName,
readOnly:true, readOnly:true,
@@ -552,7 +544,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
data :oTask data :oTask
}) })
}*/,{ }*/,{
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
allowBlank:false, allowBlank:false,
name: 'SCH_NAME' name: 'SCH_NAME'
//allowBlank:false //allowBlank:false
@@ -565,7 +557,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
allowBlank:false, allowBlank:false,
value: '--select--', value: '--select--',
editable: false, editable: false,
fieldLabel: 'Perform this Task', fieldLabel: _('ID_PERFORM_TASK'),
name: 'SCH_OPTION', name: 'SCH_OPTION',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -588,7 +580,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
} }
]},{ ]},{
xtype:'fieldset', xtype:'fieldset',
title: 'Select the time and day you want this task to start.', title: _('ID_SELECT_DATE_TIME'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -599,19 +591,19 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
xtype: 'datefield', xtype: 'datefield',
name:'SCH_START_DATE', name:'SCH_START_DATE',
format: 'Y-m-d', format: 'Y-m-d',
fieldLabel: 'Start Date' fieldLabel: _('ID_START_DATE')
},{ },{
xtype: 'datefield', xtype: 'datefield',
name:'SCH_END_DATE', name:'SCH_END_DATE',
format: 'Y-m-d', format: 'Y-m-d',
fieldLabel: 'End Date' fieldLabel: _('ID_END_DATE')
},{ },{
fieldLabel: 'Execution Time', fieldLabel: _('ID_EXECUTION_TIME'),
name: 'SCH_START_TIME' name: 'SCH_START_TIME'
//allowBlank:false //allowBlank:false
},{ },{
xtype: 'checkboxgroup', xtype: 'checkboxgroup',
fieldLabel: 'Select the day(s) of the week below', fieldLabel: _('ID_SELECT_DAY_OF_WEEK'),
name:'SCH_WEEK_DAY', name:'SCH_WEEK_DAY',
hidden: true, hidden: true,
// Put all controls in a single column with width 100% // Put all controls in a single column with width 100%
@@ -719,7 +711,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
value:1 value:1
},{ },{
xtype: 'checkboxgroup', xtype: 'checkboxgroup',
fieldLabel: 'of the month(s)', fieldLabel: _('ID_OF_THE_MONTH'),
name:'SCH_MONTH', name:'SCH_MONTH',
hidden:true, hidden:true,
// Put all controls in a single column with width 100% // Put all controls in a single column with width 100%
@@ -801,7 +793,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
timeFieldset.hide(); timeFieldset.hide();
// oPmosExt.addExtJsWindow(caseSchedularForm,600,550,'Add New Case scheduler'); // oPmosExt.addExtJsWindow(caseSchedularForm,600,550,'Add New Case scheduler');
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Start Timer Event (Case Scheduler)', title: _('ID_START_TIME_EVENT'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 600, width: 600,
@@ -814,7 +806,7 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
buttonAlign: 'center', buttonAlign: 'center',
items: caseSchedularForm, items: caseSchedularForm,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
handler: function(){ handler: function(){
//Set SCH_WEEK_DAYS field //Set SCH_WEEK_DAYS field
var sch_week_days = timeFieldset.items.items[3].getValue(); var sch_week_days = timeFieldset.items.items[3].getValue();
@@ -837,15 +829,15 @@ pmosExt.prototype.popCaseSchedular= function(_5678){
caseSchedularForm.getForm().submit({ caseSchedularForm.getForm().submit({
waitMsg: 'Saving...', // Wait Message waitMsg: 'Saving...', // Wait Message
success: function () { // When saving data success success: function () { // When saving data success
Ext.MessageBox.alert ('Case Scheduler Saved Sucessfully'); PMExt.notify( _('ID_STATUS') , _('ID_CASE_SCHEDULER_SAVED') );
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Message','Authentication Failed'); PMExt.notify( _('ID_STATUS') , _('ID_AUTHENTICATION_FAILED') );
} }
}); });
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
// when this button clicked, // when this button clicked,
window.close(); window.close();
@@ -943,7 +935,7 @@ pmosExt.prototype.popTaskNotification= function(_5678){
items: [{ items: [{
xtype:'fieldset', xtype:'fieldset',
checkboxToggle:true, checkboxToggle:true,
title: 'After routing notify the next assigned user(s).', title: _('ID_AFTER_ROUTING_NOTIFY'),
autoHeight:true, autoHeight:true,
labelWidth: 5, labelWidth: 5,
defaults: {width: 400}, defaults: {width: 400},
@@ -959,7 +951,7 @@ pmosExt.prototype.popTaskNotification= function(_5678){
}] }]
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Intermediate Message Events (Task Notifications)', title: _('ID_INTERMEDIATE_MESSAGE_EVENTS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 500, width: 500,
@@ -972,7 +964,7 @@ pmosExt.prototype.popTaskNotification= function(_5678){
buttonAlign: 'center', buttonAlign: 'center',
items: taskNotificationForm, items: taskNotificationForm,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
handler: function(){ handler: function(){
//waitMsg: 'Saving...', // Wait Message //waitMsg: 'Saving...', // Wait Message
var fields = taskNotificationForm.items.items; var fields = taskNotificationForm.items.items;
@@ -998,7 +990,7 @@ pmosExt.prototype.popTaskNotification= function(_5678){
} }
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
window.close(); window.close();
} }
@@ -1017,24 +1009,29 @@ pmosExt.prototype.loadTask = function(_5678){
this.workflow.taskDetails = Ext.util.JSON.decode(response.responseText); this.workflow.taskDetails = Ext.util.JSON.decode(response.responseText);
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
} }
} }
pmosExt.prototype.getTriggerList = function()
{ pmosExt.prototype.getTriggerList = function(_5678){
var urlparams = '?action=triggersList&data={"pro_uid":"'+ pro_uid +'"}'; var pro_uid = _5678.workflow.getUrlVars();
Ext.Ajax.request({ if(typeof pro_uid != 'undefined')
url: "processes_Ajax.php"+ urlparams, {
success: function(response) { var urlparams = '?action=triggersList&data={"pro_uid":"'+ pro_uid +'"}';
workflow.triggerList = Ext.util.JSON.decode(response.responseText); Ext.Ajax.request({
}, url: "processes_Ajax.php"+ urlparams,
failure: function(){ success: function(response) {
Ext.Msg.alert ('Failure'); this.workflow.triggerList = Ext.util.JSON.decode(response.responseText);
} },
}); failure: function(){
PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}
});
}
} }
pmosExt.prototype.toggleFields = function(field,bool){ pmosExt.prototype.toggleFields = function(field,bool){
@@ -1064,7 +1061,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
items: [ items: [
{ {
xtype:'fieldset', xtype:'fieldset',
title: 'Event Message', title: _('ID_EVENT_MESSAGE'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -1073,7 +1070,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
items:[ items:[
{ {
width : 200, width : 200,
fieldLabel: 'Description', fieldLabel: _('ID_DESCRIPTION'),
name : 'description', name : 'description',
allowBlank: false allowBlank: false
},{ },{
@@ -1083,7 +1080,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Status', fieldLabel: _('ID_STATUS'),
name: 'status', name: 'status',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1098,7 +1095,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
] ]
},{ },{
xtype:'fieldset', xtype:'fieldset',
title: 'Behaviour', title: _('ID_BEHAVIOUR'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -1111,7 +1108,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Type', fieldLabel: _('ID_TYPE'),
name: 'type', name: 'type',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1129,7 +1126,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'The time starts with task', fieldLabel: _('ID_TIME_START_WITH_TASK'),
name: 'type', name: 'type',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1138,12 +1135,12 @@ pmosExt.prototype.popMessageEvent= function(_5678){
data :oTask data :oTask
}) })
},{ },{
fieldLabel: 'Estimated Task duration', fieldLabel: _('ID_ESTIMATED_TASK_DURATION'),
width: 50, width: 50,
name: 'estimatedTask', name: 'estimatedTask',
allowBlank:false allowBlank:false
},{ },{
fieldLabel: 'Execution time', fieldLabel: _('ID_EXECUTION_TIME'),
width: 50, width: 50,
name: 'executionTime', name: 'executionTime',
allowBlank:false allowBlank:false
@@ -1154,7 +1151,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Execution time Interval', fieldLabel: _('ID_EXECUTION_TIME_INTERVAL'),
name: 'executionTimeInterval', name: 'executionTimeInterval',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1173,7 +1170,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
_5678.workflow.messageEventForm = messageEvent; _5678.workflow.messageEventForm = messageEvent;
var window = new Ext.Window({ var window = new Ext.Window({
title: 'End Message Event (Message Event)', title: _('ID_END_MESSAGE_EVENT'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 500, width: 500,
@@ -1186,7 +1183,7 @@ pmosExt.prototype.popMessageEvent= function(_5678){
buttonAlign: 'center', buttonAlign: 'center',
items: messageEvent, items: messageEvent,
buttons: [{ buttons: [{
text: 'Continue', text: _('ID_CONTINUE'),
handler: function(){ handler: function(){
//waitMsg: 'Saving...', // Wait Message //waitMsg: 'Saving...', // Wait Message
var fields = messageEvent.items.items; var fields = messageEvent.items.items;
@@ -1206,13 +1203,13 @@ pmosExt.prototype.popMessageEvent= function(_5678){
window.close(); window.close();
}, },
failure: function(){ failure: function(){
Ext.Msg.alert ('Failure'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
} }
}); });
} }
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
window.close(); window.close();
} }
@@ -1238,7 +1235,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
items: [ items: [
{ {
xtype:'fieldset', xtype:'fieldset',
title: 'Event Multiple', title: _('ID_EVENT_MULTIPLE'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -1246,7 +1243,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
defaultType: 'textfield', defaultType: 'textfield',
items:[ items:[
{ {
fieldLabel: 'Description', fieldLabel: '_(ID_DESCRIPTION)',
blankText:'Enter Event Description', blankText:'Enter Event Description',
name: 'EVN_DESCRIPTION', name: 'EVN_DESCRIPTION',
allowBlank:false allowBlank:false
@@ -1257,7 +1254,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
allowBlank:false, allowBlank:false,
editable: false, editable: false,
fieldLabel: 'Status', fieldLabel: _('ID_STATUS'),
name: 'EVN_STATUS', name: 'EVN_STATUS',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1284,7 +1281,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
] ]
},{ },{
xtype:'fieldset', xtype:'fieldset',
title: 'Behaviour', title: _('ID_BEHAVIOUR'),
collapsible: false, collapsible: false,
autoHeight:true, autoHeight:true,
buttonAlign : 'center', buttonAlign : 'center',
@@ -1337,7 +1334,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
allowBlank : false, allowBlank : false,
editable : false, editable : false,
fieldLabel : 'Type', fieldLabel : _('ID_TYPE'),
name : 'EVN_RELATED_TO', name : 'EVN_RELATED_TO',
displayField : 'name', displayField : 'name',
valueField : 'value', valueField : 'value',
@@ -1370,7 +1367,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
allowBlank : false, allowBlank : false,
editable: false, editable: false,
fieldLabel: 'The time starts with task', fieldLabel: _('ID_TIME_START_WITH_TASK'),
name: 'EVN_TAS_UID_FROM', name: 'EVN_TAS_UID_FROM',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1385,7 +1382,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
allowBlank : false, allowBlank : false,
editable: false, editable: false,
fieldLabel: 'to', fieldLabel: _('ID_TO'),
name: 'EVN_TAS_UID_TO', name: 'EVN_TAS_UID_TO',
displayField: 'name', displayField: 'name',
valueField: 'value', valueField: 'value',
@@ -1395,12 +1392,12 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
}) })
},{ },{
width:50, width:50,
fieldLabel: 'Estimated Task duration in Days', fieldLabel: _('ID_ESTIMATED_TASK_DURATION_DAYS'),
name: 'EVN_TAS_ESTIMATED_DURATION', name: 'EVN_TAS_ESTIMATED_DURATION',
allowBlank:false allowBlank:false
},{ },{
width:50, width:50,
fieldLabel: 'Execution time in days', fieldLabel: _('ID_EXECUTION_TIME_DAYS'),
name: 'EVN_WHEN', name: 'EVN_WHEN',
allowBlank:false allowBlank:false
},{ },{
@@ -1432,7 +1429,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
triggerAction: 'all', triggerAction: 'all',
forceSelection: true, forceSelection: true,
editable: false, editable: false,
fieldLabel: 'Execute Trigger', fieldLabel: _('ID_EXECUTE_TRIGGER'),
name: 'TRI_UID', name: 'TRI_UID',
displayField: 'TRI_TITLE', displayField: 'TRI_TITLE',
valueField: 'TRI_UID', valueField: 'TRI_UID',
@@ -1470,7 +1467,7 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
oPmosExt.toggleFields(fieldsToToggle,false); oPmosExt.toggleFields(fieldsToToggle,false);
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Intermediate Timer Event (Multiple Event)', title: _('ID_INTERMEDIATE_TIMER_EVENTS'),
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 500, width: 500,
@@ -1483,12 +1480,12 @@ pmosExt.prototype.popMultipleEvent= function(_5678){
buttonAlign: 'center', buttonAlign: 'center',
items: multipleEvent, items: multipleEvent,
buttons: [{ buttons: [{
text: 'Save', text: _('ID_SAVE'),
handler: function(){ handler: function(){
oPmosExt.saveInterTimer(); oPmosExt.saveInterTimer();
} }
},{ },{
text: 'Cancel', text: _('ID_CANCEL'),
handler: function(){ handler: function(){
window.close(); window.close();
} }
@@ -1566,103 +1563,113 @@ pmosExt.prototype.saveInterTimer=function()
Ext.MessageBox.alert (response.responseText); Ext.MessageBox.alert (response.responseText);
}, },
failure: function () { // when saving data failed failure: function () { // when saving data failed
Ext.MessageBox.alert ('Message','Authentication Failed'); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}, },
params: { params: {
sData:sData sData:sData
} }
}); });
} }
pmosExt.prototype.loadProcess=function()
{ pmosExt.prototype.loadProcess=function(_5678)
var urlparams = '?action=load&data={"uid":"'+ pro_uid +'"}'; {
Ext.Ajax.request({ var pro_uid = _5678.workflow.getUrlVars();
url: "processes_Ajax.php"+ urlparams, var urlparams = '?action=load&data={"uid":"'+ pro_uid +'"}';
success: function(response) { Ext.Ajax.request({
workflow.processInfo = Ext.util.JSON.decode(response.responseText); url: "processes_Ajax.php"+ urlparams,
}, success: function(response) {
failure: function(){ _5678.workflow.processInfo = Ext.util.JSON.decode(response.responseText);
Ext.Msg.alert ('Failure'); },
} failure: function(){
}); PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}
});
} }
pmosExt.prototype.loadDynaforms=function() pmosExt.prototype.loadDynaforms=function()
{ {
var taskUid = workflow.taskUid; var taskUid = _5678.workflow.taskUid;
if(typeof taskUid[0] != 'undefined'){ if(typeof taskUid[0] != 'undefined')
var urlparams = '?action=dynaforms&data={"uid":"'+ taskUid[0].value +'"}'; {
Ext.Ajax.request({ var urlparams = '?action=dynaforms&data={"uid":"'+ taskUid[0].value +'"}';
url: "processes_Ajax.php"+ urlparams, Ext.Ajax.request({
success: function(response) { url: "processes_Ajax.php"+ urlparams,
workflow.dynaList = Ext.util.JSON.decode(response.responseText); success: function(response) {
}, _5678.workflow.dynaList = Ext.util.JSON.decode(response.responseText);
failure: function(){ },
Ext.Msg.alert ('Failure'); failure: function(){
} PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}); }
} });
}
} }
pmosExt.prototype.loadConnectedTask=function() pmosExt.prototype.loadConnectedTask=function()
{ {
var urlparams = '?action=load&data={"uid":"'+ pro_uid +'"}'; var pro_uid = _5678.workflow.getUrlVars();
Ext.Ajax.request({
url: "processes_Ajax.php"+ urlparams, var urlparams = '?action=load&data={"uid":"'+ pro_uid +'"}';
success: function(response) { Ext.Ajax.request({
workflow.processInfo = Ext.util.JSON.decode(response.responseText); url: "processes_Ajax.php"+ urlparams,
}, success: function(response) {
failure: function(){ _5678.workflow.processInfo = Ext.util.JSON.decode(response.responseText);
Ext.Msg.alert ('Failure');
} },
}); failure: function(){
PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}
});
} }
pmosExt.prototype.loadWebEntry=function() pmosExt.prototype.loadWebEntry=function()
{ {
var evn_uid = workflow.currentSelection.id; var pro_uid = _5678.workflow.getUrlVars();
var urlparams = '?action=webEntry&data={"uid":"'+ pro_uid +'","evn_uid":"'+evn_uid+'"}'; var evn_uid = _5678.workflow.currentSelection.id;
Ext.Ajax.request({ var urlparams = '?action=webEntry&data={"uid":"'+ pro_uid +'","evn_uid":"'+evn_uid+'"}';
url: "processes_Ajax.php"+ urlparams, Ext.Ajax.request({
success: function(response) { url: "processes_Ajax.php"+ urlparams,
workflow.webEntryList = Ext.util.JSON.decode(response.responseText); success: function(response) {
}, _5678.workflow.webEntryList = Ext.util.JSON.decode(response.responseText);
failure: function(){ },
Ext.Msg.alert ('Failure'); failure: function(){
} PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}); }
});
} }
pmosExt.prototype.loadEditProcess=function() pmosExt.prototype.loadEditProcess=function()
{ {
var urlparams = '?action=process_Edit&data={"pro_uid":"'+ pro_uid +'"}'; var pro_uid = _5678.workflow.getUrlVars();
Ext.Ajax.request({ var urlparams = '?action=process_Edit&data={"pro_uid":"'+ pro_uid +'"}';
url: "processes_Ajax.php"+ urlparams, Ext.Ajax.request({
success: function(response) { url: "processes_Ajax.php"+ urlparams,
workflow.processEdit = Ext.util.JSON.decode(response.responseText); success: function(response) {
}, _5678.workflow.processEdit = Ext.util.JSON.decode(response.responseText);
failure: function(){ },
Ext.Msg.alert ('Failure'); failure: function(){
} PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}); }
});
} }
pmosExt.prototype.loadProcessCategory =function() pmosExt.prototype.loadProcessCategory =function()
{ {
var urlparams = '?action=loadCategory'; var pro_uid = _5678.workflow.getUrlVars();
Ext.Ajax.request({ var urlparams = '?action=loadCategory';
url: "processes_Ajax.php"+ urlparams, Ext.Ajax.request({
success: function(response) { url: "processes_Ajax.php"+ urlparams,
workflow.processCategory = Ext.util.JSON.decode(response.responseText); success: function(response) {
}, _5678.workflow.processCategory = Ext.util.JSON.decode(response.responseText);
failure: function(){ },
Ext.Msg.alert ('Failure'); failure: function(){
} PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}); }
});
} }
pmosExt.prototype.saveEvent =function(urlparams) pmosExt.prototype.saveEvent =function(urlparams)
{ {
Ext.Ajax.request({ Ext.Ajax.request({
url: "processes_Ajax.php"+ urlparams, url: "processes_Ajax.php"+ urlparams,
success: function(response) { success: function(response) {
},
failure: function(){ },
Ext.Msg.alert ('Failure'); failure: function(){
} PMExt.notify( _('ID_STATUS') , _('ID_FAILURE') );
}); }
});
} }