DeptListVO.cs.svn-base 734 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.ComponentModel;
  3. namespace CLIP.eForm.Consent.Entity {
  4. [Serializable]
  5. public class DeptListVO {
  6. public string deptCd { get; set; }
  7. public string deptNm { get; set; }
  8. public string deptAbbr { get; set; }
  9. public int sort { get; set; }
  10. public DeptListVO() {
  11. foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this)) {
  12. if (property.DisplayName == "sort") {
  13. property.SetValue(this, 0);
  14. } else {
  15. property.SetValue(this, "");
  16. }
  17. }
  18. }
  19. public DeptListVO(string deptCd, string deptNm, string deptAbbr) {
  20. this.deptCd = deptCd;
  21. this.deptNm = deptNm;
  22. this.deptAbbr = deptAbbr;
  23. }
  24. }
  25. }