Worked on Edit part of Case tracker Objects and Task properties in ExtJs
This commit is contained in:
@@ -195,37 +195,14 @@ switch($_GET['action'])
|
|||||||
$rows[$key] = 'Work Days';
|
$rows[$key] = 'Work Days';
|
||||||
else if($key == 'TAS_TYPE_DAY' && $value == '2')
|
else if($key == 'TAS_TYPE_DAY' && $value == '2')
|
||||||
$rows[$key] = 'Calendar Days';
|
$rows[$key] = 'Calendar Days';
|
||||||
|
if($key == 'TAS_TYPE' && $value == 'NORMAL')
|
||||||
|
$rows[$key] = false;
|
||||||
|
else if($key == 'TAS_TYPE' && $value == 'ADHOC')
|
||||||
|
$rows[$key] = true;
|
||||||
|
|
||||||
if($key == 'TAS_ASSIGN_TYPE')
|
|
||||||
{
|
|
||||||
switch($value)
|
|
||||||
{
|
|
||||||
case 'SELF_SERVICE':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
break;
|
|
||||||
case 'REPORT_TO':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
break;
|
|
||||||
case 'BALANCED':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
break;
|
|
||||||
case 'MANUAL':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
break;
|
|
||||||
case 'EVALUATE':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
$rows['hideEvaluateField'] = 'false';
|
|
||||||
break;
|
|
||||||
case 'STATIC_MI':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
$rows['hidePartialJoinField'] = 'false';
|
|
||||||
break;
|
|
||||||
case 'CANCEL_MI':
|
|
||||||
$rows[$value] = 'true';
|
|
||||||
$rows['hidePartialJoinField'] = 'false';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -879,7 +879,7 @@ ProcessMapContext.prototype.processSupervisors= function()
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign Supervisor',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -908,7 +908,7 @@ ProcessMapContext.prototype.processSupervisors= function()
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove Supervisor',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -1096,7 +1096,7 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign Dynaform',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -1124,7 +1124,7 @@ ProcessMapContext.prototype.processDynaform= function()
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove Dynaform',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -1314,7 +1314,7 @@ ProcessMapContext.prototype.processIODoc= function()
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign Input Document',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -1342,7 +1342,7 @@ ProcessMapContext.prototype.processIODoc= function()
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove Input Document',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -1606,7 +1606,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
|
|||||||
layout: 'form',
|
layout: 'form',
|
||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
width :100,
|
width :120,
|
||||||
xtype :'combo',
|
xtype :'combo',
|
||||||
mode :'local',
|
mode :'local',
|
||||||
triggerAction :'all',
|
triggerAction :'all',
|
||||||
@@ -1622,10 +1622,22 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
|
|||||||
data :[{name: 'None', value:'NONE'},
|
data :[{name: 'None', value:'NONE'},
|
||||||
{name: 'PROCESSMAP', value: 'PROCESSMAP'},
|
{name: 'PROCESSMAP', value: 'PROCESSMAP'},
|
||||||
{name: 'STAGES', value:'STAGES'}]
|
{name: 'STAGES', value:'STAGES'}]
|
||||||
})
|
}),
|
||||||
|
onSelect: function(record, index) {
|
||||||
|
//Show-Hide Format Type Field
|
||||||
|
if(record.data.value == 'NONE')
|
||||||
|
{Ext.getCmp("edit").hide();}
|
||||||
|
else if(record.data.value == 'PROCESSMAP')
|
||||||
|
{Ext.getCmp("edit").hide();}
|
||||||
|
else
|
||||||
|
{Ext.getCmp("edit").show();}
|
||||||
|
this.setValue(record.data[this.valueField || this.displayField]);
|
||||||
|
this.collapse();}
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
columnWidth:.3,
|
columnWidth:.3,
|
||||||
|
id:'edit',
|
||||||
|
hidden: true,
|
||||||
layout: 'form',
|
layout: 'form',
|
||||||
border:false,
|
border:false,
|
||||||
items: [{
|
items: [{
|
||||||
@@ -1842,7 +1854,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
|
|
||||||
var btnObjectsCondition = new Ext.Button({
|
var btnObjectsCondition = new Ext.Button({
|
||||||
id: 'btnCondition',
|
id: 'btnCondition',
|
||||||
text: 'Assign Condition',
|
text: 'Condition',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'grid';
|
workflow.variablesAction = 'grid';
|
||||||
workflow.gridField = 'CTO_CONDITION';
|
workflow.gridField = 'CTO_CONDITION';
|
||||||
@@ -1917,9 +1929,6 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
allowBlank: true
|
allowBlank: true
|
||||||
})
|
})
|
||||||
},{
|
|
||||||
header: 'Assign Condition',
|
|
||||||
renderer: function(val){return '<input type="button" value="@@" id="'+val+'"/>';}
|
|
||||||
}],
|
}],
|
||||||
sm: new Ext.grid.RowSelectionModel({
|
sm: new Ext.grid.RowSelectionModel({
|
||||||
singleSelect: true,
|
singleSelect: true,
|
||||||
@@ -1976,16 +1985,38 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
Ext.MessageBox.alert ('Status','Failed to assign Objects');
|
Ext.MessageBox.alert ('Status','Failed to assign Objects');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
//Updating the user incase if already assigned user has been replaced by other user
|
||||||
|
if(changes != '' && typeof record.json != 'undefined')
|
||||||
|
{
|
||||||
|
var obj_type = record.json.CTO_TYPE_OBJ;
|
||||||
|
var obj_UID = record.json.CTO_UID;
|
||||||
|
var obj_title = record.json.CTO_TITLE;
|
||||||
|
var obj_uid = record.json.CTO_UID;
|
||||||
|
var obj_condition = record.json.CTO_CONDITION;
|
||||||
|
var obj_position = record.json.CTO_POSITION;
|
||||||
|
|
||||||
|
Ext.Ajax.request({
|
||||||
|
url: '../tracker/tracker_Ajax.php',
|
||||||
|
method: 'POST',
|
||||||
|
params: {
|
||||||
|
action :'removeCaseTrackerObject',
|
||||||
|
CTO_UID : obj_UID,
|
||||||
|
PRO_UID : pro_uid,
|
||||||
|
STEP_POSITION : obj_position
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
Ext.MessageBox.alert ('Status','User has been updated successfully.');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
availableStore.reload();
|
||||||
|
assignedStore.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
assignedStore.reload();
|
// assignedStore.reload();
|
||||||
availableStore.reload();
|
// availableStore.reload();
|
||||||
|
|
||||||
|
|
||||||
var gridObjectWindow = new Ext.Window({
|
var gridObjectWindow = new Ext.Window({
|
||||||
@@ -2106,6 +2137,7 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
//getting selected row of variables
|
//getting selected row of variables
|
||||||
var rowSelected = this.getSelectionModel().getSelected();
|
var rowSelected = this.getSelectionModel().getSelected();
|
||||||
var rowLabel = rowSelected.data.variable;
|
var rowLabel = rowSelected.data.variable;
|
||||||
|
|
||||||
//Assigned new object with condition
|
//Assigned new object with condition
|
||||||
if(typeof getObjectGridRow.colModel != 'undefined')
|
if(typeof getObjectGridRow.colModel != 'undefined')
|
||||||
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
getObjectGridRow.colModel.config[3].editor.setValue(rowLabel);
|
||||||
@@ -2152,13 +2184,14 @@ ProcessMapContext.prototype.ExtVariables = function()
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
params:
|
params:
|
||||||
{
|
{
|
||||||
|
action : 'saveTriggerCondition',
|
||||||
PRO_UID : pro_uid,
|
PRO_UID : pro_uid,
|
||||||
STEP_UID : getObjectGridRow[0].data.STEP_UID,
|
STEP_UID : getObjectGridRow[0].data.STEP_UID,
|
||||||
ST_CONDITION : getObjectGridRow[0].data.STEP_CONDITION,
|
ST_CONDITION : getObjectGridRow[0].data.STEP_CONDITION,
|
||||||
// TAS_UID :
|
TAS_UID : taskId,
|
||||||
TRI_UID :getObjectGridRow[0].data.TRI_UID,
|
TRI_UID : getObjectGridRow[0].data.TRI_UID,
|
||||||
ST_TYPE :getObjectGridRow[0].data.ST_TYPE,
|
ST_TYPE : getObjectGridRow[0].data.ST_TYPE
|
||||||
action :'saveTriggerCondition'
|
|
||||||
},
|
},
|
||||||
success: function (response){
|
success: function (response){
|
||||||
Ext.MessageBox.alert ('Status','Objects has been edited successfully ');
|
Ext.MessageBox.alert ('Status','Objects has been edited successfully ');
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign Step',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -77,7 +77,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove Step',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -147,8 +147,9 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
|
|
||||||
var btnStepsCondition = new Ext.Button({
|
var btnStepsCondition = new Ext.Button({
|
||||||
id: 'btnCondition',
|
id: 'btnCondition',
|
||||||
text: 'Assign Condition',
|
text: 'Condition',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
|
workflow.taskUID = taskId
|
||||||
workflow.variablesAction = 'grid';
|
workflow.variablesAction = 'grid';
|
||||||
workflow.variable = '@@',
|
workflow.variable = '@@',
|
||||||
workflow.gridField = 'STEP_CONDITION';
|
workflow.gridField = 'STEP_CONDITION';
|
||||||
@@ -422,7 +423,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
|
|||||||
title: 'Steps Of',
|
title: 'Steps Of',
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 700,
|
width: 750,
|
||||||
height: 380,
|
height: 380,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
@@ -474,7 +475,7 @@ TaskContext.prototype.editUsers= function(_5625)
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign User',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -499,7 +500,7 @@ TaskContext.prototype.editUsers= function(_5625)
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove User',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -796,11 +797,11 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
xtype: 'checkbox',
|
xtype: 'checkbox',
|
||||||
fieldLabel: 'Starting Task',
|
fieldLabel: 'Starting Task',
|
||||||
name: 'TAS_START',
|
name: 'TAS_START'
|
||||||
checked: 'TAS_START'
|
//checked: 'TAS_START'
|
||||||
}]
|
}]
|
||||||
},{
|
},{
|
||||||
title:'Assignment Rules',
|
title:'Assignment Rules',
|
||||||
@@ -817,20 +818,23 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
boxLabel: 'Cyclic Assignment',
|
boxLabel: 'Cyclic Assignment',
|
||||||
|
id: 'BALANCED',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'BALANCED',
|
inputValue: 'BALANCED'
|
||||||
checked: 'BALANCED'
|
//checked: 'BALANCED'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
boxLabel: 'Manual Assignment',
|
boxLabel: 'Manual Assignment',
|
||||||
|
id: 'MANUAL',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'MANUAL',
|
inputValue: 'MANUAL'
|
||||||
checked: 'MANUAL'
|
//checked: 'MANUAL'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
boxLabel: 'Value Based',
|
boxLabel: 'Value Based',
|
||||||
|
id:'EVALUATE',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'EVALUATE',
|
inputValue: 'EVALUATE',
|
||||||
//checked: 'EVALUATE',
|
//checked: 'EVALUATE',
|
||||||
@@ -847,19 +851,22 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
|
|
||||||
{
|
{
|
||||||
boxLabel: 'Reports to',
|
boxLabel: 'Reports to',
|
||||||
|
id:'REPORT_TO',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'REPORT_TO',
|
inputValue: 'REPORT_TO'
|
||||||
checked: 'REPORT_TO'
|
//checked: 'REPORT_TO'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
boxLabel: 'Self Service',
|
boxLabel: 'Self Service',
|
||||||
|
id:'SELF_SERVICE',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'SELF_SERVICE',
|
inputValue: 'SELF_SERVICE'
|
||||||
checked: 'SELF_SERVICE'
|
//checked: 'SELF_SERVICE'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
boxLabel: 'Static Partial Join for Multiple Instance',
|
boxLabel: 'Static Partial Join for Multiple Instance',
|
||||||
|
id:'STATIC_MI',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'STATIC_MI',
|
inputValue: 'STATIC_MI',
|
||||||
//checked: 'STATIC_MI',
|
//checked: 'STATIC_MI',
|
||||||
@@ -876,6 +883,7 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
|
|
||||||
{
|
{
|
||||||
boxLabel: 'Cancelling Partial Join for Multiple Instance',
|
boxLabel: 'Cancelling Partial Join for Multiple Instance',
|
||||||
|
id:'CANCEL_MI',
|
||||||
name: 'TAS_ASSIGN_TYPE',
|
name: 'TAS_ASSIGN_TYPE',
|
||||||
inputValue: 'CANCEL_MI',
|
inputValue: 'CANCEL_MI',
|
||||||
//checked: 'CANCEL_MI',
|
//checked: 'CANCEL_MI',
|
||||||
@@ -1124,7 +1132,9 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
labelWidth: 170,
|
labelWidth: 170,
|
||||||
items: [{
|
items: [{
|
||||||
xtype: 'checkbox',
|
xtype: 'checkbox',
|
||||||
|
//id: 'ADHOC',
|
||||||
fieldLabel: 'Allow arbitary transfer (Ad hoc)',
|
fieldLabel: 'Allow arbitary transfer (Ad hoc)',
|
||||||
|
//inputValue:'ADHOC',
|
||||||
checked: 'TAS_TYPE',
|
checked: 'TAS_TYPE',
|
||||||
name: 'TAS_TYPE'
|
name: 'TAS_TYPE'
|
||||||
}]
|
}]
|
||||||
@@ -1267,6 +1277,16 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
method:'GET',
|
method:'GET',
|
||||||
waitMsg:'Loading',
|
waitMsg:'Loading',
|
||||||
success:function(form, action) {
|
success:function(form, action) {
|
||||||
|
//var fID = action.result.data.TAS_TYPE;
|
||||||
|
var ID = action.result.data.TAS_ASSIGN_TYPE;
|
||||||
|
|
||||||
|
Ext.getCmp(ID).setValue(true);
|
||||||
|
|
||||||
|
// Ext.getCmp(fID).setValue(true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Ext.MessageBox.alert('Message', 'Loaded OK');
|
//Ext.MessageBox.alert('Message', 'Loaded OK');
|
||||||
// setTaskAssignType(form);
|
// setTaskAssignType(form);
|
||||||
},
|
},
|
||||||
@@ -1278,7 +1298,6 @@ TaskContext.prototype.editTaskProperties= function(_5625)
|
|||||||
taskPropertiesTabs.render(document.body);
|
taskPropertiesTabs.render(document.body);
|
||||||
_5625.scope.workflow.taskPropertiesTabs = taskPropertiesTabs;
|
_5625.scope.workflow.taskPropertiesTabs = taskPropertiesTabs;
|
||||||
|
|
||||||
|
|
||||||
var window = new Ext.Window({
|
var window = new Ext.Window({
|
||||||
title: 'Task:',
|
title: 'Task:',
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
@@ -1359,12 +1378,11 @@ TaskContext.prototype.saveTaskProperties= function(_5625)
|
|||||||
}
|
}
|
||||||
|
|
||||||
TaskContext.prototype.stepTriggers = function(_5625)
|
TaskContext.prototype.stepTriggers = function(_5625)
|
||||||
{
|
{
|
||||||
var pro_uid = _5625.scope.workflow.getUrlVars();
|
var pro_uid = _5625.scope.workflow.getUrlVars();
|
||||||
var taskId = _5625.scope.workflow.currentSelection.id;
|
var taskId = _5625.scope.workflow.currentSelection.id;
|
||||||
var ProcMapObj= new ProcessMapContext();
|
var ProcMapObj= new ProcessMapContext();
|
||||||
|
var triggersFields = Ext.data.Record.create([
|
||||||
var triggersFields = Ext.data.Record.create([
|
|
||||||
{
|
{
|
||||||
name: 'CON_VALUE',
|
name: 'CON_VALUE',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@@ -1451,7 +1469,7 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
|
|
||||||
var addBtn = new Ext.Button({
|
var addBtn = new Ext.Button({
|
||||||
id: 'addBtn',
|
id: 'addBtn',
|
||||||
text: 'Add Triggers',
|
text: 'Add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
//var User = triggerGrid.getStore();
|
//var User = triggerGrid.getStore();
|
||||||
var e1 = new triggersFields({
|
var e1 = new triggersFields({
|
||||||
@@ -1481,7 +1499,7 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
|
|
||||||
var removeBtn = new Ext.Button({
|
var removeBtn = new Ext.Button({
|
||||||
id: 'removeBtn',
|
id: 'removeBtn',
|
||||||
text: 'Remove Triggers',
|
text: 'Remove',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
triggerEditor.stopEditing();
|
triggerEditor.stopEditing();
|
||||||
var s = triggerGrid.getSelectionModel().getSelections();
|
var s = triggerGrid.getSelectionModel().getSelections();
|
||||||
@@ -1519,7 +1537,7 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
|
|
||||||
var btnTriggerCondition = new Ext.Button({
|
var btnTriggerCondition = new Ext.Button({
|
||||||
//id: 'btnCondition',
|
//id: 'btnCondition',
|
||||||
text: 'Assign Condition',
|
text: 'Condition',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
workflow.variablesAction = 'grid';
|
workflow.variablesAction = 'grid';
|
||||||
workflow.variable = '@@',
|
workflow.variable = '@@',
|
||||||
@@ -1589,6 +1607,15 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
plugins: [triggerEditor],
|
plugins: [triggerEditor],
|
||||||
columns: [
|
columns: [
|
||||||
new Ext.grid.RowNumberer(),
|
new Ext.grid.RowNumberer(),
|
||||||
|
{
|
||||||
|
id: 'blank',
|
||||||
|
hidden : true,
|
||||||
|
width:0,
|
||||||
|
editable: true,
|
||||||
|
editor: new Ext.form.TextField({
|
||||||
|
allowBlank: true
|
||||||
|
})
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'CON_VALUE',
|
id: 'CON_VALUE',
|
||||||
header: 'Triggers',
|
header: 'Triggers',
|
||||||
@@ -1608,7 +1635,7 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
triggerAction: 'all',
|
triggerAction: 'all',
|
||||||
emptyText : 'Select Triggers',
|
emptyText : 'Select Triggers',
|
||||||
allowBlank : false,
|
allowBlank : false,
|
||||||
onSelect: function(record, index){
|
onSelect : function(record, index){
|
||||||
var triggerStore = triggerGrid.getStore();
|
var triggerStore = triggerGrid.getStore();
|
||||||
|
|
||||||
if(typeof _5625.scope.workflow.currentRowTrigger == 'undefined')
|
if(typeof _5625.scope.workflow.currentRowTrigger == 'undefined')
|
||||||
@@ -1638,12 +1665,8 @@ TaskContext.prototype.stepTriggers = function(_5625)
|
|||||||
editor: new Ext.form.TextField({
|
editor: new Ext.form.TextField({
|
||||||
allowBlank: true
|
allowBlank: true
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
{
|
|
||||||
header: 'Assign Condition',
|
|
||||||
//width: 50,
|
|
||||||
renderer: function(val){return '<input type="button" value="@@" id="'+val+'"/>';}
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
sm: new Ext.grid.RowSelectionModel({
|
sm: new Ext.grid.RowSelectionModel({
|
||||||
singleSelect: true,
|
singleSelect: true,
|
||||||
@@ -1784,7 +1807,7 @@ TaskContext.prototype.editUsersAdHoc= function(_5625)
|
|||||||
|
|
||||||
var btnAdd = new Ext.Button({
|
var btnAdd = new Ext.Button({
|
||||||
id: 'btnAdd',
|
id: 'btnAdd',
|
||||||
text: 'Assign User',
|
text: 'Assign',
|
||||||
iconCls: 'application_add',
|
iconCls: 'application_add',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var User = grid.getStore();
|
var User = grid.getStore();
|
||||||
@@ -1816,7 +1839,7 @@ TaskContext.prototype.editUsersAdHoc= function(_5625)
|
|||||||
|
|
||||||
var btnRemove = new Ext.Button({
|
var btnRemove = new Ext.Button({
|
||||||
id: 'btnRemove',
|
id: 'btnRemove',
|
||||||
text: 'Remove User',
|
text: 'Remove',
|
||||||
iconCls: 'application_delete',
|
iconCls: 'application_delete',
|
||||||
handler: function (s) {
|
handler: function (s) {
|
||||||
editor.stopEditing();
|
editor.stopEditing();
|
||||||
@@ -1848,7 +1871,6 @@ TaskContext.prototype.editUsersAdHoc= function(_5625)
|
|||||||
Ext.MessageBox.alert ('Status','User has been removed successfully.');
|
Ext.MessageBox.alert ('Status','User has been removed successfully.');
|
||||||
//Secondly deleting from Grid
|
//Secondly deleting from Grid
|
||||||
taskUsers.remove(r);
|
taskUsers.remove(r);
|
||||||
|
|
||||||
//Reloading available user store
|
//Reloading available user store
|
||||||
taskUsers.reload();
|
taskUsers.reload();
|
||||||
}
|
}
|
||||||
@@ -1865,9 +1887,6 @@ TaskContext.prototype.editUsersAdHoc= function(_5625)
|
|||||||
});
|
});
|
||||||
|
|
||||||
// create the Data Store of users that are already assigned to a task
|
// create the Data Store of users that are already assigned to a task
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var grid = new Ext.grid.GridPanel({
|
var grid = new Ext.grid.GridPanel({
|
||||||
store: taskUsers,
|
store: taskUsers,
|
||||||
id : 'mygrid',
|
id : 'mygrid',
|
||||||
|
|||||||
Reference in New Issue
Block a user