Newer
Older

Henning Leutz
committed
* @module package/quiqqer/cron/bin/History
*
* @require qui/QUI
* @require qui/controls/desktop/Panel
* @require qui/controls/windows/Confirm
* @require qui/controls/buttons/Button
* @require qui/controls/buttons/Seperator
* @require controls/grid/Grid
* @require Ajax
* @require Locale

Henning Leutz
committed
define('package/quiqqer/cron/bin/History', [
'qui/QUI',
'qui/controls/desktop/Panel',
'qui/controls/windows/Confirm',
'qui/controls/buttons/Button',
'qui/controls/buttons/Seperator',
'controls/grid/Grid',
'Ajax',
'Locale'
], function (QUI, QUIPanel, QUIConfirm, QUIButton, QUIButtonSeperator, Grid, Ajax, QUILocale) {
Extends: QUIPanel,
Type : 'package/quiqqer/cron/bin/History',
initialize: function (options) {
this.parent(options);
onCreate: this.$onCreate,
onResize: this.$onResize

Henning Leutz
committed
var self = this,
options = this.$Grid.options;
this.Loader.show();
Ajax.get('package_quiqqer_cron_ajax_history_get', function (result) {
self.$Grid.setData(result);

Henning Leutz
committed
self.Loader.hide();
'package': 'quiqqer/cron',
params : JSON.encode({
perPage: options.perPage,
page : options.page

Henning Leutz
committed
})
$onCreate: function () {
var self = this,
Content = this.getContent(),
columnModel: [{
header : QUILocale.get('quiqqer/system', 'createdate'),
dataIndex: 'lastexec',
dataType : 'date',
width : 150
header : QUILocale.get(lg, 'cron.id'),
dataIndex: 'cronid',
dataType : 'string',
width : 50

Henning Leutz
committed
}, {
header : QUILocale.get(lg, 'cron.title'),
dataIndex: 'cronTitle',
dataType : 'string',
width : 200
header : QUILocale.get('quiqqer/system', 'user_id'),
dataIndex: 'uid',
dataType : 'string',
width : 100

Henning Leutz
committed
}, {
header : QUILocale.get('quiqqer/system', 'username'),
dataIndex: 'username',
dataType : 'string',
width : 150
self.loadData();
}
});
this.$Grid.refresh();
return;
}
var Content = this.getContent(),
size = Content.getSize();
this.$Grid.setHeight(size.y - 40);
this.$Grid.setWidth(size.x - 40);