using 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; } } /// /// 加载指定Url的webview /// /// public void ShowWebviewFormUrl(string showUrl) { if (showUrl == showPageUrl) { return; } showPageUrl = showUrl; _h5Page.LoadFileUrl(showPageUrl); } } /// /// 光伏数据 /// 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 status = new List();// 属性当前状态 array } /// /// 逆变器状态 /// public class InverterStatusInfo { public string key;// 属性名称 string public string value;// 属性值 string } }