You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/Models/MsCrmKeyCodeSet/MsCrmKeyCodeSet.cs

116 lines
2.5 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCrmKeyCodeSet
{
[JsonObject]
public class MsCrmKeyCodeSet : ModelObjectBillHead
{
#region 读写属性
private string _id = "";
/// <summary>
/// ID
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string ID
{
get { return _id; }
set { _id = value; }
}
private string _keytype = "";
/// <summary>
/// 上级ID
/// </summary>
[ModelDB]
public string KEYTYPE
{
get { return _keytype; }
set { _keytype = value; }
}
private string _keyvalue = "";
/// <summary>
/// 值
/// </summary>
[ModelDB]
public string KEYVALUE
{
get { return _keyvalue; }
set { _keyvalue = value; }
}
#endregion
public MsCrmKeyCodeSet()
{
TableName = "crm_key_code";
}
override public string GetBillNoFieldName()
{
return "ID";
}
}
[JsonObject]
public class Sys_EnumerationMD : ModelObjectBillHead
{
#region 读写属性
private string _gid = "";
/// <summary>
/// ID
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _VALUE = "";
/// <summary>
/// 值
/// </summary>
[ModelDB]
public string VALUE
{
get { return _VALUE; }
set { _VALUE = value; }
}
private string _NAME = "";
/// <summary>
/// 名字
/// </summary>
[ModelDB]
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
private string _TYPE = "";
/// <summary>
/// 类型
/// </summary>
[ModelDB]
public string TYPE
{
get { return _TYPE; }
set { _TYPE = value; }
}
#endregion
public Sys_EnumerationMD()
{
TableName = "sys_Enumeration";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
}