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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
 
namespace CY.Model
{
    /// <summary>
    /// 代理申请
    /// </summary>
    [Serializable]
    public partial class EC_ProxyApplication : IAggregateRoot
    {
        public EC_ProxyApplication()
        {
        }
 
        #region Model
 
        private int? _keyid;
        private Guid _applicationmemberid;
        private string _applicationtype;
        private string _applicationarea;
        private string _applicationarealevel;
        private DateTime? _applicationtime;
        private string _applicationstatus;
        private string _unitname;
        private string _unitlegal;
        private decimal? _unitregistcapital;
        private string _unaddressidetail;
        private string _unitcontacts;
        private string _unitphonenum;
        private string _unitbusiness;
        private decimal? _unitannualmoney;
        private decimal? _unitannualprofit;
        private string _unitmachine;
        private string _unitstaffnum;
        private string _unitsize;
        private string _unitcustomdetail;
        private string _unitlegaldetail;
        private string _unitshareholder;
        private string _unitaffiliateprogram;
        private string _unitsuperiority;
        private DateTime? _handletime;
        private string _handlepeople;
        private string _handleresult;
 
        /// <summary>
        /// 编号
        /// </summary>
        public int? Keyid
        {
            set
            {
                _keyid = value;
            }
            get
            {
                return _keyid;
            }
        }
        /// <summary>
        /// 会员Id
        /// </summary>
        public Guid ApplicationMemberId
        {
            set
            {
                _applicationmemberid = value;
            }
            get
            {
                return _applicationmemberid;
            }
        }
        /// <summary>
        /// 申请类型
        /// </summary>
        public string ApplicationType
        {
            set
            {
                _applicationtype = value;
            }
            get
            {
                return _applicationtype;
            }
        }
        /// <summary>
        /// 申请区域
        /// </summary>
        public string ApplicationArea
        {
            set
            {
                _applicationarea = value;
            }
            get
            {
                return _applicationarea;
            }
        }
        /// <summary>
        /// 区域级别
        /// </summary>
        public string ApplicationAreaLevel
        {
            set
            {
                _applicationarealevel = value;
            }
            get
            {
                return _applicationarealevel;
            }
        }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime? ApplicationTime
        {
            set
            {
                _applicationtime = value;
            }
            get
            {
                return _applicationtime;
            }
        }
        /// <summary>
        /// 申请状态 已申请 同意申请
        /// </summary>
        public string ApplicationStatus
        {
            set
            {
                _applicationstatus = value;
            }
            get
            {
                return _applicationstatus;
            }
        }
        /// <summary>
        /// 申请单位
        /// </summary>
        public string UnitName
        {
            set
            {
                _unitname = value;
            }
            get
            {
                return _unitname;
            }
        }
        /// <summary>
        /// 法人代表
        /// </summary>
        public string UnitLegal
        {
            set
            {
                _unitlegal = value;
            }
            get
            {
                return _unitlegal;
            }
        }
        /// <summary>
        /// 注册资金(万元)
        /// </summary>
        public decimal? UnitRegistCapital
        {
            set
            {
                _unitregistcapital = value;
            }
            get
            {
                return _unitregistcapital;
            }
        }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string UnAddressiDetail
        {
            set
            {
                _unaddressidetail = value;
            }
            get
            {
                return _unaddressidetail;
            }
        }
        /// <summary>
        /// 联系人
        /// </summary>
        public string UnitContacts
        {
            set
            {
                _unitcontacts = value;
            }
            get
            {
                return _unitcontacts;
            }
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string UnitPhoneNum
        {
            set
            {
                _unitphonenum = value;
            }
            get
            {
                return _unitphonenum;
            }
        }
        /// <summary>
        /// 主营业务
        /// </summary>
        public string UnitBusiness
        {
            set
            {
                _unitbusiness = value;
            }
            get
            {
                return _unitbusiness;
            }
        }
        /// <summary>
        /// 年产值
        /// </summary>
        public decimal? UnitAnnualMoney
        {
            set
            {
                _unitannualmoney = value;
            }
            get
            {
                return _unitannualmoney;
            }
        }
        /// <summary>
        /// 年利润
        /// </summary>
        public decimal? UnitAnnualProfit
        {
            set
            {
                _unitannualprofit = value;
            }
            get
            {
                return _unitannualprofit;
            }
        }
        /// <summary>
        /// 主要设备
        /// </summary>
        public string UnitMachine
        {
            set
            {
                _unitmachine = value;
            }
            get
            {
                return _unitmachine;
            }
        }
        /// <summary>
        /// 员工人数
        /// </summary>
        public string UnitStaffNum
        {
            set
            {
                _unitstaffnum = value;
            }
            get
            {
                return _unitstaffnum;
            }
        }
        /// <summary>
        /// 场地面积
        /// </summary>
        public string UnitSize
        {
            set
            {
                _unitsize = value;
            }
            get
            {
                return _unitsize;
            }
        }
        /// <summary>
        /// 主要客户简介
        /// </summary>
        public string UnitCustomDetail
        {
            set
            {
                _unitcustomdetail = value;
            }
            get
            {
                return _unitcustomdetail;
            }
        }
        /// <summary>
        /// 法人代表简历
        /// </summary>
        public string UnitLegalDetail
        {
            set
            {
                _unitlegaldetail = value;
            }
            get
            {
                return _unitlegaldetail;
            }
        }
        /// <summary>
        /// 股东情况介绍
        /// </summary>
        public string UnitShareholder
        {
            set
            {
                _unitshareholder = value;
            }
            get
            {
                return _unitshareholder;
            }
        }
        /// <summary>
        /// 代理计划及发展目标
        /// </summary>
        public string UnitAffiliateProgram
        {
            set
            {
                _unitaffiliateprogram = value;
            }
            get
            {
                return _unitaffiliateprogram;
            }
        }
        /// <summary>
        /// 优势说明
        /// </summary>
        public string UnitSuperiority
        {
            set
            {
                _unitsuperiority = value;
            }
            get
            {
                return _unitsuperiority;
            }
        }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? HandleTime
        {
            set
            {
                _handletime = value;
            }
            get
            {
                return _handletime;
            }
        }
        /// <summary>
        /// 处理人
        /// </summary>
        public string HandlePeople
        {
            set
            {
                _handlepeople = value;
            }
            get
            {
                return _handlepeople;
            }
        }
        /// <summary>
        /// 处理结果
        /// </summary>
        public string HandleResult
        {
            set
            {
                _handleresult = value;
            }
            get
            {
                return _handleresult;
            }
        }
 
        #endregion Model
 
        #region Visiter
 
        /// <summary>
        /// 属性访问器
        /// </summary>
        /// <param name="name">属性名</param>
        /// <param name="index">索引</param>
        /// <param name="isChange">是否将指定属性设置为传入值</param>
        /// <param name="value">需要赋予的值</param>
        /// <returns>与名称对应的属性值</returns>
        public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
        {
            object theValue = null;
 
            if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
            {
                this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid;
                theValue = this.Keyid;
            }
            else if ("ApplicationMemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.ApplicationMemberId = isChange ? MyConvert.ConvertToGuid(value) : ApplicationMemberId;
                theValue = this.ApplicationMemberId;
            }
            else if ("ApplicationType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.ApplicationType = isChange ? MyConvert.ConvertToString(value) : ApplicationType;
                theValue = this.ApplicationType;
            }
            else if ("ApplicationArea".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.ApplicationArea = isChange ? MyConvert.ConvertToString(value) : ApplicationArea;
                theValue = this.ApplicationArea;
            }
            else if ("ApplicationAreaLevel".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.ApplicationAreaLevel = isChange ? MyConvert.ConvertToString(value) : ApplicationAreaLevel;
                theValue = this.ApplicationAreaLevel;
            }
            else if ("ApplicationTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.ApplicationTime = isChange ? MyConvert.ConvertToDateTime(value) : ApplicationTime;
                theValue = this.ApplicationTime;
            }
            else if ("ApplicationStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.ApplicationStatus = isChange ? MyConvert.ConvertToString(value) : ApplicationStatus;
                theValue = this.ApplicationStatus;
            }
            else if ("UnitName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.UnitName = isChange ? MyConvert.ConvertToString(value) : UnitName;
                theValue = this.UnitName;
            }
            else if ("UnitLegal".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
            {
                this.UnitLegal = isChange ? MyConvert.ConvertToString(value) : UnitLegal;
                theValue = this.UnitLegal;
            }
            else if ("UnitRegistCapital".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
            {
                this.UnitRegistCapital = isChange ? MyConvert.ConvertToInt32(value) : UnitRegistCapital;
                theValue = this.UnitRegistCapital;
            }
            else if ("UnAddressiDetail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
            {
                this.UnAddressiDetail = isChange ? MyConvert.ConvertToString(value) : UnAddressiDetail;
                theValue = this.UnAddressiDetail;
            }
            else if ("UnitContacts".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
            {
                this.UnitContacts = isChange ? MyConvert.ConvertToString(value) : UnitContacts;
                theValue = this.UnitContacts;
            }
            else if ("UnitPhoneNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
            {
                this.UnitPhoneNum = isChange ? MyConvert.ConvertToString(value) : UnitPhoneNum;
                theValue = this.UnitPhoneNum;
            }
            else if ("UnitBusiness".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
            {
                this.UnitBusiness = isChange ? MyConvert.ConvertToString(value) : UnitBusiness;
                theValue = this.UnitBusiness;
            }
            else if ("UnitAnnualMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
            {
                this.UnitAnnualMoney = isChange ? MyConvert.ConvertToDecimal(value) : UnitAnnualMoney;
                theValue = this.UnitAnnualMoney;
            }
            else if ("UnitAnnualProfit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
            {
                this.UnitAnnualProfit = isChange ? MyConvert.ConvertToInt32(value) : UnitAnnualProfit;
                theValue = this.UnitAnnualProfit;
            }
            else if ("UnitMachine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
            {
                this.UnitMachine = isChange ? MyConvert.ConvertToString(value) : UnitMachine;
                theValue = this.UnitMachine;
            }
            else if ("UnitStaffNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
            {
                this.UnitStaffNum = isChange ? MyConvert.ConvertToString(value) : UnitStaffNum;
                theValue = this.UnitStaffNum;
            }
            else if ("UnitSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
            {
                this.UnitSize = isChange ? MyConvert.ConvertToString(value) : UnitSize;
                theValue = this.UnitSize;
            }
            else if ("UnitCustomDetail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
            {
                this.UnitCustomDetail = isChange ? MyConvert.ConvertToString(value) : UnitCustomDetail;
                theValue = this.UnitCustomDetail;
            }
            else if ("UnitLegalDetail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
            {
                this.UnitLegalDetail = isChange ? MyConvert.ConvertToString(value) : UnitLegalDetail;
                theValue = this.UnitLegalDetail;
            }
            else if ("UnitShareholder".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
            {
                this.UnitShareholder = isChange ? MyConvert.ConvertToString(value) : UnitShareholder;
                theValue = this.UnitShareholder;
            }
            else if ("UnitAffiliateProgram".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
            {
                this.UnitAffiliateProgram = isChange ? MyConvert.ConvertToString(value) : UnitAffiliateProgram;
                theValue = this.UnitAffiliateProgram;
            }
            else if ("UnitSuperiority".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
            {
                this.UnitSuperiority = isChange ? MyConvert.ConvertToString(value) : UnitSuperiority;
                theValue = this.UnitSuperiority;
            }
            else if ("HandleTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
            {
                this.HandleTime = isChange ? MyConvert.ConvertToDateTime(value) : HandleTime;
                theValue = this.HandleTime;
            }
            else if ("HandlePeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
            {
                this.HandlePeople = isChange ? MyConvert.ConvertToString(value) : HandlePeople;
                theValue = this.HandlePeople;
            }
            else if ("HandleResult".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
            {
                this.HandleResult = isChange ? MyConvert.ConvertToString(value) : HandleResult;
                theValue = this.HandleResult;
            }
 
            return theValue;
        }
        #endregion
    }
}