日期:2014-05-16 浏览次数:20794 次
<script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/ext-all.js")"></script>
<link type="text/css" rel="Stylesheet" href="@Url.Content("~/Content/ext-all.css")" />
<script type="text/javascript">
Ext.Loader.setConfig({ enabled: true });
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.state.*',
'Ext.form.Panel'
]);
Ext.onReady(function () {
var isAdd = true; //默认是添加
Ext.define('NewContent', {
extend: 'Ext.data.Mode',
fields:
[
'NewsCategoryID',
'PublicDate',
'NewsMainTitle',
'NewsSubTitle',
'NewsSummary',
'NewsListImage',
'NewsContent',
'IsFocusNews',
'FocusNewsImage',
'IsAllowComment',
'IsPublicToMobileClient',
'NewsStatus',
'CreateDatetime'
]
});
var NewContentStore = Ext.create('Ext.data.Store', {
model: