wzp
2023-03-02 adee7a71ba7ab1b63cab63381dfe1846437853d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
 
using Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
 
namespace Model
{
    /// <summary>
    /// 账户类
    /// </summary>
    public class GwClient : ISessionObject
    {
 
        private List<string> _PermissionList = new List<string>();
        private string _clientId;
        private string _clientName;
        private string _telephone;
        private string _address;
        private string _agent;
        private string _company;
        private string _remark;
        private string _password;
        public string Salt { get; set; } //密码加密盐
 
        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 string CustomerManager { get; set; } //归属客户经理
        public string SupportStaff { get; set; } //归属客服人员
        public string FinancialStaff { get; set; } //归属财务人员
 
        public int ChargeType { get; set; } //结算方式:1-预付费;2-后付费.
        public int SmsBillType { get; set; } //计费方式:0-提交计费,1-成功+未知计费,2-成功计费。
        public int SmsStatusReport { get; set; } //短信是否支持显示状态报告:0-不开放状态,1-开放拦截失败的状态、2-开放全部状态.
 
        public int MmsStatusReport { get; set; } //彩信是否支持显示状态报告:0-不显示;1-只显示提交失败为发送失败状态;2-显示全部状态状态.
        public int IsEnableSub{ get; set; } //是否支持创建子账户:0-禁用;1-启用
        public string SubAccountPath { get; set; } //子账户路径
 
 
 
        public int IsEnableWhite { get; set; } //是否启用白名单:0-禁用;1-启用。过滤客户白名单库。
        public int IsSyncChileWhite { get; set; } //是否同步子账户(白名单):0-不同步;1-同步。
        public int IsEnableBlack { get; set; } //是否启用黑名单:0-禁用;1-启用。过滤客户黑名单库和系统黑名单库。
        public int IsSyncChileBlack { get; set; } //是否同步子账户(黑名单):0-不同步;1-同步。
        public int IsRemoteLoginNotice { get; set; } //是否异地登录通知:0-禁用;1-启用
        public int IsSyncChileRemoteLogin { get; set; } //是否同步子账户(异地登录通知):0-不同步;1-同步。
        public int IsMobileCaptcha { get; set; } //是否启用手机验证码:0-禁用;1-启用
        public int IsSyncChileMobileCaptcha { get; set; } //是否同步子账户(手机验证码):0-不同步;1-同步。
        public int IsHideMobile { get; set; } //是否隐藏客户端手机号:0-禁用;1-启用
        public int IsSyncChileHideMobile { get; set; } //是否同步子账户(隐藏客户端手机号):0-不同步;1-同步。
        public int IsDisplayStatus { get; set; } //是否显示状态接口: 不显示-0 只显示提交失败为发送失败状态-1 显示全部状态状态-2
        public int IsSyncChileDisplayStatus { get; set; } //是否同步子账户(显示状态):0-不同步;1-同步。
        public int IsLoginIpRestrict { get; set; } //是否启用登录IP限制:0-禁用;1-启用
        public int IsSyncChileLoginIpRestrict { get; set; } //是否同步子账户(登录IP限制):0-不同步;1-同步。
        public string IsLoginIpAllowGather { get; set; } //登录IP允许集合:配合是否启用登录IP限制一起使用,多个限制IP时,按半角逗号","分隔。可使用IP段,如:202.203.1.*。
        public int IsSyncChileIpAllows { get; set; } //是否同步子账户(IP允许集合):0-不同步;1-同步。
        public int IsLoginCityRestrict { get; set; } //是否启用登录地区(城市)限制:0-禁用;1-启用
        public int IsSyncChileCityRestrict { get; set; } //是否同步子账户(登录城市限制):0-不同步;1-同步。
        public string IsLoginCityAllowGather { get; set; } //登录地区(城市)允许集合):配合是否启用登录城市限制一起使用,多个限制地区时,按半角逗号","分隔。
        public int IsSyncChileCityAllows { get; set; } //是否同步子账户(城市允许集合):0-不同步;1-同步。
        public string LastLoginIp { get; set; } //最后登录IP
        public string LastLoginCity { get; set; } //最后登录地区(城市)编码
        public DateTime LastLoginTime { get; set; } //最后登录时间
 
 
        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 ProductIds { get; set; }
        
 
        public string PermissionData
        {
            get
            {
                return JsonConvert.SerializeObject((object)this._PermissionList);
            }
            set
            {
                try
                {
                    this._PermissionList = JsonConvert.DeserializeObject<List<string>>(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];
        }
    }
}