306 lines
6.3 KiB
C#
306 lines
6.3 KiB
C#
using Admin.NET.Core;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Admin.NET.Application;
|
|
|
|
/// <summary>
|
|
/// 商品追溯基础输入参数
|
|
/// </summary>
|
|
public class ProductRetrospectBaseInput
|
|
{
|
|
/// <summary>
|
|
/// 单号
|
|
/// </summary>
|
|
public virtual string? OddNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条码类型
|
|
/// </summary>
|
|
public virtual string? CodeType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 扫码时间
|
|
/// </summary>
|
|
public virtual DateTime? ScanCodeTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务类型
|
|
/// </summary>
|
|
public virtual string? BusinessType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收货/供货单位
|
|
/// </summary>
|
|
public virtual string? Destination { get; set; }
|
|
|
|
/// <summary>
|
|
/// 所在地区
|
|
/// </summary>
|
|
public virtual string? Location { get; set; }
|
|
|
|
/// <summary>
|
|
/// 仓库ID
|
|
/// </summary>
|
|
public virtual long? WarehouseID { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单据类型
|
|
/// </summary>
|
|
public virtual string? Receipt { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部门
|
|
/// </summary>
|
|
public virtual string? Department { get; set; }
|
|
|
|
/// <summary>
|
|
/// 批次
|
|
/// </summary>
|
|
public virtual string? Batch { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数量
|
|
/// </summary>
|
|
public virtual int? Count { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位
|
|
/// </summary>
|
|
public virtual string? Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基本数量
|
|
/// </summary>
|
|
public virtual int? BaseCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基本单位
|
|
/// </summary>
|
|
public virtual string? BaseUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务日期
|
|
/// </summary>
|
|
public virtual DateTime? WarehousingDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料ID
|
|
/// </summary>
|
|
public virtual long? MaterialsId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源ID
|
|
/// </summary>
|
|
public virtual long? SourceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public virtual string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条码
|
|
/// </summary>
|
|
public virtual string Code { get; set; }
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public virtual string? Remarks { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
public virtual DateTime? CreateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
public virtual DateTime? UpdateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建者Id
|
|
/// </summary>
|
|
public virtual long? CreateUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建者姓名
|
|
/// </summary>
|
|
public virtual string? CreateUserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改者Id
|
|
/// </summary>
|
|
public virtual long? UpdateUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改者姓名
|
|
/// </summary>
|
|
public virtual string? UpdateUserName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 软删除
|
|
/// </summary>
|
|
public virtual bool IsDelete { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品追溯分页查询输入参数
|
|
/// </summary>
|
|
public class ProductRetrospectInput : BasePageInput
|
|
{
|
|
/// <summary>
|
|
/// 关键字查询
|
|
/// </summary>
|
|
public string? SearchKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单号
|
|
/// </summary>
|
|
public string? OddNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条码类型
|
|
/// </summary>
|
|
public string? CodeType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 扫码时间
|
|
/// </summary>
|
|
public DateTime? ScanCodeTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 扫码时间范围
|
|
/// </summary>
|
|
public List<DateTime?> ScanCodeTimeRange { get; set; }
|
|
/// <summary>
|
|
/// 业务类型
|
|
/// </summary>
|
|
public string? BusinessType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收货/供货单位
|
|
/// </summary>
|
|
public string? Destination { get; set; }
|
|
|
|
/// <summary>
|
|
/// 所在地区
|
|
/// </summary>
|
|
public string? Location { get; set; }
|
|
|
|
/// <summary>
|
|
/// 仓库ID
|
|
/// </summary>
|
|
public long? WarehouseID { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单据类型
|
|
/// </summary>
|
|
public string? Receipt { get; set; }
|
|
|
|
/// <summary>
|
|
/// 部门
|
|
/// </summary>
|
|
public string? Department { get; set; }
|
|
|
|
/// <summary>
|
|
/// 批次
|
|
/// </summary>
|
|
public string? Batch { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数量
|
|
/// </summary>
|
|
public int? Count { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位
|
|
/// </summary>
|
|
public string? Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基本数量
|
|
/// </summary>
|
|
public int? BaseCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基本单位
|
|
/// </summary>
|
|
public string? BaseUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务日期
|
|
/// </summary>
|
|
public DateTime? WarehousingDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 业务日期范围
|
|
/// </summary>
|
|
public List<DateTime?> WarehousingDateRange { get; set; }
|
|
/// <summary>
|
|
/// 物料ID
|
|
/// </summary>
|
|
public long? MaterialsId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public virtual string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条码
|
|
/// </summary>
|
|
public virtual string Code { get; set; }
|
|
/// <summary>
|
|
/// 源ID
|
|
/// </summary>
|
|
public long? SourceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string? Remarks { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品追溯增加输入参数
|
|
/// </summary>
|
|
public class AddProductRetrospectInput : ProductRetrospectBaseInput
|
|
{
|
|
/// <summary>
|
|
/// 软删除
|
|
/// </summary>
|
|
[Required(ErrorMessage = "软删除不能为空")]
|
|
public override bool IsDelete { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品追溯删除输入参数
|
|
/// </summary>
|
|
public class DeleteProductRetrospectInput : BaseIdInput
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品追溯更新输入参数
|
|
/// </summary>
|
|
public class UpdateProductRetrospectInput : ProductRetrospectBaseInput
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
[Required(ErrorMessage = "主键Id不能为空")]
|
|
public long Id { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 商品追溯主键查询输入参数
|
|
/// </summary>
|
|
public class QueryByIdProductRetrospectInput : DeleteProductRetrospectInput
|
|
{
|
|
|
|
}
|