duheng
2025-02-19 a5b25c4f314079d293bf159ed6f0d7dcbadadbb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 损失曲线下降视图
    /// </summary>
    public class HydroLossCurveLowerViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroLossCurveLowerViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroLossCurveLowerViewModel(List<HydroLossCurveItemViewModel> allItemList)
        {
            if (allItemList == null || allItemList.Count < 1)
            {
                return;
            }
            this.Items = new List<HydroLossCurvePointVieModel>();
            foreach (var item in allItemList)
            {
                this.Items.Add(new HydroLossCurvePointVieModel(item.Name, item.Code, item.Distance, item.StartHead));
                this.Items.Add(new HydroLossCurvePointVieModel(item.Name, item.Code, item.Distance, item.EndHead));
            }
        }
 
        /// <summary>
        /// 子级集合
        /// </summary>
        public List<HydroLossCurvePointVieModel> Items { get; set; }
 
    }
}