106 lines
3.3 KiB
C#
106 lines
3.3 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WCS.BLL.DbModels
|
|
{
|
|
///<summary>
|
|
///物料基础信息
|
|
///</summary>
|
|
[SugarTable("wcs_mat_base_info")]
|
|
public partial class MatBaseInfo
|
|
{
|
|
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_code", Length = 128, IsNullable = false, ColumnDescription = "物料编码")]
|
|
public string MatCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_name", Length = 128, IsNullable = false, ColumnDescription = "物料名称")]
|
|
public string MatName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料规格
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_spec", Length = 128, IsNullable = true, ColumnDescription = "物料规格")]
|
|
public string? MatSpec { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_unit", Length = 64, IsNullable = true, ColumnDescription = "物料单位")]
|
|
public string? MatUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料供应商
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_supplier", Length = 128, IsNullable = true, ColumnDescription = "物料供应商")]
|
|
public string? MatSupplier { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料客户
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "mat_customer", Length = 128, IsNullable = true, ColumnDescription = "物料客户")]
|
|
public string? MatCustomer { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:更新人
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_user", IsNullable = true, Length = 50, ColumnDescription = "更新人")]
|
|
public string? ModifyUser { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:更新时间
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_time", IsNullable = true, ColumnDescription = "更新时间")]
|
|
public DateTime? ModifyTime { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "is_enable", ColumnDescription = "是否启用")]
|
|
public bool IsEnable { get; set; } = true;
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string IsEnableStr
|
|
{
|
|
get
|
|
{
|
|
if (IsEnable)
|
|
return "启用";
|
|
else
|
|
return "禁用";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 用于绑定DataGrid中是否选择
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public bool IsSelected { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用于绑定中显示序号
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public int RowNumber { get; set; }
|
|
}
|
|
}
|