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
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// EDI类型代码
///
public string EdiTypeCode { get; set; }
///
/// EDI类型名称
///
public string EdiName { get; set; }
///
/// 服务器IP
///
public string ServerIp { get; set; }
///
/// 文件夹
///
public string FOLDERNAME { get; set; }
///
/// 用户名
///
public string UserName { get; set; }
///
/// 密码
///
public string Password { get; set; }
///
/// 发送方代码
///
public string SendCode { get; set; }
///
/// 接收方代码
///
public string ReceiveCode { get; set; }
///
/// 发送方名称
///
public string SendName { get; set; }
///
/// 发送方联系人
///
public string SendAttn { get; set; }
///
/// 发送方电话
///
public string SendTel { get; set; }
///
/// 发送方邮箱
///
public string SendEmail { get; set; }
///
/// 发送方公司代码
///
public string SendCompanyCode { get; set; }
///
/// 发送方部门代码
///
public string SendSubCompanyCode { get; set; }
///
/// 船公司代码
///
public string CarrierCode { get; set; }
///
/// 船公司名称
///
public string CarrierName { get; set; }
///
/// 船公司Id
///
public long? CarrierId { get; set; }
///
/// 接收方邮箱
///
public string ReceiveEmail { get; set; }
///
/// 接收方SI邮箱
///
public string ReceiveSiEmail { get; set; }
///
/// 接收方操作
///
public string ReceiveOp { get; set; }
///
/// 接收方销售
///
public string ReceiveSale { get; set; }
///
/// 接收方部门
///
public string ReceiveDept { get; set; }
///
/// 发送人电话
///
public string ShipperTel { get; set; }
///
/// 收货人电话
///
public string ConsigneeTel { get; set; }
///
/// 通知人电话
///
public string NotifypartyTel { get; set; }
/////
///// 是否设置TEL
/////
//public string ISUSETEL { get; set; }
///
/// 发送类型
///
public string SendType { get; set; }
///
/// 发送方别名
///
public string AliasSendCode { get; set; }
///
/// 发货方代码
///
public string SendShipperCode { get; set; }
///
/// FTP主动模式
///
public bool FtpModeActive { get; set; }
///
/// 状态 0启用 1禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}
///
/// 验证
///
public class CodeEdiSetReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeEdiSetReqValidator()
{
this.RuleFor(o => o.EdiTypeCode)
.NotEmpty().WithName("EDI类型代码");
this.RuleFor(o => o.SendType)
.NotEmpty().WithName("发送类型");
}
}
}