using Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace Model
{
///
/// 账户类
///
public class GwClient : ISessionObject
{
private List _PermissionList = new List();//权限列表
private string _clientId;
private string _clientName;
private string _telephone;
private string _address;
private string _agent;
private string _company;
private string _remark;
private string _password;
private string _parentId;
private Decimal _totalAmount;
private Decimal _balance;
private int _id;
private int _certification_Status;//认证状态:0-未认证/1-已认证
private int _client_Classes;//客户类别:0-企业/1-个人
private string _client_Parentid; //父级账户
private int _client_Type;//客户类型(0-直客/渠道、1-子账户)
private int _is_Enable;//是否启用状态(1-启/0-停)
private Decimal _top_up_Amount_Total;//累计充值(金额)
private string _salesman;//归属业务员
public int Id
{
get
{
return _id;
}
set
{
this._id = value;
}
}
public string ClientID
{
get
{
return this._clientId;
}
set
{
this._clientId = value;
}
}
public string ClientName
{
get
{
return this._clientName;
}
set
{
this._clientName = value;
}
}
public string Telephone
{
get
{
return this._telephone;
}
set
{
this._telephone = value;
}
}
public string Address
{
get
{
return this._address;
}
set
{
this._address = value;
}
}
public string Agent
{
get
{
return this._agent;
}
set
{
this._agent = value;
}
}
public string Company
{
get
{
return this._company;
}
set
{
this._company = value;
}
}
public string Remark
{
get
{
return this._remark;
}
set
{
this._remark = value;
}
}
public string Password
{
get
{
return this._password;
}
set
{
this._password = value;
}
}
public string ParentId
{
get { return this._parentId; }
set { this._parentId = value; }
}
public Decimal TotalAmount
{
get { return this._totalAmount; }
set { this._totalAmount = value; }
}
public Decimal Balance
{
get { return this._balance; }
set { this._balance = value; }
}
public int BalanceThreshold { get; set; }
public string AlarmMobile { get; set; }
public string PermissionData
{
get
{
return JsonConvert.SerializeObject((object)this._PermissionList);
}
set
{
try
{
this._PermissionList = JsonConvert.DeserializeObject>(value);
}
catch (Exception ex)
{
LogHelper.Error(ex);
}
}
}
public string Account
{
get
{
return this.ClientID;
}
}
public int Certification_Status { get => _certification_Status; set => _certification_Status = value; }
public int Client_Classes { get => _client_Classes; set => _client_Classes = value; }
public string Client_Parentid { get => _client_Parentid; set => _client_Parentid = value; }
public int Client_Type { get => _client_Type; set => _client_Type = value; }
public int Is_Enable { get => _is_Enable; set => _is_Enable = value; }
public decimal Top_up_Amount_Total { get => _top_up_Amount_Total; set => _top_up_Amount_Total = value; }
public string Salesman { get => _salesman; set => _salesman = value; }
public bool HasRight(string functionID)
{
return this._PermissionList.Contains(functionID);
}
public bool ContainsTargetID(string functionID, string targetID)
{
return this._PermissionList.Contains(functionID);
}
public string[] GetSubMenuArray(string functionID)
{
return new string[0];
}
}
}