Was testing all Extjs form and fix issues that were found. Also worked on getting Export Process link

This commit is contained in:
safan
2011-01-11 13:09:14 +00:00
parent e8b013e6e5
commit ab465d532b
2 changed files with 49 additions and 33 deletions

View File

@@ -110,6 +110,7 @@ ProcessMapContext.prototype.editProcess= function(_5678)
minWidth: 300, minWidth: 300,
minHeight: 200, minHeight: 200,
layout: 'fit', layout: 'fit',
autoScroll: true,
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
buttonAlign: 'center', buttonAlign: 'center',
@@ -189,7 +190,7 @@ ProcessMapContext.prototype.exportProcess= function()
//taskUsers.setDefaultSort('LABEL', 'asc'); //taskUsers.setDefaultSort('LABEL', 'asc');
exportProcess.load();*/ exportProcess.load();*/
var obj='FILENAME_LINKXPDL';
var exportProcessForm = new Ext.FormPanel({ var exportProcessForm = new Ext.FormPanel({
labelWidth : 120, // label settings here cascade unless overridden labelWidth : 120, // label settings here cascade unless overridden
frame : true, frame : true,
@@ -230,11 +231,12 @@ ProcessMapContext.prototype.exportProcess= function()
name : 'FILENAME_LINK', name : 'FILENAME_LINK',
readOnly :true readOnly :true
},{ },{
xtype : 'textfield', xtype : 'button',
fieldLabel : 'File XPDL', fieldLabel : 'File XPDL',
name : 'FILENAME_LINKXPDL', name : 'FILENAME_LINKXPDL',
dataIndex : 'FILENAME_LINKXPDL', dataIndex : 'FILENAME_LINKXPDL',
readOnly :true html : '<a href="javascript: Ext.ux.classobj.method(' + Ext.util.JSON.encode(obj) + ')" ></a>'
//readOnly :true
},{ },{
xtype : 'button', xtype : 'button',
name : 'FILENAME_LINK', name : 'FILENAME_LINK',
@@ -292,6 +294,7 @@ ProcessMapContext.prototype.exportProcess= function()
minHeight : 200, minHeight : 200,
layout : 'fit', layout : 'fit',
plain : true, plain : true,
autoScroll: true,
bodyStyle : 'padding:5px;', bodyStyle : 'padding:5px;',
buttonAlign: 'center', buttonAlign: 'center',
items : exportProcessForm items : exportProcessForm
@@ -358,6 +361,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
dataIndex: 'TASK_TARGET', dataIndex: 'TASK_TARGET',
autoWidth: true, autoWidth: true,
editable: false, editable: false,
width:120,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -366,7 +370,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'GROUP_USER', id: 'GROUP_USER',
header: 'Group or Users', header: 'Group or Users',
dataIndex: 'GROUP_USER', dataIndex: 'GROUP_USER',
//width: 100, width: 150,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -375,7 +379,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'TASK_SOURCE', id: 'TASK_SOURCE',
header: 'Origin Task', header: 'Origin Task',
dataIndex: 'TASK_SOURCE', dataIndex: 'TASK_SOURCE',
//width: 100, width: 120,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -384,7 +388,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'PARTICIPATED', id: 'PARTICIPATED',
header: 'Participation', header: 'Participation',
dataIndex: 'PARTICIPATED', dataIndex: 'PARTICIPATED',
width: 100, width: 120,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -393,7 +397,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'OBJECT_TYPE', id: 'OBJECT_TYPE',
header: 'Type', header: 'Type',
dataIndex: 'OBJECT_TYPE', dataIndex: 'OBJECT_TYPE',
//width: 100, width: 100,
editable: false, editable: false,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
@@ -403,7 +407,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'OBJECT', id: 'OBJECT',
header: 'Object', header: 'Object',
dataIndex: 'OBJECT', dataIndex: 'OBJECT',
//width: 100, width: 100,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -412,7 +416,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'ACTION', id: 'ACTION',
header: 'Permission', header: 'Permission',
dataIndex: 'ACTION', dataIndex: 'ACTION',
//width: 100, width: 120,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -421,7 +425,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id: 'OP_CASE_STATUS', id: 'OP_CASE_STATUS',
header: 'Status', header: 'Status',
dataIndex: 'OP_CASE_STATUS', dataIndex: 'OP_CASE_STATUS',
width: 100, width: 120,
sortable: true, sortable: true,
editor: new Ext.form.TextField({ editor: new Ext.form.TextField({
//allowBlank: false //allowBlank: false
@@ -473,8 +477,8 @@ var tb = new Ext.Toolbar({
title: 'Process Permissions', title: 'Process Permissions',
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 600, width: 800,
//autoHeight: true, autoScroll: true,
height: 450, height: 450,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
@@ -794,6 +798,7 @@ var formWindow = new Ext.Window({
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 450, width: 450,
autoScroll: true,
//autoHeight: true, //autoHeight: true,
height: 420, height: 420,
//layout: 'fit', //layout: 'fit',
@@ -1060,6 +1065,7 @@ ProcessMapContext.prototype.processSupervisors= function()
height: 350, height: 350,
minWidth: 200, minWidth: 200,
minHeight: 150, minHeight: 150,
autoScroll: true,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
@@ -1223,11 +1229,11 @@ ProcessMapContext.prototype.processDynaform= function()
var User = grid.getStore(); var User = grid.getStore();
var selectedrowIndex = '0'; var selectedrowIndex = '0';
User.data.items[selectedrowIndex].data.STEP_UID = record.data.STEP_UID; User.data.items[selectedrowIndex].data.STEP_UID = record.data.STEP_UID;
User.data.items[selectedrowIndex].data.STEP_UID_OBJ = record.data.STEP_UID_OBJ; User.data.items[selectedrowIndex].data.STEP_UID_OBJ = record.data.STEP_UID_OBJ;
User.data.items[selectedrowIndex].data.STEP_TYPE_OBJ = record.data.STEP_TYPE_OBJ; User.data.items[selectedrowIndex].data.STEP_TYPE_OBJ = record.data.STEP_TYPE_OBJ;
User.data.items[selectedrowIndex].data.STEP_POSITION = record.data.STEP_POSITION; User.data.items[selectedrowIndex].data.STEP_POSITION = record.data.STEP_POSITION;
User.data.items[selectedrowIndex].data.DYN_UID = record.data.DYN_UID; User.data.items[selectedrowIndex].data.DYN_UID = record.data.DYN_UID;
this.setValue(record.data[this.valueField || this.displayField]); this.setValue(record.data[this.valueField || this.displayField]);
this.collapse(); this.collapse();
@@ -1278,6 +1284,7 @@ ProcessMapContext.prototype.processDynaform= function()
minWidth: 200, minWidth: 200,
minHeight: 150, minHeight: 150,
layout: 'fit', layout: 'fit',
autoScroll: true,
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
buttonAlign: 'center', buttonAlign: 'center',
@@ -1441,10 +1448,10 @@ ProcessMapContext.prototype.processIODoc= function()
var selectedrowIndex = '0'; var selectedrowIndex = '0';
User.data.items[selectedrowIndex].data.STEP_UID = record.data.STEP_UID; User.data.items[selectedrowIndex].data.STEP_UID = record.data.STEP_UID;
User.data.items[selectedrowIndex].data.STEP_UID_OBJ = record.data.STEP_UID_OBJ; User.data.items[selectedrowIndex].data.STEP_UID_OBJ = record.data.STEP_UID_OBJ;
User.data.items[selectedrowIndex].data.STEP_TYPE_OBJ = record.data.STEP_TYPE_OBJ; User.data.items[selectedrowIndex].data.STEP_TYPE_OBJ = record.data.STEP_TYPE_OBJ;
User.data.items[selectedrowIndex].data.STEP_POSITION = record.data.STEP_POSITION; User.data.items[selectedrowIndex].data.STEP_POSITION = record.data.STEP_POSITION;
User.data.items[selectedrowIndex].data.INP_DOC_UID = record.data.INP_DOC_UID; User.data.items[selectedrowIndex].data.INP_DOC_UID = record.data.INP_DOC_UID;
this.setValue(record.data[this.valueField || this.displayField]); this.setValue(record.data[this.valueField || this.displayField]);
this.collapse(); this.collapse();
@@ -1494,6 +1501,7 @@ ProcessMapContext.prototype.processIODoc= function()
height: 350, height: 350,
minWidth: 200, minWidth: 200,
minHeight: 150, minHeight: 150,
autoScroll: true,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
@@ -1518,13 +1526,14 @@ ProcessMapContext.prototype.processFileManager= function()
}); });
var window = new Ext.Window({ var window = new Ext.Window({
title: 'Edit Process', title: 'Process File Manager',
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 500, width: 500,
height: 400, height: 400,
minWidth: 300, minWidth: 300,
minHeight: 200, minHeight: 200,
autoScroll: true,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
@@ -1594,7 +1603,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
layout: 'form', layout: 'form',
border:false, border:false,
items: [{ items: [{
width :100, width :100,
xtype :'combo', xtype :'combo',
mode :'local', mode :'local',
triggerAction :'all', triggerAction :'all',
@@ -1645,6 +1654,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
//minWidth: 300, //minWidth: 300,
//minHeight: 200, //minHeight: 200,
layout: 'fit', layout: 'fit',
autoScroll: true,
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
buttonAlign: 'center', buttonAlign: 'center',
@@ -1960,6 +1970,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
minHeight : 150, minHeight : 150,
layout : 'fit', layout : 'fit',
plain : true, plain : true,
autoScroll : true,
bodyStyle : 'padding:5px;', bodyStyle : 'padding:5px;',
items : Objectsgrid, items : Objectsgrid,
buttonAlign : 'center' buttonAlign : 'center'
@@ -2115,6 +2126,7 @@ ProcessMapContext.prototype.ExtVariables = function()
height: 350, height: 350,
minWidth: 200, minWidth: 200,
minHeight: 150, minHeight: 150,
autoScroll: true,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',

View File

@@ -25,7 +25,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
}); });
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New Dynaform', text: 'New',
iconCls: 'application_add', iconCls: 'application_add',
handler: function () { handler: function () {
formWindow.show(); formWindow.show();
@@ -34,7 +34,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete Dynaform', text: 'Delete',
iconCls: 'application_delete', iconCls: 'application_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -393,6 +393,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
var gridWindow = new Ext.Window({ var gridWindow = new Ext.Window({
title: 'Dynaform', title: 'Dynaform',
autoScroll: true,
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 600, width: 600,
@@ -407,6 +408,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
var formWindow = new Ext.Window({ var formWindow = new Ext.Window({
title: 'Dynaform', title: 'Dynaform',
autoScroll: true,
collapsible: false, collapsible: false,
maximizable: true, maximizable: true,
width: 550, width: 550,
@@ -1014,7 +1016,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete Input Document', text: 'Delete',
iconCls: 'application_delete', iconCls: 'application_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1069,7 +1071,7 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New Input Document', text: 'New',
iconCls: 'application_add', iconCls: 'application_add',
handler: function () { handler: function () {
newIOWindow.show(); newIOWindow.show();
@@ -1318,18 +1320,20 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
items: inputDocGrid, items: inputDocGrid,
buttonAlign: 'center' buttonAlign: 'center',
autoScroll: true
}); });
var newIOWindow = new Ext.Window({ var newIOWindow = new Ext.Window({
title: 'Input Document', title: 'New Input Document',
collapsible: false, collapsible: false,
maximizable: false, maximizable: false,
width: 550, width: 550,
height: 400, height: 400,
minWidth: 200, minWidth: 200,
minHeight: 150, minHeight: 150,
autoScroll: true,
layout: 'fit', layout: 'fit',
plain: true, plain: true,
bodyStyle: 'padding:5px;', bodyStyle: 'padding:5px;',
@@ -1485,7 +1489,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete Output Document', text: 'Delete',
iconCls: 'application_delete', iconCls: 'application_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
@@ -1522,7 +1526,7 @@ ProcessOptions.prototype.addOutputDoc= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New Output Document', text: 'New',
iconCls: 'application_add', iconCls: 'application_add',
handler: function () { handler: function () {
newOPWindow.show(); newOPWindow.show();
@@ -2053,7 +2057,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
var btnAdd = new Ext.Button({ var btnAdd = new Ext.Button({
id: 'btnAdd', id: 'btnAdd',
text: 'New Report Table', text: 'New',
iconCls: 'application_add', iconCls: 'application_add',
handler: function () { handler: function () {
formWindow.show(); formWindow.show();
@@ -2086,7 +2090,7 @@ ProcessOptions.prototype.addReportTable= function(_5625)
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete Report Table', text: 'Delete',
iconCls: 'application_add', iconCls: 'application_add',
handler: function () { handler: function () {
editor.stopEditing(); editor.stopEditing();