129 lines
6.0 KiB
Plaintext
129 lines
6.0 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmMainMobile.aspx.cs" Inherits="NGTools.frmMainMobile" %>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css">
|
|
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
<script src="https://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
|
|
<script src="../MYJS/JsEncryptHelper.js"></script>
|
|
<script src="../MYJS/MyTools.js"></script>
|
|
</head>
|
|
<body>
|
|
<div data-role="page">
|
|
<div data-role="header" data-position="fixed" data-tap-toggle="false">
|
|
<h1>天然气工业计算工具集</h1>
|
|
</div>
|
|
<div data-role="main" class="ui-content">
|
|
<%-- <a style="font-size: xx-large; color: #FF0000">开发中,请先使用电脑版本!</a>--%>
|
|
<div data-role="collapsible-set">
|
|
<div data-role="collapsible">
|
|
<h1>流量计算</h1>
|
|
<a onclick="window.open('A_FlowCal/Orifice.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">差压式流量计算</a>
|
|
<a onclick="window.open('A_FlowCal/SuduCal.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">速度式流量计算</a>
|
|
<a onclick="window.open('A_FlowCal/penzui.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">音速喷嘴流量计算</a>
|
|
</div>
|
|
<div data-role="collapsible">
|
|
<h1>参数计算</h1>
|
|
<a onclick="window.open('B_ParCal/NGParCal.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">天然气参数计算</a>
|
|
<a onclick="window.open('B_ParCal/Z_TableCal.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">压缩因子表格计算</a>
|
|
</div>
|
|
<div data-role="collapsible">
|
|
<h1>CNG计算</h1>
|
|
<a onclick="window.open('C_CNG/CNGV_TableCal.aspx')" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ">CNG体积表格计算</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<%-- <div class="ui-block-a">
|
|
<span>流量计算</span>
|
|
<span><a onclick="window.open('A_FlowCal/Orifice.aspx')" class="ui-btn ui-corner-all ui-shadow ">差压式流量计算</a></span>
|
|
<span><a onclick="window.open('A_FlowCal/SuduCal.aspx')" class="ui-btn ui-corner-all ui-shadow ">速度式流量计算</a></span>
|
|
<span><a onclick="window.open('A_FlowCal/penzui.aspx')" class="ui-btn ui-corner-all ui-shadow ">音速喷嘴流量计算</a></span>
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<span>第二个列</span>
|
|
<span><a onclick="window.open('B_ParCal/NGParCal.aspx')" class="ui-btn ui-corner-all ui-shadow ">天然气参数计算</a></span>
|
|
<span><a onclick="window.open('B_ParCal/Z_TableCal.aspx')" class="ui-btn ui-corner-all ui-shadow ">压缩因子表格计算</a></span>
|
|
|
|
</div>
|
|
<div class="ui-block-c">
|
|
<span>第三个列</span>
|
|
<span><a onclick="window.open('C_CNG/CNGV_TableCal.aspx')" class="ui-btn ui-corner-all ui-shadow ">CNG体积表格计算</a></span>
|
|
</div>--%>
|
|
|
|
|
|
|
|
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
|
|
<a href="#" class="ui-btn ui-corner-all ui-shadow ">设置</a>
|
|
<a href="#" class="ui-btn ui-corner-all ui-shadow ">功能</a>
|
|
<a href="#" onclick="loginout()" class="ui-btn ui-corner-all ui-shadow ">退出</a>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
var jsonGn = undefined;
|
|
|
|
$(document).on("pageinit", function () {
|
|
|
|
var url = '../pages/frmMain.aspx?action=getSystemTree' + "&t=" + Date.parse(new Date());
|
|
$.ajax({
|
|
type: 'post',
|
|
dataType: "json",
|
|
url: url,
|
|
success: function (data) {
|
|
|
|
|
|
}
|
|
})
|
|
|
|
});
|
|
|
|
function loginout() {
|
|
$.messager.confirm('系统提示', '您确定要退出本次登录吗?', function (r) {
|
|
if (r) {
|
|
checkLogin("0");
|
|
location.href ="frmLoginMobile.aspx";
|
|
}
|
|
});
|
|
}
|
|
|
|
function checkLogin(loginflag) {
|
|
|
|
if ('<%=Session["userName"] %>' == "") {
|
|
top.location.href = "frmLoginMobile.aspx";
|
|
}
|
|
|
|
var myDate = new Date();
|
|
var strDatetime = ""; //获取日期与时间
|
|
strDatetime += myDate.getFullYear() + "_"; //获取完整的年份(4位,1970-????)
|
|
strDatetime += (myDate.getMonth() + 1) + "_"; //获取当前月份(0-11,0代表1月) // 所以获取当前月份是myDate.getMonth()+1;
|
|
strDatetime += myDate.getDate() + " "; //获取当前日(1-31)
|
|
strDatetime += myDate.getHours() + ":"; //获取当前小时数(0-23)
|
|
strDatetime += myDate.getMinutes() + ":"; //获取当前分钟数(0-59)
|
|
strDatetime += myDate.getSeconds(); //获取当前秒数(0-59)
|
|
|
|
$.ajax({
|
|
type: "post",
|
|
url: '../pages/frmMain.aspx?action=updateLogin&' + "t=" + Date.parse(new Date()),
|
|
dataType: "json",
|
|
data: { username: '<%=Session["userName"] %>', loginflag: loginflag, datetime: strDatetime },
|
|
traditional: true,
|
|
success: function (data) {
|
|
|
|
//alert(JSON.stringify(data));
|
|
|
|
//$('#formPar').form('load', data);
|
|
$.messager.alert("提示", data);
|
|
|
|
}
|
|
})
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|