using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Core;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Entitys
{
///
/// 序列号操作记录表
///
[Serializable]
[Table("t_wms_serialnumberoperate")]
public class SerialNumberOperate : EntityBase
{
public SerialNumberOperate() { }
public SerialNumberOperate(string serialNumber, SerialNumberOperateType operateType, string operateUser, string remark,
int? supplierId = null, int? orgId = null, int? stockId = null,
DateTime? operateTime = null)
{
this.SerialNumber = serialNumber;
this.OperateType = operateType;
this.OperateUser = operateUser;
this.Remark = remark;
this.SupplierId = supplierId == null ? 0 : (int)supplierId;
this.OrgId = orgId == null ? 0 : (int)orgId;
this.StockId = stockId == null ? 0 : (int)stockId;
this.OperateTime = operateTime == null ? DateTime.Now : (DateTime)operateTime;
}
///
/// ID
///
public override int Id { get; set; }
///
/// 序列号
///
public string SerialNumber { get; set; }
///
/// 序列号操作类型
///
public SerialNumberOperateType OperateType { get; set; } = SerialNumberOperateType.Generate;
///
/// 供应商Id
///
public int SupplierId { get; set; } = 0;
///
/// 组织Id
///
public int OrgId { get; set; } = 0;
///
/// 仓库Id
///
public int StockId { get; set; } = 0;
///
/// 操作时间
///
public DateTime OperateTime { get; set; } = DateTime.Now;
///
/// 操作人
///
public string OperateUser { get; set; }
///
/// 备注
///
public string Remark { get; set; }
}
}