using Mapster;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cylsg.Model.ECTEModel
{
///
/// 工作计划审批表
///
[Tenant("ECTESTOADB")]
[SugarTable("Oa_WorkPlan_shenpi")]
public class OaWorkPlanShenpi
{
///
/// 主键ID
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int? Keyid { get; set; }
///
/// 工作计划ID 报销单ID
///
[SugarColumn(ColumnName = "OA_WorkPlanId")]
public int? OA_WorkPlanId { get; set; }
///
/// 审批人编号
///
[SugarColumn(ColumnName = "ApprovalStaffId")]
public Guid? ApprovalStaffId { get; set; }
///
/// 审批人
///
[Navigate(NavigateType.OneToOne, nameof(ApprovalStaffId), nameof(OaStaff.MemberId))]
public OaStaff? ApprovalStaff { get; set; }
///
/// 审批状态
///
[SugarColumn(ColumnName = "ApprovalStatus")]
[Required]
public PlanStatusType? ApprovalStatus { get; set; }
///
/// 审批时间
///
[SugarColumn(ColumnName = "ApprovalTime")]
public DateTime? ApprovalTime { get; set; }
///
/// 审批内容
///
[SugarColumn(ColumnName = "ApprovalContent", Length = 100)]
public string ApprovalContent { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "CreateTime")]
public DateTime CreateTime { get; set; }
///
/// 操作员
///
[SugarColumn(ColumnName = "Operator", Length = 20)]
public string Operator { get; set; }
///
/// 审批步骤
///
[SugarColumn(ColumnName = "Buzhou")]
public int? Buzhou { get; set; }
}
}