270 lines
8.6 KiB
C#
270 lines
8.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Deployment.Application;
|
|
using System.Reflection;
|
|
using System.ServiceModel;
|
|
using SuperMap.RealEstate.EShangPush.Interface;
|
|
using SuperMap.RealEstate.NetworkDeployed;
|
|
using SuperMap.RealEstate.ServiceModel;
|
|
|
|
namespace SuperMap.RealEstate.EShangPush.References
|
|
{
|
|
/// <summary>
|
|
/// T_MEMBERSHIP_会员信息表 类
|
|
/// </summary>
|
|
public abstract class MEMBERSHIP : BusinessModelLogging<Model.MEMBERSHIP, ServiceClient, TableSchema_MEMBERSHIP>, IMEMBERSHIP
|
|
{
|
|
#region 构造函数
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public MEMBERSHIP() : base() { }
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="outer">IBusinessModel接口对象</param>
|
|
public MEMBERSHIP(IBusinessModel outer) : base(outer) { }
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="transaction">事务对象</param>
|
|
public MEMBERSHIP(Transaction transaction) : base(transaction) { }
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="dataRow">DataTable的数据行</param>
|
|
public MEMBERSHIP(DataRow dataRow) : base(dataRow) { }
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="dataRow">DataTable的数据行</param>
|
|
/// <param name="outer">IBusinessModel接口对象</param>
|
|
public MEMBERSHIP(DataRow dataRow, IBusinessModel outer) : base(dataRow, outer) { }
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="dataRow">DataTable的数据行</param>
|
|
/// <param name="transaction">事务对象</param>
|
|
public MEMBERSHIP(DataRow dataRow, Transaction transaction) : base(dataRow, transaction) { }
|
|
#endregion
|
|
|
|
#region 保护方法 -> CreateServerClientWithCertficate <- 通过自定义证书创建服务客户端通信通道
|
|
/// <summary>
|
|
/// 通过自定义证书创建服务客户端通信通道
|
|
/// </summary>
|
|
/// <returns>ServiceClient</returns>
|
|
protected override ServiceClient CreateServerClientWithCertficate()
|
|
{
|
|
ServiceClient _CertficateServiceClient = new ServiceClient();
|
|
_CertficateServiceClient.ClientCredentials.ClientCertificate.Certificate = NetworkDeployedHelper.CreateX509Certificate2();
|
|
_CertficateServiceClient.Endpoint.Address = NetworkDeployedHelper.GetEndPointAddress_Service(_CertficateServiceClient.Endpoint);
|
|
return _CertficateServiceClient;
|
|
}
|
|
#endregion
|
|
|
|
#region 属性接口 -> MEMBERSHIP <- 接口实现
|
|
|
|
#region 公开属性 -> KeyID <- 主键内码
|
|
/// <summary>
|
|
/// KeyID 等同于会员内码
|
|
/// </summary>
|
|
public override string KeyID
|
|
{
|
|
get
|
|
{
|
|
return (PropertyObject.MEMBERSHIP_ID == null) ? string.Empty : PropertyObject.MEMBERSHIP_ID.Value.ToString();
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_ID_Encrypt <- 会员内码的加密字符串
|
|
/// <summary>
|
|
/// 会员内码 的加密字符串
|
|
/// </summary>
|
|
public string MEMBERSHIP_ID_Encrypt
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_ID_Encrypt; }
|
|
set { PropertyObject.MEMBERSHIP_ID_Encrypt = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_ID <- 会员内码
|
|
/// <summary>
|
|
/// 会员内码
|
|
/// </summary>
|
|
public System.Int32? MEMBERSHIP_ID
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_ID; }
|
|
set { PropertyObject.MEMBERSHIP_ID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> RTWECHATPUSH_ID <- 人员内码
|
|
/// <summary>
|
|
/// 人员内码
|
|
/// </summary>
|
|
public System.String RTWECHATPUSH_ID
|
|
{
|
|
get { return PropertyObject.RTWECHATPUSH_ID; }
|
|
set { PropertyObject.RTWECHATPUSH_ID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> RTWECHATAPP_ID <- 小程序内码
|
|
/// <summary>
|
|
/// 小程序内码
|
|
/// </summary>
|
|
public System.String RTWECHATAPP_ID
|
|
{
|
|
get { return PropertyObject.RTWECHATAPP_ID; }
|
|
set { PropertyObject.RTWECHATAPP_ID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_TYPE <- 会员类型
|
|
/// <summary>
|
|
/// 会员类型
|
|
/// </summary>
|
|
public System.Int32? MEMBERSHIP_TYPE
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_TYPE; }
|
|
set { PropertyObject.MEMBERSHIP_TYPE = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_NAME <- 会员姓名
|
|
/// <summary>
|
|
/// 会员姓名
|
|
/// </summary>
|
|
public System.String MEMBERSHIP_NAME
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_NAME; }
|
|
set { PropertyObject.MEMBERSHIP_NAME = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_MOBILEPHONE <- 手机号码
|
|
/// <summary>
|
|
/// 手机号码
|
|
/// </summary>
|
|
public System.String MEMBERSHIP_MOBILEPHONE
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_MOBILEPHONE; }
|
|
set { PropertyObject.MEMBERSHIP_MOBILEPHONE = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> MEMBERSHIP_STATE <- 会员状态
|
|
/// <summary>
|
|
/// 会员状态
|
|
/// </summary>
|
|
public System.Int16? MEMBERSHIP_STATE
|
|
{
|
|
get { return PropertyObject.MEMBERSHIP_STATE; }
|
|
set { PropertyObject.MEMBERSHIP_STATE = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> ADDTIME <- 添加时间
|
|
/// <summary>
|
|
/// 添加时间
|
|
/// </summary>
|
|
public System.DateTime? ADDTIME
|
|
{
|
|
get { return PropertyObject.ADDTIME; }
|
|
set { PropertyObject.ADDTIME = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> STAFF_ID <- 操作员内码
|
|
/// <summary>
|
|
/// 操作员内码
|
|
/// </summary>
|
|
public System.Int32? STAFF_ID
|
|
{
|
|
get { return PropertyObject.STAFF_ID; }
|
|
set { PropertyObject.STAFF_ID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> STAFF_NAME <- 操作员名称
|
|
/// <summary>
|
|
/// 操作员名称
|
|
/// </summary>
|
|
public System.String STAFF_NAME
|
|
{
|
|
get { return PropertyObject.STAFF_NAME; }
|
|
set { PropertyObject.STAFF_NAME = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> OPERATE_DATE <- 操作时间
|
|
/// <summary>
|
|
/// 操作时间
|
|
/// </summary>
|
|
public System.DateTime? OPERATE_DATE
|
|
{
|
|
get { return PropertyObject.OPERATE_DATE; }
|
|
set { PropertyObject.OPERATE_DATE = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> OWNERUNIT_ID <- 业主单位内码
|
|
/// <summary>
|
|
/// 业主单位内码
|
|
/// </summary>
|
|
public System.Int32? OWNERUNIT_ID
|
|
{
|
|
get { return PropertyObject.OWNERUNIT_ID; }
|
|
set { PropertyObject.OWNERUNIT_ID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region 公开属性 -> OWNERUNIT_NAME <- 业主单位名称
|
|
/// <summary>
|
|
/// 业主单位名称
|
|
/// </summary>
|
|
public System.String OWNERUNIT_NAME
|
|
{
|
|
get { return PropertyObject.OWNERUNIT_NAME; }
|
|
set { PropertyObject.OWNERUNIT_NAME = value; }
|
|
}
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region 公开方法 -> Exists <- 选取表记录
|
|
/// <summary>
|
|
/// 判断表记录
|
|
/// </summary>
|
|
/// <returns>是否有数据</returns>
|
|
public bool Exists()
|
|
{
|
|
return Exists(this.MEMBERSHIP_ID.Value);
|
|
}
|
|
#endregion
|
|
|
|
#region 公开方法 -> Select <- 选取表记录
|
|
/// <summary>
|
|
/// 选取表记录
|
|
/// </summary>
|
|
/// <returns>是否有数据</returns>
|
|
public override bool Select()
|
|
{
|
|
return Select(this.MEMBERSHIP_ID.Value);
|
|
}
|
|
#endregion
|
|
|
|
#region 公开方法 -> Delete <- 删除表记录
|
|
/// <summary>
|
|
/// 删除表记录
|
|
/// </summary>
|
|
public override void Delete()
|
|
{
|
|
Delete(MEMBERSHIP_ID.Value);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|