231 lines
6.8 KiB
C#
231 lines
6.8 KiB
C#
|
||
namespace DOAN.Model.BZFM.Dto
|
||
{
|
||
/// <summary>
|
||
/// 库存表查询对象
|
||
/// </summary>
|
||
public class MmInventoryQueryDto : PagerInfo
|
||
{
|
||
public string WarehouseCode { get; set; }
|
||
public string MaterialCode { get; set; }
|
||
|
||
public string WarehouseName { get; set; }
|
||
public string LocationCode { get; set; }
|
||
public string SupplierCode { get; set; }
|
||
|
||
public string SupplierName { get; set; }
|
||
public string BatchNo { get; set; }
|
||
}
|
||
public class MmInventoryRevokeDto
|
||
{
|
||
// 入库单或出库单id
|
||
public int Id { get; set; }
|
||
// 1入库单,2出库单
|
||
public int Type { get; set; }
|
||
}
|
||
|
||
/// <summary>
|
||
/// 库存表输入输出对象
|
||
/// </summary>
|
||
public class MmInventoryDto
|
||
{
|
||
[Required(ErrorMessage = "主键ID不能为空")]
|
||
public int Id { get; set; }
|
||
|
||
[Required(ErrorMessage = "物料编码不能为空")]
|
||
public string MaterialCode { get; set; }
|
||
|
||
public string MaterialName { get; set; }
|
||
|
||
|
||
|
||
public string WarehouseCode { get; set; }
|
||
|
||
public string WarehouseName { get; set; }
|
||
|
||
[Required(ErrorMessage = "库位编码不能为空")]
|
||
public string LocationCode { get; set; }
|
||
|
||
public string LocationName { get; set; }
|
||
|
||
public string SupplierCode { get; set; }
|
||
|
||
public string SupplierName { get; set; }
|
||
|
||
public string BatchNo { get; set; }
|
||
|
||
public decimal CurrentQty { get; set; }
|
||
|
||
public string Unit { get; set; }
|
||
|
||
public DateTime? ProductionDate { get; set; }
|
||
|
||
public DateTime? ExpiryDate { get; set; }
|
||
|
||
public DateTime? LastUpdatedTime { get; set; }
|
||
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
|
||
|
||
}
|
||
|
||
// <summary>
|
||
/// 库存管理导入导出
|
||
/// </summary>
|
||
[SugarTable("mm_inventory", "库存管理")]
|
||
public class MmInventoryExcelDto
|
||
{
|
||
[ExcelColumn(Name = "id")]
|
||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||
public int Id { get; set; }
|
||
|
||
[ExcelColumn(Name = "物料编码")]
|
||
[SugarColumn(ColumnName = "material_code")]
|
||
public string MaterialCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "批次号")]
|
||
[SugarColumn(ColumnName = "batch_no")]
|
||
public string BatchNo { get; set; }
|
||
|
||
[ExcelColumn(Name = "当前库存量")]
|
||
[SugarColumn(ColumnName = "current_qty")]
|
||
public decimal CurrentQty { get; set; }
|
||
|
||
[ExcelColumn(Name = "仓库编码")]
|
||
[SugarColumn(ColumnName = "warehouse_code")]
|
||
public string WarehouseCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "仓库名称")]
|
||
[SugarColumn(ColumnName = "warehouse_name")]
|
||
public string WarehouseName { get; set; }
|
||
|
||
[ExcelColumn(Name = "库位编码")]
|
||
[SugarColumn(ColumnName = "location_code")]
|
||
public string LocationCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "库位名称")]
|
||
[SugarColumn(ColumnName = "location_name")]
|
||
public string LocationName { get; set; }
|
||
|
||
[ExcelColumn(Name = "创建时间")]
|
||
[SugarColumn(ColumnName = "created_time")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
}
|
||
|
||
/// <summary>
|
||
/// 库存清单查询进出库记录对象
|
||
/// </summary>
|
||
public class MmInventoryRecordQueryDto : PagerInfo
|
||
{
|
||
public string MaterialCode { get; set; }
|
||
|
||
public string LocationCode { get; set; }
|
||
|
||
public string SupplierCode { get; set; }
|
||
|
||
public string BatchNo { get; set; }
|
||
|
||
// 出入库类别
|
||
public string TransactionType { get; set; }
|
||
|
||
// 1-入库 2-出库
|
||
public int SearchType { get; set; }
|
||
|
||
public DateTime? StartTime { get; set; }
|
||
public DateTime? EndTime { get; set; }
|
||
}
|
||
public class MmInventoryRecordDto : PagerInfo
|
||
{
|
||
[ExcelColumn(Name = "id")]
|
||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||
public int Id { get; set; }
|
||
|
||
[ExcelColumn(Name = "入库单号")]
|
||
[SugarColumn(ColumnName = "inbound_no")]
|
||
public string InboundNo { get; set; }
|
||
|
||
[ExcelColumn(Name = "出库单号")]
|
||
[SugarColumn(ColumnName = "outbound_no")]
|
||
public string OutboundNo { get; set; }
|
||
|
||
[ExcelColumn(Name = "物料编码")]
|
||
[SugarColumn(ColumnName = "material_code")]
|
||
public string MaterialCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "物料名称")]
|
||
[SugarColumn(ColumnName = "material_name")]
|
||
public string MaterialName { get; set; }
|
||
|
||
[ExcelColumn(Name = "批次号")]
|
||
[SugarColumn(ColumnName = "batch_no")]
|
||
public string BatchNo { get; set; }
|
||
|
||
[ExcelColumn(Name = "仓库编码")]
|
||
[SugarColumn(ColumnName = "warehouse_code")]
|
||
public string WarehouseCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "仓库名称")]
|
||
[SugarColumn(ColumnName = "warehouse_name")]
|
||
public string WarehouseName { get; set; }
|
||
|
||
[ExcelColumn(Name = "库位编码")]
|
||
[SugarColumn(ColumnName = "location_code")]
|
||
public string LocationCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "库位名称")]
|
||
[SugarColumn(ColumnName = "location_name")]
|
||
public string LocationName { get; set; }
|
||
|
||
[ExcelColumn(Name = "供应商编码")]
|
||
[SugarColumn(ColumnName = "supplier_Code")]
|
||
public string SupplierCode { get; set; }
|
||
|
||
[ExcelColumn(Name = "供应商名称")]
|
||
[SugarColumn(ColumnName = "supplier_Name")]
|
||
public string SupplierName { get; set; }
|
||
|
||
[ExcelColumn(Name = "数量")]
|
||
[SugarColumn(ColumnName = "quantity")]
|
||
public decimal Quantity { get; set; }
|
||
|
||
[ExcelColumn(Name = "操作类型")]
|
||
[SugarColumn(ColumnName = "transaction_Type")]
|
||
public string TransactionType { get; set; }
|
||
|
||
[ExcelColumn(Name = "操作员")]
|
||
[SugarColumn(ColumnName = "operator")]
|
||
public string Operator { get; set; }
|
||
|
||
[ExcelColumn(Name = "创建时间")]
|
||
[SugarColumn(ColumnName = "created_time")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 炉号
|
||
/// </summary>
|
||
[ExcelColumn(Name = "炉号")]
|
||
[SugarColumn(ColumnName = "stove_code")]
|
||
public string StoveCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 关联订单号
|
||
/// </summary>
|
||
[ExcelColumn(Name = "关联订单号")]
|
||
[SugarColumn(ColumnName = "order_no")]
|
||
public string OrderNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工单号(一旦确定,不可更改)
|
||
/// </summary>
|
||
[ExcelColumn(Name = "工单号")]
|
||
[SugarColumn(ColumnName = "workorder")]
|
||
public string Workorder { get; set; }
|
||
|
||
[ExcelColumn(Name = "备注")]
|
||
[SugarColumn(ColumnName = "remarks")]
|
||
public string Remarks { get; set; }
|
||
|
||
}
|
||
} |