duheng
2024-11-08 bb817e5d4ba0afa9848cc80375ee2e10105e106e
WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/00-ViewModel/SysCatalogViewModel.cs
@@ -1,8 +1,12 @@
namespace HStation.WinFrmUI.Basic
{
    public class SysCatalogViewModel : Yw.Dto.SysCatalogDto
    public class SysCatalogViewModel
    {
        public SysCatalogViewModel(Yw.Dto.SysCatalogDto rhs)
        public SysCatalogViewModel()
        {
        }
        public SysCatalogViewModel(SysCatalogViewModel rhs)
        {
            this.ID = rhs.ID;
            this.ParentID = rhs.ParentID;
@@ -13,12 +17,37 @@
            this.Code = rhs.Code;
        }
        public void Reset(Yw.Dto.UpdateSysCatalogInput rhs)
        public SysCatalogViewModel(Yw.Vmo.SysCatalogVmo rhs)
        {
            this.ID = rhs.ID;
            this.ParentID = rhs.ParentID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.TypeID = rhs.TypeID;
            this.SortCode = rhs.SortCode;
            this.Code = rhs.Code;
        }
        public void Reset(Yw.Vmo.SysCatalogVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
        }
        public long ID { get; set; }
        public long ParentID { get; set; }
        public long TypeID { get; set; }
        public string Name { get; set; }
        public string Code { get; set; }
        public int SortCode { get; set; }
        public string Description { get; set; }
    }
}