duheng
2025-03-27 d2ccacb3317aa6310f1b1bb5eb19fbdecba39ff9
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using PBS.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace PBS.WinFrmUI
{
    public class ElecPriceViewModel
    {
        public ElecPriceViewModel()
        {
 
        }
        public ElecPriceViewModel(string belongName,Vmo.ElecPriceHourSetting hour)
        {
            this.BelongName = belongName;
            this.StartHour = hour.StartHour;
            this.EndHour = hour.EndHour;
            this.Price = hour.Price;
            this.Description = hour.Description;
            this.TimeFrame = hour.TimeFrame;
 
        }
 
 
        public void Reset(Vmo.ElecPriceHourSetting hour)
        {
             this.StartHour = hour.StartHour;
            this.EndHour = hour.EndHour;
            this.Price = hour.Price;
            this.Description = hour.Description;
            this.TimeFrame = hour.TimeFrame;
         }
 
        [DisplayName("月份")]
        [Browsable(true)]
        public string BelongName { get; set; }
 
        [DisplayName("开始月份")]
        [Browsable(true)]
        public int StartMonth { get; set; }
 
        [DisplayName("结束月份")]
        [Browsable(true)]
        public int EndMonth { get; set; }
 
        /// <summary>
        /// 时段
        /// </summary>
        [DisplayName("时段")]
        [Browsable(true)]
        public eTimeFrame TimeFrame { get; set; }
 
        /// <summary>
        /// 开始小时(0-23)
        /// </summary>
        [DisplayName("开始时间")]
        [Browsable(true)]
        public int StartHour { get; set; }
 
        /// <summary>
        /// 结束小时(0-23)
        /// </summary>
        [DisplayName("结束时间")]
        [Browsable(true)]
        public int EndHour { get; set; }
 
        /// <summary>
        /// 价格
        /// </summary>
        [DisplayName("价格")]
        [Browsable(true)]
        public double Price { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        [Browsable(true)]
        public string Description { get; set; }
    }
}