前台代码,index.cshtml:
<table class="easyui-datagrid" title="Basic DataGrid" style="width:700px;height:250px"
data-options="singleSelect:true,collapsible:true,url:'Warning/WarnHistory',method:'get'">
<thead>
<tr>
<th data-options="field:'Information',width:80">Item ID</th>
<th data-options="field:'StartTime',width:100">Product</th>
<th data-options="field:'Value',width:80,align:'right'">List Price</th>
<th data-options="field:'StationName',width:80,align:'right'">Unit Cost</th>
<th data-options="field:'Remark',width:250">Attribute</th>