+
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'method_id',
+ header : _this._strings['a1fa27779242b4902f7ae3bdd5c6d508'],
+ renderer : function(v,x,r) {
+ return String.format('{0}', r.data.method_id_display_name);
+ },
+ width : 120,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ editor : {
+ field : {
+ '|xns' : 'Roo.form',
+ xns : Roo.form,
+ xtype : 'DateField'
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'dtstart',
+ header : _this._strings['5da618e8e4b89c66fe86e32cdafde142'],
+ renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
+ width : 75,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ editor : {
+ field : {
+ '|xns' : 'Roo.form',
+ xns : Roo.form,
+ xtype : 'DateField'
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'dtend',
+ header : _this._strings['3728af837fe70019577ddb0ed7125ee5'],
+ renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
+ width : 75,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ editor : {
+ field : {
+ store : {
+ '|xns' : 'Roo.data',
+ data : (function() {
+ var ret = [];
+ Roo.each(Date.dayNames, function(d) {
+ ret.push([ d.substring(0,3).toUpperCase(), d ]);
+ });
+ return ret;
+ })(),
+ fields : ['code', 'title'],
+ sortInfo : { field : 'title', direction: 'ASC' },
+ xns : Roo.data,
+ xtype : 'SimpleStore'
+ },
+ '|xns' : 'Roo.form',
+ allowBlank : false,
+ displayField : 'title',
+ editable : false,
+ fieldLabel : 'Country',
+ hiddenName : 'freq_day',
+ listWidth : 300,
+ mode : 'local',
+ name : 'freq_day_name',
+ pageSize : 40,
+ triggerAction : 'all',
+ valueField : 'code',
+ xns : Roo.form,
+ xtype : 'ComboCheck',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'freq_day',
+ header : _this._strings['157e432ec303efd7d537b653cb255ccc'],
+ renderer : function(v,x,r) {
+
+ if (v.length) {
+
+ var cm = _this.grid.colModel;
+
+ var ci = cm.getColumnByDataIndex(this.name);
+
+ var tv = [];
+ var vals = Roo.decode(v);
+ Roo.each(vals, function(k) {
+ var r = this.findRecord(this.valueField, k);
+ if(r){
+ tv.push(r.data[this.displayField]);
+ }else if(this.valueNotFoundText !== undefined){
+ tv.push( this.valueNotFoundText );
+ }
+ },ci.editor.field);
+
+ r.data[this.name + '_name'] = tv.join(', ');
+ return String.format('{0}',tv.join(', '));
+
+
+
+ }
+ r.data[this.name + '_name'] = '';
+ return String.format('{0}', r.data.freq_day_name || v);
+
+ },
+ width : 150,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ editor : {
+ field : {
+ store : {
+ '|xns' : 'Roo.data',
+ data : (function() {
+ var ret = [];
+ for (var i = 5; i < 25; i++) {
+ var h = i < 10 ? ('0' + i) : i;
+ var mer = i < 12 || i > 23 ? 'am' : 'pm';
+ var dh = i < 13 ? i : i-12;
+
+ ret.push([ h+':00', dh+':00' + mer ]);
+ ret.push([ h+':30', dh+':30' + mer ]);
+ }
+ return ret;
+ })(),
+ fields : ['code', 'title'],
+ sortInfo : { field : 'title', direction: 'ASC' },
+ xns : Roo.data,
+ xtype : 'SimpleStore'
+ },
+ '|xns' : 'Roo.form',
+ allowBlank : false,
+ displayField : 'title',
+ editable : false,
+ fieldLabel : 'Country',
+ hiddenName : 'freq_hour',
+ listWidth : 300,
+ mode : 'local',
+ name : 'freq_hour_name',
+ pageSize : 40,
+ triggerAction : 'all',
+ valueField : 'code',
+ xns : Roo.form,
+ xtype : 'ComboCheck',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'freq_hour',
+ header : _this._strings['ce527d7432bab413730f25c794648e46'],
+ renderer : function(v,x,r) {
+
+
+ if (v.length) {
+
+ var cm = _this.grid.colModel;
+
+ var ci = cm.getColumnByDataIndex(this.name);
+
+ var tv = [];
+ var vals = Roo.decode(v);
+ Roo.each(vals, function(k) {
+ var r = this.findRecord(this.valueField, k);
+ if(r){
+ tv.push(r.data[this.displayField]);
+ }else if(this.valueNotFoundText !== undefined){
+ tv.push( this.valueNotFoundText );
+ }
+ },ci.editor.field);
+
+ r.data[this.name + '_name'] = tv.join(', ');
+ return String.format('{0}',tv.join(', '));
+
+
+
+ }
+ r.data[this.name + '_name'] = '';
+ return String.format('{0}', r.data.freq_hour_name || v);
+
+ },
+ width : 100,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ editor : {
+ field : {
+ store : {
+ proxy : {
+ '|xns' : 'Roo.data',
+ method : 'GET',
+ url : baseURL + '/Core/I18n/Timezone.php',
+ xns : Roo.data,
+ xtype : 'HttpProxy'
+ },
+ reader : {
+ '|xns' : 'Roo.data',
+ fields : [{"name":"tz","type":"string"}],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ xtype : 'JsonReader'
+ },
+ '|xns' : 'Roo.data',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'tz' },
+ xns : Roo.data,
+ xtype : 'Store',
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ }
+ },
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.form',
+ allowBlank : false,
+ displayField : 'tz',
+ editable : true,
+ emptyText : _this._strings['44c68bed631ff6e62aecc4a4d32176e6'],
+ fieldLabel : 'core_enum',
+ forceSelection : true,
+ listWidth : 400,
+ loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'],
+ minChars : 2,
+ name : 'tz',
+ pageSize : 999,
+ qtip : _this._strings['44c68bed631ff6e62aecc4a4d32176e6'],
+ queryParam : 'q',
+ selectOnFocus : true,
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{tz}</b> </div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ width : 300,
+ xns : Roo.form,
+ xtype : 'ComboBox',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ xns : Roo.grid,
+ xtype : 'GridEditor',
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo.grid',
+ dataIndex : 'tz',
+ header : _this._strings['236df51bb0e6416236e255b528346fca'],
+ renderer : function(v) { return String.format('{0}', v); },
+ width : 100,
+ xns : Roo.grid,
+ xtype : 'ColumnModel',
+ items : [
+
+ ]
+
+ },
+{
+ '|xns' : 'Roo.grid',
+ dataIndex : 'last_event_id',
+ header : _this._strings['b26686c0a708faee42861d8b905e882e'],
+ renderer : function(v) { return String.format('{0}', v ? v : 'never'); },
+ width : 75,
+ xns : Roo.grid,
+ xtype : 'ColumnModel'
+ }
+ ],
+ listeners : {
+ afteredit : function (e)
+ {
+ e.record.commit();
+ },
+ render : function()
+ {
+ _this.grid = this;
+ //_this.dialog = Pman.Dialog.FILL_IN
+ if (_this.panel.active) {
+ // this.footer.onClick('first');
+ }
+ }
+ },
+ items : [
+
+ ]
+
+ },
+ '|xns' : 'Roo',
+ background : false,
+ fitContainer : true,
+ fitToFrame : true,
+ region : 'center',
+ tableName : 'core_notify_recur',
+ title : _this._strings['c7179f16884513c990b6cbf44aef7fc3'],
+ xns : Roo,
+ xtype : 'GridPanel',
+ listeners : {
+ activate : function() {
+ _this.panel = this;
+ if (_this.grid) {
+ // _this.grid.footer.onClick('first');
+ }
+ }
+ },
+ items : [
+
+ ]
+
+ }
+ ]
+
+ });
+ }