CmCompany.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class CmCompany {
  7. public CmCompany() {
  8. CmDepartment = new HashSet<CmDepartment>();
  9. CmUser = new HashSet<CmUser>();
  10. FmsAccident = new HashSet<FmsAccident>();
  11. }
  12. [Display(Name = "현장 고유번호"), Key]
  13. public int SiteId { get; set; }
  14. [Display(Name = "회사 고유번호"), Key]
  15. public int CompanyId { get; set; }
  16. [Display(Name = "회사 유형번호")]
  17. public int CompanyTypeId { get; set; }
  18. [Display(Name = "회사명"), Required]
  19. [StringLength(50)]
  20. public string Name { get; set; }
  21. [Display(Name = "회사 전화번호"), Required]
  22. [StringLength(20)]
  23. public string PhoneNo { get; set; }
  24. [Display(Name = "회사 팩스번호")]
  25. [StringLength(20)]
  26. public string FaxNo { get; set; }
  27. [Display(Name = "대표자명"), Required]
  28. [StringLength(20)]
  29. public string RepresentativeName { get; set; }
  30. [Display(Name = "영업 담당자 이름")]
  31. [StringLength(20)]
  32. public string SalesName { get; set; }
  33. [Display(Name = "영업 담당자 전화번호")]
  34. [StringLength(20)]
  35. public string SalesPhoneNo { get; set; }
  36. [Display(Name = "우편번호 앞자리")]
  37. [StringLength(5)]
  38. public string AddressZip1 { get; set; }
  39. [Display(Name = "우편번호 뒷자리")]
  40. [StringLength(3)]
  41. public string AddressZip2 { get; set; }
  42. [Display(Name = "주소 1")]
  43. [StringLength(50)]
  44. public string Address1 { get; set; }
  45. [Display(Name = "주소 2")]
  46. [StringLength(100)]
  47. public string Adderss2 { get; set; }
  48. [Display(Name = "홈페이지 주소")]
  49. [StringLength(100)]
  50. public string Homepage { get; set; }
  51. [Display(Name = "비고")]
  52. [StringLength(1024)]
  53. public string Comment { get; set; }
  54. [Display(Name = "사용 유무")]
  55. public bool? IsUse { get; set; }
  56. [ForeignKey("CompanyTypeId")]
  57. [InverseProperty("CmCompany")]
  58. public virtual CmCompanyType CmCompanyType { get; set; }
  59. [ForeignKey(nameof(SiteId))]
  60. [InverseProperty(nameof(CmSite.CmCompany))]
  61. public virtual CmSite Site { get; set; }
  62. [InverseProperty("CmCompany")]
  63. public virtual ICollection<CmDepartment> CmDepartment { get; set; }
  64. [InverseProperty("CmCompany")]
  65. public virtual ICollection<CmUser> CmUser { get; set; }
  66. [InverseProperty("CmCompany")]
  67. public virtual ICollection<FmsAccident> FmsAccident { get; set; }
  68. }
  69. }