初始化CRICS

This commit is contained in:
2025-12-11 09:17:16 +08:00
commit 83247ec0a2
2735 changed files with 787765 additions and 0 deletions

View File

@@ -0,0 +1,293 @@
<%@ 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>

View File

@@ -0,0 +1,412 @@
<%@ 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">
<table style="margin: 1px auto;" cellpadding="1">
<tr>
<th align="right">
<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>
</tr>
<tr>
<th align="right">
<label for="txtName">
<%: Html.Language("Name")%></label>
</th>
<td>
<input id="txtName" name="Name" class="easyui-validatebox textbox text" readonly="readonly"
value="<%: Model.Name %>" />
</td>
<th align="right">
<label for="txtEName">
<%: Html.Language("EName")%></label>
</th>
<td>
<input id="txtEName" name="EName" class="easyui-validatebox textbox text" readonly="readonly"
value="<%: Model.EName %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txtTWName">
<%: Html.Language("TWName")%></label>
</th>
<td>
<input id="txtTWName" name="TWName" class="easyui-validatebox textbox text" readonly="readonly"
value="<%: Model.TWName %>" />
</td>
<th align="right">
<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>
</tr>
<tr>
<th align="right">
<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 align="right">
<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 align="right">
<label for="txtTVControlUrl">
IPTV 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 align="right">
<label for="txtTVControlToken">
IPTV 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 align="right">
<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>
<tr>
<th align="right">
<label for="txtFaultPushURL">
<%: Html.Language("FIPA")%></label>
</th>
<td colspan="3">
<input id="Text1" name="FaultPushURL" class="easyui-validatebox textbox text" style="width: 416px;"
value="<%: Model.FaultPushURL %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txtIsVoincePowerOn">
<%: Html.Language("IsVoincePowerOn")%></label>
</th>
<td>
<input type="checkbox" name="IsVoincePowerOn" style="vertical-align: top;" value="true"
<%: Model.IsVoincePowerOn ? "checked='checked'" : "" %> />
</td>
<th align="right">
<label for="txtIsPowerOffResetXiaoDu">
<%: Html.Language("IsPowerOffResetXiaoDu")%></label>
</th>
<td>
<input type="checkbox" name="IsPowerOffResetXiaoDu" style="vertical-align: top;"
value="true" <%: Model.IsPowerOffResetXiaoDu ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="txtFCSPushEnable">
<%: Html.Language("FCSPush")%></label>
</th>
<td>
<input type="checkbox" name="FCSPushEnable" style="vertical-align: top;" value="true"
<%: Model.FCSPushEnable ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="IsNewVersionProtocol">
<%: Html.Language("IsNewVersionProtocol")%></label>
</th>
<td>
<input type="checkbox" name="IsNewVersionProtocol" style="vertical-align: top;" value="true"
<%: Model.IsNewVersionProtocol ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="txtFCSPushEnable">
FCS PropertyUUID</label>
</th>
<td>
<input id="txt1" name="FCS_PropertyID" class="textbox text" value="<%: Model.FCS_PropertyID %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt2">
FCS LoginUrl</label>
</th>
<td>
<input id="txt2" name="FCSLoginUrl" class="textbox text" value="<%: Model.FCSLoginUrl %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt3">
FCS LoginUserName</label>
</th>
<td>
<input id="txt3" name="FCSLoginUserName" class="textbox text" value="<%: Model.FCSLoginUserName %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt4">
FCS LoginPassWord</label>
</th>
<td>
<input id="txt4" name="FCSLoginPassWord" class="textbox text" value="<%: Model.FCSLoginPassWord %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt5">
<%: Html.Language("FCS_Carbon_UUID")%></label>
</th>
<td>
<input id="txt5" name="FCS_Carbon_UUID" class="textbox text" value="<%: Model.FCS_Carbon_UUID %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt6">
<%: Html.Language("FCS_SOS_UUID")%></label>
</th>
<td>
<input id="txt6" name="FCS_SOS_UUID" class="textbox text" value="<%: Model.FCS_SOS_UUID %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt7">
<%: Html.Language("FCS_TouSu_UUID")%></label>
</th>
<td>
<input id="txt7" name="FCS_TouSu_UUID" class="textbox text" value="<%: Model.FCS_TouSu_UUID %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt8">
<%: Html.Language("FCS_Clean_UUID")%></label>
</th>
<td>
<input id="txt8" name="FCS_Clean_UUID" class="textbox text" value="<%: Model.FCS_Clean_UUID %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt9">
<%: Html.Language("FCS_TiSongWuPin")%></label>
</th>
<td>
<input id="txt9" name="FCS_TiSongWuPin" class="textbox text" value="<%: Model.FCS_TiSongWuPin %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txtFCSPushEnable">
<%: Html.Language("FCS_RCU_Device_Offline")%></label>
</th>
<td>
<input id="txt10" name="FCS_RCU_Device_Offline" class="textbox text" value="<%: Model.FCS_RCU_Device_Offline %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt11">
<%: Html.Language("FCS_RCU_Offline")%></label>
</th>
<td>
<input id="txt11" name="FCS_RCU_Offline" class="textbox text" value="<%: Model.FCS_RCU_Offline %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt12">
<%: Html.Language("FCS_RCU_Online")%></label>
</th>
<td>
<input id="txt12" name="FCS_RCU_Online" class="textbox text" value="<%: Model.FCS_RCU_Online %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txt13">
<%: Html.Language("FCS_MenCi_Close")%></label>
</th>
<td>
<input id="txt13" name="FCS_MenCi_Close" class="textbox text" value="<%: Model.FCS_MenCi_Close %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="txtFCSPushEnable">
<%: Html.Language("FCS_MenCi_Open")%></label>
</th>
<td>
<input id="txt14" name="FCS_MenCi_Open" class="textbox text" value="<%: Model.FCS_MenCi_Open %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="isusechuangwei">
<%: Html.Language("IsUseSkyworthTV")%></label>
</th>
<td>
<input id="isusechuangwei" type="checkbox" name="IsUseSkyworthTV" style="vertical-align: top;"
value="true" <%: Model.IsUseSkyworthTV ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="isusetcltv">
<%: Html.Language("IsUseTCLTV")%></label>
</th>
<td>
<input id="isusetcltv" type="checkbox" name="IsUseTCLTV" style="vertical-align: top;"
value="true" <%: Model.IsUseTCLTV ? "checked='checked'" : "" %> />
</td>
</tr>
<!--投诉反馈语音-->
<tr>
<th align="right">
<label for="txtTouSuResponseData">
<%: Html.Language("TouSuResponseData")%></label>
</th>
<td colspan="3">
<input id="txtTouSuResponseData" name="TouSuResponseData" class="easyui-validatebox textbox text"
style="width: 416px;" value="<%: Model.TouSuResponseData %>" />
</td>
</tr>
<!--呼叫前台授权码-->
<tr>
<th align="right">
<label for="txtSkyworthTVauthCode">
<%: Html.Language("SkyworthTVauthCode")%></label>
</th>
<td colspan="3">
<input id="txtSkyworthTVauthCode" name="SkyworthTVauthCode" class="easyui-validatebox textbox text"
style="width: 416px;" value="<%: Model.SkyworthTVauthCode %>" />
</td>
</tr>
<tr>
<th align="right">
<label for="ckQianLiMaPMS">
<%: Html.Language("IsUseQianLiMa")%></label>
</th>
<td>
<input id="ckQianLiMaPMS" type="checkbox" name="IsUseQianLiMa" style="vertical-align: top;"
value="true" <%: Model.IsUseQianLiMa ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="ckPushDataPMS">
<%: Html.Language("IsPushPMSData")%></label>
</th>
<td>
<input id="ckPushDataPMS" type="checkbox" name="IsPushPMSData" style="vertical-align: top;"
value="true" <%: Model.IsPushPMSData ? "checked='checked'" : "" %> />
</td>
</tr>
<tr>
<th align="right">
<label for="txtHeTongNumber">
<%: Html.Language("HeTongNumber")%></label>
</th>
<td>
<div style="display:inline;">
<input id="txtHeTongNumber" name="HeTongNumber" class="easyui-validatebox textbox text"
style="display:inline-block; width: 75px;" value="<%: Model.HeTongNumber %>" />
<a class="easyui-linkbutton dlg-btn-save" style="display:inline-block;" href="javascript:void(0)" onclick="FoundDeviceList();">
<%: Html.Language("FoundDevice")%></a>
</div>
</td>
</tr>
<%-- TCL 功能--%>
<%-- <tr>
<th align="right">
TCL AppId
</th>
<td colspan="3">
<input id="Text2" name="TCLAppId" class="easyui-validatebox textbox text"
style="width: 416px;" value="<%: Model.TCLAppId %>" />
</td>
</tr>>
<tr>
<th align="right">
<label for="txtSkyworthTVauthCode">
TCL AppSecret</label>
</th>
<td colspan="3">
<input id="Text3" name="TCLAppSecret" class="easyui-validatebox textbox text"
style="width: 416px;" value="<%: Model.TCLAppSecret %>" />
</td>
</tr>--%>
</table>
</form>

View File

@@ -0,0 +1,16 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.SysHotelGroup>" %>
<form class="easyui-form form" method="post" data-options="novalidate:true">
<input type="hidden" name="ID" value="<%=Model.ID %>" />
<input type="hidden" name="ParentID" value="<%=(Model.Parent != null) ? Model.Parent.ID : 0 %>" />
<table style="margin: 20px auto;" cellpadding="3">
<tr>
<td class="align-right"><%: Html.Language("Name")%></td>
<td><input id="txtGroupName" name="Name" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'" value="<%=Model.Name %>" /></td>
</tr>
<tr>
<td class="align-right"><%: Html.Language("Sort")%></td>
<td><input id="txtGroupSort" name="Sort" class="easyui-numberspinner text" style="width:60px;" data-options="required:true,min:1" value="<%=Model.Sort %>" /></td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,249 @@
<%@ 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("HotelMgmt")%>
</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="overflow: hidden; height: 30px;">
<div class="toolbar">
<label>
<%: Html.Language("QueryContent")%></label>
<input id="txtQueryContent" class="easyui-validatebox" style="width: 120px;" />
<a href="javascript:void(0)" class="toolbar-button tb-icon-search" onclick="groupTreeOnSelect();">
<%: Html.Language("Query")%></a>
<%--<a href="javascript:void(0)" class="toolbar-button tb-icon-refresh" onclick="$('#dg').datagrid('load',{});">
<%: Html.Language("Refresh") %></a>--%>
<% if ((bool)ViewData["EditHotel"])
{ %>
<a href="javascript:void(0)" class="toolbar-button tb-icon-add" onclick="add()">
<%: Html.Language("New") %></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-edit"
onclick="edit()">
<%: Html.Language("Edit") %></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-remove"
onclick="del()">
<%: Html.Language("Delete") %></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-air"
onclick="setLogo()">
<%: Html.Language("SetLogo") %></a>
<% } %>
</div>
</div>
<div data-options="region:'center',border:false">
<table id="dg" class="easyui-datagrid" style="width: 100%; height: auto;" data-options="
toolbar: '#tb',
singleSelect: true,
border: false,
pagination: true,
pageSize: 100,
pageList: [50, 100, 200, 500],
rownumbers: true,
striped: true,
sortName: 'ID',
sortOrder: 'desc',
fit: true,
fitColumns: true,
idField: 'ID',
frozenColumns: [[ { field: 'ID', checkbox: true } ]],
url: '/SysHotel/LoadAllByPage/',
method: 'post'
<% if ((bool)ViewData["EditHotel"]){ %>,onDblClickRow: function(index, row) { edit(row); }<% } %>
">
<thead>
<tr>
<th data-options="field:'Code',sortable:true">
<%: Html.Language("Code")%>
</th>
<th data-options="field:'Name',sortable:true">
<%: Html.Language("Name")%>
</th>
<th data-options="field:'EName',sortable:true">
<%: Html.Language("EName")%>
</th>
<th data-options="field:'TWName',sortable:true">
<%: Html.Language("TWName")%>
</th>
<th data-options="field:'SysHotelGroupName',sortable:true,resizable:false">
<%: Html.Language("Group")%>
</th>
<th data-options="field:'IsApprove',align:'center',formatter:function(val,rec){return val ? lang.Yes : lang.No;}">
<%: Html.Language("Approve")%>
</th>
<th data-options="field:'ValidateDate',sortable:true,resizable:false,formatter:$.tools.formatDateExpire">
<%: Html.Language("EndDate")%>
</th>
<th data-options="field:'Status',align:'center',formatter:function(val,rec){switch(val){case 1:return lang.BatchInstallation;case 2:return lang.ModelRoom;default:return lang.FormalOperation;}}">
<%: Html.Language("Status")%>
</th>
<th data-options="field:'Remark',resizable:false">
<%: Html.Language("Remark")%>
</th>
<th data-options="field:'Contact',sortable:true">
<%: Html.Language("Contact")%>
</th>
<th data-options="field:'Phone',sortable:true">
<%: Html.Language("Phone")%>
</th>
<th data-options="field:'Address',sortable:true">
<%: Html.Language("Address")%>
</th>
<%--<th data-options="field:'AssociatedAccount',sortable:true">
<%: Html.Language("AssociatedAccount")%>
</th>--%>
<th data-options="field:'Sort',align:'center',resizable:false">
<%: Html.Language("Sort")%>
</th>
<th data-options="field:'LogoPath',resizable:false">
<%: Html.Language("LogoImage")%>
</th>
<%--<th data-options="field:'Styles',resizable:false">
<%: Html.Language("Styles")%>
</th>
<th data-options="field:'IsAutoGetKey',align:'center',formatter:function(val,rec){return val ? lang.Yes : lang.No;}">
<%: Html.Language("AutoGetKey")%>
</th>
<th data-options="field:'WelcomeSpeech',resizable:false">
<%: Html.Language("WelcomeSpeech")%>
</th>
<th data-options="field:'GoodbyeSpeech',resizable:false">
<%: Html.Language("GoodbyeSpeech")%>
</th>
<th data-options="field:'TVControlUrl',resizable:false">
DUI TV Url
</th>
<th data-options="field:'TVControlToken',resizable:false">
DUI TV Token
</th>
<th data-options="field:'DeviceStatusPushURL',resizable:false">
<%: Html.Language("DSPA")%>
</th>
<th data-options="field:'DomainUrl',resizable:false">
<%: Html.Language("Domain")%>
</th>--%>
<th data-options="field:'CreatedBy',sortable:true,resizable:false">
<%: Html.Language("Founder")%>
</th>
<th data-options="field:'CreatedDate',sortable:true,resizable:false,formatter:$.tools.formatDate">
<%: Html.Language("CreatedDate")%>
</th>
<th data-options="field:'ModifiedBy',sortable:true,resizable:false">
<%: Html.Language("ModifiedPerson")%>
</th>
<th data-options="field:'ModifiedDate',sortable:true,resizable:false,formatter:$.tools.formatDate">
<%: Html.Language("ModifiedDate")%>
</th>
</tr>
</thead>
</table>
</div>
<div data-options="region:'east',border:false" style="width: 250px; border-left: 1px solid #95B8E7;">
<% if ((bool)ViewData["EditHotel"])
{ %>
<div class="toolbar">
<a href="javascript:void(0)" class="toolbar-button tb-icon-add" onclick="group.add()">
<%: Html.Language("New")%></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-edit"
onclick="group.edit()">
<%: Html.Language("Edit")%></a> <a href="javascript:void(0)" class="toolbar-button tb-icon-remove"
onclick="group.del()">
<%: Html.Language("Delete")%></a>
</div>
<% } %>
<table id="groupTree" class="easyui-treegrid" data-options="
url: '/SysHotel/LoadSysHotelGroupTree/',
method: 'post',
idField: 'ID',
treeField: 'Name',
fit: true,
fitColumns: true,
animate: true,
border: false,
loadMsg: 'load......',
bodyCls: 'easyui-treegrid-no-icon',
onLoadSuccess: function (row, data) {if (data[0] != null) {$('#groupTree').treegrid('select', data[0].ID);}},
onSelect: groupTreeOnSelect
">
<thead>
<tr>
<th data-options="field:'Name',width:160">
<%: Html.Language("Name")%>
</th>
<th data-options="field:'Sort',align:'center',width:40">
<%: Html.Language("Sort")%>
</th>
</tr>
</thead>
</table>
</div>
</div>
<div id="dialog" class="easyui-window" style="padding: 5px;" data-options="
closed: true,
modal: true,
collapsible: false,
minimizable: false,
maximizable: false
">
<div class="easyui-panel dlg-content" style="margin-bottom: 5px;">
</div>
<div class="dlg-footer" style="text-align: right; padding: 5px 5px 0 0;">
<a class="easyui-linkbutton dlg-btn-save" data-options="iconCls:'icon-save'" href="javascript:void(0)">
<%: Html.Language("Save")%></a> <a class="easyui-linkbutton dlg-btn-cancel" data-options="iconCls:'icon-cancel'"
href="javascript:void(0)" onclick="$('#dialog').window('close');">
<%: Html.Language("Cancel")%></a>
</div>
</div>
<div id="uploadFile" class="easyui-window" title='<%: Html.Language("SetLogo")%>'
style="width: 400px; height: 180px; padding: 5px;" data-options="
closed: true,
modal: true,
collapsible: false,
minimizable: false,
maximizable: false
">
<div class="easyui-layout" fit="true">
<div style="padding-top: 25px;" data-options="region:'center'">
<form id="uploadForm" method="post" enctype="multipart/form-data">
<input type="hidden" id="txtID" name="id" value="0" />
<table style="width: 100%;">
<tr>
<th colspan="2">
Size: 147*23
</th>
</tr>
<tr>
<th>
<%: Html.Language("SelectingFiles")%>
</th>
<td>
<input class="easyui-filebox" id="uf" name="file" style="width: 90%;" data-options="buttonText:lang.Browse" />
</td>
</tr>
</table>
</form>
</div>
<div data-options="region:'south',border:false" style="text-align: right; padding: 5px 0 0;">
<a class="easyui-linkbutton" data-options="iconCls:'icon-save'" href="javascript:void(0)"
onclick="uploadFile();">
<%: Html.Language("Upload")%></a> <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'"
href="javascript:void(0)" onclick="$('#uploadFile').window('close');">
<%: Html.Language("Cancel")%></a>
</div>
</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<% 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/sys_hotel_group.js"></script>
<script type="text/javascript" src="/Scripts/sys-hotel-index.js"></script>
</asp:Content>