From 9eec81850e418a3c16410b4870910bde142b06e3 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 14 九月 2022 15:50:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/Dev-Branch' into wjc --- HDL_ON/Entity/Function/InverterInfo.cs | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 98 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/InverterInfo.cs b/HDL_ON/Entity/Function/InverterInfo.cs new file mode 100644 index 0000000..dd94d57 --- /dev/null +++ b/HDL_ON/Entity/Function/InverterInfo.cs @@ -0,0 +1,98 @@ +锘縰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> + public class InverterInfo + { + public InverterInfo() + { + } + + public string gatewayId;// 缃戝叧Id long + public string gatewayName;//缃戝叧鍚嶇О String + public string deviceId;// 璁惧id Long + public string name;//璁惧鍚嶇О string + public string spk;//璁惧spk string + public string sid;//璁惧sid string + public string oid;//璁惧oid string + public string omodel;// 璁惧鍨嬪彿 string + public string osn;// 璁惧sn + public string powerPvNow;// 褰撳墠鍙戠數鍔熺巼 String + public string totalElectricityPvToday;// 浠婃棩鍙戠數閲� String + public string systemStatus;// 鐘舵�� String + public string inv;// 閫嗗彉鍣ㄧ姸鎬� String + public List<InverterStatusInfo> status = new List<InverterStatusInfo>();// 灞炴�у綋鍓嶇姸鎬� array + + } + /// <summary> + /// 閫嗗彉鍣ㄧ姸鎬� + /// </summary> + public class InverterStatusInfo + { + public string key;// 灞炴�у悕绉� string + public string value;// 灞炴�у�� string + } +} + -- Gitblit v1.8.0