using System; using System.ComponentModel; namespace CLIP.eForm.Consent.Entity { [Serializable] public class DeptListVO { public string deptCd { get; set; } public string deptNm { get; set; } public string deptAbbr { get; set; } public int sort { get; set; } public DeptListVO() { foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this)) { if (property.DisplayName == "sort") { property.SetValue(this, 0); } else { property.SetValue(this, ""); } } } public DeptListVO(string deptCd, string deptNm, string deptAbbr) { this.deptCd = deptCd; this.deptNm = deptNm; this.deptAbbr = deptAbbr; } } }