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

<link type="text/css" rel="stylesheet" href="/Styles/partbox.css" />
<style type="text/css">
	#airForm table th,
	#airForm table td {
		/*background: pink;*/
		text-align: right;
	}
	#airForm table th {
		font-weight: normal;
		cursor: default;
	}
</style>
<% 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; } %>
<script type="text/javascript" src="/Scripts/air-condition-control-index.js"></script>
<div style="margin:0px 10px;width:1110px;">
	<form id="airForm" method="post" action="#">
	<div class="partbox">
		<div class="title"><%: Html.Language("AirConditioningInformationDisplay")%></div>
		<div class="container">
			<div class="content">
				<table cellpadding="2px" style="width:100%;">
					<tr>
						<td>
							<label><%: Html.Language("AirConditioningSerialNumber")%></label>
							<input id="cbxModalID" name="ModalTypeID" class="easyui-combobox" style="width:80px;" 
								data-options="
									editable: false,
									panelHeight: 'auto',
									valueField: 'ModalTypeID',
									textField: 'CustomerName',
									required: true,
									onSelect: cbxModalIDOnSelect
									" />
						</td>
						<td>
							<label><%: Html.Language("AirConditioningControls")%></label>
							<input id="txtControlType" name="ControlTypeName" class="easyui-textbox" style="width:80px;" readonly="readonly" />
						</td>
						<td style="text-align:right;padding-right:10px;"><a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="send()"><%: Html.Language("AllIssue")%></a></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div class="partbox">
		<div class="title"><%: Html.Language("BasicSetup")%></div>
		<div class="container">
			<div class="content">	
				<table style="width:100%;">
					<tr>
						<td>
							<%: Html.Language("ModelWay")%>
							<input id="cbxColdHotMode" name="ColdHotMode" class="easyui-combobox" style="width:60px;" 
								data-options="
									editable: false,
									panelHeight: 'auto',
									valueField: 'value',
									textField: 'text',
									data: [
										{ value: '0', text: lang.Manually, selected: true },
										{ value: '1', text: lang.Automatic }
									]
								" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirHotColdMode()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("TemperatureSetting")%></label>
							<input id="txtSettingTemp" name="SettingTemp" class="easyui-numberspinner" value="22" style="width:60px;" data-options="required:true,min:15,max:35,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirSettingTemp()"><%: Html.Language("Issue")%></a>	
						</td>
						<td style="text-align:right;padding-right:40px;">
							<label><%: Html.Language("Locktopic")%></label>
							<input id="chkIsLockTemp" name="IsLockTemp" type="checkbox" />
						</td>
						<td rowspan="2" style="text-align:right;padding-right:10px;">
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirLockTemp()"><%: Html.Language("Issue")%></a>	
						</td>
					</tr>
					<tr>
						<td rowspan="2">
							<label><%: Html.Language("HotAndColdMode")%></label>
							<input id="cbxMode" name="Mode" class="easyui-combobox" style="width:60px;" 
								data-options="
									editable: false,
									panelHeight: 'auto',
									valueField: 'value',
									textField: 'text',
									data: [
										{ value: '1', text: lang.Refrigeration, selected: true },
										{ value: '2', text: lang.Heating },
										{ value: '4', text: lang.BlowingIn },
										{ value: '8', text: lang.Dehumidification }
									]
								" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirMode()"><%: Html.Language("Issue")%></a>	
						</td>
						<td>
							<label><%: Html.Language("WindSpeed")%><%--&nbsp;&nbsp;--%></label>
							<input id="cbxSpeed" name="Speed" class="easyui-combobox" style="width:60px;"
								data-options="
									editable: false,
									panelHeight: 'auto',
									valueField: 'value',
									textField: 'text',
									data: [
										{ value: '0', text:lang.Stop, selected: true },
										{ value: '1', text: lang.low },
										{ value: '2', text: lang.Middle },
										{ value: '3', text: lang.HighSpeed },
										{ value: '4', text: lang.Automatic }
									]
									" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirSpeed()"><%: Html.Language("Issue")%></a>	
						</td>
						<td style="text-align:right;">
							<label><%: Html.Language("LockTheTemperature")%></label>
							<input id="txtLockTemp" name="LockTemp" class="easyui-numberspinner" value="22" style="width:60px;" data-options="required:true,min:15,max:35,suffix:'℃'" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>

	<div id="Div1" class="partbox">
		<div class="title"><%: Html.Language("ProfessionalSettings")%></div>
		<div class="container">
			<div class="content">
				<table style="width:100%;">
					<tr>
						<td>
							<label><%: Html.Language("KeepTemperature")%></label>
							<input id="txtKeepTemp" name="KeepTemp" class="easyui-numberspinner" value="22" style="width:60px;" data-options="required:true,min:16,max:35,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirKeepTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("LowestTemperature")%></label>
							<input id="txtLowerTemp" name="LowerTemp" class="easyui-numberspinner" value="16" style="width:60px;" data-options="required:true,min:16,max:35,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirLowerTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("HeatTransitionDelay")%></label>
							<input id="txtColdHotSwitchDelayTime" name="ColdHotSwitchDelayTime" class="easyui-numberspinner" value="30" style="width:60px;" data-options="required:true,min:30,max:60,editable:false,increment:10" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirColdHotSwitchDelayTime()"><%: Html.Language("Issue")%></a>
						</td>
						<td style="text-align:right;padding-right:10px;">
							<label><%: Html.Language("AssociatedState")%></label><%--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
							<input id="chkRelateRoomStatus" name="RelateRoomStatus" type="checkbox" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirRelateRoomStatus()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
					<tr>
						<td>
							<label><%: Html.Language("TemperatureCompensated")%></label>
							<input id="txtCompensatoryTemp" name="CompensatoryTemp" class="easyui-numberspinner" value="0" style="width:60px;" data-options="required:true,min:-6,max:6,precision:1,increment:0.1,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirCompensatoryTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("HighestTemperature")%></label>
							<input id="txtHighTemp" name="HightTemp" class="easyui-numberspinner" value="33" style="width:60px;" data-options="required:true,min:16,max:35,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirHighTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("WelcomeModeTime")%></label>
							<input id="txtWelcomeTime" name="WelcomeTime" class="easyui-numberspinner" value="30" style="width:60px;" data-options="required:true,min:0,max:255" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirWelcomeTime()"><%: Html.Language("Issue")%></a>
						</td>
						<td style="text-align:right;padding-right:10px;">
							<label><%: Html.Language("AssociatedMagnetic")%></label><%--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
							<input id="chkRelateDoorContact" name="RelateDoorContact" type="checkbox" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirRelateDoorContact()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
					<tr>
						<td>
							<label><%: Html.Language("InitialTemperature")%></label>
							<input id="txtInitTemp" name="InitTemp" class="easyui-numberspinner" value="22" style="width:60px;" data-options="required:true,min:16,max:35,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirInitTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("HeatDeflection")%>&nbsp;</label>
							<input id="txtHotDevition" name="HotDevition" class="easyui-numberspinner" value="2" style="width:60px;" data-options="required:true,min:0,max:5,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirHotDevition()"><%: Html.Language("Issue")%></a>
						</td>
						<td></td>
						<td style="text-align:right;padding-right:10px;">
							<label><%: Html.Language("StoppedFanRunsWhenTemperaturesReached")%></label>
							<input id="chkFanStop" type="checkbox" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirFanStop()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
					<tr>
						<td>
							<label><%: Html.Language("DeadZoneTemperature")%></label>
							<input id="txtDeadTemp" name="DeadTemp" class="easyui-numberspinner" value="2" style="width:60px;" data-options="required:true,min:0,max:5,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirDeadTemp()"><%: Html.Language("Issue")%></a>
						</td>
						<td>
							<label><%: Html.Language("ColdBias")%>&nbsp;</label>
							<input id="txtColdDevition" name="ColdDevition" class="easyui-numberspinner" value="2" style="width:60px;" data-options="required:true,min:0,max:5,suffix:'℃'" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirColdDevition()"><%: Html.Language("Issue")%></a>
						</td>
						<td></td>
						<td style="text-align:right;padding-right:10px;">
							<label><%: Html.Language("TheWindTurbineForbiddenToRunAtHighSpeed")%></label><%--&nbsp;&nbsp;--%>
							<input id="chkDisableFanHighSpeed" type="checkbox" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirDisableFanHighSpeed()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>

	<div id="sleep" class="partbox">
		<div class="title"><%: Html.Language("SleepingTemperatureSetting")%></div>
		<div class="container">
			<div class="content">
				<table style="width:100%;">
					<tr>
						<td style="width:15%;">
							<label><%: Html.Language("StartSleepingTemperatureSetting")%></label>
							<input id="chkSleepFlag" name="SleepFlag" type="checkbox" />
						</td>
						<td style="width:30%;">
							<label><%: Html.Language("TemperatureDeviationOfSleep")%></label>
							<input id="txtSleepDevition" name="SleepDevition" class="easyui-numberspinner" value="2" style="width:60px;" data-options="required:true,min:0,max:5,suffix:'℃'" />
						</td>
						<td style="width:24%;">
							<label><%: Html.Language("SleepingTime")%></label>
							<input id="txtSleepStartTime" name="SleepStartTime" class="easyui-timespinner" style="width:60px;" required="required" value="00:00" />
						</td>
						<td style="width:20%;">
							<label><%: Html.Language("SleepingEndDate")%></label>
							<input id="txtSleepEndTime" name="SleepEndTime" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td style="width:20%;text-align:right;padding-right:10px;">
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirSleepMode()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>

	<div class="partbox">
		<div class="title"><%: Html.Language("AirConditioningTimingSettings")%></div>
		<div class="container">
			<div class="content">
			
				<table style="width:100%;">
					<tr>
						<td style="width:15%;" rowspan="2"><label><%: Html.Language("TimeSwitch")%></label><input id="chkTimeFlag" name="TimeFlag" type="checkbox" /></td>
						<td style="width:30%;">
							<label><%: Html.Language("TimeSwitchOpen1")%></label>
							<input id="txtTimeStartTime1" name="TimeStartTime1" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td style="width:24%;">
							<label><%: Html.Language("TimeSwitchOpen2")%></label>
							<input id="txtTimeStartTime2" name="TimeStartTime2" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td style="width:20%;">
							<label><%: Html.Language("TimeSwitchOpen3")%></label>
							<input id="txtTimeStartTime3" name="TimeStartTime3" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td style="width:20%;text-align:right;padding-right:10px;" rowspan="2">
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-send'" onclick="setAirTimeSetting()"><%: Html.Language("Issue")%></a>
						</td>
					</tr>
					<tr>
						<td>
							<label><%: Html.Language("TimeSwitchClose1")%></label>
							<input id="txtTimeEndTime1" name="TimeEndTime1" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td>
							<label><%: Html.Language("TimeSwitchClose2")%></label>
							<input id="txtTimeEndTime2" name="TimeEndTime2" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
						<td>
							<label><%: Html.Language("TimeSwitchClose3")%></label>
							<input id="txtTimeEndTime3" name="TimeEndTime3" class="easyui-timespinner"  style="width:60px;" required="required" value="00:00" />
						</td>
					</tr>
				</table>
			
			</div>
		</div>
	</div>
	</form>
</div>
