基础信息部分及程序优化
parent
4d45830b64
commit
3ffe6f3f9e
@ -0,0 +1,103 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Entity;
|
||||
/// <summary>
|
||||
/// 商品信息表
|
||||
/// </summary>
|
||||
[SqlSugar.SugarTable("op_code_goods","商品信息表")]
|
||||
public class CodeGoods: BaseModel<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品编码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "商品编码", Length = 30)]
|
||||
public string GoodsCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "商品名称", Length = 50)]
|
||||
public string GoodName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "物料号", Length = 50)]
|
||||
public string GoodNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "英文名称", Length = 10)]
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 商品描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "商品描述", Length = 200)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入库应收
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "入库应收", Length = 18,DecimalDigits = 2,DefaultValue ="0")]
|
||||
public decimal ARRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入库应付
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "入库应收", Length = 18,DecimalDigits = 2,DefaultValue ="0")]
|
||||
public decimal APRate { get; set; }
|
||||
/// <summary>
|
||||
/// 出库应收
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "出库应收", Length = 18,DecimalDigits = 2,DefaultValue ="0")]
|
||||
public decimal AROutRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出库应付
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "出库应收", Length = 18,DecimalDigits = 2,DefaultValue ="0")]
|
||||
public decimal APOutRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "商品类型", IsNullable = true)]
|
||||
public long GoodsTypeId { get; set; }
|
||||
/// <summary>
|
||||
/// 计费大类
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "计费大类", IsNullable = true)]
|
||||
public long GoodsFeeTypeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 海关代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "海关代码", Length = 50)]
|
||||
public string HSCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 申报计量单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "物料号", Length = 50)]
|
||||
public string RuleUnit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 法定第一计量单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "法定第一计量单位", Length = 50)]
|
||||
public string RuleUnit1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 法定第二计量单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "法定第二计量单位", Length = 50)]
|
||||
public string RuleUnit2 { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 0启用 1禁用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Entity;
|
||||
/// <summary>
|
||||
/// 商品类型表
|
||||
/// </summary>
|
||||
[SqlSugar.SugarTable("op_code_goods_type","商品类型表")]
|
||||
public class CodeGoodsType: BaseModel<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "类型代码", Length = 20)]
|
||||
public string GoodsTypeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货物类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "货物类型", Length = 50)]
|
||||
public string GoodsTypeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "英文名称", Length = 10)]
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "描述", Length = 200)]
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 0启用 1禁用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
}
|
Loading…
Reference in New Issue