using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 汇报单详情基础输入参数
///
public class ReportDetailTableBaseInput
{
///
/// 产品名称
///
public virtual string ProductName { get; set; }
///
/// 产品编码
///
public virtual string? ProductCodeNum { get; set; }
///
/// 单号
///
public virtual string? OddNumber { get; set; }
///
/// 状态
///
public virtual int State { get; set; }
///
/// 生产类型
///
public virtual string? ProductType { get; set; }
///
/// 生产线
///
public virtual string? ProductionLine { get; set; }
///
/// 生产线编码
///
public virtual string? CodeNum { get; set; }
///
/// 源单号
///
public virtual string? SourceNumber { get; set; }
///
/// 规格型号
///
public virtual string? Specifications { get; set; }
///
/// 完工数量
///
public virtual int? ProductCount { get; set; }
///
/// 入库数量
///
public virtual int? PutWarehouse { get; set; }
///
/// 基本完工数量
///
public virtual int? BaseProductCount { get; set; }
///
/// 基本入库数量
///
public virtual int? BasePutWarehouse { get; set; }
///
/// 单位
///
public virtual string? Unit { get; set; }
///
/// 基本单位
///
public virtual string? BaseUnit { get; set; }
///
/// 批次
///
public virtual string? Batch { get; set; }
///
/// 包装规格
///
public virtual string? Package { get; set; }
///
/// 包装数量
///
public virtual int? PackageCount { get; set; }
///
/// 采集失败数量
///
public virtual int? GatherFalseCount { get; set; }
///
/// 生产日期
///
public virtual DateTime? ProductDate { get; set; }
///
/// 班组
///
public virtual string? TeamGroup { get; set; }
///
/// 操作工人
///
public virtual string? Operator { get; set; }
///
/// 完工时间
///
public virtual DateTime? EndDate { get; set; }
///
/// 源单号
///
public virtual string? SourceOddNumber { get; set; }
///
/// 物料ID
///
public virtual long? MaterialsId { get; set; }
///
/// 单位组ID
///
public long? UnitGroupId { 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 ReportDetailTableInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 产品名称
///
public string? ProductName { get; set; }
///
/// 产品编码
///
public string? ProductCodeNum { get; set; }
///
/// 单号
///
public string? OddNumber { get; set; }
///
/// 状态
///
public int? State { get; set; }
///
/// 生产类型
///
public string? ProductType { get; set; }
///
/// 生产线
///
public string? ProductionLine { get; set; }
///
/// 生产线编码
///
public string? CodeNum { get; set; }
///
/// 源单号
///
public string? SourceNumber { get; set; }
///
/// 规格型号
///
public string? Specifications { get; set; }
///
/// 完工数量
///
public int? ProductCount { get; set; }
///
/// 入库数量
///
public int? PutWarehouse { get; set; }
///
/// 基本完工数量
///
public int? BaseProductCount { get; set; }
///
/// 基本入库数量
///
public int? BasePutWarehouse { get; set; }
///
/// 单位
///
public string? Unit { get; set; }
///
/// 基本单位
///
public string? BaseUnit { get; set; }
///
/// 批次
///
public string? Batch { get; set; }
///
/// 包装规格
///
public string? Package { get; set; }
///
/// 包装数量
///
public int? PackageCount { get; set; }
///
/// 采集失败数量
///
public int? GatherFalseCount { get; set; }
///
/// 生产日期
///
public DateTime? ProductDate { get; set; }
///
/// 生产日期范围
///
public List ProductDateRange { get; set; }
///
/// 班组
///
public string? TeamGroup { get; set; }
///
/// 操作工人
///
public string? Operator { get; set; }
///
/// 完工时间
///
public DateTime? EndDate { get; set; }
///
/// 完工时间范围
///
public List EndDateRange { get; set; }
///
/// 源单号
///
public string? SourceOddNumber { get; set; }
///
/// 物料ID
///
public long? MaterialsId { get; set; }
///
/// 备注
///
public string? Remarks { get; set; }
}
///
/// 汇报单详情增加输入参数
///
public class AddReportDetailTableInput : ReportDetailTableBaseInput
{
///
/// 产品名称
///
[Required(ErrorMessage = "产品名称不能为空")]
public override string ProductName { get; set; }
///
/// 状态
///
[Required(ErrorMessage = "状态不能为空")]
public override int State { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 汇报单详情删除输入参数
///
public class DeleteReportDetailTableInput : BaseIdInput
{
}
///
/// 汇报单详情更新输入参数
///
public class UpdateReportDetailTableInput : ReportDetailTableBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 汇报单详情主键查询输入参数
///
public class QueryByIdReportDetailTableInput : DeleteReportDetailTableInput
{
}
///
/// 汇报单详情更新审核状态
///
public class UpdateStateReportDetailTableInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public string[] Ids { get; set; }
///
/// 是否启用
///
public int State { get; set; }
}
///
/// 更新生产状态输入参数
///
public class UpdateProductStateReportDetailTableInput
{
///
/// 订单号
///
public string OddNumber { get; set; }
///
/// 物料ID
///
public long MaterialsId { get; set; }
///
/// 生产状态
///
public int ProductState { get; set; }
}