You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.9 KiB
C#

using DS.Module.Core.Data;
using DS.WMS.Core.Op.EDI;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Entity
{
/// <summary>
/// 业务相关费用状态表
/// </summary>
[SqlSugar.SugarTable("op_business_fee_status", "业务相关费用状态表")]
public class BusinessFeeStatus : BaseModel<long>
{
/// <summary>
/// 业务Id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "业务Id", IsNullable = false, Length = 100)]
public long BusinessId { get; set; }
/// <summary>
/// 应收费用状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "应收费用状态", IsNullable = false, DefaultValue ="0")]
public int ARFeeStatus { get; set; } = 0;
/// <summary>
/// 应付费用状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "应付费用状态", IsNullable = false, DefaultValue = "0")]
public int APFeeStatus { get; set; } = 0;
/// <summary>
/// 应收开票状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "应收开票状态", IsNullable = false, DefaultValue = "0")]
public int ARInvoiceStatus { get; set; } = 0;
/// <summary>
/// 应付开票状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "应付开票状态", IsNullable = false, DefaultValue = "0")]
public int APInvoiceStatus { get; set; } = 0;
/// <summary>
/// 应收对账状态
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "应收对账状态", IsNullable = false, DefaultValue = "0")]
public int ARCheckStatus { get; set; } = 0;
/// <summary>
/// Desc:是否业务锁定
/// </summary>
[SugarColumn(ColumnDescription = "是否业务锁定", DefaultValue = "0")]
public bool? IsBusinessLocking { get; set; } = false;
/// <summary>
/// Desc:是否费用锁定
/// </summary>
[SugarColumn(ColumnDescription = "是否费用锁定", DefaultValue = "0")]
public bool? IsFeeLocking { get; set; } = false;
/// <summary>
/// 业务初始化费用状态
/// </summary>
/// <param name="businessId"></param>
/// <returns></returns>
public static BusinessFeeStatus Init(long businessId)
{
return new BusinessFeeStatus()
{
BusinessId = businessId,
ARFeeStatus = 0,
APFeeStatus = 0,
ARInvoiceStatus = 0,
APInvoiceStatus = 0,
ARCheckStatus = 0,
IsBusinessLocking = false,
IsFeeLocking = false,
};
}
}
}