mh_custom/wtmProject.Model/FrameworkOutRecord.cs

61 lines
1.8 KiB
C#
Raw Normal View History

2024-05-16 17:30:33 +08:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
namespace wtmProject.Model
{
public enum OutRecordTypeEnum
{
[Display(Name = "Sys.Implement")]
Implement,
[Display(Name = "Sys.Visit")]
Visit,
[Display(Name = "Sys.Vacation")]
Vacation
}
/// <summary>
/// FrameworkOutRecord
/// </summary>
[Table("FrameworkOutRecords")]
public class FrameworkOutRecord : BasePoco, ITenant
{
public FrameworkUser User { get; set; }
[Display(Name = "_Admin.User")]
public Guid? UserId { get; set; }
[Display(Name = "_Admin.City")]
[StringLength(200, ErrorMessage = "Validate.{0}stringmax{1}")]
public string City { get; set; }
[Display(Name = "_Admin.OutStartTime")]
public DateTime? OutStartTime { get; set; }
[Display(Name = "_Admin.OutEndTime")]
public DateTime? OutEndTime { get; set; }
[Display(Name = "_Admin.OutRecordType")]
public OutRecordTypeEnum? OutRecordType { get; set; }
public FrameworkCustom Custom { get; set; }
[Display(Name = "_Admin.Custom")]
public Guid? CustomId { get; set; }
public FrameworkProject Project { get; set; }
[Display(Name = "_Admin.Project")]
public Guid? ProjectId { get; set; }
[Display(Name = "_Admin.Remark")]
[StringLength(500, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Remark { get; set; }
[Display(Name = "_Admin.Tenant")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string TenantCode { get; set; }
}
}