using Edu.Common.Enum;
using Edu.Common.Enum.Customer;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.Customer
{
	/// <summary>
	/// 同业联系人实体类
	/// </summary>
	[Serializable]
	[DB(ConnectionName = "DefaultConnection")]
	public class RB_Customer
	{
		/// <summary>
		/// 客户资料id
		/// </summary>
		public int CustomerId { get; set; }

		/// <summary>
		/// 联系人
		/// </summary>
		public string CustomerName { get; set; }

		/// <summary>
		/// 联系电话
		/// </summary>
		public string ContactNumber { get; set; }

		/// <summary>
		/// 传真
		/// </summary>
		public string Fax { get; set; }

		/// <summary>
		/// 业务QQ
		/// </summary>
		public string QQ { get; set; }

		/// <summary>
		/// 邮箱
		/// </summary>
		public string Email { get; set; }

		/// <summary>
		/// 客户地址
		/// </summary>
		public string Address { get; set; }

		/// <summary>
		/// 联系人性别 0 未知，1男， 2女
		/// </summary>
		public int Sex { get; set; }

		/// <summary>
		/// 图片
		/// </summary>
		public string Image { get; set; }

		/// <summary>
		/// 同行客户来源(1-企业,2-学校)
		/// </summary>
		public int CustomerSourceType { get; set; }

		/// <summary>
		/// 客户来源信息
		/// </summary>
		public string CustomerSource { get; set; }

		/// <summary>
		/// 国家id
		/// </summary>
		public int CountryId { get; set; }

		/// <summary>
		/// 省id
		/// </summary>
		public int ProvinceId { get; set; }

		/// <summary>
		/// 市id
		/// </summary>
		public int CityId { get; set; }

		/// <summary>
		/// 区id
		/// </summary>
		public int DistrictId { get; set; }

		/// <summary>
		/// 经度纬度
		/// </summary>
		public string LngLat { get; set; }

		/// <summary>
		/// 同行幸福存折
		/// </summary>
		public decimal Client_Balance { get; set; }

		/// <summary>
		/// 累计佣金
		/// </summary>
		public decimal TotalCommission { get; set; }

		/// <summary>
		/// 可提现佣金
		/// </summary>
		public decimal CommissionWithdrawal { get; set; }

		/// <summary>
		/// 账号
		/// </summary>
		public string Account { get; set; }

		/// <summary>
		/// 密码
		/// </summary>
		public string Password { get; set; }

		/// <summary>
		/// 备注
		/// </summary>
		public string Remark { get; set; }

		/// <summary>
		/// 集团编号
		/// </summary>
		public int Group_Id { get; set; }

		/// <summary>
		/// 校区编号
		/// </summary>
		public int School_Id { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		public int CreateBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 状态 0正常，1删除
		/// </summary>
		public DateStateEnum Status { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 账号状态
		/// </summary>
		public CustomerStateEnum CustomerState { get; set; }

		/// <summary>
		/// 审批状态 1-审批通过，2-拒绝
		/// </summary>
		public int ApproveState { get; set; }

		/// <summary>
		/// 审批意见
		/// </summary>
		public string ApproveContent { get; set; }

		/// <summary>
		/// 审核人
		/// </summary>
		public int ApproveId { get; set; }

		/// <summary>
		/// 审核时间
		/// </summary>
		public DateTime ApproveTime { get; set; }

		/// <summary>
		/// 微信用户OpenId
		/// </summary>
		public string OpenId { get; set; }

		/// <summary>
		/// 微信用户UnionId
		/// </summary>
		public string UnionId { get; set; }

		/// <summary>
		/// 微信昵称
		/// </summary>
		public string WeChatName { get; set; }

		/// <summary>
		/// 头像
		/// </summary>
		public string WeChatPhoto { get; set; }

		/// <summary>
		/// 小程序ID
		/// </summary>
		public int MallBaseId { get; set; }

		/// <summary>
		/// 企业名称
		/// </summary>
		public string EnterpriseName { get; set; }

		/// <summary>
		/// 同业类型(见枚举)
		/// </summary>
		public CatetoryTypeEnum CustomerType { get; set; }


		/// <summary>
		/// 微信号码
		/// </summary>
		public string WeChatNo { get; set; }

		/// <summary>
		/// 客户分类编号
		/// </summary>
		public int CategoryId { get; set; }
	}
}