| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | 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{    /// <summary>    /// 物品确认审核表    /// </summary>    [SugarTable(tableName: "Pm_GoodsAudit", tableDescription: "物品确认审核表")]    public class Pm_GoodsAudit : EntityBase    {        /// <summary>        /// 审核类型        /// 1.入库 2.出库         /// </summary>        [SugarColumn(ColumnDescription = "审核类型", IsNullable = true, ColumnDataType = "int")]        public int Type { get; set; } = 1;        /// <summary>        /// 审核部门        /// </summary>        [SugarColumn(ColumnDescription = "审核部门", IsNullable = true, ColumnDataType = "bit")]        public GoodsAuditDepEnum Dep { get; set; }        /// <summary>        /// DataId         /// </summary>        [SugarColumn(ColumnDescription = "DataId", IsNullable = true, ColumnDataType = "int")]        public int DataId { get; set; } = 0;        /// <summary>        /// 确认状态        /// </summary>        [SugarColumn(ColumnDescription = "审核状态", IsNullable = true, ColumnDataType = "bit")]        public GoodsConfirmEnum AuditStatus { get; set; } = GoodsConfirmEnum.WaitConfirm;        /// <summary>        /// 审核人 Id        /// Sys_User Id        /// </summary>        [SugarColumn(ColumnDescription = "审核人Id", IsNullable = true, ColumnDataType = "int")]        public int AuditUserId { get; set; }        /// <summary>        /// 审核时间        /// </summary>        [SugarColumn(ColumnDescription = "审核时间", IsNullable = true, ColumnDataType = "datetime")]        public DateTime AuditTime { get; set; }        public Pm_GoodsAudit(){}        /// <summary>        /// 基础数据初始化        /// </summary>        /// <param name="type">        /// 审核类型        /// 1.入库 2.出库         /// </param>        /// <param name="dep">审核部门</param>        /// <param name="dataId">DataId</param>        /// <param name="auditStatus">确认状态</param>        /// <param name="currUserId">创建人</param>        public Pm_GoodsAudit(int type, GoodsAuditDepEnum dep, int dataId, GoodsConfirmEnum auditStatus,int currUserId)        {            this.Type = type;            this.Dep = dep;            this.DataId = dataId;            this.AuditStatus = auditStatus;            this.AuditTime = DateTime.Now;            this.CreateUserId = currUserId;        }        /// <summary>        /// 基础数据初始化        /// </summary>        /// <param name="type">        /// 审核类型        /// 1.入库 2.出库         /// </param>            /// <param name="dep">审核部门</param>        /// <param name="dataId">DataId</param>        /// <param name="auditStatus">确认状态</param>        /// <param name="auditorId">审核人</param>        /// <param name="currUserId">创建人</param>        public Pm_GoodsAudit(int type, GoodsAuditDepEnum dep, int dataId, GoodsConfirmEnum auditStatus, int auditorId, int currUserId)        {            this.Type = type;            this.Dep = dep;            this.DataId = dataId;            this.AuditStatus = auditStatus;            this.AuditUserId = currUserId;            this.AuditTime = DateTime.Now;            this.CreateUserId = currUserId;        }    }}
 |