随笔分类 -  JavaScript

摘要:var ImportPanel = new Ext.form.FormPanel({ baseCls: 'x-plain', frame: false, //注意formPanel里面的fileUpload一定要打开 fileUpload: true, id: 'ImportPanel', url: 'Excel.aspx?ac=Import', items: [{ xtype: 'textfield', // 注意要有以下字段 inputType: 'file', fieldLabel: '请选择导入文件 阅读全文
posted @ 2012-09-08 09:35 oftenlin 阅读(542) 评论(0) 推荐(0)
摘要:this.xAxisName = '区县名称';this.yAxisName = '站点个数';this.store = new Ext.data.ArrayStore({ fields: ['month', 'hits'] }),this.analysisPanel = new Ext.chart.ColumnChart({ store: this.store, yField: 'hits', title: '站点统计', url: '/JS/Ext3.2.0/resources/char 阅读全文
posted @ 2012-09-05 17:24 oftenlin 阅读(2744) 评论(0) 推荐(0)
摘要:// 两个radio 只是显示,两个具有互斥性,触发事件时给一个隐藏字段赋值,后台读取隐藏字段,肯定不是最优,望高手拍砖this.cntRadio = new Ext.form.Radio({ id: 'cntRadioId', boxLabel: '数量', inputValue: 'cnt', listeners: { 'check': function() { //alert(this.getValue()); if (this.getValue()) { Ext.getCmp('moneyRadioId') 阅读全文
posted @ 2012-09-05 17:10 oftenlin 阅读(1976) 评论(0) 推荐(0)
摘要:function ShowStationOnMap(stations) { //清除图中的元素 map.graphics.clear(); // 设置显示中心点及坐标 var location = new esri.geometry.Point(stations[0].longtitude, stations[0].latitude, map.spatialReference) map.centerAndZoom(location, 8); // 逐个添加元素 for (var s = 0; s < stations.length; s++) { var symbol = new ... 阅读全文
posted @ 2012-09-05 17:00 oftenlin 阅读(11680) 评论(0) 推荐(0)