<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Html.Language("RoomTypeSetting")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="easyui-layout" data-options="fit:true">
		<div title='<%: Html.Language("RoomTypeSetting")%>' style="border-right:1px solid #95B8E7;" data-options="region:'center',border:false">
			<table id="dg" class="easyui-datagrid" style="width:100%; height:auto;"
				data-options="
						toolbar: '#tb',
						border: false,
						singleSelect: true,
						pagination: true,
						pageSize: 20,
						rownumbers: true,
						striped: true,
						sortName: 'ID',
						sortOrder: 'asc',
						fit: true,
						fitColumns: true,
						idField: 'ID',
						url: '/RoomType/LoadAllByPage/',
						method: 'post',
						onDblClickRow: function(index, row) { edit(row); }
					">
				<thead>
					<tr>
						<th data-options="field:'ID',sortable:true">
							<%: Html.Language("ID")%>
						</th>
						<th data-options="field:'HostName',sortable:true">
						<%: Html.Language("Name")%>
						</th>
						<th data-options="field:'Name',sortable:true">
							<%: Html.Language("CustomName")%>
						</th>
						<th data-options="field:'Uploader',sortable:true">
							<%: Html.Language("UploadPerson")%>
						</th>
						<th data-options="field:'UploadTime',width:200,formatter:$.tools.formatDate,sortable:true">
							<%: Html.Language("UploadTime")%>
						</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
	<div id="tb">
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="$('#dg').datagrid('load',{});"><%: Html.Language("Refresh")%></a> 
		
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()"><%: Html.Language("New")%></a>
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()"><%: Html.Language("Edit")%></a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="delData()"><%: Html.Language("Delete")%></a>
       <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" onclick="roomTypeModal()"><%: Html.Language("LoopManagement")%></a>
       <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-import',plain:true" onclick="airSetting()"><%: Html.Language("AirConditioningSetting")%></a>

	<%--	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" onclick="relationDevice()">设备查看</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-import',plain:true" onclick="importConfigFile()">配置文件导入</a>--%>
	</div>
	<div id="dialog" class="easyui-window"   style="padding: 5px;"
		data-options="
			closed: true,
			modal: true,
			collapsible: false,
			minimizable: false,
			maximizable: false
		">
		<div class="easyui-panel dlg-content" style="margin-bottom:5px;"></div>
		<div class="dlg-footer" style="text-align:right; padding:5px 5px 0 0;">
			<a class="easyui-linkbutton dlg-btn-save" data-options="iconCls:'icon-save'" href="javascript:void(0)"><%: Html.Language("Save")%></a>
			<a class="easyui-linkbutton dlg-btn-cancel" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#dialog').window('close');"><%: Html.Language("Cancel")%></a>
		</div>
	</div>
	<div id="dialog2" class="easyui-window"  
		data-options="
			closed: true,
			modal: true,
			collapsible: false,
			minimizable: false,
			maximizable: false
		">
		<div class="easyui-panel dlg-content" style="margin-bottom:5px;"></div>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<script type="text/javascript" src="/Scripts/room-type-index.js"></script>
</asp:Content>