摘要:
String—>DateString dateString = "2012-12-06 ";try{ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd "); Date date = sdf.parse(dateString);}catch (ParseException e){ System.out.println(e.getMessage());}/** * 字符串转换到时间格式 * @param dateStr 需要转换的字符串 * @param formatStr 需要格式的目标 阅读全文
摘要:
xtype : 'textarea', name : 'dataSetField', labelSeparator:'', fieldLabel:'', hideLabel: true, allowBlank: true, height: mainPanelHeight*0.8, anchor:'99%', listeners:{'blur':function(){ alert(1); }}gridPanel.on('rowdblclick',function(gridPanel,_ 阅读全文
摘要:
var old_value = Ext.get("fgzr_select").getValue() if(old_value == ""){ document.getElementById("fgzr_select").value = value;}else{ document.getElementById("fgzr_select").value = old_value + ";" + value;}var _checkbox=new Ext.form.Checkbox({ id:" 阅读全文
摘要:
Ext.apply(Ext.form.VTypes,{ daterange: function(val, field) { var date = field.parseDate(val); // We need to force the picker to update values to recaluate the disabled dates display var dispUpd = function(picker) { var a... 阅读全文
摘要:
tbar : ['-',new Ext.form.Label({ text : '产品代码:' }),new Ext.form.TextField({ id : 'cpdm', name : 'cpdm', width : 130 }),'-',new Ext.form.Label({ text : '代销机构代码:' }), new Ext.form.TextField({ id : 'dxjgdm', name : 'dxjgdm', width : 130 .. 阅读全文
摘要:
var colM = "company,id,flyline";var colMArr = colM.split(",");var colLength = colMArr.length;var colMArray = new Array();for(var i=0; i<colLength; i++) { colMArray[i] = {header:colMArr[i],width: 75,dataIndex:fieldArray[i]} //此处的fieldArray[i]是fields的数据}//然后colMarray数组即是我们要动态构造的 阅读全文