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

View File

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

View File

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

View File

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

View File

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