using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using WalkingTec.Mvvm.Core; namespace wtmProject.Model { public enum ContractCycleEnum { [Display(Name = "Sys.FirstCycle")] FirstCycle, [Display(Name = "Sys.SecondCycle")] SecondCycle, [Display(Name = "Sys.ThirdCycle")] ThirdCycle, [Display(Name = "Sys.FourCycle")] FourCycle, [Display(Name = "Sys.LastCycle")] LastCycle } /// /// WTM_CONTRACT /// [Table("WTM_CONTRACT")] public class WTM_CONTRACT : BasePoco, ITenant { [Display(Name = "_Admin.Tenant")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string TenantCode { get; set; } public WTM_CUSTOM Custom { get; set; } [Display(Name = "_Admin.CustomAllName")] public Guid? CustomId { get; set; } [Display(Name = "_Admin.CustomClass")] public CustomClassEnum? CustomClass { get; set; } public WTM_AREA Area { get; set; } [Display(Name = "_Admin.AreaName")] [Required(ErrorMessage = "Validate.{0}required")] public Guid? AreaId { get; set; } public WTM_CUSTOM_PERSON VisitObject { get; set; } [Display(Name = "_Admin.PersonName")] public Guid? VisitObjectId { get; set; } public FrameworkUser MarkManage { get; set; } [Display(Name = "_Admin.MarkManage")] public Guid? MarkManageId { get; set; } public WTM_PROJECT Project { get; set; } [Display(Name = "_Admin.ProjectName")] [Required(ErrorMessage = "Validate.{0}required")] public Guid? ProjectId { get; set; } [Display(Name = "_Admin.ContractName")] [Required(ErrorMessage = "Validate.{0}required")] [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")] public string ContractName { get; set; } [Display(Name = "_Admin.ContractCode")] [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")] public string ContractCode { get; set; } [Display(Name = "_Admin.SignDate")] [Required(ErrorMessage = "Validate.{0}required")] public DateTime? SignDate { get; set; } [Display(Name = "_Admin.ContractAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? ContractAmount { get; set; } [Display(Name = "_Admin.CostAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? CostAmount { get; set; } [Display(Name = "_Admin.ContractCycle")] public ContractCycleEnum? ContractCycle { get; set; } public FrameworkUser ProjectManage { get; set; } [Display(Name = "_Admin.ProjectManage")] public Guid? ProjectManageId { get; set; } [Display(Name = "_Admin.GrossProfitMargin")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string GrossProfitMargin { get; set; } [Display(Name = "Codegen.Attachment")] public List Files { get; set; } [Display(Name = "_Admin.Year")] public string Year { get; set; } [Display(Name = "_Admin.ERPCode")] public string ERPCode { get; set; } [Display(Name = "_Admin.ERPName")] public string ERPName { get; set; } [Display(Name = "_Admin.FirstBillingAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? FirstBillingAmount { get; set; } [Display(Name = "_Admin.SecondBillingAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? SecondBillingAmount { get; set; } [Display(Name = "_Admin.ThreeBillingAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? ThreeBillingAmount { get; set; } [Display(Name = "_Admin.FourthBillingAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? FourthBillingAmount { get; set; } [Display(Name = "_Admin.FifthBillingAmount")] [Column(TypeName = "decimal(18, 2)")] public decimal? FifthBillingAmount { get; set; } [Display(Name = "第三方成本")] [Column(TypeName = "decimal(18, 2)")] public decimal? DsfCostAmount { get; set; } } }