using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsInfoClientMailProject
{
[JsonObject]
public class InfoClientMailProject : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _CUSTNAME;
private string _PROJECTNAME;
private string _REMARKS;
private bool _ISDEF;
private string _ISDEFREF;
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTDATE =null;//录入日期
#endregion
public InfoClientMailProject()
{
TableName = "info_client_mailproject";
}
#region 读写属性
///
/// 主键唯一值
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string CUSTNAME
{
get { return _CUSTNAME; }
set { _CUSTNAME = value; }
}
[ModelDB]
public string PROJECTNAME
{
get { return _PROJECTNAME; }
set { _PROJECTNAME = value; }
}
[ModelDB]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB]
public bool ISDEF
{
get { return _ISDEF; }
set { _ISDEF = value; }
}
public string ISDEFREF
{
get { return _ISDEFREF; }
set { _ISDEFREF = value; }
}
///
[ModelDB]
public string INPUTDATE { get { return _INPUTDATE; } set { _INPUTDATE = value; } }
///
///
/// 备注
///
[ModelDB]
public string REMARK
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
#endregion
}
[JsonObject]
public class InfoClientMailProjectDetail : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _PROJECTID = String.Empty;
private string _BLTYPE = String.Empty;
private string _RECEIVER= String.Empty;
private string _SUBJECT = String.Empty;
private string _DESCRIPTION = String.Empty;
private string _ATTACHMENT = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string PROJECTID
{
get { return _PROJECTID; }
set { _PROJECTID = value; }
}
[ModelDB]
public string BLTYPE
{
get { return _BLTYPE; }
set { _BLTYPE = value; }
}
[ModelDB]
public string RECEIVER
{
get { return _RECEIVER; }
set { _RECEIVER = value; }
}
[ModelDB]
public string SUBJECT
{
get { return _SUBJECT; }
set { _SUBJECT = value; }
}
[ModelDB]
public string DESCRIPTION
{
get { return _DESCRIPTION; }
set { _DESCRIPTION = value; }
}
[ModelDB]
public string ATTACHMENT
{
get { return _ATTACHMENT; }
set { _ATTACHMENT = value; }
}
#endregion
public InfoClientMailProjectDetail()
{
TableName = "info_client_mailproject_detail";
}
override public string GetBillNoFieldName()
{
return "PROJECTID";
}
}
}