ホテル管理システム
ogi
yesterday 1a1c8e71fcd14858f595029f089b2d4a00202b32
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
 
namespace HotelPms.Client.Blazor.ViewModel
{
    public class ColSettingRow
    {
        public int ID { get; set; }
 
        public string Name { get; set; } = string.Empty;
        public bool Frozen { get; set; } = false;
 
        public int Width { get; set; } = 100;
 
        public string ClassName { get; set; } = string.Empty;
 
        /// <summary>
        /// 選択する
        /// </summary>
        public void Select()
        {
            ClassName = "tr-select";
        }
 
        public ColSettingRow DeepClone()
        {
            ColSettingRow item = new ColSettingRow();
            item.ID = ID;
            item.Name = Name;
            item.Frozen = Frozen;
            item.Width = Width;
            item.ClassName = ClassName;
            return item;
        }
 
        public void CopyTo(ColSettingRow item)
        {
            item.ID = ID;
            item.Name = Name;
            item.Frozen = Frozen;
            item.Width = Width;
            item.ClassName = ClassName;
        }
    }
}