初始化CRICS
This commit is contained in:
59
WebSite/Views/SearchHost/RegisterHost.ascx
Normal file
59
WebSite/Views/SearchHost/RegisterHost.ascx
Normal file
@@ -0,0 +1,59 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.Host>" %>
|
||||
|
||||
<style type="text/css">
|
||||
#registerHostForm table th {
|
||||
font-weight: normal;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
<form id="registerHostForm" class="easyui-form" method="post" data-options="novalidate:true">
|
||||
<input type="hidden" name="ID" value="<%: Model.ID %>" />
|
||||
<input type="hidden" name="SubnetMask" value="<%: Model.SubnetMask %>" />
|
||||
<input type="hidden" name="Gateway" value="<%: Model.Gateway %>" />
|
||||
<input type="hidden" name="Port" value="<%: Model.Port %>" />
|
||||
<input type="hidden" name="HostNumber" value="<%: Model.HostNumber %>" />
|
||||
<input type="hidden" name="Version" value="<%: Model.Version %>" />
|
||||
<input type="hidden" name="ConfigVersion" value="<%: Model.ConfigVersion %>" />
|
||||
<table style="margin: 20px auto;" cellpadding="3">
|
||||
<tr>
|
||||
<th><label for="txtRoomNumber"><%: Html.Language("RoomNumber")%>:</label></th>
|
||||
<td><input id="txtRoomNumber" name="RoomNumber" class="easyui-validatebox textbox text" data-options="required:true" value="<%: Model.RoomNumber %>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="txtIP">IP:</label></th>
|
||||
<td><input id="txtIP" name="IP" class="easyui-validatebox textbox text" readonly="readonly" data-options="required:true,validType:'length[3,20]'" value="<%: Model.IP %>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="txtMAC">MAC:</label></th>
|
||||
<td><input id="txtMAC" name="MAC" class="easyui-validatebox textbox text" readonly="readonly" data-options="required:true,validType:'length[3,20]'" value="<%: Model.MAC %>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="cbxGroup"><%: Html.Language("Floor")%>:</label></th>
|
||||
<td>
|
||||
<select id="cbxGroup" name="GroupID" class="easyui-combotree" style="width:180px;"
|
||||
data-options="required:true,editable:false,lines:true,url:'/Group/LoadGroupTree2/',value:<%: Model.Group != null ? Model.Group.ID.ToString() : "''" %>">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="cbxRoomType"><%: Html.Language("RoomType")%>:</label></th>
|
||||
<td>
|
||||
<select id="cbxRoomType" name="RoomTypeID" class="easyui-combobox" style="width:180px;"
|
||||
data-options="
|
||||
valueField: 'ID',
|
||||
textField: 'Name',
|
||||
required: true,
|
||||
panelHeight: 'auto',
|
||||
editable: false,
|
||||
url: '/RoomType/LoadRoomType/',
|
||||
value: <%: Model.RoomType != null ? Model.RoomType.ID.ToString() : "''" %>"
|
||||
>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="txtRemark"><%: Html.Language("Remark")%>:</label></th>
|
||||
<td><textarea id="txtRemark" name="Remark" class="easyui-validatebox textbox text" data-options="validType:length[0,200]" cols="30" rows="5"><%: Model.Remark %></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
2
WebSite/Views/SearchHost/SearchHost.ascx
Normal file
2
WebSite/Views/SearchHost/SearchHost.ascx
Normal file
@@ -0,0 +1,2 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
|
||||
|
||||
Reference in New Issue
Block a user