@@ -15,6 +15,7 @@ PMExtJSCommon = function() {
|
|||||||
|
|
||||||
this.info = function(title, msg, fn) {
|
this.info = function(title, msg, fn) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
|
id: 'infoMessageBox',
|
||||||
title: title,
|
title: title,
|
||||||
msg: msg,
|
msg: msg,
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
@@ -26,6 +27,7 @@ PMExtJSCommon = function() {
|
|||||||
|
|
||||||
this.question = function(title, msg, fn) {
|
this.question = function(title, msg, fn) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
|
id: 'questionMessageBox',
|
||||||
title: title,
|
title: title,
|
||||||
msg: msg,
|
msg: msg,
|
||||||
buttons: Ext.MessageBox.YESNO,
|
buttons: Ext.MessageBox.YESNO,
|
||||||
@@ -40,6 +42,7 @@ PMExtJSCommon = function() {
|
|||||||
|
|
||||||
this.warning = function(title, msg, fn) {
|
this.warning = function(title, msg, fn) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
|
id: 'warningMessageBox',
|
||||||
title: title,
|
title: title,
|
||||||
msg: msg,
|
msg: msg,
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
@@ -51,6 +54,7 @@ PMExtJSCommon = function() {
|
|||||||
|
|
||||||
this.error = function(title, msg, fn) {
|
this.error = function(title, msg, fn) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
|
id: 'errorMessageBox',
|
||||||
title: title,
|
title: title,
|
||||||
msg: msg,
|
msg: msg,
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
|
|||||||
@@ -559,6 +559,7 @@ ImportPMTableCSV = function(){
|
|||||||
[',', 'Comma (,)']]
|
[',', 'Comma (,)']]
|
||||||
});
|
});
|
||||||
var w = new Ext.Window({
|
var w = new Ext.Window({
|
||||||
|
id: 'windowImportUploader',
|
||||||
title : '',
|
title : '',
|
||||||
width : 440,
|
width : 440,
|
||||||
height : 180,
|
height : 180,
|
||||||
@@ -672,6 +673,7 @@ ExportPMTableCSV = function(){
|
|||||||
[',', 'Comma (,)']]
|
[',', 'Comma (,)']]
|
||||||
});
|
});
|
||||||
var w = new Ext.Window({
|
var w = new Ext.Window({
|
||||||
|
id: 'windowExportUploader',
|
||||||
title : '',
|
title : '',
|
||||||
width : 320,
|
width : 320,
|
||||||
height : 140,
|
height : 140,
|
||||||
|
|||||||
@@ -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,
|
||||||
@@ -501,6 +511,7 @@ DeletePMTable = function() {
|
|||||||
ImportPMTable = function(){
|
ImportPMTable = function(){
|
||||||
|
|
||||||
var w = new Ext.Window({
|
var w = new Ext.Window({
|
||||||
|
id: 'windowPmTableUploaderImport',
|
||||||
title: '',
|
title: '',
|
||||||
width: 420,
|
width: 420,
|
||||||
height: 160,
|
height: 160,
|
||||||
@@ -535,12 +546,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');
|
||||||
@@ -558,6 +571,7 @@ ImportPMTable = function(){
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
win = new Ext.Window({
|
win = new Ext.Window({
|
||||||
|
id: 'windowImportingError',
|
||||||
applyTo:'hello-win',
|
applyTo:'hello-win',
|
||||||
layout:'fit',
|
layout:'fit',
|
||||||
width:500,
|
width:500,
|
||||||
@@ -602,6 +616,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();
|
||||||
@@ -646,6 +661,7 @@ PMTableData = function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
win = new Ext.Window({
|
win = new Ext.Window({
|
||||||
|
id: 'windowPmtablesReportTable',
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
width: 700,
|
width: 700,
|
||||||
height: 400,
|
height: 400,
|
||||||
|
|||||||
Reference in New Issue
Block a user