44673626
3 years ago
30 changed files with 2248 additions and 7 deletions
@ -0,0 +1,96 @@ |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public interface IWMSVWKanBanAppService |
|||
|
|||
{ |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 导入功能
|
|||
/// </summary>
|
|||
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|||
/// <returns></returns>
|
|||
|
|||
Task<string> WMSVWKanBanUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, string year, string period, string version, string customerCode); |
|||
|
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按ID获取唯一实体
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 返回实体全部属性
|
|||
/// </remarks>
|
|||
/// <param name="id">ID</param>
|
|||
/// <returns>实体DTO</returns>
|
|||
|
|||
Task<WMSVWKanBanDto> GetAsync(Guid id); |
|||
|
|||
/// <summary>
|
|||
/// 根据筛选条件获取实体列表
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 请求条件包括:筛选条件列表,排序条件,数据数量,页码
|
|||
/// </remarks>
|
|||
/// <param name="input">请求条件</param>
|
|||
/// <returns>实体DTO列表</returns>
|
|||
|
|||
Task<PagedResultDto<WMSVWKanBanDto>> GetListAsync(WMSVWKanBanRequestDto input); |
|||
|
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 根据筛选条件获取实体列表
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 请求条件包括:筛选条件列表,排序条件,数据数量,页码
|
|||
/// </remarks>
|
|||
/// <param name="input">请求条件</param>
|
|||
/// <returns>实体DTO列表</returns>
|
|||
|
|||
Task<PagedResultDto<WMSVWKanBanVersionDto>> GetVersionListAsync(WMSVWKanBanVersionRequestDto input); |
|||
|
|||
|
|||
Task<string> ExportAsync(WMSVWKanBanRequestDto input); |
|||
|
|||
/// <summary>
|
|||
/// 获取实体总数
|
|||
/// </summary>
|
|||
/// <returns>实体总数</returns>
|
|||
|
|||
Task<long> GetTotalCountAsync(Guid branchId); |
|||
|
|||
|
|||
|
|||
|
|||
///// <summary>
|
|||
///// 删除实体
|
|||
///// </summary>
|
|||
///// <param name="id">ID</param>
|
|||
///// <returns>无</returns>
|
|||
|
|||
Task DeleteAsync(Guid id); |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按IDs删除实体列表
|
|||
/// </summary>
|
|||
/// <param name="ids">IDs</param>
|
|||
/// <returns>是否执行成功</returns>
|
|||
|
|||
Task<bool> DeleteListAsync(List<Guid> ids); |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public class WMSVWKanBanCreateDto : WMSVWKanBanDtoBase, IBranch<Guid> |
|||
{ |
|||
public virtual Guid BranchId { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
|
|||
public class WMSVWKanBanDto : AuditedEntityDtoBase<Guid> |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
public virtual string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
///看板条码号
|
|||
/// </summary>
|
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
public virtual string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public virtual string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public virtual string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
public virtual string PartType { set; get; } |
|||
/// <summary>
|
|||
/// R3入库时间
|
|||
/// </summary>
|
|||
public virtual DateTime SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
///供应商编码
|
|||
/// </summary>
|
|||
public virtual string SupplierCode { get; set; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
public virtual decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
|
|||
public virtual string Batch { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
public virtual string Flag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
public virtual DateTime SettleDate { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
public virtual string State { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public virtual string Remark { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,85 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public class WMSVWKanBanDtoBase : CreateOrUpdateEntityDtoBase<Guid> |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
///看板条码号
|
|||
/// </summary>
|
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
public virtual string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public virtual string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public virtual string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
public virtual string PartType { set; get; } |
|||
/// <summary>
|
|||
/// R3入库时间
|
|||
/// </summary>
|
|||
public virtual DateTime SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
///供应商编码
|
|||
/// </summary>
|
|||
public virtual string SupplierCode { get; set; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
public virtual decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
|
|||
public virtual string Batch { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
public virtual string Flag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
public virtual DateTime SettleDate { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
public virtual int State { get; set; } |
|||
|
|||
|
|||
public virtual string Version { get; set; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public virtual string Remark { get; set; } |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,92 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public class WMSVWKanBanExportDto |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "期间")] |
|||
public string Period { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "版本")] |
|||
public virtual string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
///看板条码号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "看板条码号")] |
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "入库关联号")] |
|||
public virtual string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "工厂")] |
|||
public virtual string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "零件号")] |
|||
public virtual string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "零件类型")] |
|||
public virtual string PartType { set; get; } |
|||
/// <summary>
|
|||
/// R3入库日期
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "R3入库日期")] |
|||
public virtual DateTime SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
///供应商编码
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "供应商")] |
|||
public virtual string SupplierCode { get; set; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "数量")] |
|||
public virtual decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "批次")] |
|||
public virtual string Batch { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "入库结算标识")] |
|||
public virtual string Flag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "R3结算时间")] |
|||
public virtual DateTime SettleDate { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "结算状态")] |
|||
public virtual string State { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,93 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public class WMSVWKanBanImportDto |
|||
{ |
|||
|
|||
///// <summary>
|
|||
///// 期间
|
|||
///// </summary>
|
|||
//[ImporterHeader(Name = "期间")]
|
|||
//public string Period { set; get; }
|
|||
|
|||
///// <summary>
|
|||
///// 版本
|
|||
///// </summary>
|
|||
//[ImporterHeader(Name = "版本")]
|
|||
//public virtual string Version { get; set; }
|
|||
|
|||
/// <summary>
|
|||
///看板条码号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "看板条码号", FixAllSpace = true)] |
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "入库关联号")] |
|||
public virtual string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "工厂")] |
|||
public virtual string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "零件号", FixAllSpace = true)] |
|||
public virtual string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "零件类型")] |
|||
public virtual string PartType { set; get; } |
|||
/// <summary>
|
|||
/// R3入库日期
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "R3入库日期")] |
|||
public virtual string SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
///供应商编码
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "供应商")] |
|||
public virtual string SupplierCode { get; set; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "数量")] |
|||
public virtual decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "批次")] |
|||
public virtual string Batch { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "入库结算标识")] |
|||
public virtual string Flag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "R3结算时间")] |
|||
public virtual string SettleDate { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "结算状态")] |
|||
public virtual string State { get; set; } |
|||
|
|||
} |
|||
} |
@ -0,0 +1,93 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
|
|||
public class WMSVWKanBanRequestDto : RequestDtoBase |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
public virtual string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
///看板条码号
|
|||
/// </summary>
|
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
public virtual string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public virtual string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public virtual string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
public virtual string PartType { set; get; } |
|||
/// <summary>
|
|||
/// R3入库时间
|
|||
/// </summary>
|
|||
public virtual DateTime SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
///供应商编码
|
|||
/// </summary>
|
|||
public virtual string SupplierCode { get; set; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
public virtual decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
|
|||
public virtual string Batch { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
public virtual string Flag { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
public virtual DateTime SettleDate { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
public virtual string State { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public virtual string Remark { get; set; } |
|||
|
|||
public virtual Guid ParentId { get; set; } |
|||
public virtual Guid BranchId { get; set; } |
|||
|
|||
public virtual Guid UserId { get; set; } |
|||
|
|||
public virtual int FileType { get; set; } |
|||
|
|||
} |
|||
} |
@ -0,0 +1,100 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
/// <summary>
|
|||
/// SettleAccountVersion
|
|||
/// </summary>
|
|||
public class WMSVWKanBanVersionDtoBase : CreateOrUpdateEntityDtoBase<Guid> |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
public class WMSVWKanBanVersionDto : AuditedEntityDtoBase<Guid>, IBranch<Guid> |
|||
{ |
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { set; get; } |
|||
public Guid BranchId { get; set; } |
|||
} |
|||
|
|||
public class WMSVWKanBanVersionCreateDto : WMSVWKanBanVersionDtoBase |
|||
{ } |
|||
public class WMSVWKanBanVersionUpdateDto : WMSVWKanBanVersionDtoBase |
|||
{ } |
|||
public class WMSVWKanBanVersionRequestDto : RequestDtoBase, IBranch<Guid> |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
public Guid BranchId { get; set; } |
|||
} |
|||
|
|||
public class WMSVWKanBanVersionImportDto |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,16 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.SettleAccount.Entities.VWKanBan; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSKanBan |
|||
{ |
|||
public class WMSVWKanBantUpdateDto : VWKanBanDtoBase |
|||
{ |
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,91 @@ |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public interface IWMSSparePartAppService |
|||
{ |
|||
/// <summary>
|
|||
/// 导入功能
|
|||
/// </summary>
|
|||
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|||
/// <returns></returns>
|
|||
|
|||
Task<string> WMSSparePartUploadExcelImport([FromForm] IFormFileCollection files, Guid branchId, |
|||
string year, string period, string version, string customerCode); |
|||
|
|||
/// <summary>
|
|||
/// 按ID获取唯一实体
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 返回实体全部属性
|
|||
/// </remarks>
|
|||
/// <param name="id">ID</param>
|
|||
/// <returns>实体DTO</returns>
|
|||
|
|||
Task<WMSSparePartDto> GetAsync(Guid id); |
|||
|
|||
/// <summary>
|
|||
/// 根据筛选条件获取实体列表
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 请求条件包括:筛选条件列表,排序条件,数据数量,页码
|
|||
/// </remarks>
|
|||
/// <param name="input">请求条件</param>
|
|||
/// <returns>实体DTO列表</returns>
|
|||
|
|||
Task<PagedResultDto<WMSSparePartDto>> GetListAsync(WMSSparePartRequestDto input); |
|||
|
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 根据筛选条件获取实体列表
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// 请求条件包括:筛选条件列表,排序条件,数据数量,页码
|
|||
/// </remarks>
|
|||
/// <param name="input">请求条件</param>
|
|||
/// <returns>实体DTO列表</returns>
|
|||
|
|||
Task<PagedResultDto<WMSSparePartVersionDto>> GetVersionListAsync(WMSSparePartVersionRequestDto input); |
|||
|
|||
|
|||
Task<string> ExportAsync(WMSSparePartRequestDto input); |
|||
|
|||
/// <summary>
|
|||
/// 获取实体总数
|
|||
/// </summary>
|
|||
/// <returns>实体总数</returns>
|
|||
|
|||
Task<long> GetTotalCountAsync(Guid branchId); |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
///// <summary>
|
|||
///// 删除实体
|
|||
///// </summary>
|
|||
///// <param name="id">ID</param>
|
|||
///// <returns>无</returns>
|
|||
|
|||
Task DeleteAsync(Guid id); |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按IDs删除实体列表
|
|||
/// </summary>
|
|||
/// <param name="ids">IDs</param>
|
|||
/// <returns>是否执行成功</returns>
|
|||
|
|||
Task<bool> DeleteListAsync(List<Guid> ids); |
|||
|
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartCreateDto : WMSSparePartDtoBase, IBranch<Guid> |
|||
{ |
|||
public virtual Guid BranchId { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,122 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartDto : AuditedEntityDtoBase<Guid> |
|||
{ |
|||
/// <summary>
|
|||
///年
|
|||
/// </summary>
|
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
public string FactoryName { get; set; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public string Extend { set; get; } |
|||
} |
|||
} |
@ -0,0 +1,124 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartDtoBase : CreateOrUpdateEntityDtoBase<Guid> |
|||
{ |
|||
|
|||
/// <summary>
|
|||
///年
|
|||
/// </summary>
|
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
public string FactoryName { get; set; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public string Extend { set; get; } |
|||
|
|||
} |
|||
} |
@ -0,0 +1,143 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartExportDto |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "期间")] |
|||
public string Period { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "版本")] |
|||
public virtual string Version { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "行号")] |
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "采购类型")] |
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "采购订单号")] |
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "采购订单行项目")] |
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "采购订单文本")] |
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "收货数量")] |
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "开票数量")] |
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "不含税金额")] |
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "采购价格不含税")] |
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "科目号")] |
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "物料代码")] |
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日期")] |
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "交货单号")] |
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "交货行号")] |
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "批次号")] |
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "单位")] |
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "税率")] |
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "税码")] |
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "德国发票号")] |
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "工厂")] |
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "工厂名称")] |
|||
public string FactoryName { get; set; } |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartImportDto |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "行号")] |
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "采购类型")] |
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "采购订单号", FixAllSpace = true)] |
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "采购订单行项目")] |
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "采购订单文本")] |
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "收货数量")] |
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "开票数量")] |
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "不含税金额")] |
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "采购价格不含税")] |
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "科目号", FixAllSpace = true)] |
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "物料代码", FixAllSpace = true)] |
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "物料描述")] |
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "日期")] |
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "交货单号", FixAllSpace = true)] |
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "交货行号")] |
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "批次号")] |
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "单位")] |
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "税率")] |
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "税码")] |
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "德国发票号")] |
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "工厂")] |
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
[ImporterHeader(Name = "工厂名称")] |
|||
public string FactoryName { get; set; } |
|||
|
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
public class WMSSparePartRequestDto : RequestDtoBase |
|||
{ |
|||
/// <summary>
|
|||
///年
|
|||
/// </summary>
|
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
public string FactoryName { get; set; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public string Extend { set; get; } |
|||
|
|||
public virtual Guid ParentId { get; set; } |
|||
public virtual Guid BranchId { get; set; } |
|||
|
|||
public virtual Guid UserId { get; set; } |
|||
|
|||
public virtual int FileType { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,100 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMSSparePart |
|||
{ |
|||
/// <summary>
|
|||
/// SettleAccountVersion
|
|||
/// </summary>
|
|||
public class WMSSparePartVersionDtoBase : CreateOrUpdateEntityDtoBase<Guid> |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
public class WMSSparePartVersionDto : AuditedEntityDtoBase<Guid>, IBranch<Guid> |
|||
{ |
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { set; get; } |
|||
public Guid BranchId { get; set; } |
|||
} |
|||
|
|||
public class WMSSparePartVersionCreateDto : WMSSparePartVersionDtoBase |
|||
{ } |
|||
public class WMSSparePartVersionUpdateDto : WMSSparePartVersionDtoBase |
|||
{ } |
|||
public class WMSSparePartVersionRequestDto : RequestDtoBase, IBranch<Guid> |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
public Guid BranchId { get; set; } |
|||
} |
|||
|
|||
public class WMSSparePartVersionImportDto |
|||
{ |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; private set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Services; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMS_KanBan |
|||
{ |
|||
public class WMSKanBanManager : DomainService |
|||
{ |
|||
private readonly ISettleAccountBranchEfCoreRepository<WMSKanBanSettle, Guid> _repository; |
|||
private readonly ISettleAccountBranchEfCoreRepository<WMSKanBanVersion, Guid> _versionRepository; |
|||
public WMSKanBanManager( |
|||
ISettleAccountBranchEfCoreRepository<WMSKanBanSettle, Guid> repository, |
|||
ISettleAccountBranchEfCoreRepository<WMSKanBanVersion, Guid> versionRepository |
|||
|
|||
|
|||
) |
|||
{ |
|||
_versionRepository = versionRepository; |
|||
_repository = repository; |
|||
|
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,163 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DomainBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMS_KanBan |
|||
{ |
|||
public class WMSKanBanSettle : FullAuditedAggregateRootBase<Guid>, ISettleAccountEntityBase |
|||
{ |
|||
/// <summary>
|
|||
///年度
|
|||
/// </summary>
|
|||
public string Year { get; protected set; } |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
public string Version { set; get; } |
|||
/// <summary>
|
|||
/// 看板条码号
|
|||
/// </summary>
|
|||
public string Kanban { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 入库关联号
|
|||
/// </summary>
|
|||
|
|||
public string Relation { set; get; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
public string Factory { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public string MaterialCode { set; get; } |
|||
/// <summary>
|
|||
/// 零件类型
|
|||
/// </summary>
|
|||
public string PartType { set; get; } |
|||
/// <summary>
|
|||
/// 供应商编码
|
|||
/// </summary>
|
|||
public string SupplierCode { set; get; } |
|||
/// <summary>
|
|||
/// R3入库时间
|
|||
/// </summary>
|
|||
public DateTime SettleInputDate { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 批次
|
|||
/// </summary>
|
|||
public string Batch { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 入库结算标识
|
|||
/// </summary>
|
|||
public string Flag { set; get; } |
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
public decimal Qty { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// R3结算时间
|
|||
/// </summary>
|
|||
public DateTime SettleDate { set; get; } |
|||
/// <summary>
|
|||
/// 结算状态
|
|||
/// </summary>
|
|||
public string State { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// WMS交货单
|
|||
/// </summary>
|
|||
public string WMSDeliveryNote { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// WMS发货状态
|
|||
/// </summary>
|
|||
public string WMSDeliverGoodsState { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 看板结算状态
|
|||
/// </summary>
|
|||
public string WMSKanBanState { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
|
|||
public string Extend { set; get; } |
|||
|
|||
public Guid ParentId { get; protected set; } |
|||
|
|||
public void SetValue(Guid guid, Guid branchId, string year, string peroid, string version, Guid parentId) |
|||
{ |
|||
Period = peroid; |
|||
Year = year; |
|||
Id = guid; |
|||
Version = version; |
|||
BranchId = branchId; |
|||
ParentId = parentId; |
|||
} |
|||
public WMSKanBanSettle() |
|||
{ } |
|||
public WMSKanBanSettle( |
|||
Guid id, |
|||
Guid branchId, |
|||
string year, |
|||
string version, |
|||
string kanban, |
|||
string relation, |
|||
string factory, |
|||
string materialCode, |
|||
string partType, |
|||
DateTime settleInputDate, |
|||
string supplierCode, |
|||
decimal qty, |
|||
string batch, |
|||
string flag, |
|||
DateTime settleDate, |
|||
string state, |
|||
Guid parentId, |
|||
//DateTime creationTime,
|
|||
Guid guid) : base(id) |
|||
{ |
|||
BranchId = branchId; |
|||
Year = year; |
|||
Version = version; |
|||
Kanban = kanban; |
|||
Relation = relation; |
|||
Factory = factory; |
|||
MaterialCode = materialCode; |
|||
PartType = partType; |
|||
SettleInputDate = settleInputDate; |
|||
SupplierCode = supplierCode; |
|||
Qty = qty; |
|||
Batch = batch; |
|||
Flag = flag; |
|||
SettleDate = settleDate; |
|||
State = state; |
|||
ParentId = parentId; |
|||
//CreationTime = creationTime;
|
|||
CreatorId = guid; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DomainBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMS_KanBan |
|||
{ |
|||
public class WMSKanBanVersion : FullAuditedAggregateRootBase<Guid>, ISettleAccountEntityBase |
|||
{ |
|||
|
|||
public WMSKanBanVersion() |
|||
{ } |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
public WMSKanBanVersion( |
|||
Guid id, |
|||
Guid branchId, |
|||
string year, string period, string version, string customerCode) : base(id) |
|||
{ |
|||
BranchId = branchId; |
|||
Year = year; |
|||
Period = period; |
|||
Version = version; |
|||
CustomerCode = customerCode; |
|||
|
|||
} |
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,215 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DomainBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMS_SparePart |
|||
{ |
|||
public class WMSSparePart : FullAuditedAggregateRootBase<Guid>, ISettleAccountEntityBase |
|||
{ |
|||
public WMSSparePart() |
|||
{ } |
|||
|
|||
public void SetValue(Guid guid, Guid branchId, string year, string peroid, string version) |
|||
{ |
|||
Period = peroid; |
|||
Year = year; |
|||
Id = guid; |
|||
Version = version; |
|||
BranchId = branchId; |
|||
} |
|||
public WMSSparePart(Guid Id, string year, string period, string version, string lineNumber, |
|||
string purchaseType, string purchaseOrderNo, string purchaseOrderNoItem, string purchaseOrderNoText, |
|||
decimal receiptQty, decimal invoicedQty, decimal amountNoTax, decimal purchasePriceNoTax, |
|||
string accountNum, string materialCode, string materialDesc, DateTime spareDate, string deliveryOrderNo, |
|||
string deliveryLineNum, string batchNo, string unit, decimal taxRate, string taxCode, string factory |
|||
|
|||
) : base(Id) |
|||
{ |
|||
Year = year; |
|||
Period = period; |
|||
Version = version; |
|||
LineNumber = lineNumber; |
|||
PurchaseType = purchaseType; |
|||
PurchaseOrderNo = purchaseOrderNo; |
|||
PurchaseOrderNoItem = purchaseOrderNoItem; |
|||
PurchaseOrderNoText = purchaseOrderNoText; |
|||
ReceiptQty = receiptQty; |
|||
InvoicedQty = invoicedQty; |
|||
AmountNoTax = amountNoTax; |
|||
PurchasePriceNoTax = purchasePriceNoTax; |
|||
AccountNum = accountNum; |
|||
MaterialCode = materialCode; |
|||
MaterialDesc = materialDesc; |
|||
SpareDate = spareDate; |
|||
DeliveryOrderNo = deliveryOrderNo; |
|||
DeliveryLineNum = deliveryLineNum; |
|||
BatchNo = batchNo; |
|||
Unit = unit; |
|||
TaxRate = taxRate; |
|||
TaxCode = taxCode; |
|||
Factory = factory; |
|||
} |
|||
|
|||
//行号 采购类型 采购订单号 采购订单行项目 采购订单文本 收货数量 开票数量 不含税金额 采购价格不含税
|
|||
//科目号 物料代码 物料描述 日期 交货单号 交货行号 批次号 单位 税率 税码
|
|||
//德国发票号 AP_REQUISITION_MIMRS.GERMANY_INVOCE_AMOUNT 借贷 PO币种 工厂 工厂名称 BM 单号
|
|||
|
|||
/// <summary>
|
|||
///年
|
|||
/// </summary>
|
|||
[Display(Name = "年")] |
|||
public string Year { get; set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
public string Period { set; get; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
[Display(Name = "版本号")] |
|||
public string Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 行号
|
|||
/// </summary>
|
|||
[Display(Name = "行号")] |
|||
public string LineNumber { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 采购类型
|
|||
/// </summary>
|
|||
[Display(Name = "采购类型")] |
|||
public string PurchaseType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购订单号
|
|||
/// </summary>
|
|||
[Display(Name = "采购订单号")] |
|||
public string PurchaseOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单行项目
|
|||
/// </summary>
|
|||
[Display(Name = "采购订单行项目")] |
|||
public string PurchaseOrderNoItem { get; set; } |
|||
/// <summary>
|
|||
/// 采购订单文本
|
|||
/// </summary>
|
|||
[Display(Name = "采购订单文本")] |
|||
public string PurchaseOrderNoText { get; set; } |
|||
/// <summary>
|
|||
/// 收货数量
|
|||
/// </summary>
|
|||
[Display(Name = "收货数量")] |
|||
public decimal ReceiptQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 开票数量
|
|||
/// </summary>
|
|||
[Display(Name = "开票数量")] |
|||
public decimal InvoicedQty { get; set; } |
|||
/// <summary>
|
|||
/// 不含税金额
|
|||
/// </summary>
|
|||
[Display(Name = "不含税金额")] |
|||
public decimal AmountNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 采购价格不含税
|
|||
/// </summary>
|
|||
[Display(Name = "采购价格不含税")] |
|||
public decimal PurchasePriceNoTax { get; set; } |
|||
/// <summary>
|
|||
/// 科目号
|
|||
/// </summary>
|
|||
[Display(Name = "科目号")] |
|||
public string AccountNum { get; set; } |
|||
/// <summary>
|
|||
/// 物料代码
|
|||
/// </summary>
|
|||
[Display(Name = "物料代码")] |
|||
public string MaterialCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
public string MaterialDesc { get; set; } |
|||
/// <summary>
|
|||
/// 日期
|
|||
/// </summary>
|
|||
[Display(Name = "日期")] |
|||
public DateTime SpareDate { get; set; } |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
[Display(Name = "交货单号")] |
|||
public string DeliveryOrderNo { get; set; } |
|||
/// <summary>
|
|||
/// 交货行号
|
|||
/// </summary>
|
|||
[Display(Name = "交货行号")] |
|||
public string DeliveryLineNum { get; set; } |
|||
/// <summary>
|
|||
/// 批次号
|
|||
/// </summary>
|
|||
[Display(Name = "批次号")] |
|||
public string BatchNo { get; set; } |
|||
/// <summary>
|
|||
/// 单位
|
|||
/// </summary>
|
|||
[Display(Name = "单位")] |
|||
public string Unit { get; set; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
[Display(Name = "税率")] |
|||
public decimal TaxRate { get; set; } |
|||
/// <summary>
|
|||
/// 税码
|
|||
/// </summary>
|
|||
[Display(Name = "税码")] |
|||
public string TaxCode { get; set; } |
|||
/// <summary>
|
|||
/// 德国发票号
|
|||
/// </summary>
|
|||
[Display(Name = "德国发票号")] |
|||
public string GermanInvoiceNo { get; set; } |
|||
/// <summary>
|
|||
/// 工厂
|
|||
/// </summary>
|
|||
[Display(Name = "工厂")] |
|||
public string Factory { get; set; } |
|||
/// <summary>
|
|||
/// 工厂名称
|
|||
/// </summary>
|
|||
[Display(Name = "工厂名称")] |
|||
public string FactoryName { get; set; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
[Display(Name = "备注")] |
|||
public string Extend { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// WMS交货单
|
|||
/// </summary>
|
|||
public string WMSDeliveryNote { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// WMS发货状态
|
|||
/// </summary>
|
|||
public string WMSDeliverGoodsState { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 看板结算状态
|
|||
/// </summary>
|
|||
public string WMSKanBanState { set; get; } |
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Win.Sfs.Shared.DomainBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.WMS_SparePart |
|||
{ |
|||
public class WMSSparePartVersion : FullAuditedAggregateRootBase<Guid>, ISettleAccountEntityBase |
|||
{ |
|||
|
|||
public WMSSparePartVersion() |
|||
{ } |
|||
|
|||
public string Year { get; private set; } |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
public string Period { get; private set; } |
|||
/// <summary>
|
|||
/// 版本号
|
|||
/// </summary>
|
|||
public string Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 客户号
|
|||
/// </summary>
|
|||
public string CustomerCode { private set; get; } |
|||
|
|||
|
|||
public WMSSparePartVersion( |
|||
Guid id, |
|||
Guid branchId, |
|||
string year, string period, string version, string customerCode) : base(id) |
|||
{ |
|||
BranchId = branchId; |
|||
Year = year; |
|||
Period = period; |
|||
Version = version; |
|||
CustomerCode = customerCode; |
|||
|
|||
} |
|||
|
|||
|
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue