From c207cd8df8a432d044bbc9e0da7f05d200769ef1 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 02 九月 2022 16:41:45 +0800
Subject: [PATCH] 合并光伏储能代码

---
 HDL_ON/Entity/Function/InverterInfo.cs |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Entity/Function/InverterInfo.cs b/HDL_ON/Entity/Function/InverterInfo.cs
index 5e73d1f..fc548f2 100644
--- a/HDL_ON/Entity/Function/InverterInfo.cs
+++ b/HDL_ON/Entity/Function/InverterInfo.cs
@@ -1,8 +1,63 @@
 锘縰sing System;
 using System.Collections.Generic;
+using HDL_ON.UI.UI2;
+using Shared;
 
 namespace HDL_ON.Entity
 {
+
+    public class Inverter
+    {
+        static Inverter _control;
+        public static Inverter Ins
+        {
+            get
+            {
+                if (_control == null)
+                {
+                    _control = new Inverter();
+                }
+                return _control;
+            }
+        }
+
+
+        WebView _h5Page;
+
+        string showPageUrl = "";
+
+        public WebView H5Page
+        {
+            get
+            {
+                if(_h5Page == null)
+                {
+                    _h5Page = new WebView();
+                    //_h5Page.CallJS("action('back')");
+                }
+                return _h5Page;
+            }
+            set
+            {
+                _h5Page = value;
+            }
+        }
+        /// <summary>
+        /// 鍔犺浇鎸囧畾Url鐨剋ebview
+        /// </summary>
+        /// <param name="showUrl"></param>
+        public void ShowWebviewFormUrl(string showUrl)
+        {
+            if(showUrl == showPageUrl)
+            {
+                return;
+            }
+            showPageUrl = showUrl;
+            _h5Page.LoadFileUrl(showPageUrl);
+        }
+
+    }
+
     /// <summary>
 	/// 鍏変紡鏁版嵁
 	/// </summary>

--
Gitblit v1.8.0