<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.SysHotel>" %>
<style type="text/css">
    #roomCardForm table th
    {
        font-weight: normal;
        text-align: right;
    }
</style>
<form id="sysHotelForm" class="easyui-form" method="post" data-options="novalidate:true">
<input type="hidden" name="ID" value="<%: Model.ID %>" />
<table style="margin: 1px auto;" cellpadding="1">
    <tr>
        <%--<th>
            <label for="txtID">
                ID：</label>
        </th>
        <td>
            <input id="txtID" name="ID" class="easyui-validatebox textbox text" readonly="readonly"
                value="<%: Model.ID %>" />
        </td>--%>
        <th align="right">
            <label for="txtCode">
                <%: Html.Language("Code")%>：</label>
        </th>
        <td>
            <input id="txtCode" name="Code" class="easyui-validatebox textbox text" readonly="readonly"
                value="<%: Model.Code %>" />
        </td>
        <th align="right">
            <label for="txtName">
                <%: Html.Language("Name")%>：</label>
        </th>
        <td>
            <input id="txtName" name="Name" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'"
                value="<%: Model.Name %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="txtEName">
                <%: Html.Language("EName")%>：</label>
        </th>
        <td>
            <input id="txtEName" name="EName" class="easyui-validatebox textbox text" value="<%: Model.EName %>" />
        </td>
        <th align="right">
            <label for="txtTWName">
                <%: Html.Language("TWName")%>：</label>
        </th>
        <td>
            <input id="txtTWName" name="TWName" class="easyui-validatebox textbox text" value="<%: Model.TWName %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="selGroup">
                <%: Html.Language("Group")%>：</label>
        </th>
        <td>

        <select id="selGroup" name="SysHotelGroupID" class="easyui-combotree" style="width: 180px;"
            data-options="
                    lines:true,
                    editable:false,
                    bodyCls:'easyui-tree-no-icon',
                    url:'/SysHotel/LoadGroupTree2/',
                    panelHeight: '200px',
                    required: true,
                    value: <%: Model.SysHotelGroup != null ? Model.SysHotelGroup.ID.ToString() : "''" %>
                ">
        </select>
        </td>
        <th align="right">
            <label for="txtSort">
                <%: Html.Language("Sort")%>：</label>
        </th>
        <td>
            <input id="txtSort" name="Sort" class="easyui-numberspinner text" value="1" style="width: 60px;"
                data-options="required:true,min:1,value:<%: Model.Sort %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="txtContact">
                <%: Html.Language("Contact")%>：</label>
        </th>
        <td>
            <input id="txtContact" name="Contact" class="easyui-validatebox textbox text" value="<%: Model.Contact %>" />
        </td>
        <th align="right">
            <label for="txtPhone">
                <%: Html.Language("Phone")%>：</label>
        </th>
        <td>
            <input id="txtPhone" name="Phone" class="easyui-validatebox textbox text" value="<%: Model.Phone %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="selProvince">
                <%: Html.Language("Province")%>：</label>
        </th>
        <td colspan="3">
            <select id="selProvince" name="ProvinceCode" class="easyui-combobox" style="width: 180px;"
                data-options="
						editable:false,
						url:'/SysHotel/GetProvince/',
				        method: 'get',
						valueField: 'Code',
						textField: 'Name',
						panelHeight: '300',
						required: true,
						onSelect: cbxProvinceOnSelect,
						value: <%: Model.ProvinceCode != null ? Model.ProvinceCode: "''" %>
					">
            </select>
            <select id="selCity" name="CityCode" class="easyui-combobox" style="width: 120px;"
                data-options="
						editable:false,
						url:'/SysHotel/GetCity?provinceCode='+<%: Model.ProvinceCode != null ? Model.ProvinceCode: "''" %>,
				        method: 'get',
						valueField: 'Code',
						textField: 'Name',
						panelHeight: '300',
						required: true,
						onSelect: cbxCityOnSelect,
						value: <%: Model.CityCode != null ? Model.CityCode: "''" %>
					">
            </select>
            <select id="selCounty" name="CountyCode" class="easyui-combobox" style="width: 118px;"
                data-options="
						editable:false,
						url:'/SysHotel/GetCounty?cityCode='+<%: Model.CityCode != null ? Model.CityCode: "''" %>,
				        method: 'get',
						valueField: 'Code',
						textField: 'Name',
						panelHeight: '300',
						required: true,
						value: <%: Model.CountyCode != null ? Model.CountyCode: "''" %>
					">
            </select>
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="txtAddress">
                <%: Html.Language("Address")%>：</label>
        </th>
        <td colspan="3">
            <input id="txtAddress" name="Address" class="easyui-validatebox textbox text" style="width: 416px;"
                value="<%: Model.Address %>" />
        </td>
    </tr>
    <%--<tr>
        <th>
            <label>
                同步PMS房态：</label>
        </th>
        <td>
            <input type="radio" name="IsSyncPMS" value="true" <%: Model.IsSyncPMS ? "checked='checked'" : "" %> /><%: Html.Language("Yes")%>
            <input type="radio" name="IsSyncPMS" value="false" <%: !Model.IsSyncPMS ? "checked='checked'" : "" %> /><%: Html.Language("No")%>
        </td>
    </tr>--%>
    <%--<tr>
        <th>
            <label for="txtDomainUrl">
                <%: Html.Language("Domain")%>：</label>
        </th>
        <td>
            <input id="txtDomainUrl" name="DomainUrl" class="easyui-validatebox textbox text" value="<%: Model.DomainUrl %>" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="txtAssociatedAccount">
                <%: Html.Language("AssociatedAccount")%>：</label>
        </th>
        <td>
            <input id="txtAssociatedAccount" name="AssociatedAccount" class="easyui-validatebox textbox text"
                value="<%: Model.AssociatedAccount %>" />
        </td>
    </tr>--%>
    <tr>
        <%--<th>
            <label>
                <%: Html.Language("AutoGetKey")%>：</label>
        </th>
        <td>
            <input type="radio" name="IsAutoGetKey" value="true" <%: Model.IsAutoGetKey ? "checked='checked'" : "" %> /><%: Html.Language("Yes")%>
            <input type="radio" name="IsAutoGetKey" value="false" <%: !Model.IsAutoGetKey ? "checked='checked'" : "" %> /><%: Html.Language("No")%>
        </td>--%>
        <th align="right">
            <label for="txtRemark">
                <%: Html.Language("Remark")%>：</label>
        </th>
        <td colspan="3">
            <input id="txtRemark" name="Remark" class="easyui-validatebox textbox text" style="width: 416px;"
                value="<%: Model.Remark %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label>
                <%: Html.Language("Status")%>：</label>
        </th>
        <td colspan="3">
            <input type="radio" name="Status" value="2" <%: Model.Status==2 ? "checked='checked'" : "" %> /><%: Html.Language("ModelRoom")%>
            <input type="radio" name="Status" value="1" <%: Model.Status==1 ? "checked='checked'" : "" %> /><%: Html.Language("BatchInstallation")%>
            <input type="radio" name="Status" value="0" <%: Model.Status==0 ? "checked='checked'" : "" %> /><%: Html.Language("FormalOperation")%>
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="txtValidateDate">
                <%: Html.Language("EndDate")%>：</label>
        </th>
        <td>
            <input id="txtValidateDate" name="ValidateDate" class="easyui-datebox textbox text"
                data-options="required:true,editable:false" <% if (!(bool)ViewData["IsApprove"]){ %> readonly="readonly" <%} %> value="<%: Model.ValidateDate.ToString("yyyy-MM-dd") %>" />
        </td>
        <th align="right">
            <label>
                <%: Html.Language("Approve")%>：</label>
        </th>
        <td>
            <input type="checkbox" name="IsApprove" style="vertical-align: top;" value="true" <% if (!(bool)ViewData["IsApprove"]){ %> onclick="return false" <%} %>
                <%: Model.IsApprove ? "checked='checked'" : "" %> />
        </td>
    </tr>
    <%--<tr>
        <th>
            <label for="txtStyles">
                <%: Html.Language("Styles")%>：</label>
        </th>
        <td>
            <select id="cbxStyles" name="Styles" class="easyui-combobox" data-options="editable:false,required:true,panelHeight:'auto',value:'<%: Model.Styles %>'">
                <option value="0">
                    <%: Html.Language("DefaultStyle")%></option>
            </select>
        </td>
    </tr>--%>
    <%--    <tr>
        <th>
            <label for="txtWelcomeSpeech">
                <%: Html.Language("WelcomeSpeech")%>：</label>
        </th>
        <td colspan="3">
            <input id="txtWelcomeSpeech" name="WelcomeSpeech" class="easyui-validatebox textbox text" style="width:416px;"
                value="<%: Model.WelcomeSpeech %>" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="txtGoodbyeSpeech">
                <%: Html.Language("GoodbyeSpeech")%>：</label>
        </th>
        <td colspan="3">
            <input id="txtGoodbyeSpeech" name="GoodbyeSpeech" class="easyui-validatebox textbox text" style="width:416px;"
                value="<%: Model.GoodbyeSpeech %>" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="txtTVControlUrl">
                DUI TV Url：</label>
        </th>
        <td colspan="3">
            <input id="txtTVControlUrl" name="TVControlUrl" class="easyui-validatebox textbox text" style="width:416px;"
                value="<%: Model.TVControlUrl %>" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="txtTVControlToken">
                DUI TV Token：</label>
        </th>
        <td colspan="3">
            <input id="txtTVControlToken" name="TVControlToken" class="easyui-validatebox textbox text" style="width:416px;"
                value="<%: Model.TVControlToken %>" />
        </td>
    </tr>
    <tr>
        <th>
            <label for="txtDeviceStatusPushURL">
                <%: Html.Language("DSPA")%>：</label>
        </th>
        <td colspan="3">
            <input id="txtDeviceStatusPushURL" name="DeviceStatusPushURL" class="easyui-validatebox textbox text" style="width:416px;"
                value="<%: Model.DeviceStatusPushURL %>" />
        </td>
    </tr>--%>
</table>
</form>
