Fixed Process Permission Forms
This commit is contained in:
1
workflow/engine/js/labels/en.js
Executable file
1
workflow/engine/js/labels/en.js
Executable file
File diff suppressed because one or more lines are too long
@@ -453,9 +453,10 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
method:'GET',
|
||||
waitMsg:'Loading',
|
||||
success:function(form, action) {
|
||||
|
||||
//Ext.MessageBox.alert('Message', 'Loaded OK');
|
||||
formWindow.show();
|
||||
//Ext.getCmp("OP_UID").setValue(opUID);
|
||||
Ext.getCmp("ext-comp-1062").setValue(form.item.item[2].displayField);
|
||||
},
|
||||
failure:function(form, action) {
|
||||
Ext.MessageBox.alert('Message', 'Load failed');
|
||||
@@ -716,12 +717,12 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
forceSelection : true,
|
||||
name :'OP_OBJ_TYPE',
|
||||
displayField :'name',
|
||||
value :'All',
|
||||
value :'ANY',
|
||||
valueField :'value',
|
||||
store :new Ext.data.JsonStore({
|
||||
fields : ['name', 'value'],
|
||||
data : [
|
||||
{name : 'All', value: '0'},
|
||||
{name : 'ANY', value: '0'},
|
||||
{name : 'DYNAFORM', value: '1'},
|
||||
{name : 'INPUT', value: '2'},
|
||||
{name : 'OUTPUT', value: '3'}]}),
|
||||
@@ -881,6 +882,8 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
var Participation = getForm.OP_PARTICIPATE;
|
||||
var Type = getForm.OP_OBJ_TYPE;
|
||||
var Permission = getForm.OP_ACTION;
|
||||
if(TargetTask == "")
|
||||
{
|
||||
Ext.Ajax.request({
|
||||
url : '../processes/processes_SaveObjectPermission.php',
|
||||
method: 'POST',
|
||||
@@ -905,6 +908,34 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
|
||||
PermissionStore.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
Ext.Ajax.request({
|
||||
url : '../processes/processes_SaveObjectPermission.php',
|
||||
method: 'POST',
|
||||
params:{
|
||||
PRO_UID :pro_uid,
|
||||
OP_OBJ_TYPE :Type,
|
||||
TAS_UID :TargetTask,
|
||||
OP_CASE_STATUS :Status,
|
||||
GROUP_USER :GroupUser,
|
||||
OP_TASK_SOURCE :OriginTask,
|
||||
OP_PARTICIPATE :Participation,
|
||||
OP_ACTION :Permission,
|
||||
DYNAFORMS :Dynaforms,
|
||||
INPUTS :Inputs,
|
||||
OUTPUTS :Outputs
|
||||
},
|
||||
success: function(response) {
|
||||
Ext.MessageBox.alert ('Status','Process Permission edited successfully.');
|
||||
formWindow.hide();
|
||||
PermissionStore.reload();
|
||||
formWindow.hide();
|
||||
PermissionStore.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},{
|
||||
text: 'Cancel',
|
||||
|
||||
@@ -881,8 +881,60 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
id : 'DBS_UID',
|
||||
xtype: 'hidden',
|
||||
name : 'DBS_UID'
|
||||
}
|
||||
], buttons: [{
|
||||
},{}],
|
||||
buttons: [{text:'Test Connection',
|
||||
id: 'test',
|
||||
//formbind: true,
|
||||
handler: function(){
|
||||
// testConnWindow.show();
|
||||
|
||||
Ext.fly('p3text').update('Working');
|
||||
mybar.wait({
|
||||
interval:200,
|
||||
duration:5000,
|
||||
increment:15,
|
||||
fn:function(){
|
||||
btn3.dom.disabled = false;
|
||||
Ext.fly('p3text').update('Done');
|
||||
}
|
||||
});
|
||||
|
||||
var getForm = dbconnForm.getForm().getValues();
|
||||
//var dbConnUID = getForm.DBS_UID;
|
||||
var Type = getForm.DBS_TYPE;
|
||||
var Server = getForm.DBS_SERVER;
|
||||
var DatabaseName = getForm.DBS_DATABASE_NAME;
|
||||
var Username = getForm.DBS_USERNAME;
|
||||
var Password = getForm.DBS_PASSWORD;
|
||||
var Port = getForm.DBS_PORT;
|
||||
|
||||
//var Description = getForm.DBS_DESCRIPTION;
|
||||
for(var Step=1;Step<=4;Step++)
|
||||
// {
|
||||
{
|
||||
Ext.Ajax.request({
|
||||
url : '../dbConnections/dbConnectionsAjax.php',
|
||||
method: 'POST',
|
||||
params:{
|
||||
step :Step,
|
||||
type :Type,
|
||||
server :Server,
|
||||
db_name :DatabaseName,
|
||||
user :Username ,
|
||||
passwd :Password,
|
||||
port :Port,
|
||||
//desc :Description,
|
||||
action :'testConnection'
|
||||
},
|
||||
success: function(response) {
|
||||
Ext.MessageBox.alert ('Status','Connection Tested Successfully.');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
},{
|
||||
|
||||
text: 'Save',
|
||||
formBind :true,
|
||||
handler: function(){
|
||||
@@ -956,6 +1008,25 @@ ProcessOptions.prototype.dbConnection = function()
|
||||
}]
|
||||
})
|
||||
|
||||
/*var testConnBar = new Ext.ProgressBar({
|
||||
id: 'loadBar',
|
||||
text: 'Loading...'
|
||||
});
|
||||
|
||||
var testConnWindow = new Ext.Window({
|
||||
closable: false,
|
||||
collapsible: false,
|
||||
draggable: false,
|
||||
resizable: false,
|
||||
el: 'gridDiv',
|
||||
layout:'fit',
|
||||
width:500,
|
||||
height:40,
|
||||
plain: true,
|
||||
modal: true,
|
||||
items: testConnBar
|
||||
});*/
|
||||
|
||||
var formWindow = new Ext.Window({
|
||||
title: 'Add new Database Source',
|
||||
collapsible: false,
|
||||
|
||||
Reference in New Issue
Block a user