Worked on fixed issue with loading windows more then twice, adjusted form panel in ExtJS

This commit is contained in:
safan
2011-02-01 13:29:25 +00:00
parent 2ad3ee1591
commit 862e1348ae
5 changed files with 205 additions and 189 deletions

View File

@@ -1140,13 +1140,13 @@ MyWorkflow.prototype.AddEventInterContextMenu=function(_4093)
handler: MyWorkflow.prototype.toggleShapes
},*/
{
text: 'Message : Send',
text: 'Message : Throw',
type:'bpmnEventMessageSendInter',
scope:_4093,
handler: MyWorkflow.prototype.toggleShapes
},
{
text: 'Message : Receive',
text: 'Message : Catch',
type:'bpmnEventMessageRecInter',
scope:_4093,
handler: MyWorkflow.prototype.toggleShapes
@@ -1616,11 +1616,11 @@ MyWorkflow.prototype.saveShape= function(oNewShape)
if(preSelectedFigure.type.match(/Task/))
this.workflow.saveRoute(preSelectedFigure,oNewShape);
if (preSelectedFigure.type.match(/Gateway/)) {
if (preSelectedFigure.type.match(/Gateway/))
//preSelectedFigure.rou_type = 'SEQUENTIAL';
this.workflow.saveRoute(preSelectedFigure,oNewShape);
}
if (preSelectedFigure.type.match(/Inter/)) {
//preSelectedFigure.rou_type = 'SEQUENTIAL';
this.workflow.saveEvents(preSelectedFigure,oNewShape);
@@ -2073,7 +2073,7 @@ MyWorkflow.prototype.saveRoute = function(preObj,newObj)
}
/**
* Delting Route Silently
* Deleting Route Silently
* @Param oConn Object
* @Param iVal Integer
* @Author Girish joshi

View File

@@ -28,6 +28,7 @@ ProcessMapContext.prototype.editProcess= function()
var editProcess = new Ext.FormPanel({
labelWidth: 75, // label settings here cascade unless overridden
frame:true,
monitorValid : true,
bodyStyle:'padding:5px 5px 0',
width: 500,
height: 400,
@@ -95,28 +96,9 @@ ProcessMapContext.prototype.editProcess= function()
checked:checkDebug
}
]
}]
});
editProcess.render(document.body);
workflow.editProcessForm = editProcess;
var window = new Ext.Window({
title: 'Edit Process',
collapsible: false,
maximizable: false,
width: 500,
height: 400,
minWidth: 300,
minHeight: 200,
layout: 'fit',
autoScroll: true,
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: editProcess,
buttons: [{
}],buttons: [{
text: 'Save',
formBind :true,
handler: function(){
//waitMsg: 'Saving...', // Wait Message
var fields = editProcess.items.items;
@@ -136,7 +118,7 @@ ProcessMapContext.prototype.editProcess= function()
Ext.Ajax.request({
url: "processes_Ajax.php"+ urlparams,
success: function(response) {
window.close();
window.hide();
},
failure: function(){
Ext.Msg.alert ('Failure');
@@ -147,10 +129,29 @@ ProcessMapContext.prototype.editProcess= function()
text: 'Cancel',
handler: function(){
// when this button clicked,
window.close();
window.hide();
}
}]
});
editProcess.render(document.body);
workflow.editProcessForm = editProcess;
var window = new Ext.Window({
title: 'Edit Process',
collapsible: false,
maximizable: false,
width: 500,
height: 400,
minWidth: 300,
minHeight: 200,
layout: 'fit',
autoScroll: true,
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: editProcess
});
window.show();
}
@@ -164,6 +165,7 @@ ProcessMapContext.prototype.exportProcess= function()
var exportProcessForm = new Ext.FormPanel({
labelWidth : 120, // label settings here cascade unless overridden
frame : true,
monitorValid : true,
title : '',
bodyStyle : 'padding:5px 5px 0',
width : 500,
@@ -273,7 +275,7 @@ ProcessMapContext.prototype.exportProcess= function()
collapsible: false,
maximizable: false,
width : 450,
height : 450,
height : 300,
minWidth : 300,
minHeight : 200,
layout : 'fit',
@@ -434,6 +436,7 @@ var tb = new Ext.Toolbar({
text: 'New',
iconCls: 'application_add',
handler: function () {
PermissionForm.getForm().reset();
formWindow.show();
}
})
@@ -536,7 +539,8 @@ var tb = new Ext.Toolbar({
// title:"Add new Database Source",
collapsible: false,
maximizable: true,
width:450,
width:350,
monitorValid : true,
frame:true,
plain: true,
bodyStyle: 'padding:5px;',
@@ -793,26 +797,9 @@ var tb = new Ext.Toolbar({
}
]
})
var formWindow = new Ext.Window({
title: 'New specific Permission',
collapsible: false,
maximizable: true,
width: 450,
autoScroll: true,
//autoHeight: true,
height: 420,
//layout: 'fit',
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: PermissionForm,
buttons: [{
], buttons: [{
text: 'Create',
formBind :true,
handler: function(){
var getForm = PermissionForm.getForm().getValues();
var TargetTask = getForm.TAS_UID;
@@ -843,9 +830,9 @@ var formWindow = new Ext.Window({
},
success: function(response) {
Ext.MessageBox.alert ('Status','Process Permission created successfully.');
formWindow.close();
formWindow.hide();
PermissionStore.reload();
formWindow.close();
formWindow.hide();
PermissionStore.reload();
}
});
@@ -854,10 +841,27 @@ var formWindow = new Ext.Window({
text: 'Cancel',
handler: function(){
// when this button clicked,
formWindow.close();
formWindow.hide();
}
}]
});
})
var formWindow = new Ext.Window({
title: 'New specific Permission',
collapsible: false,
maximizable: true,
width: 400,
autoScroll: true,
//autoHeight: true,
height: 350,
//layout: 'fit',
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: PermissionForm
});
gridWindow.show();
}
@@ -1544,6 +1548,7 @@ ProcessMapContext.prototype.processFileManager= function()
items: AwesomeUploaderInstance,
buttons: [{
text: 'Save',
formBind :true,
handler: function(){
//waitMsg: 'Saving...', // Wait Message
var fields = editProcess.items.items;
@@ -1563,7 +1568,7 @@ ProcessMapContext.prototype.processFileManager= function()
Ext.Ajax.request({
url: "processes_Ajax.php"+ urlparams,
success: function(response) {
window.close();
window.hide();
},
failure: function(){
Ext.Msg.alert ('Failure');
@@ -1574,7 +1579,7 @@ ProcessMapContext.prototype.processFileManager= function()
text: 'Cancel',
handler: function(){
// when this button clicked,
window.close();
window.hide();
}
}]
});
@@ -1588,6 +1593,7 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
var PropertiesForm = new Ext.FormPanel({
labelWidth: 75, // label settings here cascade unless overridden
frame:true,
monitorValid : true,
bodyStyle:'padding:5px 5px 0',
width: 300,
height: 300,
@@ -1657,25 +1663,9 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
fieldLabel: 'Messages History',
name: 'CT_MESSAGE_HISTORY'
// checked:checkMessages
}]
});
var Propertieswindow = new Ext.Window({
title: 'Case tracker',
collapsible: false,
maximizable: false,
width: 300,
height: 300,
//minWidth: 300,
//minHeight: 200,
layout: 'fit',
autoScroll: true,
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: PropertiesForm,
buttons: [{
}], buttons: [{
text: 'Save',
formBind :true,
handler: function(){
var getForm = PropertiesForm.getForm().getValues();
//var pro_uid = getForm.PRO_UID;
@@ -1709,9 +1699,26 @@ ProcessMapContext.prototype.caseTrackerProperties= function()
},{
text: 'Cancel',
handler: function(){
Propertieswindow.close();
Propertieswindow.hide();
}
}]
});
var Propertieswindow = new Ext.Window({
title: 'Case tracker',
collapsible: false,
maximizable: false,
width: 300,
height: 300,
//minWidth: 300,
//minHeight: 200,
layout: 'fit',
autoScroll: true,
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: PropertiesForm
});
Propertieswindow.show();
}
@@ -2091,6 +2098,7 @@ ProcessMapContext.prototype.ExtVariables = function()
var varForm = new Ext.FormPanel({
labelWidth: 100,
monitorValid : true,
bodyStyle :'padding:5px 5px 0',
width : 400,
height : 350,

File diff suppressed because it is too large Load Diff

View File

@@ -381,6 +381,7 @@ TaskContext.prototype.editTaskSteps = function(_3252){
var taskStepsTabs = new Ext.FormPanel({
labelWidth: 100,
bodyStyle :'padding:5px 5px 0',
monitorValid : true,
width : 850,
height : 500,
items:
@@ -723,6 +724,7 @@ TaskContext.prototype.editTaskProperties= function()
var taskPropertiesTabs = new Ext.FormPanel({
labelWidth : 100,
monitorValid : true,
// store : taskDetails,
//url : 'proxyTaskPropertiesDetails.php',
bodyStyle : 'padding:5px 5px 0',
@@ -1262,7 +1264,23 @@ TaskContext.prototype.editTaskProperties= function()
}]
}
]
],buttons: [{
text: 'Save',
formBind :true,
handler: function(){
//var getstore = taskPropertiesTabs.getStore();
//var getData = getstore.data.items;
taskExtObj.saveTaskProperties();
window.hide();
}
},{
text: 'Cancel',
handler: function(){
// when this button clicked,
window.hide();
}
}]
}
});
@@ -1332,24 +1350,8 @@ TaskContext.prototype.editTaskProperties= function()
plain: true,
bodyStyle: 'padding:5px;',
buttonAlign: 'center',
items: taskPropertiesTabs,
buttons: [{
text: 'Save',
handler: function(){
//var getstore = taskPropertiesTabs.getStore();
//var getData = getstore.data.items;
taskExtObj.saveTaskProperties();
window.close();
}
},{
text: 'Cancel',
handler: function(){
// when this button clicked,
window.close();
}
}]
});
items: taskPropertiesTabs
});
window.show();
}
@@ -1753,6 +1755,7 @@ TaskContext.prototype.stepTriggers = function()
var treeGrid = new Ext.FormPanel({
frame: true,
monitorValid : true,
labelAlign: 'left',
bodyStyle:'padding:5px',
width: 750,

View File

@@ -308,11 +308,6 @@ Ext.onReady ( function() {
iconCls: 'button_menu_ext ss_sprite ss_exclamation',
handler: ProcessMapObj.caseTrackerObjects,
scope:this
},
{
text: 'Test',
handler: ProcessMapObj.ExtVariables,
scope:this
}
]
}