|
|
|
|
using System;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Models.MsCrmClient
|
|
|
|
|
{
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class MsCrmClientVisit : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region 读写属性
|
|
|
|
|
private string _GID = Guid.NewGuid().ToString();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _GID; }
|
|
|
|
|
set { _GID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CLIENTGID = "";
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CLIENTGID
|
|
|
|
|
{
|
|
|
|
|
get { return _CLIENTGID; }
|
|
|
|
|
set { _CLIENTGID = value; }
|
|
|
|
|
}
|
|
|
|
|
private string _SHORTNAME = "";
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string SHORTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _SHORTNAME; }
|
|
|
|
|
set { _SHORTNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CONTACTNAME = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CONTACTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _CONTACTNAME; }
|
|
|
|
|
set { _CONTACTNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _sale = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 揽货人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string SALE
|
|
|
|
|
{
|
|
|
|
|
get{ return _sale; }
|
|
|
|
|
set{ _sale = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _VISITTITLE = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITTITLE
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITTITLE; }
|
|
|
|
|
set { _VISITTITLE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _VISITSTATUS = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITSTATUS
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITSTATUS; }
|
|
|
|
|
set { _VISITSTATUS = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _VISITWAY = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITWAY
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITWAY; }
|
|
|
|
|
set { _VISITWAY = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _VISITCONTENT = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITCONTENT
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITCONTENT; }
|
|
|
|
|
set { _VISITCONTENT = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _VISITDATE = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITDATE; }
|
|
|
|
|
set { _VISITDATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTACTION = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTACTION
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTACTION; }
|
|
|
|
|
set { _NEXTACTION = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTCONTENT = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTCONTENT
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTCONTENT; }
|
|
|
|
|
set { _NEXTCONTENT = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTDATE = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTDATE; }
|
|
|
|
|
set { _NEXTDATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CREATEUSER = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 录入人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
|
|
|
|
|
public string CREATEUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATEUSER; }
|
|
|
|
|
set { _CREATEUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CREATETIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
|
|
|
|
|
public string CREATETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATETIME; }
|
|
|
|
|
set { _CREATETIME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public MsCrmClientVisit()
|
|
|
|
|
{
|
|
|
|
|
TableName = "crm_info_client_visit";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "GID";
|
|
|
|
|
}
|
|
|
|
|
public override string GetTimeMarkFieldName ( )
|
|
|
|
|
{
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class MsCrmClientVisitPlan : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region 读写属性
|
|
|
|
|
private string _GID = Guid.NewGuid().ToString();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _GID; }
|
|
|
|
|
set { _GID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CLIENTGID = "";
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CLIENTGID
|
|
|
|
|
{
|
|
|
|
|
get { return _CLIENTGID; }
|
|
|
|
|
set { _CLIENTGID = value; }
|
|
|
|
|
}
|
|
|
|
|
private string _SHORTNAME = "";
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string SHORTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _SHORTNAME; }
|
|
|
|
|
set { _SHORTNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CONTACTNAME = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CONTACTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _CONTACTNAME; }
|
|
|
|
|
set { _CONTACTNAME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _sale = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 揽货人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string SALE
|
|
|
|
|
{
|
|
|
|
|
get { return _sale; }
|
|
|
|
|
set { _sale = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _VISITWAY = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITWAY
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITWAY; }
|
|
|
|
|
set { _VISITWAY = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _VISITCONTENT = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITCONTENT
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITCONTENT; }
|
|
|
|
|
set { _VISITCONTENT = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _VISITDATE = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string VISITDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _VISITDATE; }
|
|
|
|
|
set { _VISITDATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTACTION = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTACTION
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTACTION; }
|
|
|
|
|
set { _NEXTACTION = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTCONTENT = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTCONTENT
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTCONTENT; }
|
|
|
|
|
set { _NEXTCONTENT = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _NEXTDATE = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string NEXTDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _NEXTDATE; }
|
|
|
|
|
set { _NEXTDATE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CREATEUSER = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 录入人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
|
|
|
|
|
public string CREATEUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATEUSER; }
|
|
|
|
|
set { _CREATEUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _CREATETIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
|
|
|
|
|
public string CREATETIME
|
|
|
|
|
{
|
|
|
|
|
get { return _CREATETIME; }
|
|
|
|
|
set { _CREATETIME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public MsCrmClientVisitPlan()
|
|
|
|
|
{
|
|
|
|
|
TableName = "crm_info_client_visit";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "GID";
|
|
|
|
|
}
|
|
|
|
|
public override string GetTimeMarkFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|