using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 发货通知单基础输入参数
///
public class InvoiceBaseInput
{
///
/// 单号
///
public virtual string? CodeNum { get; set; }
///
/// 业务日期
///
public virtual DateTime? StartDate { get; set; }
///
/// 业务类型
///
public virtual string BusinessType { get; set; }
///
/// 客户
///
public virtual string Custom { get; set; }
///
/// 仓库
///
public virtual string Warehouse { get; set; }
///
/// 仓库ID
///
public long? WarehouseId { get; set; }
///
/// 部门
///
public virtual string? Department { get; set; }
///
/// 车牌号
///
public virtual string? CarNumber { get; set; }
///
/// 停车位
///
public virtual string? ParkingSpace { get; set; }
///
/// 业务员
///
public virtual string? Salesman { get; set; }
///
/// 收货单位
///
public virtual string? Consignee { get; set; }
///
/// 交货日期
///
public virtual DateTime? DeliveryDate { get; set; }
///
/// 交货地址
///
public virtual string? DeliveryAddress { get; set; }
///
/// 备注
///
public virtual string? Remarks { get; set; }
///
/// 方案客户拓展
///
public virtual string? CustomExpand { get; set; }
///
/// 发货拓展
///
public virtual string? SendOutExpand { 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 InvoiceInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 单号
///
public string? CodeNum { get; set; }
///
/// 业务日期
///
public DateTime? StartDate { get; set; }
///
/// 业务日期范围
///
public List StartDateRange { get; set; }
///
/// 业务类型
///
public string? BusinessType { get; set; }
///
/// 客户
///
public string? Custom { get; set; }
///
/// 仓库
///
public string? Warehouse { get; set; }
///
/// 仓库ID
///
public long? WarehouseId { get; set; }
///
/// 部门
///
public string? Department { get; set; }
///
/// 车牌号
///
public string? CarNumber { get; set; }
///
/// 停车位
///
public string? ParkingSpace { get; set; }
///
/// 业务员
///
public string? Salesman { get; set; }
///
/// 收货单位
///
public string? Consignee { get; set; }
///
/// 交货日期
///
public DateTime? DeliveryDate { get; set; }
///
/// 交货日期范围
///
public List DeliveryDateRange { get; set; }
///
/// 交货地址
///
public string? DeliveryAddress { get; set; }
}
///
/// 发货通知单增加输入参数
///
public class AddInvoiceInput : InvoiceBaseInput
{
///
/// 业务类型
///
[Required(ErrorMessage = "业务类型不能为空")]
public override string BusinessType { get; set; }
///
/// 客户
///
[Required(ErrorMessage = "客户不能为空")]
public override string Custom { get; set; }
///
/// 仓库
///
[Required(ErrorMessage = "仓库不能为空")]
public override string Warehouse { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 发货通知单删除输入参数
///
public class DeleteInvoiceInput : BaseIdInput
{
}
///
/// 发货通知单更新输入参数
///
public class UpdateInvoiceInput : InvoiceBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 发货通知单主键查询输入参数
///
public class QueryByIdInvoiceInput : DeleteInvoiceInput
{
}