using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 物料基础输入参数
///
public class MaterialsBaseInput
{
///
/// 名称
///
public virtual string? Name { get; set; }
///
/// 分类
///
public virtual long Classify { get; set; }
///
/// 编码
///
public virtual string? CodeNum { get; set; }
///
/// 别名
///
public virtual string? AliasName { get; set; }
///
/// 助记码
///
public virtual string? SimpleNumber { get; set; }
///
/// 规格型号
///
public virtual string? Specifications { get; set; }
///
/// 可用状态
///
public virtual bool IsEnable { get; set; }
///
/// 品牌
///
public virtual string? Brand { get; set; }
///
/// 保质期
///
public virtual int? ShelfLife { get; set; }
///
/// 保质期单位
///
public virtual string? ShelfLifeUnit { get; set; }
///
/// 统一零售价
///
public virtual decimal? Price { get; set; }
///
/// 条形码
///
public virtual string? BarCode { get; set; }
///
/// 单位组ID
///
public virtual long? UnitGroupId { get; set; }
///
/// 基本单位
///
public virtual string? Unit { get; set; }
///
/// 生产单位
///
public virtual string? ProductUnit { get; set; }
///
/// 采购单位
///
public virtual string? ProcureUnit { get; set; }
///
/// 库存单位
///
public virtual string? InventoryUnit { get; set; }
///
/// 销售单位
///
public virtual string? SaleUnit { get; set; }
///
/// 分销单位
///
public virtual string? RetailStoreUnit { get; set; }
///
/// 包装关系ID
///
//public virtual long? PackagId { get; set; }
///
/// 推广ID
///
public virtual long? PromotionId { get; set; }
///
/// 备注
///
public virtual string? Remarks { get; set; }
///
/// 租户Id
///
public virtual long? TenantId { get; set; }
///
/// 创建时间
///
public virtual DateTime? CreateTime { get; set; }
///
/// 更新时间
///
public virtual DateTime? UpdateTime { get; set; }
///
/// 创建者Id
///
public virtual long? CreateUserId { get; set; }
///
/// 创建者姓名
///
public virtual string? CreateUserName { get; set; }
///
/// 修改者Id
///
public virtual long? UpdateUserId { get; set; }
///
/// 修改者姓名
///
public virtual string? UpdateUserName { get; set; }
///
/// 软删除
///
public virtual bool IsDelete { get; set; }
}
///
/// 物料分页查询输入参数
///
public class MaterialsInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名称
///
public string? Name { get; set; }
///
/// 分类
///
public long? Classify { get; set; }
///
/// 编码
///
public string? CodeNum { get; set; }
///
/// 别名
///
public string? AliasName { get; set; }
///
/// 助记码
///
public string? SimpleNumber { get; set; }
///
/// 规格型号
///
public string? Specifications { get; set; }
///
/// 可用状态
///
public bool? IsEnable { get; set; }
}
///
/// 物料增加输入参数
///
public class AddMaterialsInput : MaterialsBaseInput
{
///
/// 分类
///
[Required(ErrorMessage = "分类不能为空")]
public override long Classify { get; set; }
///
/// 可用状态
///
[Required(ErrorMessage = "可用状态不能为空")]
public override bool IsEnable { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 物料删除输入参数
///
public class DeleteMaterialsInput : BaseIdInput
{
}
///
/// 物料更新输入参数
///
public class UpdateMaterialsInput : MaterialsBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 物料主键查询输入参数
///
public class QueryByIdMaterialsInput : DeleteMaterialsInput
{
}
///
///
///
public class MaterialsUnitInput : MaterialsBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
///
///
public class MaterialsUnitGetInput
{
///
/// 单位组ID
///
[Required(ErrorMessage = "主键Id不能为空")]
public virtual long UnitGroupId { get; set; }
///
/// 基本单位
///
public virtual string Unit { get; set; }
}