using Npoi.Mapper.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BarCode.Web.Core.Dto.SerialNumbers { /// /// 序列号列表搜索返回参数 /// public class SerialNumberInfoResponse { /// /// 物料编码 /// [Column("物料编码")] public string MaterialNumber { get; set; } = string.Empty; /// /// 物料名称 /// [Column("名称")] public string MaterialName { get; set; } = string.Empty; /// /// 物料规格型号 /// [Column("规格型号")] public string Specifications { get; set; } = string.Empty; /// /// 转换前规格型号 /// [Column("转换前规格型号")] public string Old_Specifications { get; set; } = string.Empty; /// /// 物料条码 /// [Column("条码")] public string BarCode { get; set; } = string.Empty; /// /// 序列码 /// [Column("序列码")] public string SerialNumber { get; set; } = string.Empty; /// /// 数字序列码 /// [Column("数字序列码")] public string NumberCode { get; set; } = string.Empty; /// /// 序列码流水号 /// [Column("序号")] public long Id { get; set; } /// /// 数量 /// [Column("数量")] public int Number { get; set; } = 0; /// /// 是否使用 /// [Ignore] public bool IsUse { get; set; } = false; /// /// 是否使用 /// [Column("是否使用")] public string IsUseStr { get; set; } = ""; /// /// 箱号 /// [Column("所在箱号")] public string Box { get; set; } = string.Empty; /// /// 创建人 /// [Ignore] public string Creator { get; set; } = string.Empty; /// /// 生成时间 /// [Column("生成时间")] public string CreateTime { get; set; } = string.Empty; /// /// 打印次数 /// [Column("打印次数")] public int PrintNumber { get; set; } = 0; /// /// 下载次数 /// [Column("下载次数")] public int DownLoadNumber { get; set; } = 0; /// /// 最新打印时间 /// [Column("最近打印时间")] public string PrintTime { get; set; } = string.Empty; /// /// 最新下载时间 /// [Column("最近下载时间")] public string DownLoadTime { get; set; } = string.Empty; /// /// 是否允许打印(序列码已经被使用 但没有箱号,那么就是被wms系统拉去使用了,不能再被打印) /// [Ignore] public bool IsEnablePrint { get; set; } = true; /// /// 是否为两件装,为了控制后面的变动,设为整数形,0和1看作1,2代表2件装,3代表三件装 alter by yzh /// [Ignore] public int IsTwo { get; set; } = 1; /// /// 第二个序列号 /// [Ignore] public string TwoSerialNumber { get; set; } = string.Empty; } public class SerialNumberInfoResponse2 { /// /// 物料编码 /// [Column("物料编码")] public string MaterialNumber { get; set; } = string.Empty; /// /// 物料名称 /// [Column("名称")] public string MaterialName { get; set; } = string.Empty; /// /// 物料规格型号 /// [Column("规格型号")] public string Specifications { get; set; } = string.Empty; /// /// 转换前规格型号 /// [Column("转换前规格型号")] public string Old_Specifications { get; set; } = string.Empty; /// /// 物料条码 /// [Column("条码")] public string BarCode { get; set; } = string.Empty; /// /// 序列码 /// [Column("序列码")] public string SerialNumber { get; set; } = string.Empty; /// /// 序列码2 /// [Column("序列码2")] public string SerialNumber2 { get; set; } = string.Empty; /// /// 数字序列码 /// [Column("数字序列码")] public string NumberCode { get; set; } = string.Empty; /// /// 数字序列码2 /// [Column("数字序列码2")] public string NumberCode2 { get; set; } = string.Empty; /// /// 序列码流水号 /// [Column("序号")] public long Id { get; set; } /// /// 序列码流水号2 /// [Column("序号2")] public long Id2 { get; set; } /// /// 数量 /// [Column("数量")] public int Number { get; set; } = 0; /// /// 是否使用 /// [Ignore] public bool IsUse { get; set; } = false; /// /// 是否使用 /// [Column("是否使用")] public string IsUseStr { get; set; } = ""; /// /// 箱号 /// [Column("所在箱号")] public string Box { get; set; } = string.Empty; /// /// 创建人 /// [Ignore] public string Creator { get; set; } = string.Empty; /// /// 生成时间 /// [Column("生成时间")] public string CreateTime { get; set; } = string.Empty; /// /// 打印次数 /// [Column("打印次数")] public int PrintNumber { get; set; } = 0; /// /// 下载次数 /// [Column("下载次数")] public int DownLoadNumber { get; set; } = 0; /// /// 最新打印时间 /// [Column("最近打印时间")] public string PrintTime { get; set; } = string.Empty; /// /// 最新下载时间 /// [Column("最近下载时间")] public string DownLoadTime { get; set; } = string.Empty; /// /// 是否允许打印(序列码已经被使用 但没有箱号,那么就是被wms系统拉去使用了,不能再被打印) /// [Ignore] public bool IsEnablePrint { get; set; } = true; /// /// 是否为两件装,为了控制后面的变动,设为整数形,0和1看作1,2代表2件装,3代表三件装 alter by yzh /// [Ignore] public int IsTwo { get; set; } = 1; /// /// 第二个序列号 /// [Ignore] public string TwoSerialNumber { get; set; } = string.Empty; } /// /// 序列号列表搜索返回参数 /// //public class SerialNumberInfoResponseNoIsTwo //{ // /// // /// 物料编码 // /// // [Column("物料编码")] // public string MaterialNumber { get; set; } = string.Empty; // /// // /// 物料名称 // /// // [Column("名称")] // public string MaterialName { get; set; } = string.Empty; // /// // /// 物料规格型号 // /// // [Column("规格型号")] // public string Specifications { get; set; } = string.Empty; // /// // /// 转换前规格型号 // /// // [Column("转换前规格型号")] // public string Old_Specifications { get; set; } = string.Empty; // /// // /// 物料条码 // /// // [Column("条码")] // public string BarCode { get; set; } = string.Empty; // /// // /// 序列码 // /// // [Column("序列码")] // public string SerialNumber { get; set; } = string.Empty; // /// // /// 数字序列码 // /// // [Column("数字序列码")] // public string NumberCode { get; set; } = string.Empty; // /// // /// 序列码流水号 // /// // [Column("序号")] // public long Id { get; set; } // /// // /// 数量 // /// // [Column("数量")] // public int Number { get; set; } = 0; // /// // /// 是否使用 // /// // [Ignore] // public bool IsUse { get; set; } = false; // /// // /// 是否使用 // /// // [Column("是否使用")] // public string IsUseStr { get; set; } = ""; // /// // /// 箱号 // /// // [Column("所在箱号")] // public string Box { get; set; } = string.Empty; // /// // /// 创建人 // /// // [Ignore] // public string Creator { get; set; } = string.Empty; // /// // /// 生成时间 // /// // [Column("生成时间")] // public string CreateTime { get; set; } = string.Empty; // /// // /// 打印次数 // /// // [Column("打印次数")] // public int PrintNumber { get; set; } = 0; // /// // /// 下载次数 // /// // [Column("下载次数")] // public int DownLoadNumber { get; set; } = 0; // /// // /// 最新打印时间 // /// // [Column("最近打印时间")] // public string PrintTime { get; set; } = string.Empty; // /// // /// 最新下载时间 // /// // [Column("最近下载时间")] // public string DownLoadTime { get; set; } = string.Empty; // /// // /// 是否允许打印(序列码已经被使用 但没有箱号,那么就是被wms系统拉去使用了,不能再被打印) // /// // [Ignore] // public bool IsEnablePrint { get; set; } = true; // /// // /// 是否为两件装,为了控制后面的变动,设为整数形,0和1看作1,2代表2件装,3代表三件装 alter by yzh // /// // public int IsTwo { get; set; } = 1; // /// // /// 第二个序列号 // /// // public string TwoSerialNumber { get; set; } = string.Empty; //} }