This commit is contained in:
18942506660
2023-10-26 15:32:07 +08:00
parent 30346388ca
commit bf665e81df
8 changed files with 137 additions and 9 deletions

View File

@@ -2,9 +2,44 @@
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto
namespace WMS.Web.Core.Dto.ChangeBoxRecord
{
public class ChangeBoxRecordQueryRequest
/// <summary>
/// 改箱列表请求
/// </summary>
public class ChangeBoxRecordQueryRequest: PaginationBaseRequestDto
{
/// <summary>
/// 原箱子ID
/// </summary>
public string SrcBox { get; set; }
/// <summary>
/// 目标箱子ID
/// </summary>
public string DestBox { get; set; }
/// <summary>
/// 仓库
/// </summary>
public int StockId { get; set; }
/// <summary>
/// 原仓位ID
/// </summary>
public int SrcSubStockId { get; set; }
/// <summary>
/// 现仓位ID
/// </summary>
public int DestSubStockId { get; set; }
/// <summary>
/// 操作人
/// </summary>
public string Creator { get; set; }
/// <summary>
/// 操作时间 开始
/// </summary>
public DateTime? CreateBeginDate { get; set; }
/// <summary>
/// 操作时间 结束
/// </summary>
public DateTime? CreateEndDate { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.ChangeBoxRecord
{
public class ChangeBoxRecordQueryInfoResponse
{
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WMS.Web.Core.Dto
{
public class PaginationRequestDto: PaginationBaseRequestDto
{
/// <summary>
/// 组织Id(所有列表页都需要 全局)
/// </summary>
[Required(ErrorMessage = "组织不能为空")]
public virtual int OrgId { get; set; }
}
public class PaginationBaseRequestDto
{
/// <summary>
/// 页数 不传默认为1
/// </summary>
public int PageNo { get; set; } = 1;
/// <summary>
/// 每页条数 不传默认每页10 条
/// </summary>
public int PageSize { get; set; } = 10;
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto
{
public class PaginationResponseDto<T>
{
public PaginationResponseDto(List<T> list, int? total)
{
this.List = list;
this.Total = total;
}
/// <summary>
/// 查询列表内容
/// </summary>
public List<T> List { get; set; } = new List<T>();
/// <summary>
/// 总条数
/// </summary>
public int? Total { get; set; }
}
}