OPC.UA.Web.Client/obj/Release/Package/PackageTmp/Detail.aspx

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="OPC.UA.Web.Client.Detail" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>湖南力本种业科技有限公司</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="alternate icon" type="image/png" href="assets/i/logo.ico" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <script src="assets/js/jquery.min.js"></script>

    <script src="assets/js/amazeui.min.js"></script>
    <script>
        function start() {
            var arrs=new Array();
            socket = new WebSocket('ws://125.74.221.117:8885/');
            //打开事件
            socket.onopen = function () {

              //  $("#serverState").attr("style", "color:green").text("服务器连接成功!")


                // alert("Socket 已打开");
                //socket.send("这是来自客户端的消息" + location.href + new Date());
            };
            //获得消息事件
            socket.onmessage = function (msg) {
                var obj = JSON.parse(msg.data);
                
                var tr = $("#dataTables table tr td[key='AUTOMATION_HNWY.CPU414.CW.DATA" + obj.key + "']").parent();
                $("#dataTables table tr td[key='AUTOMATION_HNWY.CPU414.CW.DATA" + obj.key + "']").text(parseFloat(obj.value).toFixed(1))
                $(tr).children().eq(3).text(((parseFloat($(tr).children().eq(0).text()) + parseFloat($(tr).children().eq(1).text()) + parseFloat($(tr).children().eq(2).text()))/3).toFixed(1))
                var sum = 0;
                var min=99;
                $.each($("#dataTables table tr td[key]"), function () {
                    var num = parseFloat($(this).text());
                    if (min > num) {
                        min = num;
                    }
                    arrs.push(num);
                    sum += num;
                })

                $("#max").text(Math.max.apply(null, arrs).toFixed(1));
                $("#min").text(min.toFixed(1));
                $("#center").text((sum / 15).toFixed(1));
              
                if (obj.key.indexOf("Current_state") > -1) {
                   
                    if (obj.value == "True") {

                        $("#img_fj").prop("src", "images/timg.gif")
后面还有 250 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。