optimize
hao 10 months ago
parent d083ee3cc2
commit 4e00ace6c9

@ -0,0 +1,155 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 费用代码
/// </summary>
[SugarTable("fee_code", TableDescription = "费用代码")]
public class FeeCode : DBEntityTenant
{
/// <summary>
/// 费用代码,录入费用是作为检索
/// </summary>
[SugarColumn(ColumnName = "FeeCode")]
[Description("费用代码,录入费用是作为检索")]
public string Code{ get; set; }
/// <summary>
/// 费用名称
/// </summary>
[SugarColumn(ColumnName = "Name")]
[Description("费用名称")]
public string Name{ get; set; }
/// <summary>
/// 费用英文名称
/// </summary>
[SugarColumn(ColumnName = "Description")]
[Description("费用英文名称")]
public string Description{ get; set; }
/// <summary>
/// 默认币别
/// </summary>
[SugarColumn(ColumnName = "DefaultCurr")]
[Description("默认币别")]
public string DefaultCurr{ get; set; }
/// <summary>
/// 海运 海运相关模块使用
/// </summary>
[SugarColumn(ColumnName = "IsSea")]
[Description("海运 海运相关模块使用")]
public bool IsSea{ get; set; }
/// <summary>
/// 空运 空运相关模块使用
/// </summary>
[SugarColumn(ColumnName = "IsAir")]
[Description("空运 空运相关模块使用")]
public bool IsAir{ get; set; }
/// <summary>
/// 默认计费标准
/// </summary>
[SugarColumn(ColumnName = "DefaultUnit")]
[Description("默认计费标准")]
public string DefaultUnit{ get; set; }
/// <summary>
/// 收费默认 客户类别
/// </summary>
[SugarColumn(ColumnName = "DefaultDebit")]
[Description("收费默认 客户类别")]
public string DefaultDebit{ get; set; }
/// <summary>
/// 付费默认 客户类别
/// </summary>
[SugarColumn(ColumnName = "DefaultCredit")]
[Description("付费默认 客户类别")]
public string DefaultCredit{ get; set; }
/// <summary>
/// 陆运 陆运相关模块使用
/// </summary>
[SugarColumn(ColumnName = "IsTrucking")]
[Description("陆运 陆运相关模块使用")]
public bool IsTrucking{ get; set; }
/// <summary>
/// 仓储 仓储相关模块使用
/// </summary>
[SugarColumn(ColumnName = "IsWMS")]
[Description("仓储 仓储相关模块使用")]
public bool IsWMS{ get; set; }
/// <summary>
/// 费用分组
/// </summary>
[SugarColumn(ColumnName = "FeeGroup")]
[Description("费用分组")]
public string FeeGroup{ get; set; }
/// <summary>
/// 费用默认frt
/// </summary>
[SugarColumn(ColumnName = "FeeFrt")]
[Description("费用默认frt")]
public string FeeFrt{ get; set; }
/// <summary>
/// 费用默认税率
/// </summary>
[SugarColumn(ColumnName = "TaxRate")]
[Description("费用默认税率")]
public decimal TaxRate{ get; set; }
/// <summary>
/// 对帐类型
/// </summary>
[SugarColumn(ColumnName = "DuiType")]
[Description("对帐类型")]
public string DuiType{ get; set; }
/// <summary>
/// 默认发票费用名称
/// </summary>
[SugarColumn(ColumnName = "GoodName")]
[Description("默认发票费用名称")]
public string GoodName{ get; set; }
/// <summary>
/// 默认是否机密
/// </summary>
[SugarColumn(ColumnName = "IsOpen")]
[Description("默认是否机密")]
public bool IsOpen{ get; set; }
/// <summary>
/// 默认是否开票
/// </summary>
[SugarColumn(ColumnName = "IsInvoice")]
[Description("默认是否开票")]
public bool IsInvoice{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 币别
/// </summary>
[SugarTable("fee_currency", TableDescription = "币别")]
public class FeeCurrency : DBEntityTenant
{
/// <summary>
/// 币别代码
/// </summary>
[SugarColumn(ColumnName = "CodeName")]
[Description("币别代码")]
public string CodeName{ get; set; }
/// <summary>
/// 币别名称
/// </summary>
[SugarColumn(ColumnName = "Name")]
[Description("币别名称")]
public string Name{ get; set; }
/// <summary>
/// 描述
/// </summary>
[SugarColumn(ColumnName = "Description")]
[Description("描述")]
public string Description{ get; set; }
/// <summary>
/// 默认对人民币汇率;录入费用时如果汇率设置里没有设置汇率,提此处汇率
/// </summary>
[SugarColumn(ColumnName = "DefaultRate")]
[Description("默认对人民币汇率;录入费用时如果汇率设置里没有设置汇率,提此处汇率")]
public decimal DefaultRate{ get; set; }
/// <summary>
/// 财务软件对应代码
/// </summary>
[SugarColumn(ColumnName = "FinanceSoftCode")]
[Description("财务软件对应代码")]
public string FinanceSoftCode{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 汇率
/// </summary>
[SugarTable("fee_currency_exchange", TableDescription = "汇率")]
public class FeeCurrencyExchange : DBEntityTenant
{
/// <summary>
/// 币别代码
/// </summary>
[SugarColumn(ColumnName = "Currency")]
[Description("币别代码")]
public string Currency{ get; set; }
/// <summary>
/// 应收汇率
/// </summary>
[SugarColumn(ColumnName = "DrValue")]
[Description("应收汇率")]
public decimal DrValue{ get; set; }
/// <summary>
/// 开始日期
/// </summary>
[SugarColumn(ColumnName = "StartTime")]
[Description("开始日期")]
public DateTime StartTime{ get; set; }
/// <summary>
/// 结束日期
/// </summary>
[SugarColumn(ColumnName = "EndTime")]
[Description("结束日期")]
public DateTime EndTime{ get; set; }
/// <summary>
/// 应付汇率
/// </summary>
[SugarColumn(ColumnName = "CrValue")]
[Description("应付汇率")]
public decimal CrValue{ get; set; }
/// <summary>
/// 本位币
/// </summary>
[SugarColumn(ColumnName = "LocalCurr")]
[Description("本位币")]
public string LocalCurr{ get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark")]
[Description("备注")]
public string Remark{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 往来单位固定费用
/// </summary>
[SugarTable("fee_cust_template_detail", TableDescription = "往来单位固定费用")]
public class FeeCustTemplateDetail : DBEntityTenant
{
/// <summary>
/// 费用名称
/// </summary>
[SugarColumn(ColumnName = "FeeName")]
[Description("费用名称")]
public string FeeName{ get; set; }
/// <summary>
/// 客户名称
/// </summary>
[SugarColumn(ColumnName = "CustomerName")]
[Description("客户名称")]
public string CustomerName{ get; set; }
/// <summary>
/// 费用标准
/// </summary>
[SugarColumn(ColumnName = "Unit")]
[Description("费用标准")]
public string Unit{ get; set; }
/// <summary>
/// 币别
/// </summary>
[SugarColumn(ColumnName = "Currency")]
[Description("币别")]
public string Currency{ get; set; }
/// <summary>
/// 单价
/// </summary>
[SugarColumn(ColumnName = "UnitPrice")]
[Description("单价")]
public decimal UnitPrice{ get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark")]
[Description("备注")]
public string Remark{ get; set; }
/// <summary>
/// 排序号
/// </summary>
[SugarColumn(ColumnName = "Sort")]
[Description("排序号")]
public int Sort{ get; set; }
/// <summary>
/// 汇率
/// </summary>
[SugarColumn(ColumnName = "ExchangeRate")]
[Description("汇率")]
public decimal ExchangeRate{ get; set; }
/// <summary>
/// 是否开票
/// </summary>
[SugarColumn(ColumnName = "IsInvoice")]
[Description("是否开票")]
public bool IsInvoice{ get; set; }
/// <summary>
/// 是否垫付
/// </summary>
[SugarColumn(ColumnName = "IsAdvancedPay")]
[Description("是否垫付")]
public bool IsAdvancedPay{ get; set; }
/// <summary>
/// Frt PP CC
/// </summary>
[SugarColumn(ColumnName = "FeeFrt")]
[Description("Frt PP CC")]
public string FeeFrt{ get; set; }
/// <summary>
/// 税率
/// </summary>
[SugarColumn(ColumnName = "TaxRate")]
[Description("税率")]
public decimal TaxRate{ get; set; }
/// <summary>
/// 财务税率
/// </summary>
[SugarColumn(ColumnName = "AccTaxRate")]
[Description("财务税率")]
public decimal AccTaxRate{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,427 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 费用记录
/// </summary>
[SugarTable("fee_record", TableDescription = "费用记录")]
public class FeeRecord : DBEntityTenant
{
/// <summary>
/// 业务ID
/// </summary>
[SugarColumn(ColumnName = "BussId")]
[Description("业务ID")]
public long BussId{ get; set; }
/// <summary>
/// 收付类型
/// </summary>
[SugarColumn(ColumnName = "FeeType")]
[Description("收付类型")]
public string FeeType{ get; set; }
/// <summary>
/// 费用名称
/// </summary>
[SugarColumn(ColumnName = "FeeName")]
[Description("费用名称")]
public string FeeName{ get; set; }
/// <summary>
/// 费用英文名称
/// </summary>
[SugarColumn(ColumnName = "FeeDescription")]
[Description("费用英文名称")]
public string FeeDescription{ get; set; }
/// <summary>
/// 客户类别
/// </summary>
[SugarColumn(ColumnName = "CustomerType")]
[Description("客户类别")]
public string CustomerType{ get; set; }
/// <summary>
/// 费用对象
/// </summary>
[SugarColumn(ColumnName = "CustomerName")]
[Description("费用对象")]
public string CustomerName{ get; set; }
/// <summary>
/// 费用标准
/// </summary>
[SugarColumn(ColumnName = "Unit")]
[Description("费用标准")]
public string Unit{ get; set; }
/// <summary>
/// 单价
/// </summary>
[SugarColumn(ColumnName = "UnitPrice")]
[Description("单价")]
public decimal UnitPrice{ get; set; }
/// <summary>
/// 数量
/// </summary>
[SugarColumn(ColumnName = "Quantity")]
[Description("数量")]
public decimal Quantity{ get; set; }
/// <summary>
/// 金额
/// </summary>
[SugarColumn(ColumnName = "Amount")]
[Description("金额 ")]
public decimal Amount{ get; set; }
/// <summary>
/// 币别
/// </summary>
[SugarColumn(ColumnName = "Currency")]
[Description("币别 ")]
public string Currency{ get; set; }
/// <summary>
/// 汇率
/// </summary>
[SugarColumn(ColumnName = "ExchangeRate")]
[Description("汇率")]
public decimal ExchangeRate{ get; set; }
/// <summary>
/// 驳回原因
/// </summary>
[SugarColumn(ColumnName = "Reason")]
[Description("驳回原因 ")]
public string Reason{ get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark")]
[Description("备注 ")]
public string Remark{ get; set; }
/// <summary>
/// 佣金比率
/// </summary>
[SugarColumn(ColumnName = "CommissionRate")]
[Description("佣金比率 ")]
public decimal CommissionRate{ get; set; }
/// <summary>
/// 结算金额
/// </summary>
[SugarColumn(ColumnName = "Settlement")]
[Description("结算金额 ")]
public decimal Settlement{ get; set; }
/// <summary>
/// 开票金额
/// </summary>
[SugarColumn(ColumnName = "Invoice")]
[Description("开票金额 ")]
public decimal Invoice{ get; set; }
/// <summary>
/// 申请金额
/// </summary>
[SugarColumn(ColumnName = "Orderamount")]
[Description("申请金额 ")]
public decimal Orderamount{ get; set; }
/// <summary>
/// 申请开票金额
/// </summary>
[SugarColumn(ColumnName = "Orderinvoice")]
[Description("申请开票金额 ")]
public decimal Orderinvoice{ get; set; }
/// <summary>
/// 提交日期
/// </summary>
[SugarColumn(ColumnName = "Submitdate")]
[Description("提交日期 ")]
public DateTime Submitdate{ get; set; }
/// <summary>
/// 审核人
/// </summary>
[SugarColumn(ColumnName = "AuditOperator")]
[Description("审核人 ")]
public string AuditOperator{ get; set; }
/// <summary>
/// 审核日期
/// </summary>
[SugarColumn(ColumnName = "AuditDate")]
[Description("审核日期 ")]
public DateTime AuditDate{ get; set; }
/// <summary>
/// 对帐编号
/// </summary>
[SugarColumn(ColumnName = "DebitNO")]
[Description("对帐编号 ")]
public string DebitNO{ get; set; }
/// <summary>
/// 是否对帐
/// </summary>
[SugarColumn(ColumnName = "IsDebit")]
[Description("是否对帐 ")]
public bool IsDebit{ get; set; }
/// <summary>
/// 是否机密费用
/// </summary>
[SugarColumn(ColumnName = "IsOpen")]
[Description("是否机密费用 ")]
public bool IsOpen{ get; set; }
/// <summary>
/// 是否垫付
/// </summary>
[SugarColumn(ColumnName = "IsAdvancedPay")]
[Description("是否垫付 ")]
public bool IsAdvancedPay{ get; set; }
/// <summary>
/// 顺序号
/// </summary>
[SugarColumn(ColumnName = "Sort")]
[Description("顺序号 ")]
public int Sort{ get; set; }
/// <summary>
/// 是否禁开发票
/// </summary>
[SugarColumn(ColumnName = "IsInvoice")]
[Description("是否禁开发票 ")]
public bool IsInvoice{ get; set; }
/// <summary>
/// 费用状态
/// </summary>
[SugarColumn(ColumnName = "FeeStatus")]
[Description("费用状态 ")]
public string FeeStatus{ get; set; }
/// <summary>
/// Frt
/// </summary>
[SugarColumn(ColumnName = "FeeFrt")]
[Description("Frt ")]
public string FeeFrt{ get; set; }
/// <summary>
/// 是否销售订舱
/// </summary>
[SugarColumn(ColumnName = "IsCrmOrderFee")]
[Description("是否销售订舱 ")]
public bool IsCrmOrderFee{ get; set; }
/// <summary>
/// 发票号
/// </summary>
[SugarColumn(ColumnName = "InvoiceNum")]
[Description("发票号 ")]
public string InvoiceNum{ get; set; }
/// <summary>
/// 支票号
/// </summary>
[SugarColumn(ColumnName = "ChequeNum")]
[Description("支票号 ")]
public string ChequeNum{ get; set; }
/// <summary>
/// 仓储编号
/// </summary>
[SugarColumn(ColumnName = "WmsOutBSNO")]
[Description("仓储编号 ")]
public string WmsOutBSNO{ get; set; }
/// <summary>
/// 行号
/// </summary>
[SugarColumn(ColumnName = "LineNum")]
[Description("行号 ")]
public int LineNum{ get; set; }
/// <summary>
/// 税率
/// </summary>
[SugarColumn(ColumnName = "TaxRate")]
[Description("税率 ")]
public decimal TaxRate{ get; set; }
/// <summary>
/// 不含税金额
/// </summary>
[SugarColumn(ColumnName = "NoTaxAmount")]
[Description("不含税金额 ")]
public decimal NoTaxAmount{ get; set; }
/// <summary>
/// 财务税率
/// </summary>
[SugarColumn(ColumnName = "AccTaxRate")]
[Description("财务税率 ")]
public decimal AccTaxRate{ get; set; }
/// <summary>
/// 是否生成凭证
/// </summary>
[SugarColumn(ColumnName = "IsVou")]
[Description("是否生成凭证 ")]
public bool IsVou{ get; set; }
/// <summary>
/// 报销编号
/// </summary>
[SugarColumn(ColumnName = "BxId")]
[Description("报销编号 ")]
public string BxId{ get; set; }
/// <summary>
/// 税额
/// </summary>
[SugarColumn(ColumnName = "Tax")]
[Description("税额 ")]
public decimal Tax{ get; set; }
/// <summary>
/// 申请结算金额
/// </summary>
[SugarColumn(ColumnName = "OrderSettlement")]
[Description("申请结算金额 ")]
public decimal OrderSettlement{ get; set; }
/// <summary>
/// 含税单价
/// </summary>
[SugarColumn(ColumnName = "TaxUnitPrice")]
[Description("含税单价 ")]
public decimal TaxUnitPrice{ get; set; }
/// <summary>
/// 申请发票开票金额
/// </summary>
[SugarColumn(ColumnName = "OrderInvSettlement")]
[Description("申请发票开票金额 ")]
public decimal OrderInvSettlement{ get; set; }
/// <summary>
/// 凭证号
/// </summary>
[SugarColumn(ColumnName = "VouallNO")]
[Description("凭证号 ")]
public string VouallNO{ get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(ColumnName = "SalesNO")]
[Description("")]
public string SalesNO{ get; set; }
/// <summary>
/// 借款编号
/// </summary>
[SugarColumn(ColumnName = "JkId")]
[Description("借款编号 ")]
public string JkId{ get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(ColumnName = "DeliveryNO")]
[Description("")]
public string DeliveryNO{ get; set; }
/// <summary>
/// 本位币
/// </summary>
[SugarColumn(ColumnName = "LocalCurr")]
[Description("本位币")]
public string LocalCurr{ get; set; }
/// <summary>
/// 责任人
/// </summary>
[SugarColumn(ColumnName = "Manager")]
[Description("责任人")]
public string Manager{ get; set; }
/// <summary>
/// 是否财务费用
/// </summary>
[SugarColumn(ColumnName = "IsAcc")]
[Description("是否财务费用")]
public bool IsAcc{ get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(ColumnName = "PaymentId")]
[Description("")]
public string PaymentId{ get; set; }
/// <summary>
///
/// </summary>
[SugarColumn(ColumnName = "StatementNO")]
[Description("")]
public string StatementNO{ get; set; }
/// <summary>
/// 核算单位
/// </summary>
[SugarColumn(ColumnName = "SaleCorp")]
[Description("核算单位")]
public string SaleCorp{ get; set; }
/// <summary>
/// 财务税率
/// </summary>
[SugarColumn(ColumnName = "AccTax")]
[Description("财务税率")]
public decimal AccTax{ get; set; }
/// <summary>
/// 发票自助连接
/// </summary>
[SugarColumn(ColumnName = "InvLinkId")]
[Description("发票自助连接")]
public string InvLinkId{ get; set; }
/// <summary>
/// 提交人
/// </summary>
[SugarColumn(ColumnName = "SubmitOp")]
[Description("提交人")]
public string SubmitOp{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,182 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 费用业务信息
/// </summary>
[SugarTable("fee_record_business", TableDescription = "费用业务信息")]
public class FeeRecordBusiness : DBEntityTenant
{
/// <summary>
/// 业务编号
/// </summary>
[SugarColumn(ColumnName = "BSNO")]
[Description("业务编号")]
public string BSNO{ get; set; }
/// <summary>
/// 主提单号
/// </summary>
[SugarColumn(ColumnName = "MBLNO")]
[Description("主提单号")]
public string MBLNO{ get; set; }
/// <summary>
/// 分提单号
/// </summary>
[SugarColumn(ColumnName = "HBLNO")]
[Description("分提单号")]
public string HBLNO{ get; set; }
/// <summary>
/// 船名
/// </summary>
[SugarColumn(ColumnName = "VESSEL")]
[Description("船名")]
public string VESSEL{ get; set; }
/// <summary>
/// 海关航次
/// </summary>
[SugarColumn(ColumnName = "VOYNO")]
[Description("海关航次")]
public string VOYNO{ get; set; }
/// <summary>
/// 内部航次
/// </summary>
[SugarColumn(ColumnName = "VOYNOINNER")]
[Description("内部航次")]
public string VOYNOINNER{ get; set; }
/// <summary>
/// 开船日期
/// </summary>
[SugarColumn(ColumnName = "ETD")]
[Description("开船日期")]
public DateTime ETD{ get; set; }
/// <summary>
/// 收货地代码
/// </summary>
[SugarColumn(ColumnName = "PLACERECEIPTID")]
[Description("收货地代码")]
public string PLACERECEIPTID{ get; set; }
/// <summary>
/// 收货地
/// </summary>
[SugarColumn(ColumnName = "PLACERECEIPT")]
[Description("收货地")]
public string PLACERECEIPT{ get; set; }
/// <summary>
/// 起运港代码
/// </summary>
[SugarColumn(ColumnName = "PORTLOADID")]
[Description("起运港代码")]
public string PORTLOADID{ get; set; }
/// <summary>
/// 起运港
/// </summary>
[SugarColumn(ColumnName = "PORTLOAD")]
[Description("起运港")]
public string PORTLOAD{ get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
[SugarColumn(ColumnName = "PORTDISCHARGEID")]
[Description("卸货港代码")]
public string PORTDISCHARGEID{ get; set; }
/// <summary>
/// 卸货港
/// </summary>
[SugarColumn(ColumnName = "PORTDISCHARGE")]
[Description("卸货港")]
public string PORTDISCHARGE{ get; set; }
/// <summary>
/// 交货地代码
/// </summary>
[SugarColumn(ColumnName = "PLACEDELIVERYID")]
[Description("交货地代码")]
public string PLACEDELIVERYID{ get; set; }
/// <summary>
/// 交货地
/// </summary>
[SugarColumn(ColumnName = "PLACEDELIVERY")]
[Description("交货地")]
public string PLACEDELIVERY{ get; set; }
/// <summary>
/// 目的地代码
/// </summary>
[SugarColumn(ColumnName = "DESTINATIONID")]
[Description("目的地代码")]
public string DESTINATIONID{ get; set; }
/// <summary>
/// 目的地
/// </summary>
[SugarColumn(ColumnName = "DESTINATION")]
[Description("目的地")]
public string DESTINATION{ get; set; }
/// <summary>
/// 件数
/// </summary>
[SugarColumn(ColumnName = "PKGS")]
[Description("件数")]
public int PKGS{ get; set; }
/// <summary>
/// 包装
/// </summary>
[SugarColumn(ColumnName = "KINDPKGS")]
[Description("包装")]
public string KINDPKGS{ get; set; }
/// <summary>
/// 毛重
/// </summary>
[SugarColumn(ColumnName = "KGS")]
[Description("毛重")]
public decimal KGS{ get; set; }
/// <summary>
/// 尺码
/// </summary>
[SugarColumn(ColumnName = "CBM")]
[Description("尺码")]
public decimal CBM{ get; set; }
/// <summary>
/// 集装箱
/// </summary>
[SugarColumn(ColumnName = "CNTRTOTAL")]
[Description("集装箱")]
public string CNTRTOTAL{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 费用模板
/// </summary>
[SugarTable("fee_template", TableDescription = "费用模板")]
public class FeeTemplate : DBEntityTenant
{
/// <summary>
/// 业务类型
/// </summary>
[SugarColumn(ColumnName = "OpType")]
[Description("业务类型")]
public string OpType{ get; set; }
/// <summary>
/// 收付类型(收、付)
/// </summary>
[SugarColumn(ColumnName = "FeeType")]
[Description("收付类型(收、付)")]
public string FeeType{ get; set; }
/// <summary>
/// 费用模板名称
/// </summary>
[SugarColumn(ColumnName = "Name")]
[Description("费用模板名称")]
public string Name{ get; set; }
/// <summary>
/// 费用模板描述
/// </summary>
[SugarColumn(ColumnName = "Description")]
[Description("费用模板描述")]
public string Description{ get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark")]
[Description("备注")]
public string Remark{ get; set; }
/// <summary>
/// 是否公共
/// </summary>
[SugarColumn(ColumnName = "IsPublic")]
[Description("是否公共")]
public bool IsPublic{ get; set; }
/// <summary>
/// 开始时间
/// </summary>
[SugarColumn(ColumnName = "BgnDate")]
[Description("开始时间")]
public DateTime BgnDate{ get; set; }
/// <summary>
/// 结束时间
/// </summary>
[SugarColumn(ColumnName = "EndDate")]
[Description("结束时间")]
public DateTime EndDate{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -0,0 +1,182 @@
using System;
using System.Collections.Generic;
using SqlSugar;
using Myshipping.Core.Entity;
using System.ComponentModel;
/*
* @author : whm
* @date : 2024-1-22
* @desc :
*/
namespace Myshipping.Application.Entity
{
/// <summary>
/// 费用模板明细
/// </summary>
[SugarTable("fee_template_detail", TableDescription = "费用模板明细")]
public class FeeTemplateDetail : DBEntityTenant
{
/// <summary>
/// 模板ID
/// </summary>
[SugarColumn(ColumnName = "TemplateID")]
[Description("模板ID")]
public long TemplateID{ get; set; }
/// <summary>
/// 费用名称;取【费用代码】 中的费用名称,录入是可以 通过过费用代码、费用名称检索
/// </summary>
[SugarColumn(ColumnName = "FeeName")]
[Description("费用名称;取【费用代码】 中的费用名称,录入是可以 通过过费用代码、费用名称检索")]
public string FeeName{ get; set; }
/// <summary>
/// 费用对象;可以为空,为空时 录入费用按客户类型提取业务数据费用对象
/// </summary>
[SugarColumn(ColumnName = "CustomerName")]
[Description("费用对象;可以为空,为空时 录入费用按客户类型提取业务数据费用对象")]
public string CustomerName{ get; set; }
/// <summary>
/// 客户类别;可枚举维护、(船公司、委托单位、场站、车队等)
/// </summary>
[SugarColumn(ColumnName = "CustType")]
[Description("客户类别;可枚举维护、(船公司、委托单位、场站、车队等)")]
public string CustType{ get; set; }
/// <summary>
/// 费用标准;枚举维护加所有箱型
/// </summary>
[SugarColumn(ColumnName = "Unit")]
[Description("费用标准;枚举维护加所有箱型")]
public string Unit{ get; set; }
/// <summary>
/// 币别;可以录入汇率(数值)或选择按【汇率设置】中提取汇率
/// </summary>
[SugarColumn(ColumnName = "Currency")]
[Description("币别;可以录入汇率(数值)或选择按【汇率设置】中提取汇率")]
public string Currency{ get; set; }
/// <summary>
/// 单价
/// </summary>
[SugarColumn(ColumnName = "UnitPrice")]
[Description("单价")]
public decimal UnitPrice{ get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnName = "Remark")]
[Description("备注")]
public string Remark{ get; set; }
/// <summary>
/// 排序号
/// </summary>
[SugarColumn(ColumnName = "Sort")]
[Description("排序号")]
public int Sort{ get; set; }
/// <summary>
/// 收付类别(收、付)
/// </summary>
[SugarColumn(ColumnName = "FeeType")]
[Description("收付类别(收、付)")]
public string FeeType{ get; set; }
/// <summary>
/// 汇率;可以选择 本公司中的 各分公司
/// </summary>
[SugarColumn(ColumnName = "ExchangeRate")]
[Description("汇率;可以选择 本公司中的 各分公司")]
public decimal ExchangeRate{ get; set; }
/// <summary>
/// 是否按箱型;如果选择了否,则假如前面标准选择了以 20GP为标准则在调用时不管业务信息里有无20GP的箱子都是以20GP为标准有20GP的则调用其数量没有20GP的则生成一条标准为20GP数量为0的费用如果选择了是则只有当业务信息里有 20GP这种箱型时才调用这条费用
/// </summary>
[SugarColumn(ColumnName = "IsCtn")]
[Description("是否按箱型")]
public bool IsCtn{ get; set; }
/// <summary>
/// 是否开票
/// </summary>
[SugarColumn(ColumnName = "IsInvoice")]
[Description("是否开票")]
public bool IsInvoice{ get; set; }
/// <summary>
/// 是否垫付
/// </summary>
[SugarColumn(ColumnName = "IsAdvancedPay")]
[Description("是否垫付")]
public bool IsAdvancedPay{ get; set; }
/// <summary>
/// 费用FRT;PP,CC
/// </summary>
[SugarColumn(ColumnName = "FeeFrt")]
[Description("费用FRT;PP,CC")]
public string FeeFrt{ get; set; }
/// <summary>
/// 税率;含税单价=单价*1+(税率/100录入单价或税率自动计算 含税单价
/// </summary>
[SugarColumn(ColumnName = "TaxRate")]
[Description("税率;含税单价=单价*1+(税率/100录入单价或税率自动计算 含税单价")]
public decimal TaxRate{ get; set; }
/// <summary>
/// 税额
/// </summary>
[SugarColumn(ColumnName = "Tax")]
[Description("税额")]
public decimal Tax{ get; set; }
/// <summary>
/// 核算单位
/// </summary>
[SugarColumn(ColumnName = "SaleCorp")]
[Description("核算单位")]
public string SaleCorp{ get; set; }
/// <summary>
/// 含税单价
/// </summary>
[SugarColumn(ColumnName = "TaxUnitPrice")]
[Description("含税单价")]
public decimal TaxUnitPrice{ get; set; }
/// <summary>
/// 财务税率
/// </summary>
[SugarColumn(ColumnName = "AccTaxRate")]
[Description("财务税率")]
public decimal AccTaxRate{ get; set; }
/// <summary>
/// 费用英文名称;录入费用名称时,自动带出【费用代码】的 费用英文名称
/// </summary>
[SugarColumn(ColumnName = "FeeDescription")]
[Description("费用英文名称;录入费用名称时,自动带出【费用代码】的 费用英文名称")]
public string FeeDescription{ get; set; }
/// <summary>
/// 费用分组;枚举中设置的 费用分组
/// </summary>
[SugarColumn(ColumnName = "FeeGroup")]
[Description("费用分组;枚举中设置的 费用分组")]
public string FeeGroup{ get; set; }
/// <summary>
/// 租户名称
/// </summary>
[SugarColumn(ColumnName = "TenantName")]
[Description("租户名称")]
public string TenantName{ get; set; }
}
}

@ -48,6 +48,7 @@
<ItemGroup>
<Folder Include="Entity\BookingSlot\" />
<Folder Include="Entity\Fee\" />
</ItemGroup>
<ItemGroup>

@ -0,0 +1,143 @@
using Myshipping.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application.Service.Fee.Dto
{
public class FeeCodeDto
{
/// <summary>
/// ID
/// </summary>
public long Id { get; set; }
/// <summary>
/// 费用代码,录入费用是作为检索
/// </summary>
public string Code { get; set; }
/// <summary>
/// 费用名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 费用英文名称
/// </summary>
public string Description { get; set; }
/// <summary>
/// 默认币别
/// </summary>
public string DefaultCurr { get; set; }
/// <summary>
/// 海运 海运相关模块使用
/// </summary>
public bool IsSea { get; set; }
/// <summary>
/// 空运 空运相关模块使用
/// </summary>
public bool IsAir { get; set; }
/// <summary>
/// 默认计费标准
/// </summary>
public string DefaultUnit { get; set; }
/// <summary>
/// 收费默认 客户类别
/// </summary>
public string DefaultDebit { get; set; }
/// <summary>
/// 付费默认 客户类别
/// </summary>
public string DefaultCredit { get; set; }
/// <summary>
/// 陆运 陆运相关模块使用
/// </summary>
public bool IsTrucking { get; set; }
/// <summary>
/// 仓储 仓储相关模块使用
/// </summary>
public bool IsWMS { get; set; }
/// <summary>
/// 费用分组
/// </summary>
public string FeeGroup { get; set; }
/// <summary>
/// 费用默认frt
/// </summary>
public string FeeFrt { get; set; }
/// <summary>
/// 费用默认税率
/// </summary>
public decimal TaxRate { get; set; }
/// <summary>
/// 对帐类型
/// </summary>
public string DuiType { get; set; }
/// <summary>
/// 默认发票费用名称
/// </summary>
public string GoodName { get; set; }
/// <summary>
/// 默认是否机密
/// </summary>
public bool IsOpen { get; set; }
/// <summary>
/// 默认是否开票
/// </summary>
public bool IsInvoice { get; set; }
}
/// <summary>
/// 查询
/// </summary>
public class FeeCodePageInput: PageInputBase
{
/// <summary>
/// 费用代码,录入费用是作为检索
/// </summary>
public string Code { get; set; }
/// <summary>
/// 费用名称
/// </summary>
public string Name { get; set; }
}
/// <summary>
/// 台账列表
/// </summary>
public class FeeCodePageOutput: FeeCodeDto
{
}
/// <summary>
/// 保存
/// </summary>
public class FeeCodeSaveDto: FeeCodeDto
{
}
}

@ -0,0 +1,134 @@
using Furion;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Furion.EventBus;
using Furion.FriendlyException;
using Furion.LinqBuilder;
using Mapster;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Myshipping.Application.ConfigOption;
using Myshipping.Application.Entity;
using Myshipping.Application.Event;
using Myshipping.Application.Service.BookingOrder.Dto;
using Myshipping.Application.Service.BookingSlot.Dto;
using Myshipping.Application.Service.Fee.Dto;
using Myshipping.Core;
using Myshipping.Core.Service;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Yitter.IdGenerator;
namespace Myshipping.Application
{
/// <summary>
/// 费用代码
/// </summary>
[ApiDescriptionSettings("Application", Name = "FeeCode", Order = 1)]
public class FeeCodeService : IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<FeeCode> _repCode;
private readonly ILogger<FeeCodeService> _logger;
private readonly ISysCacheService _cache;
private readonly IEventPublisher _publisher;
public FeeCodeService(SqlSugarRepository<FeeCode> repCode,
ILogger<FeeCodeService> logger,
ISysCacheService cache,
IEventPublisher publisher)
{
_repCode = repCode;
_logger = logger;
_cache = cache;
_publisher = publisher;
}
/// <summary>
/// 费用代码查询
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/FeeCode/Page")]
public async Task<dynamic> Page(FeeCodePageInput input)
{
var entities = await _repCode.AsQueryable()
.WhereIF(!string.IsNullOrEmpty(input.Code), u => u.Code.Contains(input.Code))
.WhereIF(!string.IsNullOrEmpty(input.Name), u => u.Name.Contains(input.Name))
.ToPagedListAsync(input.PageNo, input.PageSize);
var result = entities.Adapt<SqlSugarPagedList<FeeCodePageOutput>>();
return result.XnPagedResult();
}
/// <summary>
/// 保存
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/FeeCode/Save")]
public async Task<FeeCodeSaveDto> Save(FeeCodeSaveDto input)
{
if (input == null)
{
throw Oops.Bah("请传入正常数据!");
}
FeeCode entity = null;
if (input.Id == 0)
{
entity = input.Adapt<FeeCode>();
entity.Id = YitIdHelper.NextId();
await _repCode.InsertAsync(entity);
}
else
{
entity = await _repCode.AsQueryable().Filter(null, true).FirstAsync(x => x.Id == input.Id);
entity = input.Adapt(entity);
await _repCode.UpdateAsync(entity);
}
return entity.Adapt<FeeCodeSaveDto>();
}
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("/FeeCode/Detail")]
public async Task<FeeCodeSaveDto> Detail(long id)
{
var entity = await _repCode.AsQueryable().Filter(null, true).FirstAsync(x => x.Id == id);
return entity.Adapt<FeeCodeSaveDto>();
}
/// <summary>
/// 删除
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
[HttpPost("/FeeCode/Delete")]
public async Task Delete(List<long> ids)
{
var list = await _repCode.AsQueryable().Filter(null, true).Where(x => ids.Contains(x.Id)).ToListAsync();
list.ForEach(x => x.IsDeleted = true);
await _repCode.AsUpdateable(list).ExecuteCommandAsync();
}
}
}
Loading…
Cancel
Save