<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title></title>
|
<!--<link href="../Theme/Boostrap/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
<link href="../Theme/Boostrap/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
|
<link href="../Theme/Boostrap/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
|
<link href="../Theme/plugins/jbox-v2.3/jBox/Skins2/Gray/jbox.css" rel="stylesheet" />
|
|
<link href="../Content/sharestyle.css" rel="stylesheet" />-->
|
<link href="../Theme/css/bootstrap-grid.min.css" rel="stylesheet" />
|
<style type="text/css">
|
.copyright {
|
width: 100%;
|
height: 30px;
|
line-height: 30px;
|
text-align: center;
|
color: #dadada;
|
background: #999999; /*#999999; #6e6e6e*/
|
font-size: 12px;
|
position: fixed;
|
bottom: 0px;
|
left: 0px;
|
}
|
|
.ptxt {
|
margin: 0;
|
}
|
|
/*.lianJie {
|
display: inline-block;
|
position: fixed;
|
bottom: 0px;
|
right: 10px;
|
color: black;
|
}*/
|
|
.ziRefresh {
|
/*display: inline-block;*/
|
position: fixed;
|
bottom: 0px;
|
left: 10px;
|
color: black;
|
}
|
</style>
|
</head>
|
<body>
|
<div class="copyright">
|
<p class="ptxt">仓储控制系统:1.0</p>
|
<!--<div class="lianJie">
|
设备连接状态:<strong id="plcStatus">已连接</strong>
|
</div>-->
|
<div class="ziRefresh">
|
<!-- 自刷新 开启/关闭 -->
|
<div style="display: inline-block">
|
自刷新 <button type="button" id="refreshBtn1" class="btn btn-success btn-xs">开启</button>
|
<button type="button" id="refreshBtn2" class="btn btn-danger btn-xs">关闭</button>
|
</div>
|
<!-- 服务 开启/关闭 -->
|
<!-- 联机模式 开启/关闭 -->
|
<div style="display: inline-block; margin-left: 10px;">
|
联机模式 <button type="button" id="fuWuBtn1" class="btn btn-success btn-xs">自动</button>
|
<button type="button" id="fuWuBtn2" class="btn btn-danger btn-xs">手动</button>
|
</div>
|
<!-- 演示模式 开启/关闭 -->
|
<div style="display: inline-block; margin-left: 10px;">
|
演示模式 <button type="button" id="DemoBtn1" class="btn btn-success btn-xs">开启</button>
|
<button type="button" id="DemoBtn2" class="btn btn-danger btn-xs">关闭</button>
|
</div>
|
<!-- 脱机 开启/关闭 -->
|
<div style="display: inline-block; margin-left: 10px;">
|
脱机 <button type="button" id="tuoJiBtn1" class="btn btn-success btn-xs">开启</button>
|
<button type="button" id="tuoJiBtn2" class="btn btn-danger btn-xs">关闭</button>
|
</div>
|
|
|
</div>
|
</div>
|
|
<script src="../Theme/Js/jquery-1.8.3.min.js"></script>
|
|
<script src="/Theme/Js/Common.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
$.gitAjax({
|
url: "/HomeAjax/GetFuWu",
|
data: { ajaxdata: JSON.stringify(null) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
if (result.Code == true) {
|
$("#fuWuBtn1").hide();
|
} else {
|
$("#fuWuBtn2").hide();
|
}
|
|
}
|
});
|
|
$.gitAjax({
|
url: "/HomeAjax/GetRefresh",
|
data: { ajaxdata: JSON.stringify(null) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
if (result.Code == true) {
|
$("#refreshBtn1").hide();
|
} else {
|
$("#refreshBtn2").hide();
|
}
|
|
}
|
});
|
|
//获取脱机状态
|
$.gitAjax({
|
url: "/HomeAjax/GetTuoji",
|
data: { ajaxdata: JSON.stringify(null) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
if (result.Code == true) {
|
$("#tuoJiBtn1").hide();
|
} else {
|
$("#tuoJiBtn2").hide();
|
}
|
|
}
|
});
|
|
//获取演示模式状态
|
$.gitAjax({
|
url: "/HomeAjax/GetDemo",
|
data: { ajaxdata: JSON.stringify(null) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
if (result.Code == true) {
|
$("#DemoBtn1").hide();
|
} else {
|
$("#DemoBtn2").hide();
|
}
|
|
}
|
});
|
});
|
|
|
|
$("#refreshBtn1").click(function () {
|
var param = {};
|
param["Dome"] = "true";
|
|
$.gitAjax({
|
url: "/HomeAjax/Refresh",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#refreshBtn1").hide();
|
$("#refreshBtn2").show();
|
});
|
$("#refreshBtn2").click(function () {
|
var param = {};
|
param["Dome"] = "false";
|
|
$.gitAjax({
|
url: "/HomeAjax/Refresh",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#refreshBtn2").hide();
|
$("#refreshBtn1").show();
|
});
|
|
|
|
$("#fuWuBtn1").click(function () {
|
|
var param = {};
|
param["Dome"] = "true";
|
|
$.gitAjax({
|
url: "/HomeAjax/FuWu",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#fuWuBtn1").hide();
|
$("#fuWuBtn2").show();
|
});
|
|
$("#fuWuBtn2").click(function () {
|
|
var param = {};
|
param["Dome"] = "false";
|
|
$.gitAjax({
|
url: "/HomeAjax/FuWu",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#fuWuBtn2").hide();
|
$("#fuWuBtn1").show();
|
});
|
|
$("#tuoJiBtn1").click(function () {
|
|
var param = {};
|
param["Dome"] = "true";
|
|
$.gitAjax({
|
url: "/HomeAjax/Tuoji",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#tuoJiBtn1").hide();
|
$("#tuoJiBtn2").show();
|
});
|
|
$("#tuoJiBtn2").click(function () {
|
|
var param = {};
|
param["Dome"] = "false";
|
|
$.gitAjax({
|
url: "/HomeAjax/Tuoji",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#tuoJiBtn2").hide();
|
$("#tuoJiBtn1").show();
|
});
|
|
$("#DemoBtn1").click(function () {
|
|
var param = {};
|
param["Dome"] = "true";
|
|
$.gitAjax({
|
url: "/HomeAjax/Demo",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#DemoBtn1").hide();
|
$("#DemoBtn2").show();
|
});
|
|
$("#DemoBtn2").click(function () {
|
|
var param = {};
|
param["Dome"] = "false";
|
|
$.gitAjax({
|
url: "/HomeAjax/Demo",
|
data: { ajaxdata: JSON.stringify(param) },
|
type: "get",
|
dataType: "json",
|
success: function (result) {
|
|
}
|
});
|
$("#DemoBtn2").hide();
|
$("#DemoBtn1").show();
|
});
|
|
</script>
|
</body>
|
</html>
|