客户信息相关模块

master
ZR20090193-陈敬勇 8 months ago
parent 5068ddae03
commit fdfc555d51

@ -271,5 +271,22 @@ public static class MultiLanguageConst
[Description("表单复制字段设置已存在")]
public const string FormCopyExist = "Form_Copy_Exist";
[Description("客户银行信息已存在")]
public const string ClientBankExist = "Client_Bank_Exist";
[Description("客户联系人信息已存在")]
public const string ClientContactExist = "Client_Contact_Exist";
[Description("客户合同信息已存在")]
public const string ClientContractExist = "Client_Contract_Exist";
[Description("客户收发货人信息已存在")]
public const string ClientShipperExist = "Client_Shipper_Exist";
[Description("客户账期信息已存在")]
public const string ClientAccountDateExist = "Client_Account_Date_Exist";
[Description("客户信息已存在")]
public const string ClientInfoExist = "Client_Info_Exist";
#endregion
}

@ -20,10 +20,6 @@
<PackageReference Include="Mapster" Version="7.3.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="BaseInfo\Dtos\" />
<Folder Include="BaseInfo\Entity\" />
<Folder Include="BaseInfo\Interface\" />
<Folder Include="BaseInfo\Method\" />
<Folder Include="Template\Dtos\" />
<Folder Include="Template\Entity\" />
<Folder Include="Template\Interface\" />

@ -0,0 +1,111 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户财务账期请求实体
/// </summary>
public class ClientAccountDateReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:合同生效日期
/// </summary>
public DateTime? BeginDate { get; set; }
/// <summary>
/// Desc:合同结束日期
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// Desc:业务类型
/// </summary>
public string BusinessType { get; set; }
/// <summary>
/// Desc:揽货人Id
/// </summary>
public long SaleId { get; set; }
/// <summary>
/// Desc:账期类型
/// </summary>
public string AccountType { get; set; }
/// <summary>
/// Desc:账期起算日
/// </summary>
public string AccountStartDate { get; set; }
/// <summary>
/// Desc:间隔月份
/// </summary>
public byte? AccountMonth { get; set; }
/// <summary>
/// Desc:账期日期
/// </summary>
public byte? AccountDays { get; set; }
/// <summary>
/// Desc:信用额度
/// </summary>
public decimal? AllowAmount { get; set; }
/// <summary>
/// Desc:合同Id
/// </summary>
public long ContractId { get; set; }
/// <summary>
/// Desc:运杂费比例
/// </summary>
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class ClientAccountDateReqValidator : AbstractValidator<ClientAccountDateReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientAccountDateReqValidator()
{
this.RuleFor(o => o.AccountType)
.NotEmpty().WithName("账期类型");
this.RuleFor(o => o.BusinessType)
.NotEmpty().WithName("业务类型");
}
}

@ -0,0 +1,96 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户账期返回实体
/// </summary>
public class ClientAccountDateRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:合同生效日期
/// </summary>
public DateTime? BeginDate { get; set; }
/// <summary>
/// Desc:合同结束日期
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// Desc:业务类型
/// </summary>
public string BusinessType { get; set; }
/// <summary>
/// Desc:揽货人Id
/// </summary>
public long SaleId { get; set; }
/// <summary>
/// Desc:账期类型
/// </summary>
public string AccountType { get; set; }
/// <summary>
/// Desc:账期起算日
/// </summary>
public string AccountStartDate { get; set; }
/// <summary>
/// Desc:间隔月份
/// </summary>
public byte? AccountMonth { get; set; }
/// <summary>
/// Desc:账期日期
/// </summary>
public byte? AccountDays { get; set; }
/// <summary>
/// Desc:信用额度
/// </summary>
public decimal? AllowAmount { get; set; }
/// <summary>
/// Desc:合同Id
/// </summary>
public long ContractId { get; set; }
/// <summary>
/// Desc:运杂费比例
/// </summary>
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,145 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户银行信息请求实体
/// </summary>
public class ClientBankReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:联系人代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:联系人简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:职务
/// </summary>
public string Job { get; set; }
/// <summary>
/// Desc:通讯地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:手机
/// </summary>
public string Mobile { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
public string Fax { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
public string QQ { get; set; }
/// <summary>
/// Desc:是否为操作
/// </summary>
public bool? IsOperator { get; set; } = false;
/// <summary>
/// Desc:是否为财务
/// </summary>
public bool? IsFinancialStaff { get; set; } = false;
/// <summary>
/// Desc:是否为销售
/// </summary>
public bool? IsSaleMan { get; set; } = false;
/// <summary>
/// Desc:是否为其他
/// </summary>
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:是否保险联系人
/// </summary>
public bool? IsInsurance { get; set; } = false;
/// <summary>
/// Desc:是否对账联系人
/// </summary>
public bool? IsCheckAccount { get; set; } = false;
/// <summary>
/// 提醒日期1
/// </summary>
public DateTime Anniversary1 { get; set; }
/// <summary>
/// 提醒日期2
/// </summary>
public DateTime Anniversary2 { get; set; }
/// <summary>
/// 提醒备注1
/// </summary>
public string AnniversaryNote1 { get; set; }
/// <summary>
/// 提醒备注2
/// </summary>
public string AnniversaryNote2 { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class ClientBankReqValidator : AbstractValidator<ClientBankReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientBankReqValidator()
{
this.RuleFor(o => o.CodeName)
.NotEmpty().WithName("联系人代码");
this.RuleFor(o => o.ShortName)
.NotEmpty().WithName("联系人简称");
}
}

@ -0,0 +1,101 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户银行信息返回实体
/// </summary>
public class ClientBankRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:币别
/// </summary>
public string Currency { get; set; }
/// <summary>
/// Desc:银行名称
/// </summary>
public string BankName { get; set; }
/// <summary>
/// Desc:银行账户
/// </summary>
public string Account { get; set; }
/// <summary>
/// Desc:银行地址
/// </summary>
public string BankAddress { get; set; }
/// <summary>
/// Desc:财务软件代码
/// </summary>
public string FinanceSoftCode { get; set; }
/// <summary>
/// Desc:科目代码
/// </summary>
public string SubjectCode { get; set; }
/// <summary>
/// Desc:户头名称
/// </summary>
public string AccountName { get; set; }
/// <summary>
/// Desc:代理银行名称
/// </summary>
public string BankAgentName { get; set; }
/// <summary>
/// Desc:银行账号
/// </summary>
public string BankAccountNo { get; set; }
/// <summary>
/// Desc: 银行SWIFT
/// </summary>
public string SWIFT { get; set; }
/// <summary>
/// Desc: 国家Id
/// </summary>
public long? CountryId { get; set; }
/// <summary>
/// Desc:是否开票默认账户
/// </summary>
public bool? IsInvoiceDefault { get; set; } = false;
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,115 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户联系人请求实体
/// </summary>
public class ClientContactReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:币别
/// </summary>
public string Currency { get; set; }
/// <summary>
/// Desc:银行名称
/// </summary>
public string BankName { get; set; }
/// <summary>
/// Desc:银行账户
/// </summary>
public string Account { get; set; }
/// <summary>
/// Desc:银行地址
/// </summary>
public string BankAddress { get; set; }
/// <summary>
/// Desc:财务软件代码
/// </summary>
public string FinanceSoftCode { get; set; }
/// <summary>
/// Desc:科目代码
/// </summary>
public string SubjectCode { get; set; }
/// <summary>
/// Desc:户头名称
/// </summary>
public string AccountName { get; set; }
/// <summary>
/// Desc:代理银行名称
/// </summary>
public string BankAgentName { get; set; }
/// <summary>
/// Desc:银行账号
/// </summary>
public string BankAccountNo { get; set; }
/// <summary>
/// Desc: 银行SWIFT
/// </summary>
public string SWIFT { get; set; }
/// <summary>
/// Desc: 国家Id
/// </summary>
public long? CountryId { get; set; }
/// <summary>
/// Desc:是否开票默认账户
/// </summary>
public bool? IsInvoiceDefault { get; set; } = false;
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class ClientContactReqValidator : AbstractValidator<ClientContactReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientContactReqValidator()
{
this.RuleFor(o => o.BankName)
.NotEmpty().WithName("银行名称");
this.RuleFor(o => o.Currency)
.NotEmpty().WithName("币别");
}
}

@ -0,0 +1,131 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户联系人返回实体
/// </summary>
public class ClientContactRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:联系人代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:联系人简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:职务
/// </summary>
public string Job { get; set; }
/// <summary>
/// Desc:通讯地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:手机
/// </summary>
public string Mobile { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
public string Fax { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
public string QQ { get; set; }
/// <summary>
/// Desc:是否为操作
/// </summary>
public bool? IsOperator { get; set; } = false;
/// <summary>
/// Desc:是否为财务
/// </summary>
public bool? IsFinancialStaff { get; set; } = false;
/// <summary>
/// Desc:是否为销售
/// </summary>
public bool? IsSaleMan { get; set; } = false;
/// <summary>
/// Desc:是否为其他
/// </summary>
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:是否保险联系人
/// </summary>
public bool? IsInsurance { get; set; } = false;
/// <summary>
/// Desc:是否对账联系人
/// </summary>
public bool? IsCheckAccount { get; set; } = false;
/// <summary>
/// 提醒日期1
/// </summary>
public DateTime Anniversary1 { get; set; }
/// <summary>
/// 提醒日期2
/// </summary>
public DateTime Anniversary2 { get; set; }
/// <summary>
/// 提醒备注1
/// </summary>
public string AnniversaryNote1 { get; set; }
/// <summary>
/// 提醒备注2
/// </summary>
public string AnniversaryNote2 { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,79 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户合同请求实体
/// </summary>
public class ClientContractReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:合同号
/// </summary>
public string ContractNo { get; set; }
/// <summary>
/// Desc:签订日期
/// </summary>
public DateTime SignDate { get; set; }
/// <summary>
/// Desc:起始日期
/// </summary>
public DateTime StartDate { get; set; }
/// <summary>
/// Desc:截止日期
/// </summary>
public DateTime EndDate { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
public string Chief { get; set; }
/// <summary>
/// Desc:签订部门Id
/// </summary>
public long DeptId { get; set; }
/// <summary>
/// Desc:合同名称
/// </summary>
public string ContractName { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class ClientContractReqValidator : AbstractValidator<ClientContractReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientContractReqValidator()
{
this.RuleFor(o => o.ContractNo)
.NotEmpty().WithName("合同号");
this.RuleFor(o => o.ContractName)
.NotEmpty().WithName("合同名称");
}
}

@ -0,0 +1,66 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户合同返回实体
/// </summary>
public class ClientContractRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:合同号
/// </summary>
public string ContractNo { get; set; }
/// <summary>
/// Desc:签订日期
/// </summary>
public DateTime SignDate { get; set; }
/// <summary>
/// Desc:起始日期
/// </summary>
public DateTime StartDate { get; set; }
/// <summary>
/// Desc:截止日期
/// </summary>
public DateTime EndDate { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
public string Chief { get; set; }
/// <summary>
/// Desc:签订部门Id
/// </summary>
public long DeptId { get; set; }
/// <summary>
/// Desc:合同名称
/// </summary>
public string ContractName { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,417 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户基本信息请求实体
/// </summary>
public class ClientInfoReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// Desc:客户代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:客户简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:客户中文名称或描述信息
/// </summary>
public string Description { get; set; }
/// <summary>
/// Desc:客户英文简称
/// </summary>
public string Name { get; set; }
/// <summary>
/// Desc:客户英文全称
/// </summary>
public string EnFullName { get; set; }
/// <summary>
/// Desc:通讯地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:网页
/// </summary>
public string Web { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
public string Fax { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
public string Chief { get; set; }
/// <summary>
/// Desc:所属揽货人
/// </summary>
public long SaleId { get; set; }
/// <summary>
/// Desc:所属操作人
/// </summary>
public long Op { get; set; }
/// <summary>
/// Desc:所属单证
/// </summary>
public long Doc { get; set; }
/// <summary>
/// Desc:国家
/// </summary>
public string Country { get; set; }
/// <summary>
/// Desc:省或州
/// </summary>
public string Province { get; set; }
/// <summary>
/// Desc:城市
/// </summary>
public string City { get; set; }
/// <summary>
/// Desc:提单信息
/// </summary>
public string BLContent { get; set; }
/// <summary>
/// Desc:是否停用
/// </summary>
public bool? IsStop { get; set; } = false;
/// <summary>
/// Desc:发票抬头1
/// </summary>
public string BillRises1 { get; set; }
/// <summary>
/// Desc:发票抬头2
/// </summary>
public string BillRises2 { get; set; }
/// <summary>
/// Desc:美元支票抬头
/// </summary>
public string USDBillRises { get; set; }
/// <summary>
/// Desc:人民币支票抬头
/// </summary>
public string RMBBillRises { get; set; }
/// <summary>
/// Desc:人民币开户银行
/// </summary>
public string RMBBank { get; set; }
/// <summary>
/// Desc:人民币账号
/// </summary>
public string RMBAccount { get; set; }
/// <summary>
/// Desc:人民币联机行号
/// </summary>
public string RMBOnlineNO { get; set; }
/// <summary>
/// Desc:美元开户银行
/// </summary>
public string USDBank { get; set; }
/// <summary>
/// Desc:美元账号
/// </summary>
public string USDAccount { get; set; }
/// <summary>
/// Desc:美元联机行号
/// </summary>
public string USDOnlineNO { get; set; }
/// <summary>
/// Desc:自定义属性1
/// </summary>
public string CustomAttributes1 { get; set; }
/// <summary>
/// Desc:自定义属性2
/// </summary>
public string CustomAttributes2 { get; set; }
/// <summary>
/// Desc:美元信用最大金额
/// </summary>
public decimal? USDMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:人民币信用最大金额
/// </summary>
public decimal? RMBMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:信用最大金额RMB+USD
/// </summary>
public decimal? MaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:结算方式编码
/// </summary>
public string StlName { get; set; }
/// <summary>
/// Desc:美金汇率
/// </summary>
public decimal? USDExchangeRate { get; set; }
/// <summary>
/// Desc:月结算时间
/// </summary>
public string StlDate { get; set; }
/// <summary>
/// Desc:上半月结算时间
/// </summary>
public string StlFirstHalfDate { get; set; }
/// <summary>
/// Desc:下半月结算时间
/// </summary>
public string StlMiddleDate { get; set; }
/// <summary>
/// Desc:票结结算时间
/// </summary>
public string InvoiceStlDate { get; set; }
/// <summary>
/// Desc:等级
/// </summary>
public string Level { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
public string QQ { get; set; }
/// <summary>
/// Desc:MSN
/// </summary>
public string MSN { get; set; }
/// <summary>
/// Desc:财务应收账款代码
/// </summary>
public string FARCode { get; set; }
/// <summary>
/// Desc:财务应付账款代码
/// </summary>
public string FAPCode { get; set; }
/// <summary>
/// Desc:冷藏费率
/// </summary>
public string UnitPrice { get; set; }
/// <summary>
/// Desc:企业备案号
/// </summary>
public string RegistrationNo { get; set; }
/// <summary>
/// Desc:财务序号
/// </summary>
public string OrderNo { get; set; }
/// <summary>
/// Desc:纳税人识别号
/// </summary>
public string TaxNo { get; set; }
/// <summary>
/// Desc:EDI代码
/// </summary>
public string EDICode { get; set; }
/// <summary>
/// Desc:EDI代码2
/// </summary>
public string EDICode2 { get; set; }
/// <summary>
/// Desc:EDI代码3
/// </summary>
public string EDICode3 { get; set; }
/// <summary>
/// Desc:组织机构代码
/// </summary>
public string OrganizationCode { get; set; }
/// <summary>
/// Desc: 所属集团
/// </summary>
public string PcorpName { get; set; }
/// <summary>
/// Desc:企业商检备案号
/// </summary>
public string InspectionNo { get; set; }
/// <summary>
/// 审批状态
/// </summary>
public AuditStatusEnum? AuditStatus { get; set; } = AuditStatusEnum.Approve;
/// <summary>
/// 审批时间
/// </summary>
public DateTime AuditTime { get; set; }
/// <summary>
/// 审批意见
/// </summary>
public string AuditNote { get; set; }
/// <summary>
/// Desc:默认付费方式
/// </summary>
public string FeeFRT { get; set; }
/// <summary>
/// Desc:收单据模式
/// </summary>
public int? RCVMode { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:发票银行
/// </summary>
public string InvoiceBank { get; set; }
/// <summary>
/// Desc:发票地址电话
/// </summary>
public string InvoiceAddrTel { get; set; }
/// <summary>
/// Desc:所属分部
/// </summary>
public long? SaleOrgId { get; set; }
/// <summary>
/// Desc:提成比例
/// </summary>
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// Desc:分成比例
/// </summary>
public decimal? ProportionRate { get; set; } = 0;
/// <summary>
/// Desc:提成参与人
/// </summary>
public long CommissionUserId { get; set; }
/// <summary>
/// Desc:运输公司列表
/// </summary>
public string CarrierList { get; set; }
/// <summary>
/// Desc:集装箱尺寸
/// </summary>
public string CtnType { get; set; }
/// <summary>
/// Desc: 客服
/// </summary>
public long CustomerService { get; set; } = 0;
/// <summary>
/// Desc:英文简称
/// </summary>
public string EnShortName { get; set; }
/// <summary>
/// Desc:仓储费开始日期模式
/// </summary>
public string WMSFeeRateType { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 客户标识
/// </summary>
public ClientTagReq ClientTag { get; set; }
}
/// <summary>
/// 验证
/// </summary>
public class ClientInfoReqValidator : AbstractValidator<ClientInfoReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientInfoReqValidator()
{
this.RuleFor(o => o.CodeName)
.NotEmpty().WithName("客户代码");
this.RuleFor(o => o.ShortName)
.NotEmpty().WithName("客户简称");
}
}

@ -0,0 +1,403 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户基本信息返回实体
/// </summary>
public class ClientInfoRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// Desc:客户代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:客户简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:客户中文名称或描述信息
/// </summary>
public string Description { get; set; }
/// <summary>
/// Desc:客户英文简称
/// </summary>
public string Name { get; set; }
/// <summary>
/// Desc:客户英文全称
/// </summary>
public string EnFullName { get; set; }
/// <summary>
/// Desc:通讯地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:网页
/// </summary>
public string Web { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
public string Fax { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
public string Chief { get; set; }
/// <summary>
/// Desc:所属揽货人
/// </summary>
public long SaleId { get; set; }
/// <summary>
/// Desc:所属操作人
/// </summary>
public long Op { get; set; }
/// <summary>
/// Desc:所属单证
/// </summary>
public long Doc { get; set; }
/// <summary>
/// Desc:国家
/// </summary>
public string Country { get; set; }
/// <summary>
/// Desc:省或州
/// </summary>
public string Province { get; set; }
/// <summary>
/// Desc:城市
/// </summary>
public string City { get; set; }
/// <summary>
/// Desc:提单信息
/// </summary>
public string BLContent { get; set; }
/// <summary>
/// Desc:是否停用
/// </summary>
public bool? IsStop { get; set; } = false;
/// <summary>
/// Desc:发票抬头1
/// </summary>
public string BillRises1 { get; set; }
/// <summary>
/// Desc:发票抬头2
/// </summary>
public string BillRises2 { get; set; }
/// <summary>
/// Desc:美元支票抬头
/// </summary>
public string USDBillRises { get; set; }
/// <summary>
/// Desc:人民币支票抬头
/// </summary>
public string RMBBillRises { get; set; }
/// <summary>
/// Desc:人民币开户银行
/// </summary>
public string RMBBank { get; set; }
/// <summary>
/// Desc:人民币账号
/// </summary>
public string RMBAccount { get; set; }
/// <summary>
/// Desc:人民币联机行号
/// </summary>
public string RMBOnlineNO { get; set; }
/// <summary>
/// Desc:美元开户银行
/// </summary>
public string USDBank { get; set; }
/// <summary>
/// Desc:美元账号
/// </summary>
public string USDAccount { get; set; }
/// <summary>
/// Desc:美元联机行号
/// </summary>
public string USDOnlineNO { get; set; }
/// <summary>
/// Desc:自定义属性1
/// </summary>
public string CustomAttributes1 { get; set; }
/// <summary>
/// Desc:自定义属性2
/// </summary>
public string CustomAttributes2 { get; set; }
/// <summary>
/// Desc:美元信用最大金额
/// </summary>
public decimal? USDMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:人民币信用最大金额
/// </summary>
public decimal? RMBMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:信用最大金额RMB+USD
/// </summary>
public decimal? MaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:结算方式编码
/// </summary>
public string StlName { get; set; }
/// <summary>
/// Desc:美金汇率
/// </summary>
public decimal? USDExchangeRate { get; set; }
/// <summary>
/// Desc:月结算时间
/// </summary>
public string StlDate { get; set; }
/// <summary>
/// Desc:上半月结算时间
/// </summary>
public string StlFirstHalfDate { get; set; }
/// <summary>
/// Desc:下半月结算时间
/// </summary>
public string StlMiddleDate { get; set; }
/// <summary>
/// Desc:票结结算时间
/// </summary>
public string InvoiceStlDate { get; set; }
/// <summary>
/// Desc:等级
/// </summary>
public string Level { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
public string QQ { get; set; }
/// <summary>
/// Desc:MSN
/// </summary>
public string MSN { get; set; }
/// <summary>
/// Desc:财务应收账款代码
/// </summary>
public string FARCode { get; set; }
/// <summary>
/// Desc:财务应付账款代码
/// </summary>
public string FAPCode { get; set; }
/// <summary>
/// Desc:冷藏费率
/// </summary>
public string UnitPrice { get; set; }
/// <summary>
/// Desc:企业备案号
/// </summary>
public string RegistrationNo { get; set; }
/// <summary>
/// Desc:财务序号
/// </summary>
public string OrderNo { get; set; }
/// <summary>
/// Desc:纳税人识别号
/// </summary>
public string TaxNo { get; set; }
/// <summary>
/// Desc:EDI代码
/// </summary>
public string EDICode { get; set; }
/// <summary>
/// Desc:EDI代码2
/// </summary>
public string EDICode2 { get; set; }
/// <summary>
/// Desc:EDI代码3
/// </summary>
public string EDICode3 { get; set; }
/// <summary>
/// Desc:组织机构代码
/// </summary>
public string OrganizationCode { get; set; }
/// <summary>
/// Desc: 所属集团
/// </summary>
public string PcorpName { get; set; }
/// <summary>
/// Desc:企业商检备案号
/// </summary>
public string InspectionNo { get; set; }
/// <summary>
/// 审批状态
/// </summary>
public AuditStatusEnum? AuditStatus { get; set; } = AuditStatusEnum.Approve;
/// <summary>
/// 审批时间
/// </summary>
public DateTime AuditTime { get; set; }
/// <summary>
/// 审批意见
/// </summary>
public string AuditNote { get; set; }
/// <summary>
/// Desc:默认付费方式
/// </summary>
public string FeeFRT { get; set; }
/// <summary>
/// Desc:收单据模式
/// </summary>
public int? RCVMode { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
public long SourceId { get; set; }
/// <summary>
/// Desc:发票银行
/// </summary>
public string InvoiceBank { get; set; }
/// <summary>
/// Desc:发票地址电话
/// </summary>
public string InvoiceAddrTel { get; set; }
/// <summary>
/// Desc:所属分部
/// </summary>
public long? SaleOrgId { get; set; }
/// <summary>
/// Desc:提成比例
/// </summary>
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// Desc:分成比例
/// </summary>
public decimal? ProportionRate { get; set; } = 0;
/// <summary>
/// Desc:提成参与人
/// </summary>
public long CommissionUserId { get; set; }
/// <summary>
/// Desc:运输公司列表
/// </summary>
public string CarrierList { get; set; }
/// <summary>
/// Desc:集装箱尺寸
/// </summary>
public string CtnType { get; set; }
/// <summary>
/// Desc: 客服
/// </summary>
public long CustomerService { get; set; } = 0;
/// <summary>
/// Desc:英文简称
/// </summary>
public string EnShortName { get; set; }
/// <summary>
/// Desc:仓储费开始日期模式
/// </summary>
public string WMSFeeRateType { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 客户标识
/// </summary>
public ClientTagRes ClientTag { get; set; }
}

@ -0,0 +1,94 @@
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户收发货人请求实体
/// </summary>
public class ClientShipperReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:收发货人代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:收发货人简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:类型 下拉选择(Shipper-1,Consinee-2,Notifypaty-3,Agent-4)
/// </summary>
public int ShipperType { get; set; }
/// <summary>
/// 是否公共标识
/// </summary>
public bool IsPublic { get; set; } = false;
/// <summary>
/// Desc:详细信息
/// </summary>
public string ShortDetail { get; set; }
/// <summary>
/// Desc:联系人
/// </summary>
public string ATTN { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:公司代码
/// </summary>
public string CompanyNo { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class ClientShipperReqValidator : AbstractValidator<ClientShipperReq>
{
/// <summary>
/// 构造函数
/// </summary>
public ClientShipperReqValidator()
{
this.RuleFor(o => o.CodeName)
.NotEmpty().WithName("代码");
this.RuleFor(o => o.ShortName)
.NotEmpty().WithName("简称");
}
}

@ -0,0 +1,79 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户收发货人返回实体
/// </summary>
public class ClientShipperRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:收发货人代码
/// </summary>
public string CodeName { get; set; }
/// <summary>
/// Desc:收发货人简称
/// </summary>
public string ShortName { get; set; }
/// <summary>
/// Desc:类型 下拉选择(Shipper-1,Consinee-2,Notifypaty-3,Agent-4)
/// </summary>
public int ShipperType { get; set; }
/// <summary>
/// 是否公共标识
/// </summary>
public bool IsPublic { get; set; } = false;
/// <summary>
/// Desc:详细信息
/// </summary>
public string ShortDetail { get; set; }
/// <summary>
/// Desc:联系人
/// </summary>
public string ATTN { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:公司代码
/// </summary>
public string CompanyNo { get; set; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,140 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户标识信息请求实体
/// </summary>
public class ClientTagReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long? ClientId { get; set; }
/// <summary>
/// Desc:是否特批放单客户
/// </summary>
public bool? IsSpecialApproval { get; set; }= false;
/// <summary>
/// Desc:是否船公司
/// </summary>
public bool? IsCarrier { get; set; } = false;
/// <summary>
/// Desc:是否订舱公司
/// </summary>
public bool? IsBooking { get; set; } = false;
/// <summary>
/// Desc:是否场站
/// </summary>
public bool? IsYard { get; set; } = false;
/// <summary>
/// Desc:是否车队
/// </summary>
public bool? IsTruck { get; set; } = false;
/// <summary>
/// Desc:是否委托单位
/// </summary>
public bool? IsController { get; set; } = false;
/// <summary>
/// Desc:是否报关行
/// </summary>
public bool? IsCustom { get; set; } = false;
/// <summary>
/// Desc:是否代理(国外)
/// </summary>
public bool? IsAgent { get; set; } = false;
/// <summary>
/// Desc:是否代理(国内)
/// </summary>
public bool? IsAgentCn { get; set; } = false;
/// <summary>
/// Desc:是否快递公司
/// </summary>
public bool? IsExpress { get; set; } = false;
/// <summary>
/// Desc:是否航空公司
/// </summary>
public bool? IsAirLines { get; set; } = false;
/// <summary>
/// Desc:是否发货人
/// </summary>
public bool? IsShipper { get; set; } = false;
/// <summary>
/// Desc:是否收货人
/// </summary>
public bool? IsConsignee { get; set; } = false;
/// <summary>
/// Desc:是否通知人
/// </summary>
public bool? IsNotifyParty { get; set; } = false;
/// <summary>
/// Desc:是否仓库
/// </summary>
public bool? IsWareHouse { get; set; } = false;
/// <summary>
/// Desc:是否码头
/// </summary>
public bool? IsWharf { get; set; } = false;
/// <summary>
/// Desc:是否保险公司
/// </summary>
public bool? IsInsurer { get; set; } = false;
/// <summary>
/// Desc:是否租箱公司
/// </summary>
public bool? IsLeasing { get; set; } = false;
/// <summary>
/// Desc:是否贸易代理
/// </summary>
public bool? IsTradingAgency { get; set; } = false;
/// <summary>
/// Desc:是否其他
/// </summary>
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:其他类型
/// </summary>
public string Others { get; set; }
/// <summary>
/// Desc:是否船代
/// </summary>
public bool? IsShipAgency { get; set; }
/// <summary>
/// Desc:是否经营单位
/// </summary>
public bool? IsEnterprise { get; set; } = false;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}

@ -0,0 +1,145 @@
using DS.Module.Core;
namespace DS.WMS.Core.Info.Dtos;
/// <summary>
/// 客户标识信息返回实体
/// </summary>
public class ClientTagRes
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:是否特批放单客户
/// </summary>
public bool? IsSpecialApproval { get; set; }= false;
/// <summary>
/// Desc:是否船公司
/// </summary>
public bool? IsCarrier { get; set; } = false;
/// <summary>
/// Desc:是否订舱公司
/// </summary>
public bool? IsBooking { get; set; } = false;
/// <summary>
/// Desc:是否场站
/// </summary>
public bool? IsYard { get; set; } = false;
/// <summary>
/// Desc:是否车队
/// </summary>
public bool? IsTruck { get; set; } = false;
/// <summary>
/// Desc:是否委托单位
/// </summary>
public bool? IsController { get; set; } = false;
/// <summary>
/// Desc:是否报关行
/// </summary>
public bool? IsCustom { get; set; } = false;
/// <summary>
/// Desc:是否代理(国外)
/// </summary>
public bool? IsAgent { get; set; } = false;
/// <summary>
/// Desc:是否代理(国内)
/// </summary>
public bool? IsAgentCn { get; set; } = false;
/// <summary>
/// Desc:是否快递公司
/// </summary>
public bool? IsExpress { get; set; } = false;
/// <summary>
/// Desc:是否航空公司
/// </summary>
public bool? IsAirLines { get; set; } = false;
/// <summary>
/// Desc:是否发货人
/// </summary>
public bool? IsShipper { get; set; } = false;
/// <summary>
/// Desc:是否收货人
/// </summary>
public bool? IsConsignee { get; set; } = false;
/// <summary>
/// Desc:是否通知人
/// </summary>
public bool? IsNotifyParty { get; set; } = false;
/// <summary>
/// Desc:是否仓库
/// </summary>
public bool? IsWareHouse { get; set; } = false;
/// <summary>
/// Desc:是否码头
/// </summary>
public bool? IsWharf { get; set; } = false;
/// <summary>
/// Desc:是否保险公司
/// </summary>
public bool? IsInsurer { get; set; } = false;
/// <summary>
/// Desc:是否租箱公司
/// </summary>
public bool? IsLeasing { get; set; } = false;
/// <summary>
/// Desc:是否贸易代理
/// </summary>
public bool? IsTradingAgency { get; set; } = false;
/// <summary>
/// Desc:是否其他
/// </summary>
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:其他类型
/// </summary>
public string Others { get; set; }
/// <summary>
/// Desc:是否船代
/// </summary>
public bool? IsShipAgency { get; set; }
/// <summary>
/// Desc:是否经营单位
/// </summary>
public bool? IsEnterprise { get; set; } = false;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

@ -0,0 +1,460 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位基本信息
/// </summary>
[SqlSugar.SugarTable("info_client")]
public class InfoClient : BaseOrgModel<long>
{
/// <summary>
/// Desc:客户代码
/// </summary>
[SugarColumn(ColumnDescription = "客户代码", IsNullable = false, Length = 20)]
public string CodeName { get; set; }
/// <summary>
/// Desc:客户简称
/// </summary>
[SugarColumn(ColumnDescription = "客户简称", IsNullable = false, Length = 20)]
public string ShortName { get; set; }
/// <summary>
/// Desc:客户中文名称或描述信息
/// </summary>
[SugarColumn(ColumnDescription = "客户中文名称或描述信息", Length = 50)]
public string Description { get; set; }
/// <summary>
/// Desc:客户英文简称
/// </summary>
[SugarColumn(ColumnDescription = "客户英文简称", Length = 50)]
public string Name { get; set; }
/// <summary>
/// Desc:客户英文全称
/// </summary>
[SugarColumn(ColumnDescription = "客户英文全称", Length = 50)]
public string EnFullName { get; set; }
/// <summary>
/// Desc:客户状态
/// </summary>
[SugarColumn(ColumnDescription = "客户状态", DefaultValue = "0")]
public int? Status { get; set; } = 0;
/// <summary>
/// Desc:通讯地址
/// </summary>
[SugarColumn(ColumnDescription = "通讯地址", Length = 1000)]
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
[SugarColumn(ColumnDescription = "邮箱", Length = 50)]
public string Email { get; set; }
/// <summary>
/// Desc:网页
/// </summary>
[SugarColumn(ColumnDescription = "网页", Length = 50)]
public string Web { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
[SugarColumn(ColumnDescription = "电话", Length = 50)]
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
[SugarColumn(ColumnDescription = "传真", Length = 50)]
public string Fax { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
[SugarColumn(ColumnDescription = "负责人", Length = 20)]
public string Chief { get; set; }
/// <summary>
/// Desc:所属揽货人
/// </summary>
[SugarColumn(ColumnDescription = "所属揽货人")]
public long SaleId { get; set; }
/// <summary>
/// Desc:所属操作人
/// </summary>
[SugarColumn(ColumnDescription = "所属操作人")]
public long Op { get; set; }
/// <summary>
/// Desc:所属单证
/// </summary>
[SugarColumn(ColumnDescription = "所属单证")]
public long Doc { get; set; }
/// <summary>
/// Desc:国家
/// </summary>
[SugarColumn(ColumnDescription = "国家", Length = 50)]
public string Country { get; set; }
/// <summary>
/// Desc:省或州
/// </summary>
[SugarColumn(ColumnDescription = "省或州", Length = 50)]
public string Province { get; set; }
/// <summary>
/// Desc:城市
/// </summary>
[SugarColumn(ColumnDescription = "城市", Length = 50)]
public string City { get; set; }
/// <summary>
/// Desc:提单信息
/// </summary>
[SugarColumn(ColumnDescription = "提单信息", Length = 600)]
public string BLContent { get; set; }
/// <summary>
/// Desc:是否停用该客户信息
/// </summary>
[SugarColumn(ColumnDescription = "是否停用该客户信息")]
public bool? IsStop { get; set; } = false;
/// <summary>
/// Desc:发票抬头1
/// </summary>
[SugarColumn(ColumnDescription = "发票抬头1", Length = 60)]
public string BillRises1 { get; set; }
/// <summary>
/// Desc:发票抬头2
/// </summary>
[SugarColumn(ColumnDescription = "发票抬头2", Length = 60)]
public string BillRises2 { get; set; }
/// <summary>
/// Desc:美元支票抬头
/// </summary>
[SugarColumn(ColumnDescription = "美元支票抬头", Length = 60)]
public string USDBillRises { get; set; }
/// <summary>
/// Desc:人民币支票抬头
/// </summary>
[SugarColumn(ColumnDescription = "人民币支票抬头", Length = 60)]
public string RMBBillRises { get; set; }
/// <summary>
/// Desc:人民币开户银行
/// </summary>
[SugarColumn(ColumnDescription = "人民币开户银行", Length = 60)]
public string RMBBank { get; set; }
/// <summary>
/// Desc:人民币账号
/// </summary>
[SugarColumn(ColumnDescription = "人民币账号", Length = 30)]
public string RMBAccount { get; set; }
/// <summary>
/// Desc:人民币联机行号
/// </summary>
[SugarColumn(ColumnDescription = "人民币联机行号", Length = 20)]
public string RMBOnlineNO { get; set; }
/// <summary>
/// Desc:美元开户银行
/// </summary>
[SugarColumn(ColumnDescription = "美元开户银行", Length = 60)]
public string USDBank { get; set; }
/// <summary>
/// Desc:美元账号
/// </summary>
[SugarColumn(ColumnDescription = "美元账号", Length = 30)]
public string USDAccount { get; set; }
/// <summary>
/// Desc:美元联机行号
/// </summary>
[SugarColumn(ColumnDescription = "美元联机行号", Length = 20)]
public string USDOnlineNO { get; set; }
/// <summary>
/// Desc:自定义属性1
/// </summary>
[SugarColumn(ColumnDescription = "自定义属性1", Length = 12)]
public string CustomAttributes1 { get; set; }
/// <summary>
/// Desc:自定义属性2
/// </summary>
[SugarColumn(ColumnDescription = "自定义属性2", Length = 12)]
public string CustomAttributes2 { get; set; }
/// <summary>
/// Desc:美元信用最大金额
/// </summary>
[SugarColumn(ColumnDescription = "美元信用最大金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? USDMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:人民币信用最大金额
/// </summary>
[SugarColumn(ColumnDescription = "人民币信用最大金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? RMBMaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:信用最大金额RMB+USD
/// </summary>
[SugarColumn(ColumnDescription = "信用最大金额RMB+USD", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? MaxAmountCredit { get; set; } = 0;
/// <summary>
/// Desc:结算方式编码
/// </summary>
[SugarColumn(ColumnDescription = "结算方式编码", Length = 30)]
public string StlName { get; set; }
/// <summary>
/// Desc:美金汇率
/// </summary>
[SugarColumn(ColumnDescription = "美金汇率", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? USDExchangeRate { get; set; }
/// <summary>
/// Desc:月结算时间
/// </summary>
[SugarColumn(ColumnDescription = "月结算时间", Length = 2)]
public string StlDate { get; set; }
/// <summary>
/// Desc:上半月结算时间
/// </summary>
[SugarColumn(ColumnDescription = "上半月结算时间", Length = 2)]
public string StlFirstHalfDate { get; set; }
/// <summary>
/// Desc:下半月结算时间
/// </summary>
[SugarColumn(ColumnDescription = "下半月结算时间", Length = 2)]
public string StlMiddleDate { get; set; }
/// <summary>
/// Desc:票结结算时间
/// </summary>
[SugarColumn(ColumnDescription = "发票结算时间", Length = 2)]
public string InvoiceStlDate { get; set; }
/// <summary>
/// Desc:等级
/// </summary>
[SugarColumn(ColumnDescription = "等级", Length = 1)]
public string Level { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
[SugarColumn(ColumnDescription = "QQ", Length = 50)]
public string QQ { get; set; }
/// <summary>
/// Desc:MSN
/// </summary>
[SugarColumn(ColumnDescription = "MSN", Length = 50)]
public string MSN { get; set; }
/// <summary>
/// Desc:财务应收账款代码
/// </summary>
[SugarColumn(ColumnDescription = "财务应收账款代码", Length = 50)]
public string FARCode { get; set; }
/// <summary>
/// Desc:财务应付账款代码
/// </summary>
[SugarColumn(ColumnDescription = "财务应付账款代码", Length = 50)]
public string FAPCode { get; set; }
/// <summary>
/// Desc:冷藏费率
/// </summary>
[SugarColumn(ColumnDescription = "冷藏费率", Length = 50, DefaultValue = "0")]
public string UnitPrice { get; set; }
/// <summary>
/// Desc:企业备案号
/// </summary>
[SugarColumn(ColumnDescription = "企业备案号", Length = 50)]
public string RegistrationNo { get; set; }
/// <summary>
/// Desc:财务序号
/// </summary>
[SugarColumn(ColumnDescription = "财务序号", Length = 50)]
public string OrderNo { get; set; }
/// <summary>
/// Desc:纳税人识别号
/// </summary>
[SugarColumn(ColumnDescription = "纳税人识别号", Length = 30)]
public string TaxNo { get; set; }
/// <summary>
/// Desc:EDI代码
/// </summary>
[SugarColumn(ColumnDescription = "EDI代码", Length = 20)]
public string EDICode { get; set; }
/// <summary>
/// Desc:EDI代码2
/// </summary>
[SugarColumn(ColumnDescription = "EDI代码2", Length = 20)]
public string EDICode2 { get; set; }
/// <summary>
/// Desc:EDI代码3
/// </summary>
[SugarColumn(ColumnDescription = "EDI代码3", Length = 20)]
public string EDICode3 { get; set; }
/// <summary>
/// Desc:组织机构代码
/// </summary>
[SugarColumn(ColumnDescription = "组织机构代码", Length = 50)]
public string OrganizationCode { get; set; }
/// <summary>
/// Desc: 所属集团
/// </summary>
[SugarColumn(ColumnDescription = "所属集团", Length = 50)]
public string PcorpName { get; set; }
/// <summary>
/// Desc:企业商检备案号
/// </summary>
[SugarColumn(ColumnDescription = "商检备案号", Length = 50)]
public string InspectionNo { get; set; }
/// <summary>
/// 审批状态
/// </summary>
[SugarColumn(ColumnDescription = "审批状态", DefaultValue = "0")]
public AuditStatusEnum? AuditStatus { get; set; } = AuditStatusEnum.Approve;
/// <summary>
/// 审批时间
/// </summary>
[SugarColumn(ColumnDescription = "审批时间")]
public DateTime AuditTime { get; set; }
/// <summary>
/// 审批意见
/// </summary>
[SugarColumn(ColumnDescription = "审批意见", Length = 100)]
public string AuditNote { get; set; }
/// <summary>
/// Desc:默认付费方式
/// </summary>
[SugarColumn(ColumnDescription = "默认付费方式", Length = 20)]
public string FeeFRT { get; set; }
/// <summary>
/// Desc:收单据模式
/// </summary>
[SugarColumn(ColumnDescription = "收单据模式")]
public int? RCVMode { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
[SugarColumn(ColumnDescription = "业务来源Id")]
public long SourceId { get; set; }
/// <summary>
/// Desc:发票银行
/// </summary>
[SugarColumn(ColumnDescription = "发票银行", Length = 150)]
public string InvoiceBank { get; set; }
/// <summary>
/// Desc:发票地址电话
/// </summary>
[SugarColumn(ColumnDescription = "发票地址电话", Length = 200)]
public string InvoiceAddrTel { get; set; }
/// <summary>
/// Desc:所属分部
/// </summary>
[SugarColumn(ColumnDescription = "所属分部")]
public long? SaleOrgId { get; set; }
/// <summary>
/// Desc:提成比例
/// </summary>
[SugarColumn(ColumnDescription = "提成比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// Desc:分成比例
/// </summary>
[SugarColumn(ColumnDescription = "分成比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? ProportionRate { get; set; } = 0;
/// <summary>
/// Desc:提成参与人
/// </summary>
[SugarColumn(ColumnDescription = "提成参与人")]
public long CommissionUserId { get; set; }
/// <summary>
/// Desc:运输公司列表
/// </summary>
[SugarColumn(ColumnDescription = "运输公司列表", Length = 200)]
public string CarrierList { get; set; }
/// <summary>
/// Desc:集装箱尺寸
/// </summary>
[SugarColumn(ColumnDescription = "集装箱尺寸", Length = 50)]
public string CtnType { get; set; }
/// <summary>
/// Desc: 客服
/// </summary>
[SugarColumn(ColumnDescription = "客服")]
public long CustomerService { get; set; } = 0;
/// <summary>
/// Desc:英文简称
/// </summary>
[SugarColumn(ColumnDescription = "英文简称", Length = 50)]
public string EnShortName { get; set; }
/// <summary>
/// Desc:仓储费开始日期模式
/// </summary>
[SugarColumn(ColumnDescription = "仓储费开始日期模式", Length = 50)]
public string WMSFeeRateType { get; set; }
}

@ -0,0 +1,97 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位-账期信息
/// </summary>
[SqlSugar.SugarTable("info_client_account_date")]
public class InfoClientAccountDate : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:业务来源Id
/// </summary>
[SugarColumn(ColumnDescription = "业务来源Id")]
public long SourceId { get; set; }
/// <summary>
/// Desc:合同生效日期
/// </summary>
[SugarColumn(ColumnDescription = "合同生效日期")]
public DateTime? BeginDate { get; set; }
/// <summary>
/// Desc:合同结束日期
/// </summary>
[SugarColumn(ColumnDescription = "合同失效日期")]
public DateTime? EndDate { get; set; }
/// <summary>
/// Desc:业务类型
/// </summary>
[SugarColumn(ColumnDescription = "业务类型",Length = 20)]
public string BusinessType { get; set; }
/// <summary>
/// Desc:揽货人Id
/// </summary>
[SugarColumn(ColumnDescription = "揽货人Id")]
public long SaleId { get; set; }
/// <summary>
/// Desc:账期类型
/// </summary>
[SugarColumn(ColumnDescription = "账期类型",Length = 20)]
public string AccountType { get; set; }
/// <summary>
/// Desc:账期起算日
/// </summary>
[SugarColumn(ColumnDescription = "账期起算日",Length = 20)]
public string AccountStartDate { get; set; }
/// <summary>
/// Desc:间隔月份
/// </summary>
[SugarColumn(ColumnDescription = "间隔月份")]
public byte? AccountMonth { get; set; }
/// <summary>
/// Desc:账期日期
/// </summary>
[SugarColumn(ColumnDescription = "账期日期")]
public byte? AccountDays { get; set; }
/// <summary>
/// Desc:信用额度
/// </summary>
[SugarColumn(ColumnDescription = "信用额度", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? AllowAmount { get; set; }
/// <summary>
/// Desc:合同Id
/// </summary>
[SugarColumn(ColumnDescription = "合同Id")]
public long ContractId { get; set; }
/// <summary>
/// Desc:运杂费比例
/// </summary>
[SugarColumn(ColumnDescription = "运杂费比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? CommissionRate { get; set; } = 0;
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}

@ -0,0 +1,103 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位-银行信息
/// </summary>
[SqlSugar.SugarTable("info_client_bank")]
public class InfoClientBank : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:代码
/// </summary>
[SugarColumn(ColumnDescription = "代码", Length = 20)]
public string CodeName { get; set; }
/// <summary>
/// Desc:币别
/// </summary>
[SugarColumn(ColumnDescription = "币别", Length = 20)]
public string Currency { get; set; }
/// <summary>
/// Desc:银行名称
/// </summary>
[SugarColumn(ColumnDescription = "银行名称", Length = 100)]
public string BankName { get; set; }
/// <summary>
/// Desc:银行账户
/// </summary>
[SugarColumn(ColumnDescription = "银行账户", Length = 40)]
public string Account { get; set; }
/// <summary>
/// Desc:银行地址
/// </summary>
[SugarColumn(ColumnDescription = "银行地址", Length = 50)]
public string BankAddress { get; set; }
/// <summary>
/// Desc:财务软件代码
/// </summary>
[SugarColumn(ColumnDescription = "财务软件代码", Length = 50)]
public string FinanceSoftCode { get; set; }
/// <summary>
/// Desc:科目代码
/// </summary>
[SugarColumn(ColumnDescription = "科目代码", Length = 20)]
public string SubjectCode { get; set; }
/// <summary>
/// Desc:户头名称
/// </summary>
[SugarColumn(ColumnDescription = "户头名称", Length = 100)]
public string AccountName { get; set; }
/// <summary>
/// Desc:代理银行名称
/// </summary>
[SugarColumn(ColumnDescription = "代理银行名称", Length = 20)]
public string BankAgentName { get; set; }
/// <summary>
/// Desc:银行账号
/// </summary>
[SugarColumn(ColumnDescription = "银行账号", Length = 20)]
public string BankAccountNo { get; set; }
/// <summary>
/// Desc: 银行SWIFT
/// </summary>
[SugarColumn(ColumnDescription = "银行SWIFT", Length = 20)]
public string SWIFT { get; set; }
/// <summary>
/// Desc: 国家Id
/// </summary>
[SugarColumn(ColumnDescription = "国家Id")]
public long? CountryId { get; set; }
/// <summary>
/// Desc:是否开票默认账户
/// </summary>
[SugarColumn(ColumnDescription = "是否开票默认账户")]
public bool? IsInvoiceDefault { get; set; } = false;
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}

@ -0,0 +1,139 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位-联系人信息
/// </summary>
[SqlSugar.SugarTable("info_client_contact")]
public class InfoClientContact : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:联系人代码
/// </summary>
[SugarColumn(ColumnDescription = "联系人代码", Length = 6)]
public string CodeName { get; set; }
/// <summary>
/// Desc:联系人简称
/// </summary>
[SugarColumn(ColumnDescription = "联系人简称", Length = 20)]
public string ShortName { get; set; }
/// <summary>
/// Desc:职务
/// </summary>
[SugarColumn(ColumnDescription = "职务", Length = 50)]
public string Job { get; set; }
/// <summary>
/// Desc:通讯地址
/// </summary>
[SugarColumn(ColumnDescription = "通讯地址", Length = 100)]
public string Address { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
[SugarColumn(ColumnDescription = "邮箱", Length = 50)]
public string Email { get; set; }
/// <summary>
/// Desc:手机
/// </summary>
[SugarColumn(ColumnDescription = "手机", Length = 50)]
public string Mobile { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
[SugarColumn(ColumnDescription = "电话", Length = 50)]
public string Tel { get; set; }
/// <summary>
/// Desc:传真
/// </summary>
[SugarColumn(ColumnDescription = "传真", Length = 50)]
public string Fax { get; set; }
/// <summary>
/// Desc:QQ
/// </summary>
[SugarColumn(ColumnDescription = "QQ", Length = 50)]
public string QQ { get; set; }
/// <summary>
/// Desc:是否为操作
/// </summary>
[SugarColumn(ColumnDescription = "是否为操作")]
public bool? IsOperator { get; set; } = false;
/// <summary>
/// Desc:是否为财务
/// </summary>
[SugarColumn(ColumnDescription = "是否为财务")]
public bool? IsFinancialStaff { get; set; } = false;
/// <summary>
/// Desc:是否为销售
/// </summary>
[SugarColumn(ColumnDescription = "是否为销售")]
public bool? IsSaleMan { get; set; } = false;
/// <summary>
/// Desc:是否为其他
/// </summary>
[SugarColumn(ColumnDescription = "是否为其他")]
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:是否保险联系人
/// </summary>
[SugarColumn(ColumnDescription = "是否保险联系人")]
public bool? IsInsurance { get; set; } = false;
/// <summary>
/// Desc:是否对账联系人
/// </summary>
[SugarColumn(ColumnDescription = "是否对账联系人")]
public bool? IsCheckAccount { get; set; } = false;
/// <summary>
/// 提醒日期1
/// </summary>
[SugarColumn(ColumnDescription = "提醒日期1")]
public DateTime Anniversary1 { get; set; }
/// <summary>
/// 提醒日期2
/// </summary>
[SugarColumn(ColumnDescription = "提醒日期2")]
public DateTime Anniversary2 { get; set; }
/// <summary>
/// 提醒备注1
/// </summary>
[SugarColumn(ColumnDescription = "提醒备注1", Length = 200)]
public string AnniversaryNote1 { get; set; }
/// <summary>
/// 提醒备注2
/// </summary>
[SugarColumn(ColumnDescription = "提醒备注2", Length = 200)]
public string AnniversaryNote2 { get; set; }
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}

@ -0,0 +1,59 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位-合同信息
/// </summary>
[SqlSugar.SugarTable("info_client_contract")]
public class InfoClientContract : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:合同号
/// </summary>
[SugarColumn(ColumnDescription = "合同号", Length = 100)]
public string ContractNo { get; set; }
/// <summary>
/// Desc:签订日期
/// </summary>
[SugarColumn(ColumnDescription = "签订日期")]
public DateTime SignDate { get; set; }
/// <summary>
/// Desc:起始日期
/// </summary>
[SugarColumn(ColumnDescription = "起始日期")]
public DateTime StartDate { get; set; }
/// <summary>
/// Desc:截止日期
/// </summary>
[SugarColumn(ColumnDescription = "截止日期")]
public DateTime EndDate { get; set; }
/// <summary>
/// Desc:负责人
/// </summary>
[SugarColumn(ColumnDescription = "负责人", Length = 20)]
public string Chief { get; set; }
/// <summary>
/// Desc:签订部门Id
/// </summary>
[SugarColumn(ColumnDescription = "签订部门Id")]
public long DeptId { get; set; }
/// <summary>
/// Desc:合同名称
/// </summary>
[SugarColumn(ColumnDescription = "合同名称", Length = 100)]
public string ContractName { get; set; }
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}

@ -0,0 +1,83 @@
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位-收发货人信息
/// </summary>
[SqlSugar.SugarTable("info_client_contact")]
public class InfoClientShipper : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:收发货人代码
/// </summary>
[SugarColumn(ColumnDescription = "收发货人代码", Length = 20)]
public string CodeName { get; set; }
/// <summary>
/// Desc:收发货人简称
/// </summary>
[SugarColumn(ColumnDescription = "收发货人简称", Length = 20)]
public string ShortName { get; set; }
/// <summary>
/// Desc:类型 下拉选择(Shipper-1,Consinee-2,Notifypaty-3,Agent-4)
/// </summary>
[SugarColumn(ColumnDescription = "类型 下拉选择(Shipper-1,Consinee-2,Notifypaty-3,Agent-4)")]
public int ShipperType { get; set; }
/// <summary>
/// 是否公共标识
/// </summary>
[SugarColumn(ColumnDescription = "是否公共标识", DefaultValue = "0")]
public bool IsPublic { get; set; } = false;
/// <summary>
/// Desc:详细信息
/// </summary>
[SugarColumn(ColumnDescription = "详细信息", Length = 600)]
public string ShortDetail { get; set; }
/// <summary>
/// Desc:联系人
/// </summary>
[SugarColumn(ColumnDescription = "联系人", Length = 25)]
public string ATTN { get; set; }
/// <summary>
/// Desc:邮箱
/// </summary>
[SugarColumn(ColumnDescription = "邮箱", Length = 50)]
public string Email { get; set; }
/// <summary>
/// Desc:电话
/// </summary>
[SugarColumn(ColumnDescription = "电话", Length = 50)]
public string Tel { get; set; }
// /// <summary>
// /// 国家Id
// /// </summary>
// [SugarColumn(ColumnDescription = "国家Id")]
// public long CountryId { get; set; } = 0;
/// <summary>
/// Desc:公司代码
/// </summary>
[SugarColumn(ColumnDescription = "公司代码", Length = 50)]
public string CompanyNo { get; set; }
/// <summary>
/// 状态 0启用 1禁用
/// </summary>
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}

@ -0,0 +1,153 @@
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
/// <summary>
/// 往来单位标识
/// </summary>
[SqlSugar.SugarTable("info_client_tag")]
public class InfoClientTag : BaseOrgModel<long>
{
/// <summary>
/// 往来单位id
/// </summary>
public long ClientId { get; set; }
/// <summary>
/// Desc:是否特批放单客户
/// </summary>
public bool? IsSpecialApproval { get; set; }
/// <summary>
/// Desc:是否船公司
/// </summary>
[SugarColumn(ColumnDescription = "是否船公司")]
public bool? IsCarrier { get; set; } = false;
/// <summary>
/// Desc:是否订舱公司
/// </summary>
[SugarColumn(ColumnDescription = "是否订舱公司")]
public bool? IsBooking { get; set; } = false;
/// <summary>
/// Desc:是否场站
/// </summary>
[SugarColumn(ColumnDescription = "是否场站")]
public bool? IsYard { get; set; } = false;
/// <summary>
/// Desc:是否车队
/// </summary>
[SugarColumn(ColumnDescription = "是否车队")]
public bool? IsTruck { get; set; } = false;
/// <summary>
/// Desc:是否委托单位
/// </summary>
[SugarColumn(ColumnDescription = "是否委托单位")]
public bool? IsController { get; set; } = false;
/// <summary>
/// Desc:是否报关行
/// </summary>
[SugarColumn(ColumnDescription = "是否报关行")]
public bool? IsCustom { get; set; } = false;
/// <summary>
/// Desc:是否代理(国外)
/// </summary>
[SugarColumn(ColumnDescription = "是否代理(国外)")]
public bool? IsAgent { get; set; } = false;
/// <summary>
/// Desc:是否代理(国内)
/// </summary>
[SugarColumn(ColumnDescription = "是否代理(国内)")]
public bool? IsAgentCn { get; set; } = false;
/// <summary>
/// Desc:是否快递公司
/// </summary>
[SugarColumn(ColumnDescription = "是否快递公司")]
public bool? IsExpress { get; set; } = false;
/// <summary>
/// Desc:是否航空公司
/// </summary>
[SugarColumn(ColumnDescription = "是否航空公司")]
public bool? IsAirLines { get; set; } = false;
/// <summary>
/// Desc:是否发货人
/// </summary>
[SugarColumn(ColumnDescription = "是否发货人")]
public bool? IsShipper { get; set; } = false;
/// <summary>
/// Desc:是否收货人
/// </summary>
[SugarColumn(ColumnDescription = "是否收货人")]
public bool? IsConsignee { get; set; } = false;
/// <summary>
/// Desc:是否通知人
/// </summary>
[SugarColumn(ColumnDescription = "是否通知人")]
public bool? IsNotifyParty { get; set; } = false;
/// <summary>
/// Desc:是否仓库
/// </summary>
[SugarColumn(ColumnDescription = "是否仓库")]
public bool? IsWareHouse { get; set; }
/// <summary>
/// Desc:是否码头
/// </summary>
[SugarColumn(ColumnDescription = "是否码头")]
public bool? IsWharf { get; set; } = false;
/// <summary>
/// Desc:是否保险公司
/// </summary>
[SugarColumn(ColumnDescription = "是否保险公司")]
public bool? IsInsurer { get; set; } = false;
/// <summary>
/// Desc:是否租箱公司
/// </summary>
[SugarColumn(ColumnDescription = "是否租箱公司")]
public bool? IsLeasing { get; set; } = false;
/// <summary>
/// Desc:是否贸易代理
/// </summary>
[SugarColumn(ColumnDescription = "是否贸易代理")]
public bool? IsTradingAgency { get; set; } = false;
/// <summary>
/// Desc:是否其他
/// </summary>
[SugarColumn(ColumnDescription = "是否其他")]
public bool? IsOther { get; set; } = false;
/// <summary>
/// Desc:其他类型
/// </summary>
[SugarColumn(ColumnDescription = "其他类型", Length = 100)]
public string Others { get; set; }
/// <summary>
/// Desc:是否船代
/// </summary>
[SugarColumn(ColumnDescription = "是否船代", DefaultValue = "0")]
public bool? IsShipAgency { get; set; }
/// <summary>
/// Desc:是否经营单位
/// </summary>
[SugarColumn(ColumnDescription = "是否经营单位", DefaultValue = "0")]
public bool? IsEnterprise { get; set; } = false;
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientAccountDateService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientAccountDateRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientAccountDate(ClientAccountDateReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientAccountDateRes> GetClientAccountDateInfo(string id);
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientBankService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientBankRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientBank(ClientBankReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientBankRes> GetClientBankInfo(string id);
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientContactService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientContactRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientContact(ClientContactReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientContactRes> GetClientContactInfo(string id);
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientContractService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientContractRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientContract(ClientContractReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientContractRes> GetClientContractInfo(string id);
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientInfoService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientInfoRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientInfo(ClientInfoReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientInfoRes> GetClientInfo(string id);
}

@ -0,0 +1,30 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.System.Dtos;
namespace DS.WMS.Core.Info.Interface;
public interface IClientShipperService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<ClientShipperRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditClientShipper(ClientShipperReq model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<ClientShipperRes> GetClientShipperInfo(string id);
}

@ -0,0 +1,100 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientAccountDateService : IClientAccountDateService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientAccountDateService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientAccountDateRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClientAccountDate>()
.Where(whereList)
.Select<ClientAccountDateRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientAccountDate(ClientAccountDateReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClientAccountDate>().Where(x => x.AccountType == req.AccountType &&
x.AccountType == req.AccountType &&
x.SaleId == req.SaleId &&
x.BeginDate == req.BeginDate &&
x.EndDate == req.EndDate).Any())
{
return DataResult.Failed("客户账期信息已存在!", MultiLanguageConst.ClientAccountDateExist);
}
var data = req.Adapt<InfoClientAccountDate>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClientAccountDate>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientAccountDateRes> GetClientAccountDateInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClientAccountDate>()
.Where(a => a.Id == long.Parse(id))
.Select<ClientAccountDateRes>()
.First();
return DataResult<ClientAccountDateRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}

@ -0,0 +1,94 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientBankService : IClientBankService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientBankService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientBankRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClientBank>()
.Where(whereList)
.Select<ClientBankRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientBank(ClientBankReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClientBank>().Where(x=>x.CodeName == req.CodeName).Any())
{
return DataResult.Failed("客户银行信息已存在!",MultiLanguageConst.ClientBankExist);
}
var data = req.Adapt<InfoClientBank>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClientBank>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientBankRes> GetClientBankInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClientBank>()
.Where(a => a.Id == long.Parse(id))
.Select<ClientBankRes>()
.First();
return DataResult<ClientBankRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
}
}

@ -0,0 +1,94 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientContactService : IClientContactService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientContactService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientContactRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClientContact>()
.Where(whereList)
.Select<ClientContactRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientContact(ClientContactReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClientContact>().Where(x=>x.CodeName == req.CodeName).Any())
{
return DataResult.Failed("客户联系人信息已存在!",MultiLanguageConst.ClientContactExist);
}
var data = req.Adapt<InfoClientContact>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClientContact>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientContactRes> GetClientContactInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClientContact>()
.Where(a => a.Id == long.Parse(id))
.Select<ClientContactRes>()
.First();
return DataResult<ClientContactRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
}
}

@ -0,0 +1,94 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientContractService : IClientContractService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientContractService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientContractRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClientContract>()
.Where(whereList)
.Select<ClientContractRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientContract(ClientContractReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClientContract>().Where(x=>x.ContractNo == req.ContractNo).Any())
{
return DataResult.Failed("客户合同信息已存在!",MultiLanguageConst.ClientContractExist);
}
var data = req.Adapt<InfoClientContract>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClientContract>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientContractRes> GetClientContractInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClientContract>()
.Where(a => a.Id == long.Parse(id))
.Select<ClientContractRes>()
.First();
return DataResult<ClientContractRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
}
}

@ -0,0 +1,106 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientInfoService : IClientInfoService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientInfoService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientInfoRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClient>()
.Where(whereList)
.Select<ClientInfoRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientInfo(ClientInfoReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClient>().Where(x => x.CodeName == req.CodeName).Any())
{
return DataResult.Failed("客户信息已存在!", MultiLanguageConst.ClientInfoExist);
}
var data = req.Adapt<InfoClient>();
var tag = req.ClientTag.Adapt<InfoClientTag>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
tag.ClientId = entity.Id;
tenantDb.Insertable(tag).ExecuteCommand();
return DataResult.Successed("添加成功!", entity.Id, MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClient>().Where(x => x.Id == req.Id).First();
var tag = tenantDb.Queryable<InfoClientTag>().Where(x => x.Id == req.ClientTag.Id).First();
info = req.Adapt(info);
tag = req.ClientTag.Adapt(tag);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
tenantDb.Updateable(tag).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientInfoRes> GetClientInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClient>()
.Where(a => a.Id == long.Parse(id))
// .Select<ClientInfoRes>()
.Select(x => new ClientInfoRes
{
ClientTag = tenantDb.Queryable<InfoClientTag>().Select<ClientTagRes>()
.First(a => a.ClientId == long.Parse(id))
})
.First();
return DataResult<ClientInfoRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
}

@ -0,0 +1,94 @@
using DS.Module.Core;
using DS.Module.Core.Extensions;
using DS.Module.SqlSugar;
using DS.Module.UserModule;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Entity;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Entity;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.Info.Method;
public class ClientShipperService : IClientShipperService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
private readonly IUser user;
private readonly ISaasDbService saasService;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public ClientShipperService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
user = _serviceProvider.GetRequiredService<IUser>();
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public DataResult<List<ClientShipperRes>> GetListByPage(PageRequest request)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
//序列化查询条件
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
var data = tenantDb.Queryable<InfoClientShipper>()
.Where(whereList)
.Select<ClientShipperRes>().ToQueryPage(request.PageCondition);
return data;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult EditClientShipper(ClientShipperReq req)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
if (req.Id == 0)
{
if (tenantDb.Queryable<InfoClientShipper>().Where(x=>x.CodeName == req.CodeName).Any())
{
return DataResult.Failed("客户收发货人信息已存在!",MultiLanguageConst.ClientShipperExist);
}
var data = req.Adapt<InfoClientShipper>();
var entity = tenantDb.Insertable(data).ExecuteReturnEntity();
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
}
else
{
var info = tenantDb.Queryable<InfoClientShipper>().Where(x => x.Id == req.Id).First();
info = req.Adapt(info);
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
}
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<ClientShipperRes> GetClientShipperInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = tenantDb.Queryable<InfoClientShipper>()
.Where(a => a.Id == long.Parse(id))
.Select<ClientShipperRes>()
.First();
return DataResult<ClientShipperRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
}
}

@ -9,29 +9,35 @@ namespace DS.WMS.Core.System.Dtos;
public class DataRuleReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 资源标识权限ID
/// </summary>
public long PermissionId { get; set; }
public long PermissionId { get; set; }
/// <summary>
/// 中文视图名
/// </summary>
public string ColumnView { get; set; }
/// <summary>
/// 权限规则
/// </summary>
public string DataRules { get; set; }
/// <summary>
/// 权限实体
/// </summary>
public string PermissionEntity { get; set; }
/// <summary>
/// 数据权限描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 排序
/// </summary>
@ -41,13 +47,13 @@ public class DataRuleReq
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>

@ -50,8 +50,10 @@ public class ExceptionLogRes
/// 创建人
/// </summary>
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 租户id
/// </summary>

@ -8,9 +8,9 @@ public class UserOrgListRes
/// <summary>
/// 机构Id
/// </summary>
public long OrgId { get; set; }
public long? OrgId { get; set; }
/// <summary>
/// 机构名称
/// </summary>
public long OrgName { get; set; }
public string OrgName { get; set; }
}

@ -400,10 +400,14 @@ public class CommonService : ICommonService
var userId = long.Parse(user.UserId);
var tenantId = user.GetTenantId();
//取第一个机构
var orgRelations = db.Queryable<SysOrgUser>()
var orgRelations = db.Queryable<SysOrgUser>().Filter(null,true)
.LeftJoin<SysOrg>((a,b)=>a.OrgId==b.Id)
.Where(a => a.UserId == userId)
.Select<UserOrgListRes>()
.Select((a,b)=>new UserOrgListRes
{
OrgId = a.OrgId,
OrgName = b.OrgName
})
.ToList();
var tokenModel = new JwtHelper.JwtTokenModel
{
@ -426,7 +430,7 @@ public class CommonService : ICommonService
ClientId = a.ClientId,
IsLimitClient = a.IsLimitClient,
RefreshToken = refreshToken,
UserOrgs = orgRelations,
// UserOrgs = orgRelations,
// OrgId = a.OrgId.ToString(), CompanyName = a.CustomerName
})
.Mapper(it =>
@ -435,6 +439,7 @@ public class CommonService : ICommonService
it.HomePath = "/analysis";
})
.First();
data.UserOrgs = orgRelations;
return DataResult<CurrentUserViewModel>.Success(data);
}

@ -105,7 +105,7 @@ public class VersionService : IVersionService
var types = referencedAssemblies
.SelectMany(a => a.DefinedTypes)
.Select(type => type.AsType())
.Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")).ToArray();
.Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.")||it.FullName.Contains("DS.WMS.Core.Info.Entity.")).ToArray();
var tenantList = db.Queryable<SysTenantLink>().ToList();

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户财务账期信息-模块
/// </summary>
public class ClientAccountDateController : ApiController
{
private readonly IClientAccountDateService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientAccountDateController(IClientAccountDateService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientAccountDateList")]
public DataResult<List<ClientAccountDateRes>> GetClientAccountDateList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientAccountDate")]
public DataResult EditClientAccountDate([FromBody] ClientAccountDateReq req)
{
var res = _invokeService.EditClientAccountDate(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientAccountDateInfo")]
public DataResult<ClientAccountDateRes> GetClientAccountDateInfo([FromQuery] string id)
{
var res = _invokeService.GetClientAccountDateInfo(id);
return res;
}
}

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户银行信息-模块
/// </summary>
public class ClientBankController : ApiController
{
private readonly IClientBankService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientBankController(IClientBankService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientBankList")]
public DataResult<List<ClientBankRes>> GetClientBankList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientBank")]
public DataResult EditClientBank([FromBody] ClientBankReq req)
{
var res = _invokeService.EditClientBank(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientBankInfo")]
public DataResult<ClientBankRes> GetClientBankInfo([FromQuery] string id)
{
var res = _invokeService.GetClientBankInfo(id);
return res;
}
}

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户联系人信息-模块
/// </summary>
public class ClientContactController : ApiController
{
private readonly IClientContactService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientContactController(IClientContactService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientContactList")]
public DataResult<List<ClientContactRes>> GetClientContactList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientContact")]
public DataResult EditClientContact([FromBody] ClientContactReq req)
{
var res = _invokeService.EditClientContact(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientContactInfo")]
public DataResult<ClientContactRes> GetClientContactInfo([FromQuery] string id)
{
var res = _invokeService.GetClientContactInfo(id);
return res;
}
}

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户合同信息-模块
/// </summary>
public class ClientContractController : ApiController
{
private readonly IClientContractService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientContractController(IClientContractService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientContractList")]
public DataResult<List<ClientContractRes>> GetClientContractList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientContract")]
public DataResult EditClientContract([FromBody] ClientContractReq req)
{
var res = _invokeService.EditClientContract(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientContractInfo")]
public DataResult<ClientContractRes> GetClientContractInfo([FromQuery] string id)
{
var res = _invokeService.GetClientContractInfo(id);
return res;
}
}

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户基本信息-模块
/// </summary>
public class ClientInfoController : ApiController
{
private readonly IClientInfoService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientInfoController(IClientInfoService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientInfoList")]
public DataResult<List<ClientInfoRes>> GetClientInfoList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientInfo")]
public DataResult EditClientInfo([FromBody] ClientInfoReq req)
{
var res = _invokeService.EditClientInfo(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientInfo")]
public DataResult<ClientInfoRes> GetClientInfo([FromQuery] string id)
{
var res = _invokeService.GetClientInfo(id);
return res;
}
}

@ -0,0 +1,64 @@
using DS.Module.Core;
using DS.WMS.Core.Info.Dtos;
using DS.WMS.Core.Info.Interface;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.Controllers;
/// <summary>
/// 客户收发货人信息-模块
/// </summary>
public class ClientShipperController : ApiController
{
private readonly IClientShipperService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientShipperController(IClientShipperService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientShipperList")]
public DataResult<List<ClientShipperRes>> GetClientShipperList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientShipper")]
public DataResult EditClientShipper([FromBody] ClientShipperReq req)
{
var res = _invokeService.EditClientShipper(req);
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientShipperInfo")]
public DataResult<ClientShipperRes> GetClientShipperInfo([FromQuery] string id)
{
var res = _invokeService.GetClientShipperInfo(id);
return res;
}
}

@ -824,3 +824,31 @@
2024-03-11 09:49:09.9837 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config
2024-03-11 09:49:10.0201 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-03-11 09:49:10.0928 Info Configuration initialized.
2024-03-12 16:57:43.4008 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-03-12 16:57:43.5124 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-03-12 16:57:43.5400 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-03-12 16:57:43.5907 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-03-12 16:57:43.6257 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config
2024-03-12 16:57:43.6448 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-03-12 16:57:43.6827 Info Configuration initialized.
2024-03-12 17:05:38.7807 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-03-12 17:05:38.8333 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-03-12 17:05:38.8796 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-03-12 17:05:38.9346 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-03-12 17:05:38.9998 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config
2024-03-12 17:05:39.0311 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-03-12 17:05:39.0974 Info Configuration initialized.
2024-03-12 17:20:22.4350 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-03-12 17:20:22.4975 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-03-12 17:20:22.5129 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-03-12 17:20:22.5591 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-03-12 17:20:22.5953 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config
2024-03-12 17:20:22.6081 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-03-12 17:20:22.6383 Info Configuration initialized.
2024-03-12 17:23:44.3041 Info Registered target NLog.Targets.FileTarget(Name=allfile)
2024-03-12 17:23:44.3466 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web)
2024-03-12 17:23:44.3807 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console)
2024-03-12 17:23:44.4231 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False
2024-03-12 17:23:44.4645 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config
2024-03-12 17:23:44.4834 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile
2024-03-12 17:23:44.5366 Info Configuration initialized.

Loading…
Cancel
Save