You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
165 lines
4.5 KiB
C#
165 lines
4.5 KiB
C#
using DS.Module.Core;
|
|
using FluentValidation;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DS.WMS.Core.Code.Dtos
|
|
{
|
|
public class CodeEdiSetReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// EDI类型代码
|
|
/// </summary>
|
|
public string EdiTypeCode { get; set; }
|
|
/// <summary>
|
|
/// EDI类型名称
|
|
/// </summary>
|
|
public string EdiName { get; set; }
|
|
/// <summary>
|
|
/// 服务器IP
|
|
/// </summary>
|
|
public string ServerIp { get; set; }
|
|
/// <summary>
|
|
/// 文件夹
|
|
/// </summary>
|
|
public string FolderName { get; set; }
|
|
/// <summary>
|
|
/// 用户名
|
|
/// </summary>
|
|
public string UserName { get; set; }
|
|
/// <summary>
|
|
/// 密码
|
|
/// </summary>
|
|
public string Password { get; set; }
|
|
/// <summary>
|
|
/// 发送方代码
|
|
/// </summary>
|
|
public string SendCode { get; set; }
|
|
/// <summary>
|
|
/// 接收方代码
|
|
/// </summary>
|
|
public string ReceiveCode { get; set; }
|
|
/// <summary>
|
|
/// 发送方名称
|
|
/// </summary>
|
|
public string SendName { get; set; }
|
|
/// <summary>
|
|
/// 发送方联系人
|
|
/// </summary>
|
|
public string SendAttn { get; set; }
|
|
/// <summary>
|
|
/// 发送方电话
|
|
/// </summary>
|
|
public string SendTel { get; set; }
|
|
/// <summary>
|
|
/// 发送方邮箱
|
|
/// </summary>
|
|
public string SendEmail { get; set; }
|
|
/// <summary>
|
|
/// 发送方公司代码
|
|
/// </summary>
|
|
public string SendCompanyCode { get; set; }
|
|
/// <summary>
|
|
/// 发送方部门代码
|
|
/// </summary>
|
|
public string SendSubCompanyCode { get; set; }
|
|
/// <summary>
|
|
/// 船公司代码
|
|
/// </summary>
|
|
public string CarrierCode { get; set; }
|
|
/// <summary>
|
|
/// 船公司名称
|
|
/// </summary>
|
|
public string CarrierName { get; set; }
|
|
/// <summary>
|
|
/// 船公司Id
|
|
/// </summary>
|
|
public long? CarrierId { get; set; }
|
|
/// <summary>
|
|
/// 接收方邮箱
|
|
/// </summary>
|
|
public string ReceiveEmail { get; set; }
|
|
/// <summary>
|
|
/// 接收方SI邮箱
|
|
/// </summary>
|
|
public string ReceiveSiEmail { get; set; }
|
|
/// <summary>
|
|
/// 接收方操作
|
|
/// </summary>
|
|
public string ReceiveOp { get; set; }
|
|
/// <summary>
|
|
/// 接收方销售
|
|
/// </summary>
|
|
public string ReceiveSale { get; set; }
|
|
/// <summary>
|
|
/// 接收方部门
|
|
/// </summary>
|
|
public string ReceiveDept { get; set; }
|
|
/// <summary>
|
|
/// 发送人电话
|
|
/// </summary>
|
|
public string ShipperTel { get; set; }
|
|
/// <summary>
|
|
/// 收货人电话
|
|
/// </summary>
|
|
public string ConsigneeTel { get; set; }
|
|
/// <summary>
|
|
/// 通知人电话
|
|
/// </summary>
|
|
public string NotifypartyTel { get; set; }
|
|
///// <summary>
|
|
///// 是否设置TEL
|
|
///// </summary>
|
|
//public string ISUSETEL { get; set; }
|
|
/// <summary>
|
|
/// 发送类型
|
|
/// </summary>
|
|
public string SendType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发送方别名
|
|
/// </summary>
|
|
public string AliasSendCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发货方代码
|
|
/// </summary>
|
|
public string SendShipperCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// FTP主动模式
|
|
/// </summary>
|
|
public bool FtpModeActive { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 状态 0启用 1禁用
|
|
/// </summary>
|
|
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
|
}
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class CodeEdiSetReqValidator : AbstractValidator<CodeEdiSetReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public CodeEdiSetReqValidator()
|
|
{
|
|
this.RuleFor(o => o.EdiTypeCode)
|
|
.NotEmpty().WithName("EDI类型代码");
|
|
this.RuleFor(o => o.SendType)
|
|
.NotEmpty().WithName("发送类型");
|
|
}
|
|
}
|
|
}
|