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

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

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'north',border:false" style="overflow:hidden;height:30px;">
			<div class="toolbar">
				<a href="javascript:void(0)" class="toolbar-button tb-icon-refresh" onclick="$('#dg').datagrid('reload');"><%: Html.Language("Refresh")%></a> 
				<a href="javascript:void(0)" class="toolbar-button tb-icon-add" onclick="add()"><%: Html.Language("New")%></a>
				<a href="javascript:void(0)" class="toolbar-button tb-icon-edit" onclick="edit()"><%: Html.Language("Edit")%></a>
				<a href="javascript:void(0)" class="toolbar-button tb-icon-remove" onclick="del()"><%: Html.Language("Delete")%></a>
			</div>
		</div>
		<div data-options="region:'center',border:false">
			<table id="dg" class="easyui-datagrid" style="width:100%; height:auto;"
				data-options="
						border: false,
						singleSelect: true,
						pagination: true,
						pageSize: 20,
						rownumbers: true,
						sortName: 'Name',
						sortOrder: 'asc',
						fit: true,
						fitColumns: true,
						striped: true,
						idField: 'ID',
						frozenColumns: [[
							{ field: 'ID', checkbox: true }
						]],
						url: '/RoomTypeScene/LoadAllByPage/',
						method: 'POST',
						onDblClickRow: function(index, row) { edit(row); },
					">
				<thead>
					<tr>
						<th data-options="field:'RoomTypeName',sortable:true,resizable:false">
							<%: Html.Language("RoomType")%>
						</th>
                        <th data-options="field:'Type',sortable:true,resizable:false">
							<%: Html.Language("Type")%>
						</th>
						<th data-options="field:'Name',sortable:true,resizable:false">
							<%: Html.Language("ChineseName")%>
						</th>
                        <th data-options="field:'EnglishName',sortable:true,resizable:false">
							<%: Html.Language("EnglishName")%>
						</th>
                        <th data-options="field:'GroupAddress',sortable:true,resizable:false">
							<%: Html.Language("Command")%>
						</th>
					</tr>
				</thead>
			</table>
		</div>
	</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>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<style type="text/css">
		#editScene table th {
			font-weight: normal;
		}
	</style>
	<script type="text/javascript" src="/Scripts/room-type-scene-index.js"></script>
</asp:Content>
