Fixed issues related to task properties in Extjs
This commit is contained in:
@@ -196,9 +196,10 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
header: _('ID_CONDITION'),
|
header: _('ID_CONDITION'),
|
||||||
dataIndex: 'STEP_CONDITION',
|
dataIndex: 'STEP_CONDITION',
|
||||||
width: 250,
|
width: 250,
|
||||||
editable: true,
|
//editable: true,
|
||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
})
|
editable : true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@@ -365,21 +366,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Setup Drop Targets
|
|
||||||
// This will make sure we only drop to the view scroller element
|
|
||||||
/* var firstGridDropTargetEl = grid.getView().scroller.dom;
|
|
||||||
var firstGridDropTarget = new Ext.dd.DropTarget(firstGridDropTargetEl, {
|
|
||||||
ddGroup : 'firstGridDDGroup',
|
|
||||||
notifyDrop : function(ddSource, e, data){
|
|
||||||
var records = ddSource.dragData.selections;
|
|
||||||
Ext.each(records, ddSource.grid.store.remove, ddSource.grid.store);
|
|
||||||
grid.store.add(records);
|
|
||||||
grid.store.commitChanges();
|
|
||||||
//firstGrid.store.sort('gridIndex', 'ASC');
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
firstGridDropTarget.addToGroup('firstGridDDGroup');*/
|
|
||||||
|
|
||||||
//Getting triggers data using stepTriggers function
|
//Getting triggers data using stepTriggers function
|
||||||
var treeGrid = taskExtObj.stepTriggers(_3252);
|
var treeGrid = taskExtObj.stepTriggers(_3252);
|
||||||
@@ -786,7 +773,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
name: 'selectorigin',
|
name: 'selectorigin',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'form';
|
workflow.variablesAction = 'form';
|
||||||
workflow.fieldId = 'priorityVariable' ;
|
workflow.fieldName = 'TAS_PRIORITY_VARIABLE' ;
|
||||||
workflow.formSelected = taskPropertiesTabs;
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
var rowData = ProcMapObj.ExtVariables();
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
console.log(rowData);
|
console.log(rowData);
|
||||||
@@ -807,13 +794,13 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
},
|
},
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'radiogroup',
|
xtype: 'radiogroup',
|
||||||
id: 'assignType',
|
//id: 'assignType',
|
||||||
fieldLabel: _('ID_CASES_ASSIGNED_BY'),
|
fieldLabel: _('ID_CASES_ASSIGNED_BY'),
|
||||||
itemCls: 'x-check-group-alt',
|
itemCls: 'x-check-group-alt',
|
||||||
columns: 1,
|
columns: 1,
|
||||||
items: [{
|
items: [{
|
||||||
boxLabel: _('ID_CYCLIC_ASSIGNMENT'),
|
boxLabel: _('ID_CYCLIC_ASSIGNMENT'),
|
||||||
id: 'BALANCED',
|
//id: 'BALANCED',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'BALANCED',
|
inputValue: 'BALANCED',
|
||||||
checked: false
|
checked: false
|
||||||
@@ -828,7 +815,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
// }
|
// }
|
||||||
},{
|
},{
|
||||||
boxLabel: _('ID_MANUAL_ASSIGNMENT'),
|
boxLabel: _('ID_MANUAL_ASSIGNMENT'),
|
||||||
id: 'MANUAL',
|
// id: 'MANUAL',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'MANUAL',
|
inputValue: 'MANUAL',
|
||||||
checked:false
|
checked:false
|
||||||
@@ -861,7 +848,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
// }
|
// }
|
||||||
},{
|
},{
|
||||||
boxLabel: _('ID_REPORTS_TO'),
|
boxLabel: _('ID_REPORTS_TO'),
|
||||||
id:'REPORT_TO',
|
//id:'REPORT_TO',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'REPORT_TO',
|
inputValue: 'REPORT_TO',
|
||||||
checked:false
|
checked:false
|
||||||
@@ -876,7 +863,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
// }
|
// }
|
||||||
},{
|
},{
|
||||||
boxLabel: _('ID_SELF_SERVICE'),
|
boxLabel: _('ID_SELF_SERVICE'),
|
||||||
id:'SELF_SERVICE',
|
//id:'SELF_SERVICE',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'SELF_SERVICE',
|
inputValue: 'SELF_SERVICE',
|
||||||
checked:false
|
checked:false
|
||||||
@@ -892,7 +879,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
// }
|
// }
|
||||||
},{
|
},{
|
||||||
boxLabel: _('ID_STATIC_PARTIAL_JOIN_MULTIPLE_INSTANCES'),
|
boxLabel: _('ID_STATIC_PARTIAL_JOIN_MULTIPLE_INSTANCES'),
|
||||||
id:'STATIC_MI',
|
//id:'STATIC_MI',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'STATIC_MI',
|
inputValue: 'STATIC_MI',
|
||||||
checked:false
|
checked:false
|
||||||
@@ -907,7 +894,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
// }
|
// }
|
||||||
},{
|
},{
|
||||||
boxLabel: _('ID_CANCEL_PARTIAL_JOIN_MULTIPLE_INSTANCE'),
|
boxLabel: _('ID_CANCEL_PARTIAL_JOIN_MULTIPLE_INSTANCE'),
|
||||||
id : 'CANCEL_MI',
|
//id : 'CANCEL_MI',
|
||||||
name : 'TAS_ASSIGN_TYPE',
|
name : 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'CANCEL_MI',
|
inputValue: 'CANCEL_MI',
|
||||||
checked:false
|
checked:false
|
||||||
@@ -1138,7 +1125,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
labelWidth: 200,
|
labelWidth: 200,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'checkbox',
|
xtype: 'checkbox',
|
||||||
id: 'ADHOC',
|
//id: 'ADHOC',
|
||||||
fieldLabel: _('ID_ALLOW_ARBITARY_TRANSFER'),
|
fieldLabel: _('ID_ALLOW_ARBITARY_TRANSFER'),
|
||||||
inputValue:'ADHOC',
|
inputValue:'ADHOC',
|
||||||
checked: false,
|
checked: false,
|
||||||
@@ -1164,7 +1151,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
items: [{
|
items: [{
|
||||||
xtype: 'textarea',
|
xtype: 'textarea',
|
||||||
fieldLabel: _('ID_CASE_TITLE'),
|
fieldLabel: _('ID_CASE_TITLE'),
|
||||||
id: 'caseTitle',
|
//id: 'caseTitle',
|
||||||
name: 'TAS_DEF_TITLE',
|
name: 'TAS_DEF_TITLE',
|
||||||
height : 120,
|
height : 120,
|
||||||
//value: _5625.scope.workflow.taskDetails.TAS_ASSIGN_VARIABLE
|
//value: _5625.scope.workflow.taskDetails.TAS_ASSIGN_VARIABLE
|
||||||
@@ -1182,7 +1169,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'form';
|
workflow.variablesAction = 'form';
|
||||||
workflow.variable = '@%23',
|
workflow.variable = '@%23',
|
||||||
workflow.fieldId = 'caseTitle' ;
|
workflow.fieldName = 'TAS_DEF_TITLE' ;
|
||||||
workflow.formSelected = taskPropertiesTabs;
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
var rowData = ProcMapObj.ExtVariables();
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
console.log(rowData);
|
console.log(rowData);
|
||||||
@@ -1200,7 +1187,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'textarea',
|
xtype: 'textarea',
|
||||||
id: 'caseDescription',
|
//id: 'caseDescription',
|
||||||
fieldLabel: _('ID_CASE_DESCRIPTION'),
|
fieldLabel: _('ID_CASE_DESCRIPTION'),
|
||||||
name: 'TAS_DEF_DESCRIPTION',
|
name: 'TAS_DEF_DESCRIPTION',
|
||||||
height : 120,
|
height : 120,
|
||||||
@@ -1219,7 +1206,7 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'form';
|
workflow.variablesAction = 'form';
|
||||||
workflow.variable = '@%23',
|
workflow.variable = '@%23',
|
||||||
workflow.fieldId= 'caseDescription' ;
|
workflow.fieldName= 'TAS_DEF_DESCRIPTION' ;
|
||||||
workflow.formSelected = taskPropertiesTabs;
|
workflow.formSelected = taskPropertiesTabs;
|
||||||
var rowData = ProcMapObj.ExtVariables();
|
var rowData = ProcMapObj.ExtVariables();
|
||||||
console.log(rowData);
|
console.log(rowData);
|
||||||
@@ -1280,11 +1267,11 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
method:'GET',
|
method:'GET',
|
||||||
waitMsg:'Loading',
|
waitMsg:'Loading',
|
||||||
success:function(form, action) {
|
success:function(form, action) {
|
||||||
|
alert(action.result.data.TAS_START);
|
||||||
if(action.result.data.TAS_START== 0)
|
if(action.result.data.TAS_START== true)
|
||||||
workflow.checkStartingTask = false;
|
workflow.checkStartingTask = 'on';
|
||||||
else
|
else
|
||||||
workflow.checkStartingTask = true;
|
workflow.checkStartingTask = 'off';
|
||||||
|
|
||||||
//To load the values of the selecte radio button in Assignment Rules
|
//To load the values of the selecte radio button in Assignment Rules
|
||||||
if(action.result.data.TAS_ASSIGN_TYPE=='BALANCED')
|
if(action.result.data.TAS_ASSIGN_TYPE=='BALANCED')
|
||||||
@@ -1293,8 +1280,8 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
else if(action.result.data.TAS_ASSIGN_TYPE=='MANUAL')
|
else if(action.result.data.TAS_ASSIGN_TYPE=='MANUAL')
|
||||||
{
|
{
|
||||||
form.items.items[4].items[1].checked=true;
|
form.items.items[4].items[1].checked=true;
|
||||||
Ext.getCmp(ID).setValue(true);
|
//Ext.getCmp(ID).setValue(true);
|
||||||
Ext.getCmp('BALANCED').setValue(true);
|
//taskPropertiesTabs.getForm().findField('TAS_ASSIGN_TYPE').setValue(true);
|
||||||
}
|
}
|
||||||
else if(action.result.data.TAS_ASSIGN_TYPE=='EVALUATE')
|
else if(action.result.data.TAS_ASSIGN_TYPE=='EVALUATE')
|
||||||
{
|
{
|
||||||
@@ -1333,8 +1320,9 @@ TaskContext.prototype.editTaskProperties= function()
|
|||||||
|
|
||||||
|
|
||||||
if(action.result.data.TAS_ASSIGN_TYPE == 'EVALUATE')
|
if(action.result.data.TAS_ASSIGN_TYPE == 'EVALUATE')
|
||||||
form.findField('TAS_ASSIGN_VARIABLE').show();
|
form.findField('TAS_ASSIGN_VARIABLE').show();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
failure:function(form, action) {
|
failure:function(form, action) {
|
||||||
@@ -1388,14 +1376,20 @@ TaskContext.prototype.saveTaskProperties= function()
|
|||||||
var tas_transfer_fly = saveTaskform['TAS_TRANSFER_FLY'];
|
var tas_transfer_fly = saveTaskform['TAS_TRANSFER_FLY'];
|
||||||
var send_email = saveTaskform['SEND_EMAIL'];
|
var send_email = saveTaskform['SEND_EMAIL'];
|
||||||
saveTaskform['TAS_UID'] = taskId;
|
saveTaskform['TAS_UID'] = taskId;
|
||||||
|
alert(tas_start);
|
||||||
|
|
||||||
//Checking checkbox fields
|
//Checking checkbox fields
|
||||||
if(typeof tas_start != 'undefined' && tas_start != ''){
|
// if(typeof tas_start != 'undefined' && tas_start != ''){
|
||||||
if(tas_start == 'on')
|
// if(tas_start == 'on')
|
||||||
saveTaskform['TAS_START'] = 'TRUE';
|
// saveTaskform['TAS_START'] = 'TRUE';
|
||||||
else
|
// else
|
||||||
saveTaskform['TAS_START'] = 'FALSE';
|
// saveTaskform['TAS_START'] = 'FALSE';
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
if(tas_start == 'on')
|
||||||
|
tas_start = true;
|
||||||
|
else if(typeof tas_start == 'undefined')
|
||||||
|
tas_start = false;
|
||||||
if(typeof tas_transfer_fly != 'undefined' && tas_transfer_fly != ''){
|
if(typeof tas_transfer_fly != 'undefined' && tas_transfer_fly != ''){
|
||||||
if(tas_transfer_fly == 'on')
|
if(tas_transfer_fly == 'on')
|
||||||
saveTaskform['TAS_TRANSFER_FLY'] = 'TRUE';
|
saveTaskform['TAS_TRANSFER_FLY'] = 'TRUE';
|
||||||
|
|||||||
Reference in New Issue
Block a user