<%@ 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("LightControl")%>
</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="height:35px;">
			<div class="toolbar">
				<label><%: Html.Language("AccordingToRoomNumber")%></label>
				<input id="cbxRoomNumber" class="easyui-combobox" style="width:80px;" 
					data-options="
						url: '/Host/LoadDataForRoomNumberCombobox/',
						editable: false,
						valueField: 'ID',
						textField: 'RoomNumber',
						panelHeight:'200',
						onSelect: cbxRoomNumberOnSelect
						" />
				<label><%: Html.Language("AccordingToPressFloor")%></label>
				<input id="cbtGroup" class="easyui-combotree" style="width:110px;" 
					data-options="
						url:'/Group/LoadDataForGroupComboTree/',
						editable:false,
						lines:true,
						panelHeight:'auto',
						onLoadSuccess: cbtGroupOnLoadSuccess
						" />
				<label><%: Html.Language("AccordingToRoomStatus")%></label>
				<input id="cbxRoomStatus" class="easyui-combobox" style="width:80px;" 
					data-options="
						url:'/RoomStatus/LoadDataForRoomStatusCombobox/',
						editable:false,
						panelHeight:'auto',
						valueField:'ID',
						textField:'Name'
						" />				
				<label><%: Html.Language("AccordingToRoomType")%></label>
				<input id="cbxRoomType" class="easyui-combobox" style="width:80px;" 
					data-options="
						url:'/RoomType/LoadDataForRoomTypeCombobox/',
						editable:false,
						panelHeight:'auto',
						valueField:'ID',
						textField:'Name',
						onSelect: cbxRoomTypeOnSelect
						" />
			</div>
		</div>

		<div region="center" border="false">
			<% Html.RenderPartial("LightControl"); %>
		</div>
	</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
	<style type="text/css">
		/* 修改 easyui-linkbutton 默认样式 */
		.l-btn,
		.l-btn:hover {
			opacity: 0.8;
			filter: alpha(opacity=80);
			background: #00A2EA;
			border:1px solid #00A2EA;
		}
		.l-btn:hover {
			opacity: 1.0;
			filter: alpha(opacity=100);
		}
	</style>
	<script type="text/javascript" src="/Scripts/light-control-index.js"></script>
    <% switch ((int)Session["isCN"]){case 1: %>
    <script type="text/javascript" src="/Scripts/en-US.js"></script>
    <% break; case 2: %>
    <script type="text/javascript" src="/Scripts/zh-TW.js"></script>
    <% break;default: %>
    <script type="text/javascript" src="/Scripts/zh-CN.js"></script>
    <% break; } %>
</asp:Content>
