duheng
2024-11-29 5c14c9686d2bd7c99fdd6cc6fc19404e6e4b8e4d
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
using Yw.Untity;
 
namespace HStation.WinFrmUI.WE
{
    public class CatalogueViewModel
    {
        public CatalogueViewModel()
        {
        }
 
        public CatalogueViewModel(Vmo.WE.CatalogueVmo rhs)
        {
            this.Name = rhs.Name;
            this.ID = rhs.ID;
            this.ParentID = TreeParentIdsHelper.GetLastParentID(rhs.ParentIds);
            this.Description = rhs.Description;
        }
 
        public void Reset(Vmo.WE.CatalogueVmo rhs)
        {
            this.Name = rhs.Name;
            this.ID = rhs.ID;
            this.ParentID = TreeParentIdsHelper.GetLastParentID(rhs.ParentIds);
            this.Description = rhs.Description;
        }
 
        public string Name { get; set; }
        public long ID { get; set; }
        public long ParentID { get; set; }
        public string Description { get; set; }
    }
}