using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.PersonnelModule
{
///
/// 物品领用表
///
[SugarTable(tableName: "Pm_GoodsReceive", tableDescription: "物品领用表")]
public class Pm_GoodsReceive: EntityBase
{
///
/// 团组Id
/// Grp_DelegationInfo Id
///
[SugarColumn(ColumnDescription = "团组Id", IsNullable = true, ColumnDataType = "int")]
public int GroupId { get; set; }
///
/// 商品Id
/// Pm_GoodsInfo Id
///
[SugarColumn(ColumnDescription = "商品Id", IsNullable = true, ColumnDataType = "int")]
public int GoodsId { get; set; }
///
/// 领用数量
///
[SugarColumn(ColumnDescription = "领用数量", IsNullable = true, ColumnDataType = "int")]
public int Quantity { get; set; }
///
/// 领用原因
///
[SugarColumn(ColumnDescription = "申请人Id", IsNullable = true, ColumnDataType = "varchar(200)")]
public string? Reason { get; set; }
/////
///// 申请人Id
///// Sys_User Id
/////
//[SugarColumn(ColumnDescription = "申请人Id", IsNullable = true, ColumnDataType = "int")]
//public int ApplicantId { get; set; }
/////
///// 申请人时间
/////
//[SugarColumn(ColumnDescription = "申请人时间", IsNullable = true, ColumnDataType = "datetime")]
//public DateTime ApplicantTime { get; set; }
///
/// 审核状态
///
[SugarColumn(ColumnDescription = "审核状态", IsNullable = true, ColumnDataType = "int")]
public GoodsAuditEnum AuditStatus { get; set; } = GoodsAuditEnum.Pending;
///
/// 审核人 Id
/// Sys_User Id
///
[SugarColumn(ColumnDescription = "审核人Id", IsNullable = true, ColumnDataType = "int")]
public int AuditUserId { get; set; }
///
/// 审核时间
///
[SugarColumn(ColumnDescription = "审核时间", IsNullable = true, ColumnDataType = "datetime")]
public DateTime AuditTime { get; set; }
}
}