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();
|
}
|
|
|
return _h5Page;
|
}
|
set
|
{
|
_h5Page = value;
|
}
|
}
|
/// <summary>
|
/// 加载指定Url的webview
|
/// </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
|
}
|
|
}
|