made few changes
This commit is contained in:
@@ -65,7 +65,7 @@ MyWorkflow.prototype.AddTaskContextMenu= function(_4092)
|
|||||||
{
|
{
|
||||||
text: 'Users & Users Groups (ad-hoc)',
|
text: 'Users & Users Groups (ad-hoc)',
|
||||||
scope: _4092
|
scope: _4092
|
||||||
},
|
}/*,
|
||||||
{
|
{
|
||||||
text: 'Routing Rule',
|
text: 'Routing Rule',
|
||||||
handler: taskExtObj.editRoutingRule,
|
handler: taskExtObj.editRoutingRule,
|
||||||
@@ -78,7 +78,7 @@ MyWorkflow.prototype.AddTaskContextMenu= function(_4092)
|
|||||||
{
|
{
|
||||||
text: 'Delete Task',
|
text: 'Delete Task',
|
||||||
scope: _4092
|
scope: _4092
|
||||||
},
|
}*/,
|
||||||
{
|
{
|
||||||
text: 'Transform To',
|
text: 'Transform To',
|
||||||
menu: { // <-- submenu by nested config object
|
menu: { // <-- submenu by nested config object
|
||||||
@@ -878,167 +878,6 @@ MyWorkflow.prototype.editSubProcessProperties= function(_3525)
|
|||||||
|
|
||||||
MyWorkflow.prototype.editGatewayProperties= function()
|
MyWorkflow.prototype.editGatewayProperties= function()
|
||||||
{
|
{
|
||||||
var myData = {
|
|
||||||
records : [
|
|
||||||
{ name : "Rec 0", column1 : "0", column2 : "0" },
|
|
||||||
{ name : "Rec 1", column1 : "1", column2 : "1" },
|
|
||||||
{ name : "Rec 2", column1 : "2", column2 : "2" },
|
|
||||||
{ name : "Rec 3", column1 : "3", column2 : "3" },
|
|
||||||
{ name : "Rec 4", column1 : "4", column2 : "4" },
|
|
||||||
{ name : "Rec 5", column1 : "5", column2 : "5" },
|
|
||||||
{ name : "Rec 6", column1 : "6", column2 : "6" },
|
|
||||||
{ name : "Rec 7", column1 : "7", column2 : "7" },
|
|
||||||
{ name : "Rec 8", column1 : "8", column2 : "8" },
|
|
||||||
{ name : "Rec 9", column1 : "9", column2 : "9" }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// Generic fields array to use in both store defs.
|
|
||||||
var fields = [
|
|
||||||
{name: 'name', mapping : 'name'},
|
|
||||||
{name: 'column1', mapping : 'column1'},
|
|
||||||
{name: 'column2', mapping : 'column2'}
|
|
||||||
];
|
|
||||||
|
|
||||||
// create the data store
|
|
||||||
var firstGridStore = new Ext.data.JsonStore({
|
|
||||||
fields : fields,
|
|
||||||
data : myData,
|
|
||||||
root : 'records'
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// Column Model shortcut array
|
|
||||||
var cols = [
|
|
||||||
{ id : 'name', header: "Record Name", width: 160, sortable: true, dataIndex: 'name'},
|
|
||||||
{header: "column1", width: 50, sortable: true, dataIndex: 'column1'},
|
|
||||||
{header: "column2", width: 50, sortable: true, dataIndex: 'column2'}
|
|
||||||
];
|
|
||||||
|
|
||||||
// declare the source Grid
|
|
||||||
var firstGrid = new Ext.grid.GridPanel({
|
|
||||||
ddGroup : 'secondGridDDGroup',
|
|
||||||
getView : function(){
|
|
||||||
if(!this.view){
|
|
||||||
this.view = new Ext.grid.GridView(this.viewConfig);
|
|
||||||
}
|
|
||||||
return this.view;
|
|
||||||
},
|
|
||||||
store : firstGridStore,
|
|
||||||
columns : cols,
|
|
||||||
enableDragDrop : true,
|
|
||||||
stripeRows : true,
|
|
||||||
autoExpandColumn : 'name',
|
|
||||||
title : 'First Grid'
|
|
||||||
});
|
|
||||||
|
|
||||||
var secondGridStore = new Ext.data.JsonStore({
|
|
||||||
fields : fields,
|
|
||||||
root : 'records'
|
|
||||||
});
|
|
||||||
|
|
||||||
// create the destination Grid
|
|
||||||
var secondGrid = new Ext.grid.GridPanel({
|
|
||||||
ddGroup : 'firstGridDDGroup',
|
|
||||||
getView : function(){
|
|
||||||
if(!this.view){
|
|
||||||
this.view = new Ext.grid.GridView(this.viewConfig);
|
|
||||||
}
|
|
||||||
return this.view;
|
|
||||||
},
|
|
||||||
store : secondGridStore,
|
|
||||||
columns : cols,
|
|
||||||
enableDragDrop : true,
|
|
||||||
stripeRows : true,
|
|
||||||
autoExpandColumn : 'name',
|
|
||||||
title : 'Second Grid'
|
|
||||||
});
|
|
||||||
|
|
||||||
//Simple 'border layout' panel to house both grids
|
|
||||||
var displayPanel = new Ext.Panel({
|
|
||||||
width : 650,
|
|
||||||
height : 300,
|
|
||||||
layout : 'hbox',
|
|
||||||
//renderTo : 'panel',
|
|
||||||
defaults : { flex : 1 }, //auto stretch
|
|
||||||
layoutConfig : { align : 'stretch' },
|
|
||||||
items : [
|
|
||||||
firstGrid,
|
|
||||||
secondGrid
|
|
||||||
],
|
|
||||||
bbar : [
|
|
||||||
'->', // Fill
|
|
||||||
{
|
|
||||||
text : 'Reset both grids',
|
|
||||||
handler : function() {
|
|
||||||
//refresh source grid
|
|
||||||
firstGridStore.loadData(myData);
|
|
||||||
|
|
||||||
//purge destination grid
|
|
||||||
secondGridStore.removeAll();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
// used to add records to the destination stores
|
|
||||||
var blankRecord = Ext.data.Record.create(fields);
|
|
||||||
|
|
||||||
/****
|
|
||||||
* Setup Drop Targets
|
|
||||||
***/
|
|
||||||
// This will make sure we only drop to the view scroller element
|
|
||||||
// var view = new Ext.grid.GridView(this.viewConfig);
|
|
||||||
var firstGridDropTargetEl = firstGrid.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);
|
|
||||||
firstGrid.store.add(records);
|
|
||||||
firstGrid.store.sort('name', 'ASC');
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
// This will make sure we only drop to the view scroller element
|
|
||||||
var secondGridDropTargetEl = secondGrid.getView().scroller.dom;
|
|
||||||
var secondGridDropTarget = new Ext.dd.DropTarget(secondGridDropTargetEl, {
|
|
||||||
ddGroup : 'secondGridDDGroup',
|
|
||||||
notifyDrop : function(ddSource, e, data){
|
|
||||||
var records = ddSource.dragData.selections;
|
|
||||||
Ext.each(records, ddSource.grid.store.remove, ddSource.grid.store);
|
|
||||||
secondGrid.store.add(records);
|
|
||||||
secondGrid.store.sort('name', 'ASC');
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
firstGrid.render(document.body);
|
|
||||||
secondGrid.render(document.body);
|
|
||||||
|
|
||||||
var window = new Ext.Window({
|
|
||||||
title: 'Gateways Properties',
|
|
||||||
collapsible: false,
|
|
||||||
maximizable: false,
|
|
||||||
width: 500,
|
|
||||||
height: 400,
|
|
||||||
minWidth: 300,
|
|
||||||
minHeight: 200,
|
|
||||||
layout: 'fit',
|
|
||||||
plain: true,
|
|
||||||
bodyStyle: 'padding:5px;',
|
|
||||||
buttonAlign: 'center',
|
|
||||||
items: displayPanel,
|
|
||||||
buttons: [{
|
|
||||||
text: 'Save'
|
|
||||||
},{
|
|
||||||
text: 'Cancel'
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
window.show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1621,7 +1460,6 @@ MyWorkflow.prototype.getCommonConnections = function(_4356)
|
|||||||
if(routes[j][1] != temp1.data[0].sourcePort.parentNode.id)
|
if(routes[j][1] != temp1.data[0].sourcePort.parentNode.id)
|
||||||
{
|
{
|
||||||
routes[j] = new Array(3);
|
routes[j] = new Array(3);
|
||||||
|
|
||||||
routes[j][0] = temp1.data[0].id;
|
routes[j][0] = temp1.data[0].id;
|
||||||
routes[j][1] = temp1.data[0].sourcePort.parentNode.id;
|
routes[j][1] = temp1.data[0].sourcePort.parentNode.id;
|
||||||
routes[j][2] = temp1.data[0].targetPort.parentNode.id;
|
routes[j][2] = temp1.data[0].targetPort.parentNode.id;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ ProcessOptions.prototype.type="ProcessOptions";
|
|||||||
ProcessOptions.prototype.addDynaform= function(_5625)
|
ProcessOptions.prototype.addDynaform= function(_5625)
|
||||||
{
|
{
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
//var taskId = workflow.currentSelection.id;
|
|
||||||
|
|
||||||
var dynaFields = Ext.data.Record.create([
|
var dynaFields = Ext.data.Record.create([
|
||||||
{ name: 'DYN_UID', type: 'string'},
|
{ name: 'DYN_UID', type: 'string'},
|
||||||
@@ -200,6 +199,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
|||||||
labelWidth: 100,
|
labelWidth: 100,
|
||||||
bodyStyle :'padding:5px 5px 0',
|
bodyStyle :'padding:5px 5px 0',
|
||||||
width : 550,
|
width : 550,
|
||||||
|
autoHeight: true,
|
||||||
items:
|
items:
|
||||||
[{
|
[{
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
@@ -339,8 +339,8 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
|||||||
ds: tablesFieldsStore,
|
ds: tablesFieldsStore,
|
||||||
cm: addTableColumns,
|
cm: addTableColumns,
|
||||||
width: 550,
|
width: 550,
|
||||||
height: 300,
|
//height: 300,
|
||||||
//autoHeight: true,
|
autoHeight: true,
|
||||||
plugins: [editor],
|
plugins: [editor],
|
||||||
//loadMask : true,
|
//loadMask : true,
|
||||||
loadingText : 'Loading...',
|
loadingText : 'Loading...',
|
||||||
@@ -373,7 +373,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
|||||||
maximizable: true,
|
maximizable: true,
|
||||||
width: 550,
|
width: 550,
|
||||||
//autoHeight: true,
|
//autoHeight: true,
|
||||||
height: 400,
|
//height: 500,
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
plain: true,
|
plain: true,
|
||||||
bodyStyle: 'padding:5px;',
|
bodyStyle: 'padding:5px;',
|
||||||
@@ -441,7 +441,6 @@ ProcessOptions.prototype.addDynaform= function(_5625)
|
|||||||
ProcessOptions.prototype.addInputDoc= function(_5625)
|
ProcessOptions.prototype.addInputDoc= function(_5625)
|
||||||
{
|
{
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
//var taskId = workflow.currentSelection.id;
|
|
||||||
|
|
||||||
var dynaFields = Ext.data.Record.create([
|
var dynaFields = Ext.data.Record.create([
|
||||||
{
|
{
|
||||||
@@ -466,8 +465,6 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
saveText: 'Update'
|
saveText: 'Update'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var inputDocStore = new Ext.data.JsonStore({
|
var inputDocStore = new Ext.data.JsonStore({
|
||||||
root : 'data',
|
root : 'data',
|
||||||
totalProperty: 'totalCount',
|
totalProperty: 'totalCount',
|
||||||
@@ -524,12 +521,11 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
});
|
});
|
||||||
|
|
||||||
var inputDocForm = new Ext.FormPanel({
|
var inputDocForm = new Ext.FormPanel({
|
||||||
|
|
||||||
labelWidth: 100,
|
labelWidth: 100,
|
||||||
bodyStyle :'padding:5px 5px 0',
|
bodyStyle :'padding:5px 5px 0',
|
||||||
width : 500,
|
width : 500,
|
||||||
items:
|
autoHeight: true,
|
||||||
[{
|
items:[{
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
layout: 'form',
|
layout: 'form',
|
||||||
border:true,
|
border:true,
|
||||||
@@ -680,9 +676,6 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var inputDocColumns = new Ext.grid.ColumnModel({
|
var inputDocColumns = new Ext.grid.ColumnModel({
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -826,7 +819,6 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
|
|||||||
ProcessOptions.prototype.addOutputDoc= function(_5625)
|
ProcessOptions.prototype.addOutputDoc= function(_5625)
|
||||||
{
|
{
|
||||||
var pro_uid = workflow.getUrlVars();
|
var pro_uid = workflow.getUrlVars();
|
||||||
//var taskId = workflow.currentSelection.id;
|
|
||||||
|
|
||||||
var dynaFields = Ext.data.Record.create([
|
var dynaFields = Ext.data.Record.create([
|
||||||
{
|
{
|
||||||
@@ -909,7 +901,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var tb = new Ext.Toolbar({
|
var tb = new Ext.Toolbar({
|
||||||
items: [btnAdd, btnRemove]
|
items: [btnAdd, btnRemove]
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1177,9 +1169,6 @@ var tb = new Ext.Toolbar({
|
|||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var newOPWindow = new Ext.Window({
|
var newOPWindow = new Ext.Window({
|
||||||
title : 'Output Document',
|
title : 'Output Document',
|
||||||
collapsible : false,
|
collapsible : false,
|
||||||
@@ -1244,9 +1233,6 @@ var tb = new Ext.Toolbar({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//var getData = getstore.data.items;
|
|
||||||
//taskExtObj.saveTaskUsers(getData);
|
|
||||||
|
|
||||||
newOPWindow.close();
|
newOPWindow.close();
|
||||||
outputDocStore.reload();
|
outputDocStore.reload();
|
||||||
}
|
}
|
||||||
@@ -1274,7 +1260,6 @@ var tb = new Ext.Toolbar({
|
|||||||
items : outputDocGrid,
|
items : outputDocGrid,
|
||||||
buttonAlign : 'center'
|
buttonAlign : 'center'
|
||||||
});
|
});
|
||||||
|
|
||||||
gridWindow.show();
|
gridWindow.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ Ext.onReady ( function() {
|
|||||||
handler : function() {
|
handler : function() {
|
||||||
processObj.addOutputDoc();
|
processObj.addOutputDoc();
|
||||||
}
|
}
|
||||||
},{text: 'Trigger'},{text: 'Report Table'},{text: 'Database Connection'},{text: 'Cases Scheduler'}]
|
},{text: 'Trigger'},{text: 'Report Table'},{text: 'Database Connection'}]
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user