MT-30: Add option to export button for selective export
.
This commit is contained in:
@@ -356,14 +356,31 @@ Ext.onReady(function(){
|
||||
},{
|
||||
xtype: 'tbseparator'
|
||||
},{
|
||||
xtype: "tbsplit",
|
||||
id: "export",
|
||||
disabled: true,
|
||||
text: _("ID_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "/images/export.png",
|
||||
handler: function () {
|
||||
menu: [
|
||||
{
|
||||
text: _("ID_NORMAL_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportProcess();
|
||||
}
|
||||
},{
|
||||
text: _("ID_GRANULAR_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportImportProcessObjects('export');
|
||||
}
|
||||
}
|
||||
]
|
||||
},{
|
||||
text: _('ID_IMPORT'),
|
||||
iconCls: 'silk-add',
|
||||
@@ -519,10 +536,28 @@ Ext.onReady(function(){
|
||||
{
|
||||
text: _("ID_EXPORT"),
|
||||
icon: "/images/export.png",
|
||||
menu: {
|
||||
showSeparator: false,
|
||||
items: [
|
||||
{
|
||||
text: _("ID_NORMAL_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportProcess();
|
||||
}
|
||||
},{
|
||||
text: _("ID_GRANULAR_EXPORT"),
|
||||
iconCls: "silk-add",
|
||||
icon: "",
|
||||
handler: function ()
|
||||
{
|
||||
exportImportProcessObjects('export');
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "mnuGenerateBpmn",
|
||||
@@ -922,7 +957,9 @@ function exportProcess() {
|
||||
var record = processesGrid.getSelectionModel().getSelections();
|
||||
|
||||
if(record.length == 1) {
|
||||
if(Ext.getCmp('exportProcessObjectsWindow')) {
|
||||
Ext.getCmp('exportProcessObjectsWindow').close();
|
||||
}
|
||||
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING")});
|
||||
var proUid = record[0].get("PRO_UID");
|
||||
|
||||
@@ -2088,6 +2125,8 @@ function openWindowIfIE(pathDesigner) {
|
||||
Ext.getCmp('windowBpmnOptionWindow').close();
|
||||
if (Ext.getCmp('changeOrKeepUidsWindow'))
|
||||
Ext.getCmp('changeOrKeepUidsWindow').close();
|
||||
if (Ext.getCmp('exportProcessObjectsWindow'))
|
||||
Ext.getCmp('exportProcessObjectsWindow').close();
|
||||
processesGrid.store.reload();
|
||||
nameTab = PM.Sessions.getCookie('PM-TabPrimary') + '_winDesigner';
|
||||
if (winDesigner && winDesigner.closed === false) {
|
||||
|
||||
Reference in New Issue
Block a user