StoreHouse.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Abp.Domain.Entities;
  9. namespace ShwasherSys.BasicInfo
  10. {
  11. [Table("StoreHouse")]
  12. public class StoreHouse:Entity<int>
  13. {
  14. //public int StoreHouseID { get; set; }
  15. public const int StoreHouseNameMaxLength = 50;
  16. public const int AddressMaxLength = 250;
  17. public const int TelMaxLength = 50;
  18. public const int FaxMaxLength = 50;
  19. public const int ContactManMaxLength = 50;
  20. public const int RemarkMaxLength = 500;
  21. public const int UserIDLastModMaxLength = 20;
  22. public const int IsLockMaxLength = 1;
  23. public const int StoreHouseNoMaxLength = 20;
  24. [Required]
  25. [StringLength(StoreHouseNameMaxLength)]
  26. public string StoreHouseName { get; set; }
  27. public int? StoreHouseTypeId { get; set; }
  28. [StringLength(AddressMaxLength)]
  29. public string Address { get; set; }
  30. [StringLength(TelMaxLength)]
  31. public string Tel { get; set; }
  32. [StringLength(FaxMaxLength)]
  33. public string Fax { get; set; }
  34. [StringLength(ContactManMaxLength)]
  35. public string ContactMan { get; set; }
  36. [StringLength(RemarkMaxLength)]
  37. public string Remark { get; set; }
  38. [StringLength(IsLockMaxLength)]
  39. public string IsLock { get; set; }
  40. [Column(TypeName = "smalldatetime")]
  41. public DateTime? TimeCreated { get; set; }
  42. [Column(TypeName = "smalldatetime")]
  43. public DateTime? TimeLastMod { get; set; }
  44. [StringLength(UserIDLastModMaxLength)]
  45. public string UserIDLastMod { get; set; }
  46. [StringLength(StoreHouseNoMaxLength)]
  47. public string StoreHouseNo { get; set; }
  48. }
  49. }