Worked on getting System Variables EXTJS part
This commit is contained in:
@@ -1962,10 +1962,9 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ProcessMapContext.prototype.ExtVariables = function()
|
ProcessMapContext.prototype.ExtVariables = function()
|
||||||
{
|
{
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
//var taskId = workflow.currentSelection.id;
|
var varFields = Ext.data.Record.create([
|
||||||
var varFields = Ext.data.Record.create([
|
|
||||||
{
|
{
|
||||||
name: 'variable',
|
name: 'variable',
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@@ -1979,8 +1978,8 @@ var varFields = Ext.data.Record.create([
|
|||||||
type: 'string'
|
type: 'string'
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
var varStore = '';
|
||||||
var varStore = new Ext.data.JsonStore({
|
varStore = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
totalProperty: 'totalCount',
|
totalProperty: 'totalCount',
|
||||||
idProperty : 'gridIndex',
|
idProperty : 'gridIndex',
|
||||||
@@ -1990,86 +1989,33 @@ var varFields = Ext.data.Record.create([
|
|||||||
url : 'proxyVariable?pid='+pro_uid+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@'
|
url : 'proxyVariable?pid='+pro_uid+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
//taskUsers.setDefaultSort('LABEL', 'asc');
|
//varStore.load();
|
||||||
varStore.load();
|
|
||||||
|
|
||||||
var allVarGrid = new Ext.grid.GridPanel({
|
var varColumns = new Ext.grid.ColumnModel({
|
||||||
store : varStore,
|
columns: [
|
||||||
id : 'mygrid',
|
new Ext.grid.RowNumberer(),
|
||||||
loadMask : true,
|
{
|
||||||
loadingText : 'Loading...',
|
id: 'FLD_NAME',
|
||||||
//renderTo : 'cases-grid',
|
|
||||||
frame : false,
|
|
||||||
autoHeight : false,
|
|
||||||
enableDragDrop : true,
|
|
||||||
ddGroup : 'firstGridDDGroup',
|
|
||||||
clicksToEdit: 1,
|
|
||||||
minHeight :400,
|
|
||||||
height :400,
|
|
||||||
layout : 'form',
|
|
||||||
//plugins : [editor],
|
|
||||||
columns : [{
|
|
||||||
id: 'variable',
|
|
||||||
header: 'Variable',
|
header: 'Variable',
|
||||||
dataIndex: 'variable',
|
dataIndex: 'variable',
|
||||||
width: 200,
|
width: 170,
|
||||||
|
editable: false,
|
||||||
sortable: true
|
sortable: true
|
||||||
},{
|
},{
|
||||||
id: 'label',
|
id: 'PRO_VARIABLE',
|
||||||
header: 'Label',
|
header: 'Label',
|
||||||
dataIndex: 'label',
|
dataIndex: 'label',
|
||||||
width: 200,
|
width: 150,
|
||||||
sortable: true
|
sortable: true
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
var sysStore = new Ext.data.JsonStore({
|
var varForm = new Ext.FormPanel({
|
||||||
root : 'data',
|
|
||||||
totalProperty: 'totalCount',
|
|
||||||
idProperty : 'gridIndex',
|
|
||||||
remoteSort : true,
|
|
||||||
fields : varFields,
|
|
||||||
proxy : new Ext.data.HttpProxy({
|
|
||||||
url : 'proxyVariable?pid='+pro_uid+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@'
|
|
||||||
})
|
|
||||||
});
|
|
||||||
//taskUsers.setDefaultSort('LABEL', 'asc');
|
|
||||||
sysStore.load();
|
|
||||||
|
|
||||||
var sysGrid = new Ext.grid.GridPanel({
|
|
||||||
store : sysStore,
|
|
||||||
id : 'mygrid',
|
|
||||||
loadMask : true,
|
|
||||||
loadingText : 'Loading...',
|
|
||||||
//renderTo : 'cases-grid',
|
|
||||||
frame : false,
|
|
||||||
autoHeight : false,
|
|
||||||
enableDragDrop : true,
|
|
||||||
ddGroup : 'firstGridDDGroup',
|
|
||||||
clicksToEdit: 1,
|
|
||||||
minHeight :400,
|
|
||||||
height :400,
|
|
||||||
layout : 'form',
|
|
||||||
//plugins : [editor],
|
|
||||||
columns : [{
|
|
||||||
id: 'variable',
|
|
||||||
header: 'Variable',
|
|
||||||
dataIndex: 'variable',
|
|
||||||
width: 200,
|
|
||||||
sortable: true
|
|
||||||
},{
|
|
||||||
id: 'Label',
|
|
||||||
header: 'Label',
|
|
||||||
dataIndex: 'label',
|
|
||||||
width: 200,
|
|
||||||
sortable: true
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
var varForm = new Ext.FormPanel({
|
|
||||||
labelWidth: 100,
|
labelWidth: 100,
|
||||||
bodyStyle :'padding:5px 5px 0',
|
bodyStyle :'padding:5px 5px 0',
|
||||||
width : 850,
|
width : 400,
|
||||||
height : 500,
|
height : 350,
|
||||||
items:
|
items:
|
||||||
{
|
{
|
||||||
xtype:'tabpanel',
|
xtype:'tabpanel',
|
||||||
@@ -2080,38 +2026,83 @@ var varForm = new Ext.FormPanel({
|
|||||||
},
|
},
|
||||||
items:[{
|
items:[{
|
||||||
title:'All Variables',
|
title:'All Variables',
|
||||||
layout:'fit',
|
id :'allVar',
|
||||||
defaults: {
|
layout:'form',
|
||||||
width: 400
|
listeners: {
|
||||||
|
activate: function(tabPanel){
|
||||||
|
// use {@link Ext.data.HttpProxy#setUrl setUrl} to change the URL for *just* this request.
|
||||||
|
var link = 'proxyVariable?pid='+pro_uid+'&type='+tabPanel.id+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@';
|
||||||
|
varStore.proxy.setUrl(link, true);
|
||||||
|
varStore.load();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
items:[allVarGrid]
|
items:[{
|
||||||
|
xtype: 'grid',
|
||||||
|
ds: varStore,
|
||||||
|
cm: varColumns,
|
||||||
|
width: 380,
|
||||||
|
autoHeight: true,
|
||||||
|
//plugins: [editor],
|
||||||
|
//loadMask : true,
|
||||||
|
loadingText : 'Loading...',
|
||||||
|
border: false
|
||||||
|
}]
|
||||||
},{
|
},{
|
||||||
title:'System',
|
title:'System',
|
||||||
layout:'fit',
|
id:'system',
|
||||||
defaults: {
|
layout:'form',
|
||||||
width: 400
|
listeners: {
|
||||||
|
activate: function(tabPanel){
|
||||||
|
// use {@link Ext.data.HttpProxy#setUrl setUrl} to change the URL for *just* this request.
|
||||||
|
var link = 'proxyVariable?pid='+pro_uid+'&type='+tabPanel.id+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@';
|
||||||
|
varStore.proxy.setUrl(link, true);
|
||||||
|
varStore.load();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
items:[sysGrid]
|
items:[{
|
||||||
|
xtype: 'grid',
|
||||||
|
ds: varStore,
|
||||||
|
cm: varColumns,
|
||||||
|
width: 380,
|
||||||
|
autoHeight: true,
|
||||||
|
//plugins: [editor],
|
||||||
|
//loadMask : true,
|
||||||
|
loadingText : 'Loading...',
|
||||||
|
border: false
|
||||||
|
}]
|
||||||
},{
|
},{
|
||||||
title:'Process',
|
title:'Process',
|
||||||
|
id :'process',
|
||||||
layout:'form',
|
layout:'form',
|
||||||
defaults: {
|
listeners: {
|
||||||
width: 400
|
activate: function(tabPanel){
|
||||||
|
// use {@link Ext.data.HttpProxy#setUrl setUrl} to change the URL for *just* this request.
|
||||||
|
var link = 'proxyVariable?pid='+pro_uid+'&type='+tabPanel.id+'&sFieldName=form[CTO_CONDITION]&sSymbol=@@';
|
||||||
|
varStore.proxy.setUrl(link, true);
|
||||||
|
varStore.load();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
items:[]
|
items:[{
|
||||||
|
xtype: 'grid',
|
||||||
|
ds: varStore,
|
||||||
|
cm: varColumns,
|
||||||
|
width: 380,
|
||||||
|
autoHeight: true,
|
||||||
|
//plugins: [editor],
|
||||||
|
//loadMask : true,
|
||||||
|
loadingText : 'Loading...',
|
||||||
|
border: false
|
||||||
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//varForm.render(document.body);
|
|
||||||
//workflow.taskStepsTabs = varForm;
|
|
||||||
|
|
||||||
var window = new Ext.Window({
|
var window = new Ext.Window({
|
||||||
title: 'Steps Of',
|
title: 'Steps Of',
|
||||||
collapsible: false,
|
collapsible: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
width: 800,
|
width: 400,
|
||||||
height: 470,
|
height: 350,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
@@ -2135,5 +2126,4 @@ var varForm = new Ext.FormPanel({
|
|||||||
}]*/
|
}]*/
|
||||||
});
|
});
|
||||||
window.show();
|
window.show();
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user