using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCodeSource
{
[JsonObject]
public class MsCodeSource : ModelObjectBillHead
{
#region 私有成员
private string _SOURCEID = "*";
#endregion
#region 读写属性
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string SOURCEID { get { return _SOURCEID; } set { _SOURCEID = value; } }
///
/// 业务状态
///
[ModelDB]
public string SOURCENAME { get; set; }
[ModelDB]
public string CORPID { get; set; }
[ModelDB]
public string SOURCECODE { get; set; }
[ModelDB]
public string ENAME { get; set; }
#endregion
public MsCodeSource()
{
TableName = "code_source";
}
override public string GetBillNoFieldName()
{
return "SOURCEID";
}
}
[JsonObject]
public class MsCodeSourceDetail : ModelObjectBillBody
{
#region private Fields
private string _OS_ID = "*";//业务编号
#endregion
#region Public Properties
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string SOURCEDETAILID { get { return _OS_ID; } set { _OS_ID = value; } }
[ModelDB]
public string SOURCEID { get; set; }
[ModelDB]
public string SOURCEDETAIL { get; set; }
[ModelDB]
public string ENAME { get; set; }
#endregion
override public string GetBillNoFieldName()
{
return "SOURCEID";
}
}
#region 参照部分
#endregion
}