EXT 복제 가능 문제 처리

2205 단어 ext


this.columns = [
			new Ext.grid.CheckboxSelectionModel(),
			new Ext.grid.RowNumberer(),
			{
				header : " ",
				width : 130,
				sortable : true,
				validate : 'int+',
				align : 'center',
				dataIndex : 'gridbaodanghao',
				editor : new Ext.form.TextField()// 
			},
			{
				header : " ",
				width : 70,
				sortable : true,
				dataIndex : 'birthday',
				hidden : true,
				hideable : checktype(),
				renderer : function(value, cellmeta, record, rowIndex,
						columnIndex, store) {
					if (record.get('baoxianflg') == 6)
						return value;
					else
						return '';
				}
			},
			{
				header : " ",
				width : 60,
				sortable : false,
				align : 'center',
				dataIndex : 'age',
				hidden : false,
				hideable : checktype(),
				renderer : function(value, cellmeta, record, rowIndex,
						columnIndex, store) {
					if (record.get('bxhcdate') != null) {
						var bir = record.get("birthday");
						if (bir != "" && bir != null) {
							arys1 = bir.split('-');
							var year = (new Date().getFullYear() - arys1[0]) * 12 * 30;
							var month = (new Date().getMonth() + 1 - arys1[1]) * 30;
							var day = new Date().getDate() - arys1[2];
							var days = year + month + day;
							return parseInt(days / 30);
						} else {
							return "";
						}
					} else {
						return "";
					}
				}
			}, {
				header : " ",
				width : 60,
				sortable : true,
				align : 'center',
				dataIndex : 'baoxianflg',
				renderer : function(value) {
					if (value == 4)
						return ' ';
					else if (value == 5)
						return ' ';
					else if (value == 6)
						return ' ';
				}
			} ];


좋은 웹페이지 즐겨찾기