<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<table id="dgRoomTypeAir" class="easyui-datagrid" style="width:100%; height:auto;"
	data-options="
			url: '/RoomType/LoadRoomTypeAirs/',
			queryParams: { roomTypeID: <%: Model %> },
			toolbar: '#tbRoomTypeAir',
			border: false,
			singleSelect: false,
			checkOnSelect: true,
			selectOnCheck: true,
			pagination: true,
			pageSize: 20,
			rownumbers: true,
			striped: true,
			sortName: 'ID',
			sortOrder: 'asc',
			fit: true,
			fitColumns: true,
			idField: 'ID',
			frozenColumns: [[ { field: 'ID', checkbox: true } ]],
			method: 'POST',
			onDblClickRow: function(index, row) { editRoomTypeAir(row); }
		">
	<thead>
		<tr>
			<th data-options="field:'ModalTypeName',resizable:false">
				<%: Html.Language("ConfigurationName")%>
			</th>
			<th data-options="field:'CustomerName',resizable:false">
				<%: Html.Language("CustomName")%>
			</th>
			<th data-options="field:'EnglishName',resizable:false">
				<%: Html.Language("EnglishName")%>
			</th>
			<th data-options="field:'Sort',resizable:false">
				<%: Html.Language("Sort")%>
			</th>
		</tr>
	</thead>
</table>
<div id="tbRoomTypeAir">
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="$('#dgRoomTypeAir').datagrid('reload');"><%: Html.Language("Refresh")%></a> 
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="addRoomTypeAir(<%: Model %>)"><%: Html.Language("New")%></a> 
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="editRoomTypeAir()"><%: Html.Language("Edit")%></a> 
	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="delRoomTypeAir()"><%: Html.Language("Delete")%></a> 
</div>