<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.RoomTypeChannels>" %>
<style type="text/css">
    #roomTypeChannelForm table th
    {
        font-weight: normal;
    }
</style>
<script type="text/javascript" src="/Scripts/room-type-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;
   } %>
<div class="easyui-layout" fit="true">
    <div style="height: 130px;">
        <form id="roomTypeChannelForm" method="post" action="#">
        <input type="hidden" name="ID" value="<%: Model.ID %>" />
        <input type="hidden" name="RoomTypeID" id="hidRoomTypeID" value="<%: Model.RoomType.ID %>" />
        <table style="margin: 5px auto;" cellpadding="3">
            <tr>
                <th>
                    <%: Html.Language("Code")%>：
                </th>
                <td>
                    <input id="txtCode" name="Code" class="easyui-numberspinner text" style="width: 140px;"
                        data-options="required:true,min:1" value='<%: Model.Code %>' />
                </td>
            </tr>
            <tr>
                <th>
                    <%: Html.Language("Name")%>：
                </th>
                <td>
                    <input id="txtName" name="Name" class="easyui-validatebox textbox text" style="width: 140px;"
                        data-options="required:true" value='<%: Model.Name %>' />
                </td>
            </tr>
            <tr>
                <th>
                    <%: Html.Language("Sort")%>
                </th>
                <td>
                    <input name="Sort" class="easyui-numberspinner text" value="1" style="width: 60px;"
                        data-options="required:true,min:1,value:<%: Model.Sort %>" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</div>
