add id's in report table

This commit is contained in:
Roly Rudy Gutierrez Pinto
2014-03-21 16:29:36 -04:00
parent 801cca7f1f
commit 6bd816a19e
3 changed files with 23 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ Ext.onReady(function(){
comboPageSize.setValue(pageSize); comboPageSize.setValue(pageSize);
bbarpaging = new Ext.PagingToolbar({ bbarpaging = new Ext.PagingToolbar({
id: 'editReportBbarpaging',
pageSize: pageSize, pageSize: pageSize,
store: storeA, store: storeA,
displayInfo: true, displayInfo: true,
@@ -181,6 +182,7 @@ Ext.onReady(function(){
} }
}, },
{ {
id: 'availableGridButtonClear',
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:'pm_search_x_button',
handler: function(){ handler: function(){
@@ -188,6 +190,7 @@ Ext.onReady(function(){
filterAvFields(); filterAvFields();
} }
}, { }, {
id: 'availableGridButtonSearch',
text: _('ID_FILTER'), text: _('ID_FILTER'),
handler: function(){ handler: function(){
filterAvFields(); filterAvFields();
@@ -553,6 +556,7 @@ Ext.onReady(function(){
loadMask: {message: _('ID_LOADING_GRID')}, loadMask: {message: _('ID_LOADING_GRID')},
tbar : [ tbar : [
{ {
id: 'assignedGridAddField',
icon: '/images/add-row-after.png', icon: '/images/add-row-after.png',
text: _("ID_ADD_FIELD"), text: _("ID_ADD_FIELD"),
handler: addColumn handler: addColumn
@@ -606,6 +610,7 @@ Ext.onReady(function(){
// (vertical) selection buttons // (vertical) selection buttons
buttonsPanel = new Ext.Panel({ buttonsPanel = new Ext.Panel({
id: 'buttonsPanelVertical',
width : 40, width : 40,
layout : { layout : {
type:'vbox', type:'vbox',
@@ -985,9 +990,11 @@ Ext.onReady(function(){
southPanel = new Ext.FormPanel({ southPanel = new Ext.FormPanel({
region: 'south', region: 'south',
buttons:[ { buttons:[ {
id: 'southPanelCreateUpdate',
text: TABLE === false ? _("ID_CREATE") : _("ID_UPDATE"), text: TABLE === false ? _("ID_CREATE") : _("ID_UPDATE"),
handler: createReportTable handler: createReportTable
}, { }, {
id: 'southPanelCancel',
text:_("ID_CANCEL"), text:_("ID_CANCEL"),
handler: function() { handler: function() {
proParam = (typeof('flagProcessmap') != 'undefined' && flagProcessmap == 1) ? (PRO_UID !== false ? '?flagProcessmap=1&PRO_UID='+PRO_UID : '') : ''; proParam = (typeof('flagProcessmap') != 'undefined' && flagProcessmap == 1) ? (PRO_UID !== false ? '?flagProcessmap=1&PRO_UID='+PRO_UID : '') : '';

View File

@@ -104,6 +104,7 @@ Export.configure = function()
* WINDOW CONFIG * WINDOW CONFIG
*/ */
this.windowConfig = { this.windowConfig = {
id: 'windowConfigExport',
title: '', title: '',
layout: 'fit', layout: 'fit',
width: 570, width: 570,
@@ -117,9 +118,11 @@ Export.configure = function()
} }
this.windowConfig.buttons = [{ this.windowConfig.buttons = [{
id: 'windowConfigExportButtonExport',
text: _('ID_EXPORT'), text: _('ID_EXPORT'),
handler: Export.submit handler: Export.submit
},{ },{
id: 'windowConfigExportButtonCancel',
text: _('ID_CANCEL'), text: _('ID_CANCEL'),
handler: function(){ handler: function(){
Export.window.hide(); Export.window.hide();

View File

@@ -62,12 +62,14 @@ Ext.onReady(function(){
} }
newButton = new Ext.Action({ newButton = new Ext.Action({
id: 'newButton',
text: _('ID_NEW'), text: _('ID_NEW'),
icon: '/images/add-table.png', icon: '/images/add-table.png',
menu: newMenuOptions menu: newMenuOptions
}); });
editButton = new Ext.Action({ editButton = new Ext.Action({
id: 'editButton',
text: _('ID_EDIT'), text: _('ID_EDIT'),
icon: '/images/edit-table.png', icon: '/images/edit-table.png',
handler: EditPMTable, handler: EditPMTable,
@@ -75,6 +77,7 @@ Ext.onReady(function(){
}); });
deleteButton = new Ext.Action({ deleteButton = new Ext.Action({
id: 'deleteButton',
text: _('ID_DELETE'), text: _('ID_DELETE'),
icon: '/images/delete-table.png', icon: '/images/delete-table.png',
handler: DeletePMTable, handler: DeletePMTable,
@@ -82,6 +85,7 @@ Ext.onReady(function(){
}); });
importButton = new Ext.Action({ importButton = new Ext.Action({
id: 'importButton',
text: _('ID_IMPORT'), text: _('ID_IMPORT'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/import.gif', icon: '/images/import.gif',
@@ -89,6 +93,7 @@ Ext.onReady(function(){
}); });
exportButton = new Ext.Action({ exportButton = new Ext.Action({
id: 'exportButton',
text: _('ID_EXPORT'), text: _('ID_EXPORT'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/export.png', icon: '/images/export.png',
@@ -97,6 +102,7 @@ Ext.onReady(function(){
}); });
dataButton = new Ext.Action({ dataButton = new Ext.Action({
id: 'dataButton',
text: ' ' + _('ID_DATA'), text: ' ' + _('ID_DATA'),
iconCls: 'silk-add', iconCls: 'silk-add',
icon: '/images/database-start.png', icon: '/images/database-start.png',
@@ -105,6 +111,7 @@ Ext.onReady(function(){
}); });
searchButton = new Ext.Action({ searchButton = new Ext.Action({
id: 'searchButton',
text: _('ID_SEARCH'), text: _('ID_SEARCH'),
handler: DoSearch handler: DoSearch
}); });
@@ -162,6 +169,7 @@ Ext.onReady(function(){
}); });
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
id: 'clearTextButton',
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:'pm_search_x_button',
handler: GridByDefault handler: GridByDefault
@@ -174,6 +182,7 @@ Ext.onReady(function(){
}); });
comboPageSize = new Ext.form.ComboBox({ comboPageSize = new Ext.form.ComboBox({
id: 'comboPageSize',
typeAhead : false, typeAhead : false,
mode : 'local', mode : 'local',
triggerAction : 'all', triggerAction : 'all',
@@ -306,6 +315,7 @@ Ext.onReady(function(){
}); });
bbarpaging = new Ext.PagingToolbar({ bbarpaging = new Ext.PagingToolbar({
id: 'bbarpaging',
pageSize: pageSize, pageSize: pageSize,
store: store, store: store,
displayInfo: true, displayInfo: true,
@@ -531,12 +541,14 @@ ImportPMTable = function(){
iconCls: 'upload-icon' iconCls: 'upload-icon'
} }
}, { }, {
id: 'importPMTableOverwrite',
xtype: 'checkbox', xtype: 'checkbox',
fieldLabel: '', fieldLabel: '',
boxLabel: _('ID_OVERWRITE_EXIST'), // 'Overwrite if exists?', boxLabel: _('ID_OVERWRITE_EXIST'), // 'Overwrite if exists?',
name: 'form[OVERWRITE]' name: 'form[OVERWRITE]'
}], }],
buttons: [{ buttons: [{
id: 'importPMTableButtonUpload',
text: _('ID_UPLOAD'), text: _('ID_UPLOAD'),
handler: function(){ handler: function(){
var uploader = Ext.getCmp('uploader'); var uploader = Ext.getCmp('uploader');
@@ -598,6 +610,7 @@ ImportPMTable = function(){
uploader.getForm().reset(); uploader.getForm().reset();
} }
}*/,{ }*/,{
id: 'importPMTableButtonCancel',
text: TRANSLATIONS.ID_CANCEL, text: TRANSLATIONS.ID_CANCEL,
handler: function(){ handler: function(){
w.close(); w.close();