CmPartner.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 CmPartner {
  7. public CmPartner() {
  8. FmsConstruction = new HashSet<FmsConstruction>();
  9. FmsContract = new HashSet<FmsContract>();
  10. FmsWorkRequest = new HashSet<FmsWorkRequest>();
  11. FmsWorkSchedule = new HashSet<FmsWorkSchedule>();
  12. }
  13. //협력업체 정보
  14. [Display(Name = "현장 고유번호"), Key]
  15. public int SiteId { get; set; }
  16. [Display(Name = "협력업체 고유번호"), Key]
  17. public int PartnerId { get; set; }
  18. [Display(Name = "협력업체 유형"), Required]
  19. public int PartnerTypeId { get; set; }
  20. [Display(Name = "업무분야")]
  21. public int? BusinessFieldId { get; set; }
  22. [Display(Name = "협력업체 명"), Required]
  23. [StringLength(50)]
  24. public string Name { get; set; }
  25. [Display(Name = "등록번호")]
  26. [StringLength(24)]
  27. public string RegistrationNo { get; set; }
  28. [Display(Name = "대표자 명")]
  29. [StringLength(20)]
  30. public string RepresentativeName { get; set; }
  31. [Display(Name = "전화번호")]
  32. [StringLength(20)]
  33. public string PhoneNo { get; set; }
  34. [Display(Name = "팩스번호")]
  35. [StringLength(20)]
  36. public string FaxNo { get; set; }
  37. [Display(Name = "담당자 명")]
  38. [StringLength(20)]
  39. public string SalesName { get; set; }
  40. [Display(Name = "담당자 전화번호")]
  41. [StringLength(20)]
  42. public string SalesPhoneNo { get; set; }
  43. [Display(Name = "우편번호1")]
  44. public string AddressZip1 { get; set; }
  45. [Display(Name = "우편번호2")]
  46. public string AddressZip2 { get; set; }
  47. [Display(Name = "주소1")]
  48. [StringLength(50)]
  49. public string Address1 { get; set; }
  50. [Display(Name = "상세 주소")]
  51. [StringLength(100)]
  52. public string Adderss2 { get; set; }
  53. [Display(Name = "홈페이지 주소")]
  54. [StringLength(100)]
  55. public string HomepageUri { get; set; }
  56. [Display(Name = "비고")]
  57. [StringLength(1024)]
  58. public string Note { get; set; }
  59. [Display(Name = "사용유무")]
  60. public bool? IsUse { get; set; }
  61. [ForeignKey("SiteId")]
  62. public virtual CmSite CmSite { get; set; }
  63. [ForeignKey(nameof(PartnerTypeId))]
  64. [InverseProperty(nameof(CmPartnerType.CmPartner))]
  65. public virtual CmPartnerType PartnerType { get; set; }
  66. [ForeignKey("BusinessFieldId")]
  67. public virtual CmBusinessField BusinessField { get; set; }
  68. [InverseProperty("CmPartner")]
  69. public virtual ICollection<FmsConstruction> FmsConstruction { get; set; }
  70. [InverseProperty("CmPartner")]
  71. public virtual ICollection<FmsContract> FmsContract { get; set; }
  72. [InverseProperty("CmPartner")]
  73. public virtual ICollection<FmsWorkRequest> FmsWorkRequest { get; set; }
  74. [InverseProperty("CmPartner")]
  75. public virtual ICollection<FmsWorkSchedule> FmsWorkSchedule { get; set; }
  76. }
  77. }