1.数据部分
reader : new Ext.data.JsonReader({
root: "kcInfoList",
fields: [
{name: "id"},
{name: "contract", mapping:'contract.id'},
{name: "summary", mapping:'summary'},
{name: "startDate", type: 'date',dateFormat: 'Y-m-d//TH:i:s'},
{name: "endDate", type: 'date',dateFormat: 'Y-m-d//TH:i:s'},
{name: "supplierLinkman"},
{name: "checker", mapping:'checker', convert:function(v){
if(v)
return v.id;
else
return "";
}
},
{name: "executiveStatus", mapping:'executiveStatus', convert:function(v){
if(v)
return v.id;
else
return "";
}
},
{name: "isMeet"},
{name: "description"},
{name: "noMeetContents"},
{name: "noMeetReason"}
]
}),
2.{xtype:'datefield',name: 'startDate',fieldLabel:'开始日期', format:'Y-n-j H:i:s', withTime:true, width:160,allowBlank: true}