import
This commit is contained in:
@@ -21,6 +21,7 @@ importProcessGlobal.importOption = "";
|
|||||||
importProcessGlobal.processFileType = "";
|
importProcessGlobal.processFileType = "";
|
||||||
importProcessGlobal.isGranularImport = false;
|
importProcessGlobal.isGranularImport = false;
|
||||||
importProcessGlobal.objectGranularImport;
|
importProcessGlobal.objectGranularImport;
|
||||||
|
importProcessGlobal.objectsToImport = [];
|
||||||
|
|
||||||
new Ext.KeyMap(document, {
|
new Ext.KeyMap(document, {
|
||||||
key: Ext.EventObject.F5,
|
key: Ext.EventObject.F5,
|
||||||
@@ -969,7 +970,7 @@ function exportImportProcessObjects(typeAction)
|
|||||||
gridProcessObjects,
|
gridProcessObjects,
|
||||||
colModel,
|
colModel,
|
||||||
buttonLabel,
|
buttonLabel,
|
||||||
w,
|
granularWindow,
|
||||||
i;
|
i;
|
||||||
|
|
||||||
if(typeof typeAction !== undefined) {
|
if(typeof typeAction !== undefined) {
|
||||||
@@ -1019,7 +1020,7 @@ function exportImportProcessObjects(typeAction)
|
|||||||
selModel : checkBoxSelMod,
|
selModel : checkBoxSelMod,
|
||||||
showHeaderCheckbox: true,
|
showHeaderCheckbox: true,
|
||||||
columnLines: true,
|
columnLines: true,
|
||||||
//disableSelection : true,
|
disableSelection : true,
|
||||||
viewConfig: {
|
viewConfig: {
|
||||||
forceFit:true,
|
forceFit:true,
|
||||||
cls:"x-grid-empty",
|
cls:"x-grid-empty",
|
||||||
@@ -1068,19 +1069,21 @@ function exportImportProcessObjects(typeAction)
|
|||||||
var gridStore = grid.getStore();
|
var gridStore = grid.getStore();
|
||||||
gridStore.each(function(row, j){
|
gridStore.each(function(row, j){
|
||||||
if(inArray(row.get('OBJECT_ID'),importProcessGlobal.objectGranularImport)) {
|
if(inArray(row.get('OBJECT_ID'),importProcessGlobal.objectGranularImport)) {
|
||||||
grid.getSelectionModel().selectRow(j, true);
|
//grid.getSelectionModel().selectRow(j, true);
|
||||||
} else {
|
} else {
|
||||||
/*disable row*/
|
/*disable row*/
|
||||||
//grid.getSelectionModel().deselectRow(j, true);
|
gridStore.remove(row);
|
||||||
return '';
|
/* gridStore.rejectChanges(row);
|
||||||
|
row.cancelEdit();*/
|
||||||
}
|
}
|
||||||
|
grid.getSelectionModel().selectRow(j, true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
w = new Ext.Window({
|
granularWindow = new Ext.Window({
|
||||||
id : 'exportProcessObjectsWindow',
|
id : 'exportProcessObjectsWindow',
|
||||||
title : windowTitle,
|
title : windowTitle,
|
||||||
header : false,
|
header : false,
|
||||||
@@ -1119,20 +1122,21 @@ function exportImportProcessObjects(typeAction)
|
|||||||
}
|
}
|
||||||
processObjectsArray = JSON.stringify(processObjectsArray);
|
processObjectsArray = JSON.stringify(processObjectsArray);
|
||||||
}
|
}
|
||||||
|
importProcessGlobal.objectsToImport = processObjectsArray;
|
||||||
Ext.getCmp('objectsToImport').setValue(processObjectsArray);
|
Ext.getCmp('objectsToImport').setValue(processObjectsArray);
|
||||||
Ext.getCmp('buttonUpload').el.dom.click();
|
Ext.getCmp('buttonUpload').el.dom.click();
|
||||||
|
granularWindow.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
text : _('ID_CANCEL'),
|
text : _('ID_CANCEL'),
|
||||||
handler : function(){
|
handler : function(){
|
||||||
w.close();
|
granularWindow.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
w.show();
|
granularWindow.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function inArray(needle, haystack) {
|
function inArray(needle, haystack) {
|
||||||
@@ -1322,6 +1326,10 @@ importProcessExistGroup = function()
|
|||||||
name : 'processFileType',
|
name : 'processFileType',
|
||||||
xtype : 'hidden',
|
xtype : 'hidden',
|
||||||
value : processFileType
|
value : processFileType
|
||||||
|
}, {
|
||||||
|
name : 'objectsToImport',
|
||||||
|
xtype : 'hidden',
|
||||||
|
value : importProcessGlobal.objectsToImport
|
||||||
}, {
|
}, {
|
||||||
xtype : 'spacer',
|
xtype : 'spacer',
|
||||||
height : 10
|
height : 10
|
||||||
@@ -1642,6 +1650,10 @@ changeOrKeepUids = function()
|
|||||||
name : 'processFileType',
|
name : 'processFileType',
|
||||||
xtype : 'hidden',
|
xtype : 'hidden',
|
||||||
value : processFileType
|
value : processFileType
|
||||||
|
}, {
|
||||||
|
name : 'objectsToImport',
|
||||||
|
xtype : 'hidden',
|
||||||
|
value : importProcessGlobal.objectsToImport
|
||||||
}, {
|
}, {
|
||||||
xtype : 'spacer',
|
xtype : 'spacer',
|
||||||
height : 10
|
height : 10
|
||||||
|
|||||||
Reference in New Issue
Block a user