学 赵
4 years ago
212 changed files with 19387 additions and 11 deletions
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace CK.SCP.Models.Attributes |
||||
|
{ |
||||
|
public class BaseTableValidation |
||||
|
{ |
||||
|
public static ValidationResult IsNullOrEmpty(string value, string error) |
||||
|
{ |
||||
|
if (string.IsNullOrEmpty(value)) return new ValidationResult(error); |
||||
|
return ValidationResult.Success; |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace CK.SCP.Models.Attributes |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 列来源属于
|
||||
|
/// </summary>
|
||||
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] |
||||
|
public class ColumnSource : Attribute |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// </summary>
|
||||
|
/// <param name="sourceType">列来源。ENUM:枚举数据源.TABLE表数据源(外键关系)</param>
|
||||
|
/// <param name="typeName">来源数据源类型</param>
|
||||
|
/// <param name="columnNames">
|
||||
|
/// sourceType为TABLE时,columName是对应表中的列名
|
||||
|
/// columnNames[0]: ValueMember ,colums[1]:DisplayMember
|
||||
|
public ColumnSource(ColumnSourceType sourceType, Type typeName, string[] columnNames = null, |
||||
|
string selector = null) |
||||
|
{ |
||||
|
SourceType = sourceType; |
||||
|
TypeName = typeName; |
||||
|
ColumnNames = columnNames; |
||||
|
Selector = selector; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ColumnSourceType SourceType { get; } |
||||
|
|
||||
|
/// <summary>获取或设置属性映射到的列的从零开始的顺序。</summary>
|
||||
|
/// <returns>列的顺序。</returns>
|
||||
|
public Type TypeName { get; } |
||||
|
|
||||
|
/// <summary>获取或设置该属性映射到的列的数据库提供程序特定的数据类型。</summary>
|
||||
|
/// <returns>属性将映射到的列的数据库提供程序特定数据类型。</returns>
|
||||
|
[StringLength(50)] |
||||
|
public string[] ColumnNames { get; } |
||||
|
|
||||
|
[StringLength(50)] |
||||
|
public string Selector { get; set; } |
||||
|
} |
||||
|
|
||||
|
public enum ColumnSourceType |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 枚举数据源
|
||||
|
/// </summary>
|
||||
|
ENUM = 1, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 表数据源
|
||||
|
/// </summary>
|
||||
|
TABLE = 2, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// bool类型
|
||||
|
/// </summary>
|
||||
|
Boolean = 4 |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace CK.SCP.Models.Attributes |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Converter属性
|
||||
|
/// </summary>
|
||||
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] |
||||
|
public class ConverterAttribute : Attribute |
||||
|
{ |
||||
|
public ConverterAttribute(Type converterType) |
||||
|
{ |
||||
|
ConverterType = converterType; |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Converter类型
|
||||
|
/// </summary>
|
||||
|
public Type ConverterType { get; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace CK.SCP.Models.Attributes |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 是否在DataGrid中显示
|
||||
|
/// </summary>
|
||||
|
public class IsDataGridColum : Attribute |
||||
|
{ |
||||
|
public IsDataGridColum(bool isShow, int displayOrder) |
||||
|
{ |
||||
|
IsShowInDataGrid = isShow; |
||||
|
DisplayOrder = displayOrder; |
||||
|
} |
||||
|
|
||||
|
public bool IsShowInDataGrid { get; set; } |
||||
|
public int DisplayOrder { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace CK.SCP.Models.Attributes |
||||
|
{ |
||||
|
public class Unique : Attribute |
||||
|
{ |
||||
|
public Unique(bool isUnique) |
||||
|
{ |
||||
|
IsUnique = isUnique; |
||||
|
} |
||||
|
|
||||
|
public bool IsUnique { get; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface IData : ITaskTable |
||||
|
{ |
||||
|
[Description("数据编号")] |
||||
|
Guid DataID { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
using System.ComponentModel; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface IDomain |
||||
|
{ |
||||
|
[Description("域")] |
||||
|
string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
using System.ComponentModel; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface IDomainSite : IDomain |
||||
|
{ |
||||
|
[Description("地点")] |
||||
|
string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
using System.ComponentModel; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface ISoftDelete |
||||
|
{ |
||||
|
[Description("软删除")] |
||||
|
bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface ITable |
||||
|
{ |
||||
|
[Key] |
||||
|
[Description("主键")] |
||||
|
Guid GUID { get; set; } |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
[Description("自增长编号")] |
||||
|
int UID { get; set; } |
||||
|
|
||||
|
[Description("创建人")] |
||||
|
string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[Description("备注")] |
||||
|
string Remark { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface ITaskTable : ITable, IDomainSite |
||||
|
{ |
||||
|
[Description("任务编号")] |
||||
|
Guid TaskID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// A:Add,R:Read,U:Update,D:Delete
|
||||
|
/// </summary>
|
||||
|
[Description("命令类型")] |
||||
|
string CommandType { get; set; } |
||||
|
|
||||
|
[Description("数据编号")] |
||||
|
Guid DataID { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace CK.SCP.Models.Base |
||||
|
{ |
||||
|
public interface IUpdatableTable : ITable |
||||
|
{ |
||||
|
string UpdateUser { get; set; } |
||||
|
|
||||
|
DateTime? UpdateTime { get; set; } |
||||
|
} |
||||
|
|
||||
|
public interface IEnable |
||||
|
{ |
||||
|
bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
using System.Data.Entity; |
||||
|
using System.Data.Entity.ModelConfiguration.Conventions; |
||||
|
using CK.SCP.Models.DataCenterTables; |
||||
|
|
||||
|
namespace CK.SCP.Models |
||||
|
{ |
||||
|
[DbConfigurationType(typeof(SqlDbConfiguration))] |
||||
|
public class DataCenterContext : DbContext |
||||
|
{ |
||||
|
public DataCenterContext() : base("name=DataCenterContext") |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public DataCenterContext(string strConn) : base(strConn) |
||||
|
{ |
||||
|
//Database.SetInitializer(new DataCenterDatabaseInitializer());
|
||||
|
} |
||||
|
|
||||
|
public virtual DbSet<TA_BUTTON> TA_BUTTON { get; set; } |
||||
|
public virtual DbSet<TA_DEPT> TA_DEPT { get; set; } |
||||
|
public virtual DbSet<TA_MENU> TA_MENU { get; set; } |
||||
|
public virtual DbSet<TA_USER> TA_USER { get; set; } |
||||
|
public virtual DbSet<TA_USER_BUTTON> TA_USER_BUTTON { get; set; } |
||||
|
public virtual DbSet<TA_USER_MENU> TA_USER_MENU { get; set; } |
||||
|
public virtual DbSet<TA_USER_TABLE> TA_USER_TABLE { get; set; } |
||||
|
public virtual DbSet<TA_CONFIG> TA_CONFIG { get; set; } |
||||
|
public virtual DbSet<TL_DATA_CHANGE> TL_DATA_CHANGE { get; set; } |
||||
|
public virtual DbSet<TL_LOGIN> TL_LOGIN { get; set; } |
||||
|
public virtual DbSet<TL_EXCEPTION> TL_EXCEPTION { get; set; } |
||||
|
public virtual DbSet<TS_EDI_DATA> TS_EDI_DATA { get; set; } |
||||
|
public virtual DbSet<TT_EDI_DATA> TT_EDI_DATA { get; set; } |
||||
|
public virtual DbSet<TA_TABLE> TA_TABLE { get; set; } |
||||
|
public virtual DbSet<TA_TASK> TA_TASK { get; set; } |
||||
|
public virtual DbSet<TA_TASK_HIS> TA_TASK_HIS { get; set; } |
||||
|
public virtual DbSet<TS_SUPPLIER> TS_SUPPLIER { get; set; } |
||||
|
public virtual DbSet<TS_CUSTOMER> TS_CUSTOMER { get; set; } |
||||
|
public virtual DbSet<TS_DOMAIN> TS_DOMAIN { get; set; } |
||||
|
public virtual DbSet<TS_WORK_CENTER> TS_WORK_CENTER { get; set; } |
||||
|
public virtual DbSet<TS_SUPPLIER_TYPE> TS_SUPPLIER_TYPE { get; set; } |
||||
|
public virtual DbSet<TS_SUB_ACCOUNT> TS_SUB_ACCOUNT { get; set; } |
||||
|
public virtual DbSet<TS_SITE> TS_SITE { get; set; } |
||||
|
public virtual DbSet<TS_CODE_TYPE> TS_CODE_TYPE { get; set; } |
||||
|
public virtual DbSet<TS_CODE> TS_CODE { get; set; } |
||||
|
public virtual DbSet<TS_PRODUCT_LINE> TS_PRODUCT_LINE { get; set; } |
||||
|
public virtual DbSet<TS_PROJECT> TS_PROJECT { get; set; } |
||||
|
public virtual DbSet<TS_DEPARTMENT> TS_DEPARTMENT { get; set; } |
||||
|
public virtual DbSet<TS_ENTITY> TS_ENTITY { get; set; } |
||||
|
public virtual DbSet<TS_CUSTOMER_TYPE> TS_CUSTOMER_TYPE { get; set; } |
||||
|
public virtual DbSet<TS_COST_CENTER> TS_COST_CENTER { get; set; } |
||||
|
public virtual DbSet<TS_ACCOUNT> TS_ACCOUNT { get; set; } |
||||
|
public virtual DbSet<TS_ROUTING> TS_ROUTING { get; set; } |
||||
|
public virtual DbSet<TS_PART_MSTR> TS_PART_MSTR { get; set; } |
||||
|
public virtual DbSet<TS_PART_DET> TS_PART_DET { get; set; } |
||||
|
public virtual DbSet<TS_MES_DATA> TS_MES_DATA { get; set; } |
||||
|
public virtual DbSet<TS_LOCATION> TS_LOCATION { get; set; } |
||||
|
public virtual DbSet<TS_LINE> TS_LINE { get; set; } |
||||
|
public virtual DbSet<TS_COLOR> TS_COLOR { get; set; } |
||||
|
public virtual DbSet<TS_BOM> TS_BOM { get; set; } |
||||
|
public virtual DbSet<TS_PACK> TS_PACK { get; set; } |
||||
|
public virtual DbSet<TS_SUPPLIER_PART> TS_SUPPLIER_PART { get; set; } |
||||
|
public virtual DbSet<TS_CUSTOMER_PART> TS_CUSTOMER_PART { get; set; } |
||||
|
public virtual DbSet<TS_LINE_PART> TS_LINE_PART { get; set; } |
||||
|
public virtual DbSet<TS_PURCHASE_PRICE> TS_PURCHASE_PRICE { get; set; } |
||||
|
public virtual DbSet<TS_SALE_PRICE> TS_SALE_PRICE { get; set; } |
||||
|
public virtual DbSet<TS_STAND_COST_PRICE> TS_STAND_COST_PRICE { get; set; } |
||||
|
public virtual DbSet<TS_TEAM> TS_TEAM { get; set; } |
||||
|
public virtual DbSet<TS_SHIFT> TS_SHIFT { get; set; } |
||||
|
public virtual DbSet<TS_WMS_LOCATION> TS_WMS_LOCATION { get; set; } |
||||
|
public virtual DbSet<TT_SUPPLIER> TT_SUPPLIER { get; set; } |
||||
|
public virtual DbSet<TT_CUSTOMER> TT_CUSTOMER { get; set; } |
||||
|
public virtual DbSet<TT_DOMAIN> TT_DOMAIN { get; set; } |
||||
|
public virtual DbSet<TT_WORK_CENTER> TT_WORK_CENTER { get; set; } |
||||
|
public virtual DbSet<TT_SUPPLIER_TYPE> TT_SUPPLIER_TYPE { get; set; } |
||||
|
public virtual DbSet<TT_SUB_ACCOUNT> TT_SUB_ACCOUNT { get; set; } |
||||
|
public virtual DbSet<TT_SITE> TT_SITE { get; set; } |
||||
|
public virtual DbSet<TT_CODE_TYPE> TT_CODE_TYPE { get; set; } |
||||
|
public virtual DbSet<TT_CODE> TT_CODE { get; set; } |
||||
|
public virtual DbSet<TT_PRODUCT_LINE> TT_PRODUCT_LINE { get; set; } |
||||
|
public virtual DbSet<TT_PROJECT> TT_PROJECT { get; set; } |
||||
|
public virtual DbSet<TT_DEPARTMENT> TT_DEPARTMENT { get; set; } |
||||
|
public virtual DbSet<TT_ENTITY> TT_ENTITY { get; set; } |
||||
|
public virtual DbSet<TT_CUSTOMER_TYPE> TT_CUSTOMER_TYPE { get; set; } |
||||
|
public virtual DbSet<TT_COST_CENTER> TT_COST_CENTER { get; set; } |
||||
|
public virtual DbSet<TT_ACCOUNT> TT_ACCOUNT { get; set; } |
||||
|
public virtual DbSet<TT_ROUTING> TT_ROUTING { get; set; } |
||||
|
public virtual DbSet<TT_PART_MSTR> TT_PART_MSTR { get; set; } |
||||
|
public virtual DbSet<TT_PART_DET> TT_PART_DET { get; set; } |
||||
|
public virtual DbSet<TT_MES_DATA> TT_MES_DATA { get; set; } |
||||
|
public virtual DbSet<TT_LOCATION> TT_LOCATION { get; set; } |
||||
|
public virtual DbSet<TT_LINE> TT_LINE { get; set; } |
||||
|
public virtual DbSet<TT_COLOR> TT_COLOR { get; set; } |
||||
|
public virtual DbSet<TT_BOM> TT_BOM { get; set; } |
||||
|
public virtual DbSet<TT_PACK> TT_PACK { get; set; } |
||||
|
public virtual DbSet<TT_SUPPLIER_PART> TT_SUPPLIER_PART { get; set; } |
||||
|
public virtual DbSet<TT_CUSTOMER_PART> TT_CUSTOMER_PART { get; set; } |
||||
|
public virtual DbSet<TT_LINE_PART> TT_LINE_PART { get; set; } |
||||
|
public virtual DbSet<TT_PURCHASE_PRICE> TT_PURCHASE_PRICE { get; set; } |
||||
|
public virtual DbSet<TT_SALE_PRICE> TT_SALE_PRICE { get; set; } |
||||
|
public virtual DbSet<TT_STAND_COST_PRICE> TT_STAND_COST_PRICE { get; set; } |
||||
|
public virtual DbSet<TT_TEAM> TT_TEAM { get; set; } |
||||
|
public virtual DbSet<TT_SHIFT> TT_SHIFT { get; set; } |
||||
|
public virtual DbSet<TT_WMS_LOCATION> TT_WMS_LOCATION { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
protected override void OnModelCreating(DbModelBuilder modelBuilder) |
||||
|
{ |
||||
|
base.OnModelCreating(modelBuilder); |
||||
|
|
||||
|
modelBuilder.Conventions.Remove<DecimalPropertyConvention>(); |
||||
|
modelBuilder.Conventions.Add(new DecimalPropertyConvention(18, 5)); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("按钮表")] |
||||
|
public class TA_BUTTON : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[Index("IndexButton", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[Description("按钮编号")] |
||||
|
[Column] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string ButtonCode { get; set; } |
||||
|
|
||||
|
[Description("按钮名称")] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string ButtonName { get; set; } |
||||
|
|
||||
|
[Index("IndexButton", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[Description("表格名称")] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
[Description("按钮顺序")] |
||||
|
public int ButtonOrder { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("系统参数表")] |
||||
|
public class TA_CONFIG : ITable, IEnable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Index("IndexConfig", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[Description("参数名称")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string ConfigName { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("参数值")] |
||||
|
[StringLength(50)] |
||||
|
public string ConfigValue { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("参数说明")] |
||||
|
[StringLength(500)] |
||||
|
public string ConfigDesc { get; set; } |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("参数类型")] |
||||
|
public EnumConfigType ConfigType { get; set; } = EnumConfigType.STRING; |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("部门表")] |
||||
|
public class TA_DEPT : IUpdatableTable, IEnable,IDomainSite |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("部门编号")] |
||||
|
[Required(ErrorMessage = "部门编号不能为空.")] |
||||
|
[Index("IndexDept", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string DeptCode { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("部门名称")] |
||||
|
[Required(ErrorMessage = "部门名称不能为空.")] |
||||
|
[StringLength(50)] |
||||
|
public string DeptName { get; set; } |
||||
|
|
||||
|
[Description("是否选中")] |
||||
|
[NotMapped] |
||||
|
public bool IsChecked { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
public string Domain { get; set; } |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("菜单表")] |
||||
|
public class TA_MENU : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[Description("菜单编号")] |
||||
|
[Required] |
||||
|
[Index("IndexMenu", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string MenuCode { get; set; } |
||||
|
|
||||
|
[Description("菜单名称")] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string MenuName { get; set; } |
||||
|
|
||||
|
[Description("上级菜单")] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string ParentCode { get; set; } |
||||
|
|
||||
|
[Description("显示顺序")] |
||||
|
public int DisplayOrder { get; set; } |
||||
|
|
||||
|
[Description("图标名称")] |
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string IconName { get; set; } |
||||
|
|
||||
|
[Description("菜单级别")] |
||||
|
public int Level { get; set; } |
||||
|
|
||||
|
[Description("是否选中")] |
||||
|
[NotMapped] |
||||
|
public bool IsChecked { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("表格信息表")] |
||||
|
public class TA_TABLE : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("表格编号")] |
||||
|
[Required(ErrorMessage = "部门编号不能为空.")] |
||||
|
[Index("IndexDept", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string TableCode { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("表格名称")] |
||||
|
[Required(ErrorMessage = "部门名称不能为空.")] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
[Description("是否选中")] |
||||
|
[NotMapped] |
||||
|
public bool IsChecked { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("任务表")] |
||||
|
public class TA_TASK : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[NotMapped] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID => GUID; |
||||
|
|
||||
|
|
||||
|
[Description("任务状态")] |
||||
|
public EnumTaskState TaskState { get; set; } = EnumTaskState.Unread; |
||||
|
|
||||
|
[Description("表格名称")] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
[Description("创建者")] |
||||
|
[StringLength(50)] |
||||
|
public string Creator { get; set; } |
||||
|
|
||||
|
[Description("数据行数")] |
||||
|
public int DataCount { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
[Description("任务编号")] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("任务历史表")] |
||||
|
/// <summary>
|
||||
|
/// 任务历史表
|
||||
|
/// </summary>
|
||||
|
public class TA_TASK_HIS : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[NotMapped] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskId => GUID; |
||||
|
|
||||
|
|
||||
|
[Description("任务状态")] |
||||
|
public EnumTaskState TaskState { get; set; } |
||||
|
|
||||
|
[Description("表格名称")] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
[Description("创建者")] |
||||
|
[StringLength(50)] |
||||
|
public string Creator { get; set; } |
||||
|
|
||||
|
[Description("数据行数")] |
||||
|
public int DataCount { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
[Description("任务编号")] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,135 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("用户表")] |
||||
|
public class TA_USER : IUpdatableTable, ISoftDelete, IEnable, INotifyPropertyChanged |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("用户名")] |
||||
|
[Required(ErrorMessage = "用户名不能为空")] |
||||
|
[Index("IndexUser", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string UserName { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("密码")] |
||||
|
[Required(ErrorMessage = "密码不能为空")] |
||||
|
[StringLength(50)] |
||||
|
public string Password { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("真实姓名")] |
||||
|
[StringLength(50)] |
||||
|
public string TrueName { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[ColumnSource(ColumnSourceType.TABLE, typeof(TA_DEPT), |
||||
|
new[] {"DeptCode", "DeptName"})] //, "CompanyDeptSelector"
|
||||
|
[Description("部门编号")] |
||||
|
[Required(ErrorMessage = "部门编号不能为空")] |
||||
|
[StringLength(50)] |
||||
|
public string DeptCode { get; set; } |
||||
|
|
||||
|
[ColumnSource(ColumnSourceType.ENUM, typeof(EnumUserType))] |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("用户类型")] |
||||
|
public EnumUserType UserType { get; set; } = EnumUserType.Admin; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("电子邮件")] |
||||
|
[StringLength(50)] |
||||
|
public string Email { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("联系电话1")] |
||||
|
[StringLength(50)] |
||||
|
public string Phone1 { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("联系电话2")] |
||||
|
[StringLength(50)] |
||||
|
public string Phone2 { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("最后登录时间")] |
||||
|
[Column(TypeName = "datetime2")] |
||||
|
public DateTime? LastLoginTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("最后登录IP地址")] |
||||
|
[StringLength(50)] |
||||
|
public string LastLoginIp { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("最后登录电脑名称")] |
||||
|
[StringLength(50)] |
||||
|
public string LastLoginClient { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Index("IndexUserSessionId", Order = 0, IsUnique = false, IsClustered = false)] |
||||
|
[Description("会话编号")] |
||||
|
[StringLength(50)] |
||||
|
public string SessionId { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
|
||||
|
[Description("是否可用")] |
||||
|
public bool Enable { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
|
||||
|
#region INotifyPropertyChanged接口
|
||||
|
|
||||
|
public event PropertyChangedEventHandler PropertyChanged; |
||||
|
|
||||
|
public void NotityPropertyChanged(string propertyName) |
||||
|
{ |
||||
|
if (PropertyChanged != null) |
||||
|
{ |
||||
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion
|
||||
|
} |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("用户按钮权限")] |
||||
|
public class TA_USER_BUTTON : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[Description("用户名")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserButton", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string UserName { get; set; } |
||||
|
|
||||
|
[Description("表格名称")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserButton", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("按钮编号")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserButton", Order = 2, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string ButtonCode { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("用户菜单权限")] |
||||
|
public class TA_USER_MENU : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[Description("用户名")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserMenu", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string UserName { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("菜单编号")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserMenu", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string MenuCode { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("用户表格权限")] |
||||
|
public class TA_USER_TABLE : IUpdatableTable, IEnable |
||||
|
{ |
||||
|
[Description("用户名")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserTable", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string UserName { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("表格名称")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Index("IndexUserTable", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string TableName { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("数据变更日志")] |
||||
|
public class TL_DATA_CHANGE : ITable, IEnable |
||||
|
{ |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("日志类型")] |
||||
|
public EnumBaseDataLogType LogType { get; set; } |
||||
|
|
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("数据类型")] |
||||
|
[StringLength(50)] |
||||
|
public string DataType { get; set; } |
||||
|
|
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("原值")] |
||||
|
public string OldValue { get; set; } |
||||
|
|
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[Description("新值")] |
||||
|
public string NewValue { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
public bool Enable { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("异常日志表")] |
||||
|
public class TL_EXCEPTION : ITable |
||||
|
{ |
||||
|
[Description("日志类型")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string LogType { get; set; } |
||||
|
|
||||
|
[Description("异常消息")] |
||||
|
public string ExMessage { get; set; } |
||||
|
|
||||
|
[Description("异常信息")] |
||||
|
public string ExString { get; set; } |
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Utils; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("登录日志表")] |
||||
|
public class TL_LOGIN : ITable |
||||
|
{ |
||||
|
[Description("日志类型")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string Type { get; set; } |
||||
|
|
||||
|
[Description("客户端电脑名称")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(200)] |
||||
|
public string Client { get; set; } |
||||
|
|
||||
|
[Description("客户端IP")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(200)] |
||||
|
public string IP { get; set; } |
||||
|
|
||||
|
[Description("会话编号")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(200)] |
||||
|
public string SessionId { get; set; } |
||||
|
|
||||
|
[Description("信息")] |
||||
|
[StringLength(200)] |
||||
|
public string Message { get; set; } |
||||
|
|
||||
|
//public override string ToString()
|
||||
|
//{
|
||||
|
// return EntitiesHelper.GetPropertiesString(this);
|
||||
|
//}
|
||||
|
|
||||
|
#region 公共字段
|
||||
|
|
||||
|
[Description("创建人")] |
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } = ""; |
||||
|
|
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } = DateTime.Now; |
||||
|
|
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
#endregion
|
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("科目表")] |
||||
|
public class TS_ACCOUNT : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexAccount", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("BOM表")] |
||||
|
public class TS_BOM : IUpdatableTable, ISoftDelete, IDomainSite |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexBom", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("父级物料")] |
||||
|
[StringLength(50)] |
||||
|
public string ParentPart { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("组件")] |
||||
|
[StringLength(50)] |
||||
|
public string ComponentPart { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("参考")] |
||||
|
[StringLength(50)] |
||||
|
public string Reference { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("生效日期")] |
||||
|
public DateTime StartEffective { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("每件需求量")] |
||||
|
public decimal QuantityPer { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("结构类型")] |
||||
|
[StringLength(50)] |
||||
|
public string StructureType { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("结束有效日")] |
||||
|
public DateTime EndEffective { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("废品")] |
||||
|
public decimal Scrap { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("提前期")] |
||||
|
public int LeadTimeOffset { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("工序")] |
||||
|
public int Operation { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("序号")] |
||||
|
public int SequenceNumber { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("预测百分比")] |
||||
|
public decimal FporecastPercent { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("分组")] |
||||
|
[StringLength(50)] |
||||
|
public string OptionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("处理")] |
||||
|
[StringLength(50)] |
||||
|
public string Process { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("通用代码表")] |
||||
|
public class TS_CODE : IUpdatableTable, ISoftDelete,INotifyPropertyChanged |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("通用代码")] |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCode", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
|
||||
|
#region IsChecked
|
||||
|
|
||||
|
private bool _isChecked = false; |
||||
|
|
||||
|
[NotMapped] |
||||
|
public bool IsChecked |
||||
|
{ |
||||
|
get { return _isChecked; } |
||||
|
set |
||||
|
{ |
||||
|
_isChecked = value; |
||||
|
NotityPropertyChanged("IsChecked"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion
|
||||
|
|
||||
|
#region INotifyPropertyChanged接口
|
||||
|
|
||||
|
public event PropertyChangedEventHandler PropertyChanged; |
||||
|
|
||||
|
public void NotityPropertyChanged(string propertyName) |
||||
|
{ |
||||
|
if (PropertyChanged != null) |
||||
|
{ |
||||
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
#endregion
|
||||
|
} |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("通用代码类型表")] |
||||
|
public class TS_CODE_TYPE : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCodeType", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("通用类型代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("颜色表")] |
||||
|
public class TS_COLOR : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexColor", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("成本中心表")] |
||||
|
public class TS_COST_CENTER : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCostCenter", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,312 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户表")] |
||||
|
public class TS_CUSTOMER : IUpdatableTable, ISoftDelete, IDomainSite |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCustomer", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("客户代码")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("客户名称")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerName { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("搜索名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SearchName { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("中间名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SecondName { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("第三级名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ThirdName { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("组名")] |
||||
|
[StringLength(50)] |
||||
|
public string GroupName { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("启用")] |
||||
|
[StringLength(50)] |
||||
|
public string Active { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address1 { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address2 { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address3 { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("邮编")] |
||||
|
[StringLength(50)] |
||||
|
public string ZipCode { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("城市")] |
||||
|
[StringLength(50)] |
||||
|
public string City { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("国家")] |
||||
|
[StringLength(50)] |
||||
|
public string Country { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("电话")] |
||||
|
[StringLength(50)] |
||||
|
public string Telephone { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("省")] |
||||
|
[StringLength(50)] |
||||
|
public string province { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("县")] |
||||
|
[StringLength(50)] |
||||
|
public string County { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("传真")] |
||||
|
[StringLength(50)] |
||||
|
public string Fax { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("语言代码")] |
||||
|
[StringLength(50)] |
||||
|
public string LanguageCode { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("电子邮件")] |
||||
|
[StringLength(50)] |
||||
|
public string Email { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("网址")] |
||||
|
[StringLength(50)] |
||||
|
public string Internet { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("纳税地址")] |
||||
|
[StringLength(50)] |
||||
|
public string AddressIsTaxable { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("含税")] |
||||
|
[StringLength(50)] |
||||
|
public string AddressIsTaxIncluded { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("联邦税")] |
||||
|
[StringLength(50)] |
||||
|
public string FederalTax { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("州税")] |
||||
|
[StringLength(50)] |
||||
|
public string StateTax { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("杂项税1")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax1 { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("杂项税2")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax2 { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("杂项税3")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax3 { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("城市税")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxInCity { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("税区")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxZone { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("税种")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxClass { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("税用途")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxUsage { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("标题")] |
||||
|
[StringLength(50)] |
||||
|
public string Title { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("联系人名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactName { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("缩写")] |
||||
|
[StringLength(50)] |
||||
|
public string Initials { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("函数")] |
||||
|
[StringLength(50)] |
||||
|
public string Function { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("性别")] |
||||
|
[StringLength(50)] |
||||
|
public string Gender { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("主要联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactIsPrimary { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("次要联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactIsSecondary { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("允许补偿")] |
||||
|
[StringLength(50)] |
||||
|
public string Compens { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("发票控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfileInvoice { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("信用票据控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfileCreditNote { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("预付款控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfilePrepayment { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("扣减控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GLProfileDeduction { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("销售总账控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string AccountGLProfile { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("财务费用控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string FinanceChargeProfile { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("分账户控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string SubAccountProfile { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("币种")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("客户类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Customertype { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("支付期")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditTerms { get; set; } |
||||
|
[IsDataGridColum(true, 50)] |
||||
|
[Description("发票状态代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoiceStatusCode { get; set; } |
||||
|
|
||||
|
[Description("付款组")] |
||||
|
[StringLength(50)] |
||||
|
public string PaymentGroup { get; set; } |
||||
|
|
||||
|
[Description("账单明细表")] |
||||
|
[StringLength(50)] |
||||
|
public string BillingSchedule { get; set; } |
||||
|
|
||||
|
[Description("票据收款人")] |
||||
|
[StringLength(50)] |
||||
|
public string BillPayee { get; set; } |
||||
|
|
||||
|
[Description("发票授权")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoicebyAuthorization { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("推销员")] |
||||
|
[StringLength(50)] |
||||
|
public string SalesPerson { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("发货方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipVia { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("转卖税")] |
||||
|
[StringLength(50)] |
||||
|
public string Resale { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("地区")] |
||||
|
[StringLength(50)] |
||||
|
public string Region { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("折扣表")] |
||||
|
[StringLength(50)] |
||||
|
public string DiscountTable { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("固定价格")] |
||||
|
[StringLength(50)] |
||||
|
public string FixfdPrice { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("日记账集")] |
||||
|
[StringLength(50)] |
||||
|
public string DayBookSet { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("银行格式")] |
||||
|
[StringLength(50)] |
||||
|
public string BankFormat { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("客户银行")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerBank { get; set; } |
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("自有银行")] |
||||
|
[StringLength(50)] |
||||
|
public string OwnBank { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[IsDataGridColum(true, 65)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 66)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户零件表")] |
||||
|
public class TS_CUSTOMER_PART : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCustomerPart", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("客户/货物发往")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerShipto { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("客户项目")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Comment { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("显示客户物料")] |
||||
|
[StringLength(50)] |
||||
|
public string DisplayCustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("客户物料工程变更单号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPartEcoNbr { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户类型表")] |
||||
|
public class TS_CUSTOMER_TYPE : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexCustomerType", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("部门表")] |
||||
|
public class TS_DEPARTMENT : IUpdatableTable, ISoftDelete,IDomainSite |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexDepartMent", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("部门代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("域数据表")] |
||||
|
public class TS_DOMAIN : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexDoMain", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("域代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("域描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("EDI数据表")] |
||||
|
public class TS_EDI_DATA : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexEdiData", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("销售订单")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerOrder { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("货物发自")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipFrom { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("客户")] |
||||
|
[StringLength(50)] |
||||
|
public string Customer { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("客户零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("行号")] |
||||
|
public int Line { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string Part { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("采购订单")] |
||||
|
[StringLength(50)] |
||||
|
public string PurchaseOrder { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("客户参考号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerReference { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("接收日期")] |
||||
|
public DateTime ReceiveDate { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("接收时间")] |
||||
|
public DateTime ReceiveTime { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("需求日期")] |
||||
|
public DateTime DemandDate { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("需求数量")] |
||||
|
public decimal DemandQuantity { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("会计单位表")] |
||||
|
public class TS_ENTITY : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexEntity", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("会计单位代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("生产线表")] |
||||
|
public class TS_LINE : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexLine", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("生产线")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductionLine { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Description { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("件数/小时")] |
||||
|
public decimal UnitsHour { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("启用运行大小")] |
||||
|
public bool EnableRunSize { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("项数")] |
||||
|
public decimal NumberOfLines { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("持续时间缓冲-天")] |
||||
|
public int DurationBuffer { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("持续时间缓冲时间")] |
||||
|
[StringLength(50)] |
||||
|
public string DurationBufferHMS { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("设置时间-天")] |
||||
|
public int SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置时间")] |
||||
|
[StringLength(50)] |
||||
|
public string SetupTimeHMS { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("自动固定")] |
||||
|
public bool LnAutofirm { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("上次自动固定")] |
||||
|
public DateTime LnLastAutofirm { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("生产调度者ID")] |
||||
|
[StringLength(50)] |
||||
|
public string LnScheduler { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("期限结束")] |
||||
|
[StringLength(50)] |
||||
|
public string Dtendlit { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("结束周期号")] |
||||
|
public int EndNumber { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("生产线零件关系")] |
||||
|
public class TS_LINE_PART : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexLinePart", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("生产线")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductionLine { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("开始日期")] |
||||
|
public DateTime StartDate { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("件数/小时")] |
||||
|
public decimal UnitsHour { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("项数")] |
||||
|
public decimal NumberOfLines { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("设置时间-天")] |
||||
|
public int SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("设置时间")] |
||||
|
[StringLength(50)] |
||||
|
public string SetupTimeHMS { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("主生产线")] |
||||
|
public bool PrimaryLine { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupCrew { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("大小")] |
||||
|
public int SetSize { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("大小")] |
||||
|
public int RunSize { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("物料清单代码")] |
||||
|
[StringLength(50)] |
||||
|
public string BomCode { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("工艺流程")] |
||||
|
[StringLength(50)] |
||||
|
public string Routing { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("工具ID")] |
||||
|
[StringLength(50)] |
||||
|
public string ToolId { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("运行顺序1")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSequence1 { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("运行顺序2")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSequence2 { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("备注")] |
||||
|
public bool Comments { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,101 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("库位变更表")] |
||||
|
public class TS_LOCATION : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
|
||||
|
public string Site { get; set; } |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexLocation", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("库位")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryStatus { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("项目")] |
||||
|
[StringLength(50)] |
||||
|
public string Project { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("生成日期")] |
||||
|
public DateTime DateCreated { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("永久")] |
||||
|
public bool Permanent { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Type { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("单件")] |
||||
|
public bool SinglePart { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("单批/参考")] |
||||
|
public bool SingleLotReference { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("容量")] |
||||
|
public decimal Capacity { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("保留库位")] |
||||
|
public bool ReservedLocations { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("实物地址")] |
||||
|
[StringLength(50)] |
||||
|
public string PhysicalAddress { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("Mes数据表")] |
||||
|
public class TS_MES_DATA : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("标包表")] |
||||
|
public class TS_PACK : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexPack", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("单位")] |
||||
|
[StringLength(50)] |
||||
|
public string UM { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("备用计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string AlternateUm { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("单位换算因子")] |
||||
|
public int UmConversion { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,247 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("零件明细表")] |
||||
|
public class TS_PART_DET : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexPartDet", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("ABC 分类")] |
||||
|
[StringLength(50)] |
||||
|
public string AbcClass { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("批号控制")] |
||||
|
[StringLength(50)] |
||||
|
public string LotControl { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库位")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库位类型")] |
||||
|
[StringLength(50)] |
||||
|
public string LocationType { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("自动生成批号")] |
||||
|
public bool AutoMaticLotNumbers { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("平均间隔")] |
||||
|
public int AverageInterval { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("周期盘点间隔")] |
||||
|
public int CycleCountInterval { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("保存期限")] |
||||
|
public int ShelfLife { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("关键物料")] |
||||
|
public bool KeyPart { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("采购订单收货状态")] |
||||
|
[StringLength(50)] |
||||
|
public string PoReceiptStatus { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("有效的")] |
||||
|
public bool RctPoActive { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("加工单收货状态")] |
||||
|
[StringLength(50)] |
||||
|
public string WoReceiptStatus { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("有效的")] |
||||
|
public bool RctWoActive { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("非库存订单类型")] |
||||
|
[StringLength(50)] |
||||
|
public string MemoOrderType { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("主计划")] |
||||
|
public bool MasterSchedule { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("计划订单")] |
||||
|
public bool PlanOrders { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("时界")] |
||||
|
public int TimeFence { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("订货方法")] |
||||
|
[StringLength(50)] |
||||
|
public string OrderPolicy { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("订单数量")] |
||||
|
public decimal OrderQuantity { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("订货周期")] |
||||
|
public int OrderPeriod { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("安全库存量")] |
||||
|
public decimal SafetyStock { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("安全提前期")] |
||||
|
public decimal SafetyTime { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("再订货点")] |
||||
|
public decimal ReorderPoint { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("计划修改")] |
||||
|
[StringLength(50)] |
||||
|
public string PlanningRev { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("发放原则")] |
||||
|
public bool IssuePolicy { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("采购员/计划员")] |
||||
|
[StringLength(50)] |
||||
|
public string BuyerPlanner { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("采购订单地点")] |
||||
|
[StringLength(50)] |
||||
|
public string PoSite { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("采购/制造")] |
||||
|
[StringLength(50)] |
||||
|
public string PurMfg { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("配置类型")] |
||||
|
[StringLength(50)] |
||||
|
public string ConfigurationType { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("检验库位")] |
||||
|
[StringLength(50)] |
||||
|
public string InspectionLocation { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("需要检验")] |
||||
|
public bool InspectionRequired { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("检验提前期")] |
||||
|
public int InspectionLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("累计提前期")] |
||||
|
public int CumulativeLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("制造提前期")] |
||||
|
public int ManufacturingLedaTime { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("采购提前期")] |
||||
|
public int PurchaseLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("ATP实施水平")] |
||||
|
[StringLength(50)] |
||||
|
public string AtpEnforcementLevel { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("系列ATP")] |
||||
|
public bool FamilyATP { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("ATP水平")] |
||||
|
public int AtpHorizon { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("运行序号1")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSeq1 { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("运行序号2")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSeq2 { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("虚拟件")] |
||||
|
public bool Phantom { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("最小订量")] |
||||
|
public decimal MinimumOrder { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("最大订量")] |
||||
|
public decimal MaximumOrder { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("订单倍数")] |
||||
|
public decimal OrderMultiple { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("基于产量的工序")] |
||||
|
public bool OperationBasedYield { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("产出率")] |
||||
|
public decimal YieldPercent { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("运行时间")] |
||||
|
[StringLength(50)] |
||||
|
public string RunTime { get; set; } |
||||
|
[IsDataGridColum(true, 50)] |
||||
|
[Description("设置时间")] |
||||
|
public decimal SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("EMT类型")] |
||||
|
[StringLength(50)] |
||||
|
public string EmtType { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("EMT的自动处理")] |
||||
|
public bool AutomaticEmtProcessing { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("分销网代码")] |
||||
|
[StringLength(50)] |
||||
|
public string NetWorkCode { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("工艺流程代码")] |
||||
|
[StringLength(50)] |
||||
|
public string RoutingCode { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("物料清单/配方代码")] |
||||
|
[StringLength(50)] |
||||
|
public string BomFormulaCode { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("补货方法")] |
||||
|
[StringLength(50)] |
||||
|
public string ReplenishmentMethod { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("是否主物料")] |
||||
|
[StringLength(50)] |
||||
|
public string IsMaster { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("漆件颜色")] |
||||
|
[StringLength(50)] |
||||
|
public string PartColor { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,140 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("零件主表")] |
||||
|
public class TS_PART_MSTR : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexPartMstr", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述1")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc1 { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("描述2")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc2 { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProdLine { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("加入日期")] |
||||
|
public DateTime AddDate { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("设计组")] |
||||
|
[StringLength(50)] |
||||
|
public string DsgnGroup { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("推销组")] |
||||
|
[StringLength(50)] |
||||
|
public string PromotionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("物料类型")] |
||||
|
[StringLength(50)] |
||||
|
public string PartType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("组")] |
||||
|
[StringLength(50)] |
||||
|
public string Group { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("图纸")] |
||||
|
[StringLength(50)] |
||||
|
public string Drawing { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("项目修改")] |
||||
|
[StringLength(50)] |
||||
|
public string PartRevision { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("图纸位置")] |
||||
|
[StringLength(50)] |
||||
|
public string DrawingLocation { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("大小")] |
||||
|
[StringLength(50)] |
||||
|
public string Size { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("价格折扣种类")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceBreakCategory { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("辅材")] |
||||
|
public bool AuxiliaryMaterial { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("下线结算")] |
||||
|
public bool OfflineSettlement { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("Q等级")] |
||||
|
[StringLength(50)] |
||||
|
public string Qgrade { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("零件种类")] |
||||
|
[StringLength(50)] |
||||
|
public string WmsPartType { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("管理方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ManageWay { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("存货代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryCode { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("管理类型(批量/单件)")] |
||||
|
[StringLength(50)] |
||||
|
public string ManageType { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("是否检验")] |
||||
|
[StringLength(50)] |
||||
|
public string InspectType { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("产品类表")] |
||||
|
public class TS_PRODUCT_LINE : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexPartMstr", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("应纳税")] |
||||
|
public bool Taxable { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("纳税级别")] |
||||
|
public int TaxClass { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("项目表")] |
||||
|
public class TS_PROJECT : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexProject", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("采购价格表")] |
||||
|
public class TS_PURCHASE_PRICE : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexPurchasePrice", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("价目表代码")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductLine { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("开始")] |
||||
|
public DateTime Start { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("到期日期")] |
||||
|
public DateTime ExpireDate { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("金额类型")] |
||||
|
[StringLength(50)] |
||||
|
public string AmountType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("金额")] |
||||
|
public decimal Amount { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,132 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("工艺表")] |
||||
|
public class TS_ROUTING : IUpdatableTable, ISoftDelete, IDomainSite |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexRouting", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("工艺流程代码")] |
||||
|
[StringLength(50)] |
||||
|
public string RoutingCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("工序")] |
||||
|
public int Operation { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("开始日期")] |
||||
|
public DateTime StartDate { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("标准工序")] |
||||
|
[StringLength(50)] |
||||
|
public string StandardOperration { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("工作中心")] |
||||
|
[StringLength(50)] |
||||
|
public string WorkCenter { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("机器")] |
||||
|
[StringLength(50)] |
||||
|
public string Machine { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Description { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("机器数/工序")] |
||||
|
public int MachinesPerOperation { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("平行加工件数")] |
||||
|
public int OverlapUnits { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("排队时间")] |
||||
|
public decimal QueueTime { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal WaitTime { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("划分阶段的工序")] |
||||
|
public bool MilestoneOperation { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("转包提前期")] |
||||
|
public int SubcontractLt { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupCrew { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("设置时间")] |
||||
|
public decimal SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("运行时间")] |
||||
|
public decimal RunTime { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("移动时间")] |
||||
|
public decimal MoveTime { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("结束日期")] |
||||
|
public DateTime EndDate { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("产出率")] |
||||
|
public decimal YieldPercent { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("工具代码")] |
||||
|
[StringLength(50)] |
||||
|
public string ToolCode { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("库存价值")] |
||||
|
public decimal InventoryValue { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("转包成本")] |
||||
|
public decimal SubcontractCost { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("备注")] |
||||
|
public bool Comments { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("销售价格表")] |
||||
|
public class TS_SALE_PRICE : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSalePrice", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("价目表代码")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductLine { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("开始")] |
||||
|
public DateTime Start { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("到期日期")] |
||||
|
public DateTime ExpireDate { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("金额类型")] |
||||
|
[StringLength(50)] |
||||
|
public string AmountType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("金额")] |
||||
|
public decimal Amount { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("转换表")] |
||||
|
public class TS_SHIFT : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexShift", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("地点表")] |
||||
|
public class TS_SITE : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSite", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("会计单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Entity { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("自动生成库位")] |
||||
|
public bool AutoLocation { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("检验库位")] |
||||
|
[StringLength(50)] |
||||
|
public string InspLocation { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("EMT供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string BtbSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("外部供应商")] |
||||
|
public bool ExtSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("转移差异科目")] |
||||
|
[StringLength(50)] |
||||
|
public string XferAcct { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("转移差异分账户")] |
||||
|
[StringLength(50)] |
||||
|
public string XferSub { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("转移差异成本中心")] |
||||
|
[StringLength(50)] |
||||
|
public string XferCc { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("PO运输库位")] |
||||
|
[StringLength(50)] |
||||
|
public string GitLocation { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("使用计划/调度的工作台")] |
||||
|
public bool UsePlanSchedWbs { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("标准成本价格表")] |
||||
|
public class TS_STAND_COST_PRICE : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexStandCostPrice", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string Part { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("物料成本")] |
||||
|
public int MaterialCost { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("人工成本")] |
||||
|
public int LaborCost { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("附加成本")] |
||||
|
public int BurdenCost { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("开销成本")] |
||||
|
public int OverheadCost { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("转包成本")] |
||||
|
public int SubcontrCost { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("成本集")] |
||||
|
public int CostSet { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("分账户表")] |
||||
|
public class TS_SUB_ACCOUNT : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSubAccount", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("分账户代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("分账户描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,309 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商表")] |
||||
|
public class TS_SUPPLIER : IUpdatableTable, ISoftDelete, IDomain |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSupplier", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("供应商代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("供应商名称")] |
||||
|
[StringLength(50)] |
||||
|
public string Name { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("搜索名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SearchName { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("中间名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SecondName { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("第三级名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ThirdName { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("组名")] |
||||
|
[StringLength(50)] |
||||
|
public string GroupName { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("启用")] |
||||
|
public bool Active { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address1 { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address2 { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address3 { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("邮编")] |
||||
|
public int ZipCode { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("城市")] |
||||
|
[StringLength(50)] |
||||
|
public string City { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("国家")] |
||||
|
[StringLength(50)] |
||||
|
public string Country { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("电话")] |
||||
|
public int Telephone { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("省")] |
||||
|
[StringLength(50)] |
||||
|
public string province { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("县")] |
||||
|
[StringLength(50)] |
||||
|
public string County { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("传真")] |
||||
|
public int Fax { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("语言代码")] |
||||
|
[StringLength(50)] |
||||
|
public string LanguageCode { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("电子邮件")] |
||||
|
public int Email { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("网址")] |
||||
|
public int Internet { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("纳税地址")] |
||||
|
public bool AddressIsTaxable { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("含税")] |
||||
|
public bool AddressIsTaxIncluded { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("联邦税")] |
||||
|
[StringLength(50)] |
||||
|
public string FederalTax { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("州税")] |
||||
|
[StringLength(50)] |
||||
|
public string StateTax { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("杂项税1")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax1 { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("杂项税2")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax2 { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("杂项税3")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax3 { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("城市税")] |
||||
|
public bool TaxInCity { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("税区")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxZone { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("税种")] |
||||
|
public int TaxClass { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("税用途")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxUsage { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("标题")] |
||||
|
[StringLength(50)] |
||||
|
public string Title { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("联系人名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactName { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("缩写")] |
||||
|
[StringLength(50)] |
||||
|
public string Initials { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("函数")] |
||||
|
[StringLength(50)] |
||||
|
public string Function { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("性别")] |
||||
|
[StringLength(50)] |
||||
|
public string Gender { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("主要联系人")] |
||||
|
public bool ContactIsPrimary { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("次要联系人")] |
||||
|
public bool ContactIsSecondary { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("允许补偿")] |
||||
|
public bool Compens { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("发票控制文件")] |
||||
|
public int GlProfileInvoice { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("信用票据控制文件")] |
||||
|
public int GlProfileCreditNote { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("预付款控制文件")] |
||||
|
public int GlProfilePrepayment { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("总账控制文件")] |
||||
|
public int AccountGLProfile { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("分账户控制文件")] |
||||
|
public int SubAccountProfile { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("信贷机构引用")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditAgencyReference { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("商会号")] |
||||
|
[StringLength(50)] |
||||
|
public string CommerceNumber { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("TID通知")] |
||||
|
[StringLength(50)] |
||||
|
public string TidNotice { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("外部客户号")] |
||||
|
[StringLength(50)] |
||||
|
public string ExternalCustomerNumber { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("币种")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 1505)] |
||||
|
[Description("供应商类型")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierType { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("采购类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Purchasetype { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("支付期")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditTerms { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("发票状态代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoiceStatusCode { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("付款组")] |
||||
|
[StringLength(50)] |
||||
|
public string PaymentGroup { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("发送汇款单")] |
||||
|
public bool SendRemittance { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("分隔基础")] |
||||
|
public bool SplitAccount { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("发货方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipVia { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("承运人")] |
||||
|
[StringLength(50)] |
||||
|
public string Carrier { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("采购联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string Purchasecontact { get; set; } |
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("日记账集")] |
||||
|
[StringLength(50)] |
||||
|
public string DayBookSet { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("看板供应商")] |
||||
|
public bool KanBanSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("推销组")] |
||||
|
[StringLength(50)] |
||||
|
public string PromotionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("采购员")] |
||||
|
[StringLength(50)] |
||||
|
public string Buyer { get; set; } |
||||
|
[IsDataGridColum(true, 65)] |
||||
|
[Description("价格表")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceTable { get; set; } |
||||
|
[IsDataGridColum(true, 66)] |
||||
|
[Description("折扣表")] |
||||
|
[StringLength(50)] |
||||
|
public string DiscountTable { get; set; } |
||||
|
[IsDataGridColum(true, 67)] |
||||
|
[Description("固定价格")] |
||||
|
public bool FixedPrice { get; set; } |
||||
|
[IsDataGridColum(true, 68)] |
||||
|
[Description("非销售单价格单")] |
||||
|
[StringLength(50)] |
||||
|
public string NonSoPrice { get; set; } |
||||
|
[IsDataGridColum(true, 69)] |
||||
|
[Description("银行格式")] |
||||
|
[StringLength(50)] |
||||
|
public string BankFormat { get; set; } |
||||
|
[IsDataGridColum(true, 70)] |
||||
|
[Description("供应商银行")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierBank { get; set; } |
||||
|
[IsDataGridColum(true, 71)] |
||||
|
[Description("自有银行")] |
||||
|
[StringLength(50)] |
||||
|
public string OwnBank { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 72)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 73)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 74)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,100 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商零件表")] |
||||
|
public class TS_SUPPLIER_PART : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSupplierPart", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[Index("IndexSupplierPart", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("供应商物料")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierPart { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("供应商提前期")] |
||||
|
public int SupplierLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("使用客户订购减缩价")] |
||||
|
public bool UseSoReductionPrice { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("客户订购减缩价")] |
||||
|
public decimal SoPriceReduction { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("报价单价格")] |
||||
|
public decimal QuotePrice { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("报价日期")] |
||||
|
public DateTime QuoteDate { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("报价数量")] |
||||
|
public decimal QuoteQty { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("价目表")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("制造商")] |
||||
|
[StringLength(50)] |
||||
|
public string Manufacturer { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("制造商物料")] |
||||
|
[StringLength(50)] |
||||
|
public string ManufacturerPart { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Comment { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商类型表")] |
||||
|
public class TS_SUPPLIER_TYPE : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexSupplierType", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("团队表")] |
||||
|
public class TS_TEAM : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexTeam", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true,2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("WMS库位表")] |
||||
|
public class TS_WMS_LOCATION : IUpdatableTable, ISoftDelete, IDomainSite |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexWmsLocation", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("库位代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("ERP库位")] |
||||
|
[StringLength(50)] |
||||
|
public string ErpLocation { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库区")] |
||||
|
[StringLength(50)] |
||||
|
public string Area { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryStatus { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("库管员")] |
||||
|
[StringLength(50)] |
||||
|
public string WarehouseKeeper { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("仓库")] |
||||
|
[StringLength(50)] |
||||
|
public string WhseCode { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("允许负库存")] |
||||
|
public bool IsEnableNegativeStock { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("允许零库存")] |
||||
|
public bool AutoRemoveZeroStockDetail { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("最大容量")] |
||||
|
public decimal MaxBoxQty { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("允许混放")] |
||||
|
public bool IsEnableMix { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("项目编号")] |
||||
|
[StringLength(50)] |
||||
|
public string ProjectId { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("工作中心表")] |
||||
|
public class TS_WORK_CENTER : IUpdatableTable, ISoftDelete |
||||
|
{ |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexWorkCenter", Order = 0, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("工作中心代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("工作中心描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("部门")] |
||||
|
[StringLength(50)] |
||||
|
public string Department { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("自动固定")] |
||||
|
public bool AutoFirm { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("上次自动固定")] |
||||
|
public DateTime LastAutoFirm { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("调度者")] |
||||
|
[StringLength(50)] |
||||
|
public string Scheduler { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal Queue { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal Wait { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("设备/工序")] |
||||
|
public int MchOp { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupMen { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("机器数")] |
||||
|
public decimal MchWkctr { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("机器制造费率")] |
||||
|
public decimal MchBdn { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("设置费率")] |
||||
|
public decimal SetupRte { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("人工费率")] |
||||
|
public decimal LbrRate { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("人工制造费用率")] |
||||
|
public decimal BdnRate { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("人工制造费用")] |
||||
|
public decimal BdnPct { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("机器")] |
||||
|
[StringLength(50)] |
||||
|
public string Mch { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[Description("修改人")] |
||||
|
[StringLength(50)] |
||||
|
public string UpdateUser { get; set; } |
||||
|
|
||||
|
[Description("修改时间")] |
||||
|
public DateTime? UpdateTime { get; set; } |
||||
|
|
||||
|
[Description("已删除")] |
||||
|
public bool IsDeleted { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
using CK.SCP.Models.ExchangeCenterTables; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("科目变更表")] |
||||
|
public class TT_ACCOUNT : TED_BASE, ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true,5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,103 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("BOM变更表")] |
||||
|
|
||||
|
public class TT_BOM : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("父级物料")] |
||||
|
[StringLength(50)] |
||||
|
public string ParentPart { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("组件")] |
||||
|
[StringLength(50)] |
||||
|
public string ComponentPart { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("参考")] |
||||
|
[StringLength(50)] |
||||
|
public string Reference { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("生效日期")] |
||||
|
public DateTime StartEffective { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("每件需求量")] |
||||
|
public decimal QuantityPer { get; set; } |
||||
|
[IsDataGridColum(true,6)] |
||||
|
[Description("结构类型")] |
||||
|
[StringLength(50)] |
||||
|
public string StructureType { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("结束有效日")] |
||||
|
public DateTime EndEffective { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("废品")] |
||||
|
public decimal Scrap { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("提前期")] |
||||
|
public int LeadTimeOffset { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("工序")] |
||||
|
public int Operation { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("序号")] |
||||
|
public int SequenceNumber { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("预测百分比")] |
||||
|
public decimal FporecastPercent { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("分组")] |
||||
|
[StringLength(50)] |
||||
|
public string OptionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("处理")] |
||||
|
[StringLength(50)] |
||||
|
public string Process { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("通用代码变更表")] |
||||
|
public class TT_CODE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("通用代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("通用代码类型变更表")] |
||||
|
public class TT_CODE_TYPE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("通用类型代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("颜色变更表")] |
||||
|
public class TT_COLOR : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("成本中心变更表")] |
||||
|
public class TT_COST_CENTER : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,309 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户变更表")] |
||||
|
public class TT_CUSTOMER : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("客户代码")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("客户名称")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerName { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("搜索名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SearchName { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("中间名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SecondName { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("第三级名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ThirdName { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("组名")] |
||||
|
[StringLength(50)] |
||||
|
public string GroupName { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("启用")] |
||||
|
[StringLength(50)] |
||||
|
public string Active { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address1 { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address2 { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("客户地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address3 { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("邮编")] |
||||
|
[StringLength(50)] |
||||
|
public string ZipCode { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("城市")] |
||||
|
[StringLength(50)] |
||||
|
public string City { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("国家")] |
||||
|
[StringLength(50)] |
||||
|
public string Country { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("电话")] |
||||
|
[StringLength(50)] |
||||
|
public string Telephone { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("省")] |
||||
|
[StringLength(50)] |
||||
|
public string province { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("县")] |
||||
|
[StringLength(50)] |
||||
|
public string County { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("传真")] |
||||
|
[StringLength(50)] |
||||
|
public string Fax { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("语言代码")] |
||||
|
[StringLength(50)] |
||||
|
public string LanguageCode { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("电子邮件")] |
||||
|
[StringLength(50)] |
||||
|
public string Email { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("网址")] |
||||
|
[StringLength(50)] |
||||
|
public string Internet { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("纳税地址")] |
||||
|
[StringLength(50)] |
||||
|
public string AddressIsTaxable { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("含税")] |
||||
|
[StringLength(50)] |
||||
|
public string AddressIsTaxIncluded { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("联邦税")] |
||||
|
[StringLength(50)] |
||||
|
public string FederalTax { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("州税")] |
||||
|
[StringLength(50)] |
||||
|
public string StateTax { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("杂项税1")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax1 { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("杂项税2")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax2 { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("杂项税3")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax3 { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("城市税")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxInCity { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("税区")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxZone { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("税种")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxClass { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("税用途")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxUsage { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("标题")] |
||||
|
[StringLength(50)] |
||||
|
public string Title { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("联系人名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactName { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("缩写")] |
||||
|
[StringLength(50)] |
||||
|
public string Initials { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("函数")] |
||||
|
[StringLength(50)] |
||||
|
public string Function { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("性别")] |
||||
|
[StringLength(50)] |
||||
|
public string Gender { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("主要联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactIsPrimary { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("次要联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactIsSecondary { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("允许补偿")] |
||||
|
[StringLength(50)] |
||||
|
public string Compens { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("发票控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfileInvoice { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("信用票据控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfileCreditNote { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("预付款控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GlProfilePrepayment { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("扣减控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string GLProfileDeduction { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("销售总账控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string AccountGLProfile { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("财务费用控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string FinanceChargeProfile { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("分账户控制文件")] |
||||
|
[StringLength(50)] |
||||
|
public string SubAccountProfile { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("币种")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("客户类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Customertype { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("支付期")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditTerms { get; set; } |
||||
|
[IsDataGridColum(true, 50)] |
||||
|
[Description("发票状态代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoiceStatusCode { get; set; } |
||||
|
|
||||
|
[Description("付款组")] |
||||
|
[StringLength(50)] |
||||
|
public string PaymentGroup { get; set; } |
||||
|
|
||||
|
[Description("账单明细表")] |
||||
|
[StringLength(50)] |
||||
|
public string BillingSchedule { get; set; } |
||||
|
|
||||
|
[Description("票据收款人")] |
||||
|
[StringLength(50)] |
||||
|
public string BillPayee { get; set; } |
||||
|
|
||||
|
[Description("发票授权")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoicebyAuthorization { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("推销员")] |
||||
|
[StringLength(50)] |
||||
|
public string SalesPerson { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("发货方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipVia { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("转卖税")] |
||||
|
[StringLength(50)] |
||||
|
public string Resale { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("地区")] |
||||
|
[StringLength(50)] |
||||
|
public string Region { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("折扣表")] |
||||
|
[StringLength(50)] |
||||
|
public string DiscountTable { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("固定价格")] |
||||
|
[StringLength(50)] |
||||
|
public string FixfdPrice { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("日记账集")] |
||||
|
[StringLength(50)] |
||||
|
public string DayBookSet { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("银行格式")] |
||||
|
[StringLength(50)] |
||||
|
public string BankFormat { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("客户银行")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerBank { get; set; } |
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("自有银行")] |
||||
|
[StringLength(50)] |
||||
|
public string OwnBank { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 65)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
|
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户零件变更表")] |
||||
|
public class TT_CUSTOMER_PART : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("客户/货物发往")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerShipto { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("客户项目")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Comment { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("显示客户物料")] |
||||
|
[StringLength(50)] |
||||
|
public string DisplayCustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("客户物料工程变更单号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPartEcoNbr { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("客户类型变更表")] |
||||
|
public class TT_CUSTOMER_TYPE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("部门变更表")] |
||||
|
public class TT_DEPARTMENT : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("部门代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("域数据变更表")] |
||||
|
public class TT_DOMAIN : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("域代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("域描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("EDI数据变更表")] |
||||
|
public class TT_EDI_DATA : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
|
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("销售订单")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerOrder { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("货物发自")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipFrom { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("客户")] |
||||
|
[StringLength(50)] |
||||
|
public string Customer { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Required(ErrorMessage = "代码不能为空")] |
||||
|
[Index("IndexEdiData", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[Description("客户零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerPart { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("行号")] |
||||
|
public int Line { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string Part { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("采购订单")] |
||||
|
[StringLength(50)] |
||||
|
public string PurchaseOrder { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("客户参考号")] |
||||
|
[StringLength(50)] |
||||
|
public string CustomerReference { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("接收日期")] |
||||
|
public DateTime ReceiveDate { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("接收时间")] |
||||
|
public DateTime ReceiveTime { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("需求日期")] |
||||
|
public DateTime DemandDate { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("需求数量")] |
||||
|
public decimal DemandQuantity { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("会计单位变更表")] |
||||
|
public class TT_ENTITY : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("会计单位代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,99 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("生产线变更表")] |
||||
|
public class TT_LINE : ITaskTable |
||||
|
{ |
||||
|
|
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("生产线")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductionLine { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Description { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("件数/小时")] |
||||
|
public decimal UnitsHour { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("启用运行大小")] |
||||
|
public bool EnableRunSize { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("项数")] |
||||
|
public decimal NumberOfLines { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("持续时间缓冲-天")] |
||||
|
public int DurationBuffer { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("持续时间缓冲时间")] |
||||
|
[StringLength(50)] |
||||
|
public string DurationBufferHMS { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("设置时间-天")] |
||||
|
public int SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置时间")] |
||||
|
[StringLength(50)] |
||||
|
public string SetupTimeHMS { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("自动固定")] |
||||
|
public bool LnAutofirm { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("上次自动固定")] |
||||
|
public DateTime LnLastAutofirm { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("生产调度者ID")] |
||||
|
[StringLength(50)] |
||||
|
public string LnScheduler { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("期限结束")] |
||||
|
[StringLength(50)] |
||||
|
public string Dtendlit { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("结束周期号")] |
||||
|
public int EndNumber { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,114 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("生产线零件关系变更")] |
||||
|
public class TT_LINE_PART : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
|
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[Index("IndexLinePart", Order = 1, IsUnique = true, IsClustered = false)] |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("生产线")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductionLine { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("开始日期")] |
||||
|
public DateTime StartDate { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("件数/小时")] |
||||
|
public decimal UnitsHour { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("项数")] |
||||
|
public decimal NumberOfLines { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("设置时间-天")] |
||||
|
public int SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("设置时间")] |
||||
|
[StringLength(50)] |
||||
|
public string SetupTimeHMS { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("主生产线")] |
||||
|
public bool PrimaryLine { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupCrew { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("大小")] |
||||
|
public int SetSize { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("大小")] |
||||
|
public int RunSize { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("物料清单代码")] |
||||
|
[StringLength(50)] |
||||
|
public string BomCode { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("工艺流程")] |
||||
|
[StringLength(50)] |
||||
|
public string Routing { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("工具ID")] |
||||
|
[StringLength(50)] |
||||
|
public string ToolId { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("运行顺序1")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSequence1 { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("运行顺序2")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSequence2 { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("备注")] |
||||
|
public bool Comments { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,103 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
using CK.SCP.Models.ExchangeCenterTables; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("库位变更表")] |
||||
|
public class TT_LOCATION : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
|
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("库位")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryStatus { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("项目")] |
||||
|
[StringLength(50)] |
||||
|
public string Project { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("生成日期")] |
||||
|
public DateTime DateCreated { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("永久")] |
||||
|
public bool Permanent { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Type { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("单件")] |
||||
|
public bool SinglePart { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("单批/参考")] |
||||
|
public bool SingleLotReference { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("容量")] |
||||
|
public decimal Capacity { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("保留库位")] |
||||
|
public bool ReservedLocations { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("实物地址")] |
||||
|
[StringLength(50)] |
||||
|
public string PhysicalAddress { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("Mes数据表更表")] |
||||
|
public class TT_MES_DATA : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("标包变更表")] |
||||
|
public class TT_PACK : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("单位")] |
||||
|
[StringLength(50)] |
||||
|
public string UM { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("备用计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string AlternateUm { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("单位换算因子")] |
||||
|
public int UmConversion { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,254 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("零件明细变更表")] |
||||
|
public class TT_PART_DET : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
|
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("ABC 分类")] |
||||
|
[StringLength(50)] |
||||
|
public string AbcClass { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("批号控制")] |
||||
|
[StringLength(50)] |
||||
|
public string LotControl { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库位")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库位类型")] |
||||
|
[StringLength(50)] |
||||
|
public string LocationType { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("自动生成批号")] |
||||
|
public bool AutoMaticLotNumbers { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("平均间隔")] |
||||
|
public int AverageInterval { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("周期盘点间隔")] |
||||
|
public int CycleCountInterval { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("保存期限")] |
||||
|
public int ShelfLife { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("关键物料")] |
||||
|
public bool KeyPart { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("采购订单收货状态")] |
||||
|
[StringLength(50)] |
||||
|
public string PoReceiptStatus { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("有效的")] |
||||
|
public bool RctPoActive { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("加工单收货状态")] |
||||
|
[StringLength(50)] |
||||
|
public string WoReceiptStatus { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("有效的")] |
||||
|
public bool RctWoActive { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("非库存订单类型")] |
||||
|
[StringLength(50)] |
||||
|
public string MemoOrderType { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("主计划")] |
||||
|
public bool MasterSchedule { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("计划订单")] |
||||
|
public bool PlanOrders { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("时界")] |
||||
|
public int TimeFence { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("订货方法")] |
||||
|
[StringLength(50)] |
||||
|
public string OrderPolicy { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("订单数量")] |
||||
|
public decimal OrderQuantity { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("订货周期")] |
||||
|
public int OrderPeriod { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("安全库存量")] |
||||
|
public decimal SafetyStock { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("安全提前期")] |
||||
|
public decimal SafetyTime { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("再订货点")] |
||||
|
public decimal ReorderPoint { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("计划修改")] |
||||
|
[StringLength(50)] |
||||
|
public string PlanningRev { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("发放原则")] |
||||
|
public bool IssuePolicy { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("采购员/计划员")] |
||||
|
[StringLength(50)] |
||||
|
public string BuyerPlanner { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("采购订单地点")] |
||||
|
[StringLength(50)] |
||||
|
public string PoSite { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("采购/制造")] |
||||
|
[StringLength(50)] |
||||
|
public string PurMfg { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("配置类型")] |
||||
|
[StringLength(50)] |
||||
|
public string ConfigurationType { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("检验库位")] |
||||
|
[StringLength(50)] |
||||
|
public string InspectionLocation { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("需要检验")] |
||||
|
public bool InspectionRequired { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("检验提前期")] |
||||
|
public int InspectionLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("累计提前期")] |
||||
|
public int CumulativeLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("制造提前期")] |
||||
|
public int ManufacturingLedaTime { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("采购提前期")] |
||||
|
public int PurchaseLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("ATP实施水平")] |
||||
|
[StringLength(50)] |
||||
|
public string AtpEnforcementLevel { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("系列ATP")] |
||||
|
public bool FamilyATP { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("ATP水平")] |
||||
|
public int AtpHorizon { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("运行序号1")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSeq1 { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("运行序号2")] |
||||
|
[StringLength(50)] |
||||
|
public string RunSeq2 { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("虚拟件")] |
||||
|
public bool Phantom { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("最小订量")] |
||||
|
public decimal MinimumOrder { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("最大订量")] |
||||
|
public decimal MaximumOrder { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("订单倍数")] |
||||
|
public decimal OrderMultiple { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("基于产量的工序")] |
||||
|
public bool OperationBasedYield { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("产出率")] |
||||
|
public decimal YieldPercent { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("运行时间")] |
||||
|
[StringLength(50)] |
||||
|
public string RunTime { get; set; } |
||||
|
[IsDataGridColum(true, 50)] |
||||
|
[Description("设置时间")] |
||||
|
public decimal SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("EMT类型")] |
||||
|
[StringLength(50)] |
||||
|
public string EmtType { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("EMT的自动处理")] |
||||
|
public bool AutomaticEmtProcessing { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("分销网代码")] |
||||
|
[StringLength(50)] |
||||
|
public string NetWorkCode { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("工艺流程代码")] |
||||
|
[StringLength(50)] |
||||
|
public string RoutingCode { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("物料清单/配方代码")] |
||||
|
[StringLength(50)] |
||||
|
public string BomFormulaCode { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("补货方法")] |
||||
|
[StringLength(50)] |
||||
|
public string ReplenishmentMethod { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("是否主物料")] |
||||
|
[StringLength(50)] |
||||
|
public string IsMaster { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("漆件颜色")] |
||||
|
[StringLength(50)] |
||||
|
public string PartColor { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,144 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("零件主变更表")] |
||||
|
public class TT_PART_MSTR : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
|
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("零件号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述1")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc1 { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("描述2")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc2 { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProdLine { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("加入日期")] |
||||
|
public DateTime AddDate { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("设计组")] |
||||
|
[StringLength(50)] |
||||
|
public string DsgnGroup { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("推销组")] |
||||
|
[StringLength(50)] |
||||
|
public string PromotionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("物料类型")] |
||||
|
[StringLength(50)] |
||||
|
public string PartType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("组")] |
||||
|
[StringLength(50)] |
||||
|
public string Group { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("图纸")] |
||||
|
[StringLength(50)] |
||||
|
public string Drawing { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("项目修改")] |
||||
|
[StringLength(50)] |
||||
|
public string PartRevision { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("图纸位置")] |
||||
|
[StringLength(50)] |
||||
|
public string DrawingLocation { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("大小")] |
||||
|
[StringLength(50)] |
||||
|
public string Size { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("价格折扣种类")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceBreakCategory { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("辅材")] |
||||
|
public bool AuxiliaryMaterial { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("下线结算")] |
||||
|
public bool OfflineSettlement { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("Q等级")] |
||||
|
[StringLength(50)] |
||||
|
public string Qgrade { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("零件种类")] |
||||
|
[StringLength(50)] |
||||
|
public string WmsPartType { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("管理方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ManageWay { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("存货代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryCode { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("管理类型(批量/单件)")] |
||||
|
[StringLength(50)] |
||||
|
public string ManageType { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("是否检验")] |
||||
|
[StringLength(50)] |
||||
|
public string InspectType { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("产品类变更表")] |
||||
|
public class TT_PRODUCT_LINE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("应纳税")] |
||||
|
public bool Taxable { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("纳税级别")] |
||||
|
public int TaxClass { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("项目变更表")] |
||||
|
public class TT_PROJECT : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("采购价格变更表")] |
||||
|
public class TT_PURCHASE_PRICE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("价目表代码")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductLine { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("开始")] |
||||
|
public DateTime Start { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("到期日期")] |
||||
|
public DateTime ExpireDate { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("金额类型")] |
||||
|
[StringLength(50)] |
||||
|
public string AmountType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("金额")] |
||||
|
public decimal Amount { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,132 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("工艺变更表")] |
||||
|
public class TT_ROUTING : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("工艺流程代码")] |
||||
|
[StringLength(50)] |
||||
|
public string RoutingCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("工序")] |
||||
|
public int Operation { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("开始日期")] |
||||
|
public DateTime StartDate { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("标准工序")] |
||||
|
[StringLength(50)] |
||||
|
public string StandardOperration { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("工作中心")] |
||||
|
[StringLength(50)] |
||||
|
public string WorkCenter { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("机器")] |
||||
|
[StringLength(50)] |
||||
|
public string Machine { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Description { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("机器数/工序")] |
||||
|
public int MachinesPerOperation { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("平行加工件数")] |
||||
|
public int OverlapUnits { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("排队时间")] |
||||
|
public decimal QueueTime { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal WaitTime { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("划分阶段的工序")] |
||||
|
public bool MilestoneOperation { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("转包提前期")] |
||||
|
public int SubcontractLt { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupCrew { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("设置时间")] |
||||
|
public decimal SetupTime { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("运行时间")] |
||||
|
public decimal RunTime { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("移动时间")] |
||||
|
public decimal MoveTime { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("结束日期")] |
||||
|
public DateTime EndDate { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("产出率")] |
||||
|
public decimal YieldPercent { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("工具代码")] |
||||
|
[StringLength(50)] |
||||
|
public string ToolCode { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("库存价值")] |
||||
|
public decimal InventoryValue { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("转包成本")] |
||||
|
public decimal SubcontractCost { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("备注")] |
||||
|
public bool Comments { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("销售价格变更表")] |
||||
|
public class TT_SALE_PRICE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("价目表代码")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("说明")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("产品类")] |
||||
|
[StringLength(50)] |
||||
|
public string ProductLine { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("开始")] |
||||
|
public DateTime Start { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("到期日期")] |
||||
|
public DateTime ExpireDate { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("金额类型")] |
||||
|
[StringLength(50)] |
||||
|
public string AmountType { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("金额")] |
||||
|
public decimal Amount { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("转换变更表")] |
||||
|
public class TT_SHIFT : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
|
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("地点变更表")] |
||||
|
public class TT_SITE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("地点代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("会计单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Entity { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string Status { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("自动生成库位")] |
||||
|
public bool AutoLocation { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("检验库位")] |
||||
|
[StringLength(50)] |
||||
|
public string InspLocation { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("EMT供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string BtbSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("外部供应商")] |
||||
|
public bool ExtSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("转移差异科目")] |
||||
|
[StringLength(50)] |
||||
|
public string XferAcct { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("转移差异分账户")] |
||||
|
[StringLength(50)] |
||||
|
public string XferSub { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("转移差异成本中心")] |
||||
|
[StringLength(50)] |
||||
|
public string XferCc { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("PO运输库位")] |
||||
|
[StringLength(50)] |
||||
|
public string GitLocation { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("使用计划/调度的工作台")] |
||||
|
public bool UsePlanSchedWbs { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("标准成本价格变更表")] |
||||
|
public class TT_STAND_COST_PRICE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string Part { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("物料成本")] |
||||
|
public int MaterialCost { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("人工成本")] |
||||
|
public int LaborCost { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("附加成本")] |
||||
|
public int BurdenCost { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("开销成本")] |
||||
|
public int OverheadCost { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("转包成本")] |
||||
|
public int SubcontrCost { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("成本集")] |
||||
|
public int CostSet { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("分账户变更表")] |
||||
|
public class TT_SUB_ACCOUNT : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("分账户代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("分账户描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,313 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商变更表")] |
||||
|
public class TT_SUPPLIER : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("供应商代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("供应商名称")] |
||||
|
[StringLength(50)] |
||||
|
public string Name { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("搜索名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SearchName { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("中间名称")] |
||||
|
[StringLength(50)] |
||||
|
public string SecondName { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("第三级名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ThirdName { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("组名")] |
||||
|
[StringLength(50)] |
||||
|
public string GroupName { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("启用")] |
||||
|
public bool Active { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address1 { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address2 { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("供应商地址")] |
||||
|
[StringLength(50)] |
||||
|
public string Address3 { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("邮编")] |
||||
|
public int ZipCode { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("城市")] |
||||
|
[StringLength(50)] |
||||
|
public string City { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("国家")] |
||||
|
[StringLength(50)] |
||||
|
public string Country { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("电话")] |
||||
|
public int Telephone { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("省")] |
||||
|
[StringLength(50)] |
||||
|
public string province { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("县")] |
||||
|
[StringLength(50)] |
||||
|
public string County { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("传真")] |
||||
|
public int Fax { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("语言代码")] |
||||
|
[StringLength(50)] |
||||
|
public string LanguageCode { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("电子邮件")] |
||||
|
public int Email { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("网址")] |
||||
|
public int Internet { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("纳税地址")] |
||||
|
public bool AddressIsTaxable { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("含税")] |
||||
|
public bool AddressIsTaxIncluded { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("联邦税")] |
||||
|
[StringLength(50)] |
||||
|
public string FederalTax { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("州税")] |
||||
|
[StringLength(50)] |
||||
|
public string StateTax { get; set; } |
||||
|
[IsDataGridColum(true, 25)] |
||||
|
[Description("杂项税1")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax1 { get; set; } |
||||
|
[IsDataGridColum(true, 26)] |
||||
|
[Description("杂项税2")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax2 { get; set; } |
||||
|
[IsDataGridColum(true, 27)] |
||||
|
[Description("杂项税3")] |
||||
|
[StringLength(50)] |
||||
|
public string MiscTax3 { get; set; } |
||||
|
[IsDataGridColum(true, 28)] |
||||
|
[Description("城市税")] |
||||
|
public bool TaxInCity { get; set; } |
||||
|
[IsDataGridColum(true, 29)] |
||||
|
[Description("税区")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxZone { get; set; } |
||||
|
[IsDataGridColum(true, 30)] |
||||
|
[Description("税种")] |
||||
|
public int TaxClass { get; set; } |
||||
|
[IsDataGridColum(true, 31)] |
||||
|
[Description("税用途")] |
||||
|
[StringLength(50)] |
||||
|
public string TaxUsage { get; set; } |
||||
|
[IsDataGridColum(true, 32)] |
||||
|
[Description("标题")] |
||||
|
[StringLength(50)] |
||||
|
public string Title { get; set; } |
||||
|
[IsDataGridColum(true, 33)] |
||||
|
[Description("联系人名称")] |
||||
|
[StringLength(50)] |
||||
|
public string ContactName { get; set; } |
||||
|
[IsDataGridColum(true, 34)] |
||||
|
[Description("缩写")] |
||||
|
[StringLength(50)] |
||||
|
public string Initials { get; set; } |
||||
|
[IsDataGridColum(true, 35)] |
||||
|
[Description("函数")] |
||||
|
[StringLength(50)] |
||||
|
public string Function { get; set; } |
||||
|
[IsDataGridColum(true, 36)] |
||||
|
[Description("性别")] |
||||
|
[StringLength(50)] |
||||
|
public string Gender { get; set; } |
||||
|
[IsDataGridColum(true, 37)] |
||||
|
[Description("主要联系人")] |
||||
|
public bool ContactIsPrimary { get; set; } |
||||
|
[IsDataGridColum(true, 38)] |
||||
|
[Description("次要联系人")] |
||||
|
public bool ContactIsSecondary { get; set; } |
||||
|
[IsDataGridColum(true, 39)] |
||||
|
[Description("允许补偿")] |
||||
|
public bool Compens { get; set; } |
||||
|
[IsDataGridColum(true, 40)] |
||||
|
[Description("发票控制文件")] |
||||
|
public int GlProfileInvoice { get; set; } |
||||
|
[IsDataGridColum(true, 41)] |
||||
|
[Description("信用票据控制文件")] |
||||
|
public int GlProfileCreditNote { get; set; } |
||||
|
[IsDataGridColum(true, 42)] |
||||
|
[Description("预付款控制文件")] |
||||
|
public int GlProfilePrepayment { get; set; } |
||||
|
[IsDataGridColum(true, 43)] |
||||
|
[Description("总账控制文件")] |
||||
|
public int AccountGLProfile { get; set; } |
||||
|
[IsDataGridColum(true, 44)] |
||||
|
[Description("分账户控制文件")] |
||||
|
public int SubAccountProfile { get; set; } |
||||
|
[IsDataGridColum(true, 45)] |
||||
|
[Description("信贷机构引用")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditAgencyReference { get; set; } |
||||
|
[IsDataGridColum(true, 46)] |
||||
|
[Description("商会号")] |
||||
|
[StringLength(50)] |
||||
|
public string CommerceNumber { get; set; } |
||||
|
[IsDataGridColum(true, 47)] |
||||
|
[Description("TID通知")] |
||||
|
[StringLength(50)] |
||||
|
public string TidNotice { get; set; } |
||||
|
[IsDataGridColum(true, 48)] |
||||
|
[Description("外部客户号")] |
||||
|
[StringLength(50)] |
||||
|
public string ExternalCustomerNumber { get; set; } |
||||
|
[IsDataGridColum(true, 49)] |
||||
|
[Description("币种")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 1505)] |
||||
|
[Description("供应商类型")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierType { get; set; } |
||||
|
[IsDataGridColum(true, 51)] |
||||
|
[Description("采购类型")] |
||||
|
[StringLength(50)] |
||||
|
public string Purchasetype { get; set; } |
||||
|
[IsDataGridColum(true, 52)] |
||||
|
[Description("支付期")] |
||||
|
[StringLength(50)] |
||||
|
public string CreditTerms { get; set; } |
||||
|
[IsDataGridColum(true, 53)] |
||||
|
[Description("发票状态代码")] |
||||
|
[StringLength(50)] |
||||
|
public string InvoiceStatusCode { get; set; } |
||||
|
[IsDataGridColum(true, 54)] |
||||
|
[Description("付款组")] |
||||
|
[StringLength(50)] |
||||
|
public string PaymentGroup { get; set; } |
||||
|
[IsDataGridColum(true, 55)] |
||||
|
[Description("发送汇款单")] |
||||
|
public bool SendRemittance { get; set; } |
||||
|
[IsDataGridColum(true, 56)] |
||||
|
[Description("分隔基础")] |
||||
|
public bool SplitAccount { get; set; } |
||||
|
[IsDataGridColum(true, 57)] |
||||
|
[Description("发货方式")] |
||||
|
[StringLength(50)] |
||||
|
public string ShipVia { get; set; } |
||||
|
[IsDataGridColum(true, 58)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Remarks { get; set; } |
||||
|
[IsDataGridColum(true, 59)] |
||||
|
[Description("承运人")] |
||||
|
[StringLength(50)] |
||||
|
public string Carrier { get; set; } |
||||
|
[IsDataGridColum(true, 60)] |
||||
|
[Description("采购联系人")] |
||||
|
[StringLength(50)] |
||||
|
public string Purchasecontact { get; set; } |
||||
|
[IsDataGridColum(true, 61)] |
||||
|
[Description("日记账集")] |
||||
|
[StringLength(50)] |
||||
|
public string DayBookSet { get; set; } |
||||
|
[IsDataGridColum(true, 62)] |
||||
|
[Description("看板供应商")] |
||||
|
public bool KanBanSupplier { get; set; } |
||||
|
[IsDataGridColum(true, 63)] |
||||
|
[Description("推销组")] |
||||
|
[StringLength(50)] |
||||
|
public string PromotionGroup { get; set; } |
||||
|
[IsDataGridColum(true, 64)] |
||||
|
[Description("采购员")] |
||||
|
[StringLength(50)] |
||||
|
public string Buyer { get; set; } |
||||
|
[IsDataGridColum(true, 65)] |
||||
|
[Description("价格表")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceTable { get; set; } |
||||
|
[IsDataGridColum(true, 66)] |
||||
|
[Description("折扣表")] |
||||
|
[StringLength(50)] |
||||
|
public string DiscountTable { get; set; } |
||||
|
[IsDataGridColum(true, 67)] |
||||
|
[Description("固定价格")] |
||||
|
public bool FixedPrice { get; set; } |
||||
|
[IsDataGridColum(true, 68)] |
||||
|
[Description("非销售单价格单")] |
||||
|
[StringLength(50)] |
||||
|
public string NonSoPrice { get; set; } |
||||
|
[IsDataGridColum(true, 69)] |
||||
|
[Description("银行格式")] |
||||
|
[StringLength(50)] |
||||
|
public string BankFormat { get; set; } |
||||
|
[IsDataGridColum(true, 70)] |
||||
|
[Description("供应商银行")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierBank { get; set; } |
||||
|
[IsDataGridColum(true, 71)] |
||||
|
[Description("自有银行")] |
||||
|
[StringLength(50)] |
||||
|
public string OwnBank { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 72)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 73)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 74)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 75)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 76)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 77)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,105 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商零件变更表")] |
||||
|
public class TT_SUPPLIER_PART : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("物料号")] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("供应商")] |
||||
|
[StringLength(50)] |
||||
|
public string Supplier { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("供应商物料")] |
||||
|
[StringLength(50)] |
||||
|
public string SupplierPart { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("计量单位")] |
||||
|
[StringLength(50)] |
||||
|
public string Um { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("供应商提前期")] |
||||
|
public int SupplierLeadTime { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("使用客户订购减缩价")] |
||||
|
public bool UseSoReductionPrice { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("客户订购减缩价")] |
||||
|
public decimal SoPriceReduction { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("货币")] |
||||
|
[StringLength(50)] |
||||
|
public string Currency { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("报价单价格")] |
||||
|
public decimal QuotePrice { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("报价日期")] |
||||
|
public DateTime QuoteDate { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("报价数量")] |
||||
|
public decimal QuoteQty { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("价目表")] |
||||
|
[StringLength(50)] |
||||
|
public string PriceList { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("制造商")] |
||||
|
[StringLength(50)] |
||||
|
public string Manufacturer { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("制造商物料")] |
||||
|
[StringLength(50)] |
||||
|
public string ManufacturerPart { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
[StringLength(50)] |
||||
|
public string Comment { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("供应商类型变更表")] |
||||
|
public class TT_SUPPLIER_TYPE : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("团队变更表")] |
||||
|
public class TT_TEAM : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("WMS库位变更表")] |
||||
|
public class TT_WMS_LOCATION : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("库位代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Location { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("ERP库位")] |
||||
|
[StringLength(50)] |
||||
|
public string ErpLocation { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("库区")] |
||||
|
[StringLength(50)] |
||||
|
public string Area { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("库存状态")] |
||||
|
[StringLength(50)] |
||||
|
public string InventoryStatus { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("库管员")] |
||||
|
[StringLength(50)] |
||||
|
public string WarehouseKeeper { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("仓库")] |
||||
|
[StringLength(50)] |
||||
|
public string WhseCode { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("允许负库存")] |
||||
|
public bool IsEnableNegativeStock { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("允许零库存")] |
||||
|
public bool AutoRemoveZeroStockDetail { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("最大容量")] |
||||
|
public decimal MaxBoxQty { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("允许混放")] |
||||
|
public bool IsEnableMix { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("项目编号")] |
||||
|
[StringLength(50)] |
||||
|
public string ProjectId { get; set; } |
||||
|
|
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 17)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,109 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using CK.SCP.Models.Attributes; |
||||
|
using CK.SCP.Models.Base; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
|
||||
|
using CK.SCP.Models.ExchangeCenterTables;namespace CK.SCP.Models.DataCenterTables |
||||
|
{ |
||||
|
[Description("工作中心变更表")] |
||||
|
public class TT_WORK_CENTER : TED_BASE,ITaskTable |
||||
|
{ |
||||
|
[IsDataGridColum(true, 1)] |
||||
|
[Description("工作中心代码")] |
||||
|
[StringLength(50)] |
||||
|
public string Code { get; set; } |
||||
|
[IsDataGridColum(true, 2)] |
||||
|
[Description("工作中心描述")] |
||||
|
[StringLength(50)] |
||||
|
public string Desc { get; set; } |
||||
|
[IsDataGridColum(true, 3)] |
||||
|
[Description("部门")] |
||||
|
[StringLength(50)] |
||||
|
public string Department { get; set; } |
||||
|
[IsDataGridColum(true, 4)] |
||||
|
[Description("自动固定")] |
||||
|
public bool AutoFirm { get; set; } |
||||
|
[IsDataGridColum(true, 5)] |
||||
|
[Description("上次自动固定")] |
||||
|
public DateTime LastAutoFirm { get; set; } |
||||
|
[IsDataGridColum(true, 6)] |
||||
|
[Description("调度者")] |
||||
|
[StringLength(50)] |
||||
|
public string Scheduler { get; set; } |
||||
|
[IsDataGridColum(true, 7)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal Queue { get; set; } |
||||
|
[IsDataGridColum(true, 8)] |
||||
|
[Description("等待时间")] |
||||
|
public decimal Wait { get; set; } |
||||
|
[IsDataGridColum(true, 9)] |
||||
|
[Description("设备/工序")] |
||||
|
public int MchOp { get; set; } |
||||
|
[IsDataGridColum(true, 10)] |
||||
|
[Description("设置人员")] |
||||
|
public decimal SetupMen { get; set; } |
||||
|
[IsDataGridColum(true, 11)] |
||||
|
[Description("操作全体成员")] |
||||
|
public decimal RunCrew { get; set; } |
||||
|
[IsDataGridColum(true, 12)] |
||||
|
[Description("机器数")] |
||||
|
public decimal MchWkctr { get; set; } |
||||
|
[IsDataGridColum(true, 13)] |
||||
|
[Description("机器制造费率")] |
||||
|
public decimal MchBdn { get; set; } |
||||
|
[IsDataGridColum(true, 14)] |
||||
|
[Description("设置费率")] |
||||
|
public decimal SetupRte { get; set; } |
||||
|
[IsDataGridColum(true, 15)] |
||||
|
[Description("人工费率")] |
||||
|
public decimal LbrRate { get; set; } |
||||
|
[IsDataGridColum(true, 16)] |
||||
|
[Description("人工制造费用率")] |
||||
|
public decimal BdnRate { get; set; } |
||||
|
[IsDataGridColum(true,17)] |
||||
|
[Description("人工制造费用")] |
||||
|
public decimal BdnPct { get; set; } |
||||
|
[IsDataGridColum(true, 18)] |
||||
|
[Description("机器")] |
||||
|
[StringLength(50)] |
||||
|
public string Mch { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
public Guid GUID { get; set; } = Guid.NewGuid(); |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public int UID { get; set; } |
||||
|
[IsDataGridColum(true, 19)] |
||||
|
[Description("创建人")] |
||||
|
[StringLength(50)] |
||||
|
public string CreateUser { get; set; } |
||||
|
[IsDataGridColum(true, 20)] |
||||
|
[Description("创建时间")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
[IsDataGridColum(true, 21)] |
||||
|
[Description("备注")] |
||||
|
public string Remark { get; set; } |
||||
|
[IsDataGridColum(true, 22)] |
||||
|
[Description("任务编号")] |
||||
|
public Guid TaskID { get; set; } |
||||
|
[IsDataGridColum(true, 23)] |
||||
|
[Description("命令类型")] |
||||
|
[StringLength(50)] |
||||
|
public string CommandType { get; set; } |
||||
|
[IsDataGridColum(true, 24)] |
||||
|
[Description("数据ID")] |
||||
|
public Guid DataID { get; set; } |
||||
|
|
||||
|
[Description("域")] |
||||
|
[StringLength(50)] |
||||
|
public string Domain { get; set; } |
||||
|
|
||||
|
[Description("地点")] |
||||
|
[StringLength(50)] |
||||
|
public string Site { get; set; } |
||||
|
} |
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue