using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Model
|
{
|
/// <summary>
|
/// 电力价格月设置
|
/// </summary>
|
public class ElecPriceMonthSetting
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public ElecPriceMonthSetting() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public ElecPriceMonthSetting(ElecPriceMonthSetting rhs)
|
{
|
this.Name = rhs.Name;
|
this.StartMonth = rhs.StartMonth;
|
this.EndMonth = rhs.EndMonth;
|
this.HourList = rhs.HourList?.Select(x => new ElecPriceHourSetting(x)).ToList();
|
this.Description= rhs.Description;
|
}
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 开始月份(1-12)
|
/// </summary>
|
public int StartMonth { get; set; }
|
|
/// <summary>
|
/// 结束月份(1-12)
|
/// </summary>
|
public int EndMonth { get; set; }
|
|
/// <summary>
|
/// 时列表
|
/// </summary>
|
public List<ElecPriceHourSetting> HourList { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Description { get; set; }
|
}
|
}
|