From bbd6b592a6b883e013ff1e0a574976ceba5009ea Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 27 十月 2022 09:11:33 +0800 Subject: [PATCH] Merge branch 'dev--wxr' --- HDL_ON/Entity/Function/InverterInfo.cs | 123 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 123 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..e119a6a --- /dev/null +++ b/HDL_ON/Entity/Function/InverterInfo.cs @@ -0,0 +1,123 @@ +锘縰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(); + } + + + 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> + /// h5鐣岄潰鐨勯〉闈㈢储寮� + /// </summary> + public string PageIndex = "1"; + + } + + /// <summary> + /// 鍏変紡鏁版嵁 + /// </summary> + public class InverterInfo : Function + { + 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 + } + + + /// <summary> + /// 瀹跺涵鍏変紡缁熻鏁版嵁 + /// </summary> + public class StatisticsInfo + { + public string workMode;// 宸ヤ綔妯″紡 String + public string totalElectricityPvToday;// 浠婃棩鍙戠數閲� String + public string totalElectricityPvMonth;// 鏈湀鍙戠數閲� String + public string totalElectricityPvYear;// 鏈勾鍙戠數閲� String + public string totalElectricityPv;//鎬诲彂鐢甸噺 String + public string powerPvNow;// 褰撳墠鍙戠數鍔熺巼 String + public string powerRNow;// 褰撳墠鐢佃〃鍔熺巼 String + public string batteryPowerNow;// 褰撳墠鐢垫睜鍔熺巼 String + public string powerLoadNow;//褰撳墠璐熻浇鍔熺巼 String + public string batterySoc;// 鐢垫睜soc String + public string systemStatus;// 鐘舵�� String + public string earningsToday;// 浠婃棩鏀剁泭 String + } + +} + -- Gitblit v1.8.0