CategoryForDropdownVO.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved.
  2. //
  3. // All rights are reserved. Reproduction or transmission in whole or in part,
  4. // in any form or by any means, electronic, mechanical or otherwise, is
  5. // prohibited without the prior written consent of the copyright owner.
  6. //
  7. // Filename:CategoryForDropdownVO.cs
  8. //
  9. #endregion
  10. using System;
  11. using System.ComponentModel;
  12. namespace CLIP.eForm.Consent.Entity {
  13. /// <summary>
  14. /// 서식 종류를 Dropdown에서 선택하기 위한 데이터 엔터티
  15. /// </summary>
  16. /// <remarks>
  17. /// <p>[설계자]</p>
  18. /// <p> 클립소프트 기술부 4팀 이창훈 (chlee@clipsoft.co.kr)</p>
  19. /// <p>[원본 작성자]</p>
  20. /// <p> 클립소프트 기술부 4팀 이창훈 (chlee@clipsoft.co.kr)</p>
  21. /// <p>[수정 작성자]</p>
  22. /// <p></p>
  23. /// <p>----------------------------------------------------------------------------------------</p>
  24. /// <p>[HISTORY]</p>
  25. /// <p> 2016-05-20 : 최초작성</p>
  26. /// <p>----------------------------------------------------------------------------------------</p>
  27. /// </remarks>
  28. [Serializable]
  29. public class CategoryForDropdownVO {
  30. public CategoryForDropdownVO() {
  31. foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this)) {
  32. if (property.DisplayName == "categoryId") {
  33. property.SetValue(this, 0);
  34. } else if (property.DisplayName == "parentCategoryId") {
  35. property.SetValue(this, 0);
  36. } else {
  37. property.SetValue(this, "");
  38. }
  39. }
  40. }
  41. public int categoryId { get; set; }
  42. public string categoryCode { get; set; }
  43. public int parentCategoryId { get; set; }
  44. public string categoryName { get; set; }
  45. }
  46. }