Worked on fixing issues related to ExtJs

This commit is contained in:
safan
2011-02-04 10:18:09 +00:00
parent 0570e0fcf9
commit 448d8c7bb0

View File

@@ -341,7 +341,7 @@ ProcessMapContext.prototype.processPermission= function()
remoteSort : true, remoteSort : true,
fields : dbConnFields, fields : dbConnFields,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermission'
}) })
}); });
PermissionStore.load(); PermissionStore.load();
@@ -435,7 +435,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
var btnCreate = new Ext.Button({ var btnCreate = new Ext.Button({
id: 'btnCreate', id: 'btnCreate',
text: 'New', text: 'New',
iconCls: 'application_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: function () { handler: function () {
formWindow.show(); formWindow.show();
PermissionForm.getForm().reset(); PermissionForm.getForm().reset();
@@ -444,7 +444,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
var btnEdit = new Ext.Button({ var btnEdit = new Ext.Button({
id: 'btnEdit', id: 'btnEdit',
text: 'Edit', text: 'Edit',
iconCls: 'application_add', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: function (s) { handler: function (s) {
var selectedRow = PermissionGrid.getSelectionModel().getSelections(); var selectedRow = PermissionGrid.getSelectionModel().getSelections();
var opUID = selectedRow[0].data.OP_UID; var opUID = selectedRow[0].data.OP_UID;
@@ -469,7 +469,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Delete', text: 'Delete',
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = PermissionGrid.getSelectionModel().getSelections(); var s = PermissionGrid.getSelectionModel().getSelections();
@@ -483,12 +483,9 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
if(r.data.OP_UID != "") if(r.data.OP_UID != "")
{ {
Ext.Ajax.request({ Ext.Ajax.request({
url : '../inputdocs/inputdocs_Delete.php', url : '../processes/processes_DeleteObjectPermission.php?opUID='+OP_UID,
method: 'POST', method: 'GET',
params: {
functions : 'deleteInputDocument',
OP_UID : opUID
},
success: function(response) { success: function(response) {
Ext.MessageBox.alert ('Status','Process Permission has been removed successfully.'); Ext.MessageBox.alert ('Status','Process Permission has been removed successfully.');
//Secondly deleting from Grid //Secondly deleting from Grid
@@ -547,6 +544,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
{ name: 'LABEL',type: 'string'}, { name: 'LABEL',type: 'string'},
{ name: 'UID',type: 'string'} { name: 'UID',type: 'string'}
]); ]);
var selectTaskStore = new Ext.data.JsonStore({ var selectTaskStore = new Ext.data.JsonStore({
root : 'data', root : 'data',
totalProperty: 'totalCount', totalProperty: 'totalCount',
@@ -554,7 +552,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
remoteSort : true, remoteSort : true,
fields : selectField, fields : selectField,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid+'&action=tasks' url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermissionType&objectType=tasks'
}) })
}); });
@@ -565,7 +563,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
remoteSort : true, remoteSort : true,
fields : selectField, fields : selectField,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid+'&action=users' url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermissionType&objectType=users'
}) })
}); });
@@ -576,7 +574,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
remoteSort : true, remoteSort : true,
fields : selectField, fields : selectField,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid+'&action=dynaform' url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermissionType&objectType=dynaform'
}) })
}); });
@@ -587,7 +585,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
remoteSort : true, remoteSort : true,
fields : selectField, fields : selectField,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid+'&action=input' url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermissionType&objectType=input'
}) })
}); });
@@ -598,7 +596,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
remoteSort : true, remoteSort : true,
fields : selectField, fields : selectField,
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: 'proxyObjectPermissions.php?pid='+pro_uid+'&action=output' url: 'proxyExtjs.php?pid='+pro_uid+'&action=getObjectPermissionType&objectType=output'
}) })
}); });
@@ -848,7 +846,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
},{ },{
xtype :'hidden', xtype :'hidden',
name :'TASK_TARGET', name :'TASK_TARGET',
id :'TAS_UID' id :'TASK_TARGET'
},{ },{
xtype:'hidden', xtype:'hidden',
name:'GROUP_USER', name:'GROUP_USER',
@@ -888,7 +886,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
var Participation = getForm.OP_PARTICIPATE; var Participation = getForm.OP_PARTICIPATE;
var Type = getForm.OP_OBJ_TYPE; var Type = getForm.OP_OBJ_TYPE;
var Permission = getForm.OP_ACTION; var Permission = getForm.OP_ACTION;
if(TargetTask == "") if(TAS_UID == "")
{ {
Ext.Ajax.request({ Ext.Ajax.request({
url : '../processes/processes_SaveObjectPermission.php', url : '../processes/processes_SaveObjectPermission.php',
@@ -1019,7 +1017,7 @@ ProcessMapContext.prototype.processSupervisors= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: 'Remove',
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = grid.getSelectionModel().getSelections(); var s = grid.getSelectionModel().getSelections();
@@ -1235,7 +1233,7 @@ ProcessMapContext.prototype.processDynaform= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: 'Remove',
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = grid.getSelectionModel().getSelections(); var s = grid.getSelectionModel().getSelections();
@@ -1453,7 +1451,7 @@ ProcessMapContext.prototype.processIODoc= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: 'Remove',
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = grid.getSelectionModel().getSelections(); var s = grid.getSelectionModel().getSelections();
@@ -1922,7 +1920,7 @@ ProcessMapContext.prototype.caseTrackerObjects= function()
var btnRemove = new Ext.Button({ var btnRemove = new Ext.Button({
id: 'btnRemove', id: 'btnRemove',
text: 'Remove', text: 'Remove',
iconCls: 'application_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: function (s) { handler: function (s) {
editor.stopEditing(); editor.stopEditing();
var s = Objectsgrid.getSelectionModel().getSelections(); var s = Objectsgrid.getSelectionModel().getSelections();