初始化CRICS
This commit is contained in:
28
WebSite/Views/Home/ActiveUsersView.ascx
Normal file
28
WebSite/Views/Home/ActiveUsersView.ascx
Normal file
@@ -0,0 +1,28 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
|
||||
|
||||
<table id="dgActiveUsers" class="easyui-datagrid" style="width:100%; height:360px;"
|
||||
data-options="
|
||||
border: false,
|
||||
singleSelect: false,
|
||||
pagination: false,
|
||||
rownumbers: true,
|
||||
sortName: 'Account',
|
||||
sortOrder: 'desc',
|
||||
fit: false,
|
||||
fitColumns: true,
|
||||
singleSelect: true,
|
||||
showFooter: true,
|
||||
url: '/Home/ActiveUsers/',
|
||||
method: 'post'
|
||||
">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-options="field:'Account',width:100,sortable:true,resizable:false">
|
||||
<%: Html.Language("Account")%>
|
||||
</th>
|
||||
<th data-options="field:'LoginIP',width:120,sortable:true,resizable:false,">
|
||||
IP
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
352
WebSite/Views/Home/Index.aspx
Normal file
352
WebSite/Views/Home/Index.aspx
Normal file
@@ -0,0 +1,352 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
酒店客房控制系统
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="easyui-layout" data-options="fit:true" id="cc">
|
||||
|
||||
<div region="north" border="false" class="l-topmenu">
|
||||
|
||||
<div class="l-topmenu-logo">
|
||||
<img src="/images/logo.png" alt="酒店客房控制系统" height="24px" style="margin:16px 10px;" />
|
||||
</div>
|
||||
|
||||
<div class="l-topmenu-welcome">
|
||||
<span class="space" style="font-weight: bold; color: rgb(42,100,166);">
|
||||
<%= ((dynamic)ViewData["Account"]) %></span>| <span class="space" onclick="$('#divChangePassword').window('open');">
|
||||
修改密码</span>| <span id='logOut' class="space">注销</span>| <span class="space" onclick="window.location.href='/Home/MenuMain/'">
|
||||
首页</span>| <span class="space" onclick="about();">关于</span>
|
||||
<br />
|
||||
<div id="divAlarm" style="margin-right: 6px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div region="west" split="true" title="功能模块" collapsed="true" style="width: 180px;">
|
||||
<div class="easyui-accordion" fit="true" border="false" style="background-color: #E0ECFF;
|
||||
background-repeat: repeat-x;">
|
||||
<ul id="menuTree" data-options="animate:true"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div region="south" border="false" style="height: 20px; line-height: 20px; font-weight:bold;
|
||||
background-image: url(/Images/bg_bottom.gif);">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;">COPYRIGHT © 2014-2015 ALL RIGHT RESERVED</td>
|
||||
<td id="tdDate" style="width:186px; text-align:right;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div region="center" data-options="border:true">
|
||||
<div id="tab" class="easyui-tabs" fit="true" border="false">
|
||||
<iframe id="home" name="home" style="width: 100%; height: 100%; border: none;" scrolling="auto" frameborder="none"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="divChangePassword" class="easyui-window" title="修改密码" style="width: 400px;
|
||||
height: 200px; padding: 5px;" closed="true" modal="true" collapsible="false"
|
||||
minimizable="false" maximizable="false">
|
||||
<div class="easyui-layout" fit="true">
|
||||
<div data-options="region:'center'">
|
||||
<table style="margin: 20px 60px;">
|
||||
<tr>
|
||||
<td>
|
||||
旧密码:
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" id="iptOldPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
新密码:
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" id="iptPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
确认密码:
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" id="iptNewPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div data-options="region:'south',border:false" style="text-align: right; margin: 5px 0 0;">
|
||||
<a class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="changePassword()">
|
||||
确定</a> <a class="easyui-linkbutton" iconcls="icon-cancel" href="javascript:void(0)"
|
||||
onclick="$('#divChangePassword').window('close');">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="divAbout" class="easyui-window" title="关于" closed="true" modal="true" collapsible="false" minimizable="false" maximizable="false"
|
||||
style="width:400px;height:230px;">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2" style="text-align:center;height:40px;font-size:14px;">酒店客房控制系统</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>软件版本:</th>
|
||||
<td><span class="Version"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>产品序号:</th>
|
||||
<td><span class="SerialNumber"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>授权数量:</th>
|
||||
<td><span class="Limit"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>使用时限:</th>
|
||||
<td><span class="Expires"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>主机授权:</th>
|
||||
<td>
|
||||
<input id="txtAuthorizationPassword" type="password" class="easyui-validatebox textbox text" style="width:100px;" />
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="accreditOk()">确定</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="divAlarm2" class="easyui-window" title="服务提醒" style="width: 400px; height: 500px;"
|
||||
data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false,
|
||||
tools: [
|
||||
{ iconCls: 'icon-reload', handler: function(){ $('#dgAlarm').datagrid('reload'); } }
|
||||
]
|
||||
">
|
||||
<table id="dgAlarm" style="width:300px"></table>
|
||||
</div>
|
||||
<div id="dialog2" class="easyui-window"
|
||||
data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false
|
||||
">
|
||||
<div class="easyui-panel dlg-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
|
||||
<style type="text/css">
|
||||
.space
|
||||
{
|
||||
padding: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.l-topmenu
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 60px;
|
||||
line-height: 30px;
|
||||
position: relative;
|
||||
border-top: 1px solid #1D438B;
|
||||
background-color: #E0ECFF;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.l-topmenu-logo {
|
||||
font-size: 30px;
|
||||
width:500px;
|
||||
height: 59px;
|
||||
line-height: 59px;
|
||||
}
|
||||
.l-topmenu-welcome
|
||||
{
|
||||
top: 2px;
|
||||
right: 1px;
|
||||
position: absolute;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#divAbout table {
|
||||
margin:15px auto 0 auto;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function groupFormatter(value, rows) {
|
||||
return value + "(" + rows.length + ")";
|
||||
}
|
||||
|
||||
function operationFormatter(val, row) {
|
||||
if (row.Name != "SOS" &&
|
||||
row.Name != "客人在房门开" &&
|
||||
row.Name != "无人房门开" &&
|
||||
row.Name != "非客人在房门关") {
|
||||
|
||||
var btn = "<a href='javascript:void(0)' onclick=clearMsg(" + row.ID + ",'" + row.RoomNumber + "','" + row.Name + "')>清除</a>";
|
||||
return btn;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
function openCurrentMsg() {
|
||||
if (!$('#divAlarm2').is(":visible")) {
|
||||
|
||||
$('#dgAlarm').propertygrid({
|
||||
url: "/RoomService/LoadCurrentRoomServices/",
|
||||
border: false,
|
||||
fit: true,
|
||||
method: 'post',
|
||||
showGroup: true,
|
||||
scrollbarSize: 0,
|
||||
groupField: 'Name',
|
||||
groupFormatter: groupFormatter,
|
||||
columns: [[
|
||||
{ field: 'RoomNumber', title: '房号', width: 100, align: 'center', sortable: true },
|
||||
{ field: 'Time', title: '时间', width: 100, align: 'center', sortable: true, formatter: $.tools.formatDateTime },
|
||||
{ field: 'Operation', title: '操作', width: 100, align: 'center', sortable: true, formatter: operationFormatter }
|
||||
]]
|
||||
});
|
||||
|
||||
$('#divAlarm2').window('open');
|
||||
}
|
||||
}
|
||||
|
||||
//获取当前服务信息
|
||||
function loadCurrentMsg() {
|
||||
$.tools.post(null, "/RoomService/LoadCurrentMsg/", function (r) {
|
||||
if (r.IsSuccess) {
|
||||
var html = "";
|
||||
for (var i = 0; i < r.Data.length; i++) {
|
||||
html += "<span class='space' onclick='openCurrentMsg();' title='点击查看详情'>" + r.Data[i].Name + "<font style='font-weight: bold;color: red;'>(" + r.Data[i].Count + ")</font></span>";
|
||||
if (r.Data[i].Name == "SOS" &&
|
||||
r.Data[i].Count > 0) {
|
||||
openCurrentMsg();
|
||||
}
|
||||
}
|
||||
$("#divAlarm").html(html);
|
||||
}
|
||||
}, this, true);
|
||||
}
|
||||
|
||||
function clearMsg(id, roomNumber, name) {
|
||||
var param = { id: id, roomNumber: roomNumber, name: name };
|
||||
$.tools.confrimPost("确认清除当前服务提醒吗?", param, "/RoomService/ClearRoomService/", function (r) {
|
||||
if (r.IsSuccess) {
|
||||
$('#dgAlarm').datagrid("reload");
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
|
||||
//初始化
|
||||
$(function () {
|
||||
|
||||
//装载日期时间
|
||||
setInterval(function () {
|
||||
today = new Date();
|
||||
$("#tdDate").html("今天:" + today.format("yyyy-MM-dd hh:mm:ss "));
|
||||
}, 1000);
|
||||
|
||||
$('#menuTree').tree({
|
||||
url: "/Home/LoadMenu",
|
||||
attributes: ['text', 'url'],
|
||||
onSelect: function (node) {
|
||||
node.url && $('#home').attr('src', node.url);
|
||||
}
|
||||
});
|
||||
//注销
|
||||
$("#logOut").click(function () {
|
||||
$.messager.confirm("提示", '确认注销登录吗?', function (r) {
|
||||
if (r) window.location.href = '/Home/LogOut/';
|
||||
});
|
||||
});
|
||||
|
||||
$("#home").attr("src", "/RoomStatus/Index/");
|
||||
|
||||
loadCurrentMsg();
|
||||
setInterval(loadCurrentMsg, 5000);
|
||||
|
||||
var myurl = GetQueryString("url");
|
||||
|
||||
var Returnurl = GetQueryString();
|
||||
if (Returnurl != null && Returnurl.toString().length > 1) {
|
||||
//$('#cc').layout('collapse', 'west');
|
||||
$('#home').attr('src', Returnurl);
|
||||
}
|
||||
});
|
||||
|
||||
//修改密码
|
||||
function changePassword() {
|
||||
var oldPassword = $("#iptOldPassword").val();
|
||||
if (oldPassword == "") {
|
||||
$("#iptOldPassword").focus();
|
||||
$.tools.alert('请输入旧密码!');
|
||||
return;
|
||||
}
|
||||
var password = $("#iptPassword").val();
|
||||
if (password == "") {
|
||||
$("#iptPassword").focus();
|
||||
$.tools.alert('请输入新密码!');
|
||||
return;
|
||||
}
|
||||
var newPassword = $("#iptNewPassword").val();
|
||||
if (newPassword == "") {
|
||||
$("#iptNewPassword").focus();
|
||||
$.tools.alert('请输入确认密码!');
|
||||
return;
|
||||
}
|
||||
if (newPassword != password) {
|
||||
$("#iptNewPassword").focus();
|
||||
$.tools.alert('两次密码不一致,请重新输入!');
|
||||
return;
|
||||
}
|
||||
var parm = { password: password, oldPassword: oldPassword };
|
||||
$.tools.post(parm, "/Home/ChangedPassword/", function () {
|
||||
$("#iptOldPassword").val("");
|
||||
$("#iptPassword").val("");
|
||||
$("#iptNewPassword").val("");
|
||||
$('#divChangePassword').window('close');
|
||||
}, this);
|
||||
}
|
||||
|
||||
function about() {
|
||||
$.tools.post(null, "/Home/ProductInfo/", function (r) {
|
||||
|
||||
$("#divAbout .Version").html(r.Data.Version);
|
||||
$("#divAbout .SerialNumber").html(r.Data.SerialNumber);
|
||||
$("#divAbout .Limit").html(r.Data.Limit);
|
||||
$("#divAbout .Expires").html(r.Data.Expires);
|
||||
|
||||
$('#divAbout').window('open');
|
||||
}, this, true);
|
||||
|
||||
}
|
||||
|
||||
function GetQueryString() {
|
||||
var reg = new RegExp("(^|&)" + "url" + "=([^&]*)(&|$)");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return unescape(r[2]); return null;
|
||||
}
|
||||
function accreditOk() {
|
||||
$('#dialog2')
|
||||
.find('.dlg-content').css({ height: '500px' })
|
||||
.panel({ border: false, fit: true, href: '/Host/HostAuthorization/', queryParams: { password: $('#txtAuthorizationPassword').val()} }).end()
|
||||
.dialog({ title: '主机授权', width: 600, height: 400 })
|
||||
.dialog('open');
|
||||
$('#divAbout').window('close').find('input[type=password]').val('');
|
||||
}
|
||||
</script>
|
||||
</asp:Content>
|
||||
123
WebSite/Views/Home/License.aspx
Normal file
123
WebSite/Views/Home/License.aspx
Normal file
@@ -0,0 +1,123 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>License</title>
|
||||
<link href="/Styles/login.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/Styles/filebox.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/Styles/button.css" rel="stylesheet" type="text/css" />
|
||||
<script src="/easyui-1.4.2/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="/Scripts/ajaxfileupload.js" type="text/javascript"></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; } %>
|
||||
<script type="text/javascript">
|
||||
|
||||
function upload() {
|
||||
|
||||
var filename = $("#file").val();
|
||||
if (filename == "") {
|
||||
$("#msg").html(lang.PleaseSelectALicenseFile);
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajaxFileUpload({
|
||||
url: "/Home/UploadLicense/",
|
||||
type: "POST",
|
||||
secureuri: false,
|
||||
fileElementId: "file",
|
||||
dataType: "json",
|
||||
success: function (data, status) {
|
||||
if (status == "success" && typeof (data) == "object") {
|
||||
if (data.IsSuccess) {
|
||||
location.reload();
|
||||
} else {
|
||||
$("#msg").html(data.Message);
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (data, status, e) {
|
||||
$("#msg").html(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("input[type=file]").change(function () {
|
||||
var file = $(this).val();
|
||||
|
||||
var mime = file.toLowerCase().substr(file.lastIndexOf("."));
|
||||
|
||||
if (mime !== ".lic") {
|
||||
$("#msg").html(lang.CUOLLFF);
|
||||
return;
|
||||
}
|
||||
|
||||
$(this).parents(".uploader").find(".filename").val(file);
|
||||
});
|
||||
$("input[type=file]").each(function () {
|
||||
if ($(this).val() == "") { $(this).parents(".uploader").find(".filename").val(lang.PleaseSelectALicenseFile); }
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/Home/GetMachineCode/",
|
||||
success: function (msg) {
|
||||
if (msg) {
|
||||
if (msg.IsSuccess) {
|
||||
$("#txtMachineCode").val(msg.Message);
|
||||
}
|
||||
else {
|
||||
$("#txtMachineCode").val("获取机器码失败");
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("#txtMachineCode").val("获取机器码失败");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" style="background:transparent;">
|
||||
<div id="licensebox">
|
||||
<form id="uploadForm" method="post" action="#" enctype="application/x-www-form-urlencoded">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="height:25%;">
|
||||
<div>
|
||||
机器码:<input type="text" id="txtMachineCode" disabled="disabled" style="width:180px; height:28px; font-weight:bold;" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="height:25%;">
|
||||
<div class="uploader blue">
|
||||
<input type="text" class="filename" readonly="readonly" />
|
||||
<input type="button" class="button" value='<%: Html.Language("Browse")%>'/>
|
||||
<input type="file" id="file" name="file" size="30"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="height:25%;background:#;">
|
||||
<input type="button" value='<%: Html.Language("Upload")%>' class="button blue" style="width:100px;" onclick="upload();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="height:25%;background:#;">
|
||||
<span id="msg" style="color:#f00;"><%: ViewData["Msg"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
69
WebSite/Views/Home/LogOn.aspx
Normal file
69
WebSite/Views/Home/LogOn.aspx
Normal file
@@ -0,0 +1,69 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>酒店客房控制系统--用户登录</title>
|
||||
<link href="/Styles/login.css" rel="stylesheet" type="text/css" />
|
||||
<script src="/easyui-1.4.2/jquery.min.js" type="text/javascript"></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; } %>
|
||||
<script src="/Scripts/login.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="/easyui-1.4.2/jquery.easyui.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="header">
|
||||
<%--<img src="/images/logo_actop.png" alt="宝来威智能科技有限公司" />--%>
|
||||
</div>
|
||||
|
||||
<div id="loginbox">
|
||||
<table cellspacing="5">
|
||||
<tr>
|
||||
<td><label><%: Html.Language("Account")%>:</label></td>
|
||||
<td colspan="2"><input type="text" id="txtAccount" name="account" class="text" style="width:210px;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><%: Html.Language("Password")%>:</label></td>
|
||||
<td colspan="2"><input type="password" id="txtPassword" name="password" class="text" style="width:210px;" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><%: Html.Language("VerificationCode")%>:</label></td>
|
||||
<td style="width:90px;"><input type="text" id="txtCode" name="code" class="text" style="width:88px;" /></td>
|
||||
<td style="text-align:left;">
|
||||
<img src="/Home/ValidateCode/" style="cursor:pointer;" alt="点击刷新" title="点击刷新" onclick="this.src=this.src+'?';" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3" style="height:50px;text-align:center">
|
||||
<a class="button" href="javascript:void(0);" onclick="logOn();"> <%: Html.Language("Login") %></a>
|
||||
<a class="button" href="javascript:void(0);" onclick="reset();"><%: Html.Language("Reset")%></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<div id="msg" style="color:red;line-height:30px;height:30px;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<div class="copyright">
|
||||
深圳市宝来威智能科技有限公司<br />
|
||||
COPYRIGHT © 2014-2016 ALL RIGHT RESERVED
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
123
WebSite/Views/Home/MenuMain.aspx
Normal file
123
WebSite/Views/Home/MenuMain.aspx
Normal file
@@ -0,0 +1,123 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<%@ Import Namespace="WebSite.Controllers" %>
|
||||
<%
|
||||
var roomManager = ViewData["RoomManager"] as IList<Mune>;
|
||||
var setting = ViewData["Setting"] as IList<Mune>;
|
||||
var deviceManager = ViewData["DeviceManager"] as IList<Mune>;
|
||||
var queryStatistics = ViewData["QueryStatistics"] as IList<Mune>;
|
||||
var sysMaintenance = ViewData["SysMaintenance"] as IList<Mune>;
|
||||
%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>酒店客房控制系统</title>
|
||||
<link rel="stylesheet" href="/Styles/metro.css" />
|
||||
<script type="text/javascript" src="/Scripts/jquery-1.4.4.min.js"></script>
|
||||
<script type="text/javascript" src="/easyui-1.4.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/easyui-1.4.2/jquery.easyui.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--头部导航开始-->
|
||||
<%-- <div style="position: absolute; top: 50px; left: 20px; width: 105px; height: 20px;
|
||||
background: url(../images/newMain/LOGO.png); -moz-background-size: cover; -o-background-size: cover;">
|
||||
</div>--%>
|
||||
<div class="l-topmenu-welcome" style="color: white;">
|
||||
<span class="space">
|
||||
<%= ((dynamic)ViewData["Account"]) %></span>|<span id='logOut' class="space" onclick="logOutClick();">注销</span>
|
||||
<br />
|
||||
<div id="divAlarm" style="margin-right: 6px;">
|
||||
</div>
|
||||
</div>
|
||||
<div id='pageBase_Div' style='display: none; z-index: 12001; background-color: White;
|
||||
text-align: center; position: absolute; padding: 20px 100px 40px; left: 38%;
|
||||
top: 30%;'>
|
||||
确认注销登录吗?
|
||||
<div style="padding-top: 20px;">
|
||||
<input id="BtnOk" type="button" value="确定" onclick="OK();" style="width: 70px; height: 25px;" /> <input
|
||||
id="BtnCancel" type="button" value="取消" onclick="Cancel();" style="width: 70px;
|
||||
height: 25px;" />
|
||||
</div>
|
||||
</div>
|
||||
<!--头部导航结束-->
|
||||
<!--logo区开始-->
|
||||
<div id="metro_box">
|
||||
<%--第一列 客房管理--%>
|
||||
<div style="width: 155px; float: left;">
|
||||
<% foreach (var mune in roomManager)
|
||||
{ %>
|
||||
<ul>
|
||||
<li><a href="/Home/MenuIndex?url=<%: mune.Url %>" style='display:block;width:145px;height:86px;' class='<%: mune.Icon %>'">
|
||||
</a></li>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<%--第二列 设备管理 --%>
|
||||
<div style="width: 155px; float: left;">
|
||||
<% foreach (var mune in deviceManager)
|
||||
{ %>
|
||||
<ul>
|
||||
<li><a href="/Home/MenuIndex?url=<%: mune.Url %>" style='display:block;width:145px;height:117px;' class='<%: mune.Icon %>'">
|
||||
</a></li>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<%--第三列 参数设置--%>
|
||||
<div style="width: 155px; float: left;">
|
||||
<% foreach (var mune in setting)
|
||||
{ %>
|
||||
<ul>
|
||||
<li><a href="/Home/MenuIndex?url=<%: mune.Url %>" style='display:block;width:145px;height:179px;' class='<%: mune.Icon %>'">
|
||||
</a></li>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<%--第四列 查询统计--%>
|
||||
<div style="width: 155px; float: left;">
|
||||
<% foreach (var mune in queryStatistics)
|
||||
{ %>
|
||||
<ul>
|
||||
<li><a href="/Home/MenuIndex?url=<%: mune.Url %>" style='display:block;width:145px;height:80px;' class='<%: mune.Icon %>'">
|
||||
</a></li>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<%--第五列 系统管理--%>
|
||||
<div style="width: 155px; float: left;">
|
||||
<% foreach (var mune in sysMaintenance)
|
||||
{ %>
|
||||
<ul>
|
||||
|
||||
<li><a href="/Home/MenuIndex?url=<%: mune.Url %>" style='display:block;width:145px;height:86px;' class='<%: mune.Icon %>'">
|
||||
</a></li>
|
||||
</ul>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div style="left: 0; bottom: 0; position: absolute; width: 100%; height: 30px; z-index: 100;
|
||||
text-align: center; background: url(../images/newMain/底部半透明条.png); -moz-background-size: cover;
|
||||
-webkit-background-size: cover; -o-background-size: cover; background-size: cover;">
|
||||
<font style="line-height: 30px;" color="white">COPYRIGHT © 2015 ALL RIGHT RESERVED</font>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function logOutClick() {
|
||||
whichEl = document.getElementById("pageBase_Div") //获得指定ID值的对象
|
||||
if (whichEl.style.display == 'none') { //block是默认值为显示,none为隐藏
|
||||
whichEl.style.display = 'block';
|
||||
} else {
|
||||
whichEl.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function OK() {
|
||||
window.location.href = '/Home/LogOut/';
|
||||
}
|
||||
|
||||
function Cancel() {
|
||||
document.getElementById("pageBase_Div").style.display = 'none';
|
||||
}
|
||||
|
||||
</script>
|
||||
</html>
|
||||
326
WebSite/Views/Home/SimonIndex.aspx
Normal file
326
WebSite/Views/Home/SimonIndex.aspx
Normal file
@@ -0,0 +1,326 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SimonMasterPage.Master"
|
||||
Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
<% if (Request.Url.Host.IndexOf("boonlive") > -1){ %><%: Html.Language("Company")%><% } else { %><%: Html.Language("ProductName")%><% }%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="easyui-layout" data-options="fit:true">
|
||||
<div id="sidebar" region="west" data-options="split:true" title="<%: Html.Language("ProductName") %>">
|
||||
<div data-bind="template: { name: 'statisticsTemplate', data: Statistics }">
|
||||
</div>
|
||||
</div>
|
||||
<div region="center">
|
||||
<div class="easyui-layout" data-options="fit:true">
|
||||
<div id="head" region="north" data-options="border:false">
|
||||
<div id="logo">
|
||||
</div>
|
||||
<div id="user">
|
||||
<%: Html.Language("CurrentHotel")%><a id="curHotel" href="javascript:void(0)" data-bind="click: showHotels"></a> |
|
||||
<%: User.Identity.Name %> | <a href="javascript:void(0)" data-bind="click: showChangePassword">
|
||||
<%: Html.Language("ChangePassword") %></a> | <a href="javascript:void(0)"
|
||||
data-bind="click: logout">
|
||||
<%: Html.Language("Logout") %></a> | <a href="javascript:void(0)"
|
||||
data-bind="click: showAbout">
|
||||
<%: Html.Language("About") %></a>
|
||||
</div>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
</ul>
|
||||
<div class="panel">
|
||||
<ul>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div region="center" data-options="border:false" style="background: #EFEFEF;">
|
||||
<iframe id="home" name="main" style="width: 100%; height: 99.5%; border: none; overflow-y: hidden"
|
||||
scrolling="auto" frameborder="0"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script id="statisticsTemplate" type="text/html">
|
||||
<div id="room-statistics" class="box">
|
||||
<h1><span> <%: Html.Language("RoomsStatistics") %></span></h1>
|
||||
<ul>
|
||||
{{each Room}}
|
||||
<li>${ Name }<span class="value" data-bind="text: Value"></span></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="decive-alert" class="box">
|
||||
<h1><span><%: Html.Language("FailureAlarm") %></span></h1>
|
||||
<ul>
|
||||
{{each Peripheral}}
|
||||
<li data-bind="style: { background: Color }">
|
||||
<a href="javascript:void(0)" data-bind="click: $root.showPeripheral">${ Name }<span class="value" data-bind="text: Value"></span></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="service-alert" class="box">
|
||||
<h1><span><%: Html.Language("ServiceAlarm") %></span></h1>
|
||||
<ul>
|
||||
{{each Services}}
|
||||
<li data-bind="style: { background: Color }">
|
||||
<a href="javascript:void(0)" data-bind="click: $root.showServiceMsg">${ Name }<span class="value" data-bind="text: Value"></span></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<%--<div id="room-abnormity" class="box">
|
||||
<h1><span><%: Html.Language("RoomAbnormity") %></span></h1>
|
||||
<ul>
|
||||
{{each Abnormities}}
|
||||
<li>
|
||||
<a href="javascript:void(0)" data-bind="click: $root.showAbnormityMsg">${ Name }<span class="value" data-bind="text: Value"></span></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>--%>
|
||||
</script>
|
||||
<div style="display: none;">
|
||||
<div id="changePasswordDlg" class="easyui-window" title="<%: Html.Language("ChangePassword") %>"
|
||||
style="width: 400px; height: 220px; padding: 5px;" data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false">
|
||||
<div class="easyui-layout" fit="true">
|
||||
<div data-options="region:'center'">
|
||||
<table style="margin: 20px 0; width: 370px;">
|
||||
<tr>
|
||||
<th>
|
||||
<label for="iptOldPassword">
|
||||
<%: Html.Language("CurrentPassword") %></label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="password" id="iptOldPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="iptPassword">
|
||||
<%: Html.Language("NewPassword")%></label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="password" id="iptPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="iptNewPassword">
|
||||
<%: Html.Language("ConfirmNewPassword")%></label>
|
||||
</th>
|
||||
<td>
|
||||
<input type="password" id="iptNewPassword" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="text-align: right; margin: 5px 0 0;" data-options="region:'south',border:false">
|
||||
<a class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="changePassword()">
|
||||
<%: Html.Language("OK") %></a> <a class="easyui-linkbutton" iconcls="icon-cancel"
|
||||
href="javascript:void(0)" onclick="$('#changePasswordDlg').window('close');">
|
||||
<%: Html.Language("Cancel") %></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="aboutDlg" class="easyui-window" title="<%: Html.Language("About") %>" style="width: 400px;
|
||||
height: 280px; display: none;" data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false
|
||||
">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2" style="text-align: center; height: 40px; font-size: 14px;">
|
||||
<%: Html.Language("ProductName") %>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<%: Html.Language("ProductVersion") %>:
|
||||
</th>
|
||||
<td>
|
||||
<span class="Version"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<%: Html.Language("SerialNumber") %>:
|
||||
</th>
|
||||
<td>
|
||||
<span class="SerialNumber"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<%--<tr>
|
||||
<th>
|
||||
<%: Html.Language("AuthorizedNumber")%>:
|
||||
</th>
|
||||
<td>
|
||||
<span class="Limit"></span>
|
||||
</td>
|
||||
</tr>--%>
|
||||
<tr>
|
||||
<th>
|
||||
<%: Html.Language("CurrentHotel")%>:
|
||||
</th>
|
||||
<td>
|
||||
<span class="CurrentHotel"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<%: Html.Language("UseTimeLimit")%>:
|
||||
</th>
|
||||
<td>
|
||||
<span class="Expires"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<%--<tr>
|
||||
<th><%: Html.Language("HostAuthorization")%>:</th>
|
||||
<td>
|
||||
<input id="txtAuthorizationPassword" type="password" class="easyui-validatebox textbox text" style="width:100px;" />
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="accreditOk()">确定</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<a href="/Help/Help.pdf" target="_blank">
|
||||
<%: Html.Language("Help") %></a>
|
||||
</td>
|
||||
</tr>--%>
|
||||
</table>
|
||||
</div>
|
||||
<div id="peripheralDlg" class="easyui-window" title='<%: Html.Language("FailureAlarm") %>'
|
||||
style="width: 400px; height: 400px;" data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false,
|
||||
tools:[
|
||||
{ iconCls: 'icon-reload', handler: function(){ $('#dgPeripheral').datagrid('reload'); }}
|
||||
]
|
||||
">
|
||||
<table id="dgPeripheral" class="easyui-propertygrid" style="width: 300px" data-options="
|
||||
border: false,
|
||||
fit: true,
|
||||
method: 'post',
|
||||
showGroup: true,
|
||||
scrollbarSize: 0,
|
||||
groupField: 'Name',
|
||||
groupFormatter: groupFormatter,
|
||||
columns: [[
|
||||
{ field: 'RoomNumber', title: '<%: Html.Language("RoomNumber") %>', width:100, align: 'center', sortable:true }
|
||||
]]
|
||||
">
|
||||
</table>
|
||||
</div>
|
||||
<div id="serviceAlertDlg" class="easyui-window" title='<%: Html.Language("ServiceAlarm") %>'
|
||||
style="width: 400px; height: 400px;" data-options="
|
||||
closed: true,
|
||||
modal: true,
|
||||
collapsible: false,
|
||||
minimizable: false,
|
||||
maximizable: false,
|
||||
tools:[
|
||||
{ iconCls: 'icon-reload', handler: function(){ $('#dgAlarm').datagrid('reload'); }}
|
||||
]
|
||||
">
|
||||
<table id="dgAlarm" class="easyui-propertygrid" style="width: 300px" data-options="
|
||||
border: false,
|
||||
fit: true,
|
||||
method: 'post',
|
||||
showGroup: true,
|
||||
scrollbarSize: 0,
|
||||
groupField: 'Name',
|
||||
groupFormatter: groupFormatter,
|
||||
columns: [[
|
||||
{ field: 'RoomNumber', title: '<%: Html.Language("RoomNumber") %>', width:80, align: 'center', sortable:true },
|
||||
{ field: 'Time', title: '<%: Html.Language("Time") %>',width:150, align: 'center', sortable: true, formatter: $.tools.formatDateTime },
|
||||
{ field: 'Operation', title: '<%: Html.Language("Operation") %>', width:70, align: 'center', sortable: true, formatter: operationFormatter }
|
||||
]]
|
||||
">
|
||||
</table>
|
||||
</div>
|
||||
<div id="hotelDlg" class="easyui-window" title='<%: Html.Language("Hotel") %>' style="width: 660px;
|
||||
height: 450px;" data-options="closed:true,modal: true,collapsible: false,minimizable: false,maximizable: false">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<table style="width: 100%; height: 380px;">
|
||||
<tr>
|
||||
<td style="width: 75%;">
|
||||
<table id="dgHotel" class="easyui-propertygrid" style="width: 100%;" data-options="
|
||||
border: false,
|
||||
fit: true,
|
||||
method: 'post',
|
||||
showGroup: false,
|
||||
scrollbarSize: 0,
|
||||
loadMsg: 'load......',
|
||||
columns: [[
|
||||
{ field: 'Operation', title: '<%: Html.Language("Operation") %>', align: 'center', sortable: true, formatter: toggleHotelFormatter },
|
||||
{ field: 'Code', title: '<%: Html.Language("Code") %>', align: 'center', sortable:true },
|
||||
{ field: 'Name', title: '<%: Html.Language("Name") %>', sortable: true },
|
||||
{ field: 'GroupName', title: '<%: Html.Language("Group") %>', sortable: true }
|
||||
]]
|
||||
">
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="jplayer">
|
||||
</div>
|
||||
<div id="jplayer1">
|
||||
</div>
|
||||
<div id="jplayer2">
|
||||
</div>
|
||||
<div id="jplayer3">
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
|
||||
<link href="/Styles/simon-home-index.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="/Scripts/jquery.tmpl.min.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/knockout-3.3.0.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/knockout.mapping-latest.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/jplayer/jquery.jplayer.min.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/simon-home-index.js"></script>
|
||||
</asp:Content>
|
||||
112
WebSite/Views/Home/SimonLogOn.aspx
Normal file
112
WebSite/Views/Home/SimonLogOn.aspx
Normal file
@@ -0,0 +1,112 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
|
||||
<title><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %><%: Html.Language("Company")%><% } else { %><%: Html.Language("ProductName")%><% }%></title>
|
||||
<% if (Request.Url.Host.IndexOf("hogood") > -1)
|
||||
{ %><link href="/Styles/login_zhuhao.css" rel="stylesheet" type="text/css" /><% }
|
||||
else if (Request.Url.Host.IndexOf("szactop") > -1)
|
||||
{ %><link href="/Styles/login_zhuohao.css" rel="stylesheet" type="text/css" /><% }
|
||||
else if (Request.Url.Host.IndexOf("blv") > -1 || Request.Url.Host.IndexOf("boo-sys") > -1)
|
||||
{ %><link href="/Styles/login_blv.css" rel="stylesheet" type="text/css" /><% }
|
||||
else if (Request.Url.Host.IndexOf("xuanzhu") > -1)
|
||||
{ %><link href="/Styles/login_xuanzhu.css" rel="stylesheet" type="text/css" /><% }
|
||||
else
|
||||
{ %><link href="/Styles/login_blw.css" rel="stylesheet" type="text/css" /><% } %>
|
||||
<script src="/Scripts/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="/Scripts/login.js" type="text/javascript"></script>
|
||||
<% switch ((Domain.Language)ViewData["Language"])
|
||||
{
|
||||
case Domain.Language.EN: %><script type="text/javascript" src="/Scripts/en-US.js"></script><% break;
|
||||
case Domain.Language.ZH_TW: %><script type="text/javascript" src="/Scripts/zh-TW.js"></script><% break;
|
||||
default: %><script type="text/javascript" src="/Scripts/zh-CN.js"></script><% break;
|
||||
} %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<%--<div>
|
||||
<%: ViewData["HotelName"] %>
|
||||
</div>--%>
|
||||
<div class="login-box">
|
||||
<form id="loginForm" method="post" action="/Home/LogOnByAndPassword/">
|
||||
<table>
|
||||
<col style="width: 80px;" />
|
||||
<tr>
|
||||
<th>
|
||||
<label for="txtAccount">
|
||||
<%: Html.Language("Account")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<input id="txtAccount" name="Account" type="text" value="<%: ViewData["Account"] %>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="txtPassword">
|
||||
<%: Html.Language("Password")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<input id="txtPassword" name="Password" type="password" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
<label for="txtCode">
|
||||
<%: Html.Language("VerificationCode")%>:</label>
|
||||
</th>
|
||||
<td>
|
||||
<input id="txtCode" name="Code" type="text" maxlength="4" />
|
||||
<img class="verify-code" src="/Home/ValidateCode/" alt='<%: Html.Language("ClickRefresh")%>'
|
||||
title='<%: Html.Language("ClickRefresh")%>' onclick="this.src=this.src+'?';" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<a id="btnLogin" href="javascript:void(0);" onclick="logOn();">
|
||||
<%: Html.Language("Login") %></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="lanuagebar">
|
||||
<select id="selLanguage" onchange="switchLanuage(this.value)" style="width: 241px;
|
||||
height: 36px; font-size: 15px; border: 1px solid #C7D9E7; color: black; background: #EBEBEB;">
|
||||
<option value="zh-cn" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.CN) ? "selected='selected'" : "" %>>
|
||||
简体中文</option><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %>
|
||||
<option value="zh-tw" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.ZH_TW) ? "selected='selected'" : "" %>>
|
||||
繁体中文</option>
|
||||
<option value="en" <%: (((Domain.Language)ViewData["Language"]) == Domain.Language.EN) ? "selected='selected'" : "" %>>
|
||||
ENGLISH</option><% } %>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" id="isSaveMsg" name="RememberMe" <%: (ViewData["RememberMe"] as bool?).Value ? "checked='checked'" : "" %>
|
||||
style="vertical-align: middle" />
|
||||
<label dir="ltr" for="checkbox" style="font-size: 14px; line-height: 14px">
|
||||
<%: Html.Language("RememberMe")%></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<label id="msg">
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer"><% if (Request.Url.Host.IndexOf("boonlive") > -1){ %>
|
||||
Copyright 2015 - 宝来威智能(广东)有限公司 版权所有 <a href="http://beian.miit.gov.cn" target="_blank">粤ICP备17103944号</a>
|
||||
<%}else if (Request.Url.Host.IndexOf("hogood") > -1) { %>
|
||||
Copyright 2015 - 住好智能科技(深圳)有限公司 版权所有 <a href="http://beian.miit.gov.cn" target="_blank">粤ICP备20063828号-3</a>
|
||||
<%}%>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
98
WebSite/Views/Home/SystemConfig.aspx
Normal file
98
WebSite/Views/Home/SystemConfig.aspx
Normal file
@@ -0,0 +1,98 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>系统配置</title>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="/easyui-1.4.2/themes/default/easyui.css" />
|
||||
<link type="text/css" rel="stylesheet" href="/easyui-1.4.2/themes/icon.css" />
|
||||
<link type="text/css" rel="stylesheet" href="/Styles/simon-common.css" />
|
||||
|
||||
<script type="text/javascript" src="/Scripts/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/easyui-1.4.2/jquery.easyui.min.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/zh-CN.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/common.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/tools.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
form {
|
||||
font-size: 12px;
|
||||
margin-top: 100px;
|
||||
}
|
||||
fieldset {
|
||||
width: 500px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #00A2EA;
|
||||
}
|
||||
fieldset legend {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
}
|
||||
fieldset table {
|
||||
margin: 0 auto;
|
||||
}
|
||||
fieldset table th {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function saveConfig() {
|
||||
var form = $('#configForm');
|
||||
if (form.form('enableValidation').form('validate')) {
|
||||
|
||||
var entry = form.serializeJson();
|
||||
|
||||
$.tools.post({ jsonData: JSON.stringify(entry) }, '/Home/SaveSystemConfig/', function (r) {
|
||||
$.tools.alert(r.Message);
|
||||
}, this);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="configForm" class="easyui-form" method="post" action="javascript:void(0)">
|
||||
<fieldset>
|
||||
<legend>系统配置</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<th><label>服务器IP:</label></th>
|
||||
<td>
|
||||
<select id="cbxServiceIp" name="MessageIP" class="easyui-combobox" style="width:130px;"
|
||||
data-optinos="
|
||||
required: true,
|
||||
panelHeight: 'auto',
|
||||
editable: false
|
||||
">
|
||||
<% foreach (var ip in Common.Tools.GetLocalIPList()) { %>
|
||||
<option value="<%: ip %>"><%: ip %></option>
|
||||
<% } %>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label>服务器端口:</label></th>
|
||||
<td>
|
||||
<input name="MessagePort" class="easyui-numberbox" style="width:130px;"
|
||||
value="3339"
|
||||
data-options="
|
||||
required: true,
|
||||
min: 1,
|
||||
max: 65535,
|
||||
precision: 0"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:center;">
|
||||
<a href="javascript:void(0)" onclick="saveConfig()" class="easyui-linkbutton" data-options="iconCls:'icon-save'">保存</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
14
WebSite/Views/Home/Test.aspx
Normal file
14
WebSite/Views/Home/Test.aspx
Normal file
@@ -0,0 +1,14 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<a href="/Home/Test?test=test">Test</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
61
WebSite/Views/Home/Welcome.aspx
Normal file
61
WebSite/Views/Home/Welcome.aspx
Normal file
@@ -0,0 +1,61 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="padding: 20px;">
|
||||
<table cellspacing="1" cellpadding="3" width="98%" align="center" bgcolor="#ffffff"
|
||||
border="0">
|
||||
<tbody>
|
||||
<tr bgcolor="gray">
|
||||
<td align="center" colspan="2" style="height: 25px; font-weight:bold;">
|
||||
<%: Html.Language("ServerParameter")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#f9fbf0">
|
||||
<td width="50%" style="height: 24px">
|
||||
<b> <%: Html.Language("ServerName")%></b>:<%=System.Environment.MachineName%>
|
||||
</td>
|
||||
<td width="50%" style="height: 24px">
|
||||
<b> <%: Html.Language("ServerPort")%>:</b><%= HttpContext.Current.Request.ServerVariables["Server_Port"].ToString() %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#f9fbf0">
|
||||
<td width="50%" style="height: 23px">
|
||||
<b> <%: Html.Language("ScriptExplainingEngine")%>:</b><%=System.Environment.Version%>
|
||||
</td>
|
||||
<td width="50%" style="height: 23px">
|
||||
<b> <%: Html.Language("SitePhysicalPath")%>:</b><%=HttpContext.Current.Request.PhysicalApplicationPath.ToString() %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#f9fbf0">
|
||||
<td width="50%" style="height: 23px">
|
||||
<b> <%: Html.Language("ServerCPUNumber")%>:</b><%=System.Environment.ProcessorCount %>
|
||||
</td>
|
||||
<td width="50%" style="height: 23px">
|
||||
<b> <%: Html.Language("IISServerVersion")%>:</b><%=Request.ServerVariables["SERVER_SOFTWARE"]%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#f9fbf0">
|
||||
<td width="50%">
|
||||
<b> <%: Html.Language("TheBootOperationTime")%></b>:<%=(System.Environment.TickCount/3600000).ToString("N2")%>
|
||||
<%: Html.Language("Hour")%>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<b> <%: Html.Language("ServerTime")%>:</b><%=DateTime.Now.ToString() %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#f9fbf0">
|
||||
<td colspan="2">
|
||||
<b> <%: Html.Language("TheServerOperatingSystem")%>:</b><span>
|
||||
<%=System.Environment.OSVersion.ToString()%></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user