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
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL;
using CY.Model;
using AbstractFactory;
using CY.IBaseDAL;
using CY.Infrastructure.DESEncrypt;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
using CY.Model.Pay;
namespace CY.BLL
{
    /// <summary>
    /// 会员的业务逻辑类
    /// </summary>
    public class EC_MemberBasicBLL
    {
        IEC_MemberBasicDAL _IEC_MemberBasicDal = null;
        IEC_MemberExtendDAL _IEC_MemberExtendDal = null;
        IEC_SafeValidationDAL _IEC_SafeValidationDal = null;
        IPay_PaymentAccountDAL _IPay_PaymentAccountDal = null;
        IEC_FirmInfoDAL _IEC_FirmInfoDal = null;
        IEC_ShopInfoDAL _IEC_ShopInfoDal = null;
        IEC_AcceptWayBySellerDAL _IEC_AcceptWayBySellerDal = null;
        /// <summary>
        /// 初始化构造
        /// </summary>
        public EC_MemberBasicBLL()
        {
            //获取MemberBasic DAL实现
            _IEC_MemberBasicDal = Factory.GetDALByInterfaceName(DALInterface.IEC_MemberBasicDAL) as IEC_MemberBasicDAL;
            //获取EC_MemberExtend DAL实现
            _IEC_MemberExtendDal = Factory.GetDALByInterfaceName(DALInterface.IEC_MemberExtendDAL) as IEC_MemberExtendDAL;
            //获取EC_SafeValidation DAL实现
            _IEC_SafeValidationDal = Factory.GetDALByInterfaceName(DALInterface.IEC_SafeValidationDAL) as IEC_SafeValidationDAL;
            //获取Pay_PaymentAccount DAL实现
            _IPay_PaymentAccountDal = Factory.GetDALByInterfaceName(DALInterface.IPay_PaymentAccountDAL) as IPay_PaymentAccountDAL;
            //获取EC_FirmInfo DAL实现
            _IEC_FirmInfoDal = Factory.GetDALByInterfaceName(DALInterface.IEC_FirmInfoDAL) as IEC_FirmInfoDAL;
            //获取EC_ShopInfo DAL实现
            _IEC_ShopInfoDal = Factory.GetDALByInterfaceName(DALInterface.IEC_ShopInfoDAL) as IEC_ShopInfoDAL;
 
            _IEC_AcceptWayBySellerDal = Factory.GetDALByInterfaceName(DALInterface.IEC_AcceptWayBySellerDAL) as IEC_AcceptWayBySellerDAL;
        }
 
        /// <summary>
        /// 事务提交注册事件
        /// </summary>
        /// <param name="m_EC_MemberBasic"></param>
        /// <param name="m_EC_MemberExtend"></param>
        /// <param name="m_EC_SafeValidation"></param>
        /// <param name="m_Pay_PaymentAccount"></param>
        /// <param name="m_EC_FirmInfo"></param>
        /// <param name="m_EC_ShopInfo"></param>
        /// <param name="m_EC_AcceptWayBySeller"></param>
        /// <param name="m_Integrity_IntegrityCard_Buyer"></param>
        /// <param name="m_Integrity_IntegrityCard_Seller"></param>
        /// <param name="m_Sys_Permissions_UserRoleRelation"></param>
        /// <param name="m_OA_Commodity_Paper"></param>
        /// <param name="m_OA_Commodity_Sheet"></param>
        /// <returns></returns>
        public bool InsertModel(EC_MemberBasic m_EC_MemberBasic, EC_MemberExtend m_EC_MemberExtend, EC_SafeValidation m_EC_SafeValidation, Pay_PaymentAccount m_Pay_PaymentAccount, EC_FirmInfo m_EC_FirmInfo, EC_ShopInfo m_EC_ShopInfo, EC_AcceptWayBySeller m_EC_AcceptWayBySeller, Integrity_IntegrityCard m_Integrity_IntegrityCard_Buyer, Integrity_IntegrityCard m_Integrity_IntegrityCard_Seller, Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation, OA_Commodity m_OA_Commodity_Paper, OA_Commodity m_OA_Commodity_Sheet, IList<Model.EC_SellerBusinessLimits> m_EC_SellerBusinessLimitsList)
        {
            // m_EC_MemberBasic.Password = DESEncrypt.Encrypt(m_EC_MemberBasic.Password);//加密
            try
            {
                return _IEC_MemberBasicDal.InsertModel(m_EC_MemberBasic, m_EC_MemberExtend, m_EC_SafeValidation, m_Pay_PaymentAccount, m_EC_FirmInfo, m_EC_ShopInfo, m_EC_AcceptWayBySeller, m_Integrity_IntegrityCard_Buyer, m_Integrity_IntegrityCard_Seller, m_Sys_Permissions_UserRoleRelation, m_OA_Commodity_Paper, m_OA_Commodity_Sheet, m_EC_SellerBusinessLimitsList);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新会员信息
        /// </summary>
        /// <param name="m_EC_MemberBasic"></param>
        /// <returns></returns>
        public bool UpdateModel(EC_MemberBasic m_EC_MemberBasic)
        {
            try
            {
                return _IEC_MemberBasicDal.UpdateModel(m_EC_MemberBasic);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 修改会员资料,会员缴费,并保存业务范围
        /// </summary>
        /// <param name="m_EC_MemberBasic"></param>
        /// <param name="m_EC_SellerBusinessLimitsList"></param>
        /// <param name="m_EC_PaymentRecord"></param>
        /// <param name="m_Sys_Permissions_UserRoleRelation"></param>
        /// <param name="m_EC_FirmInfo"></param>
        /// <returns></returns>
        public bool UpdateModel(EC_MemberBasic m_EC_MemberBasic, IList<Model.EC_SellerBusinessLimits> m_EC_SellerBusinessLimitsList, EC_PaymentRecord m_EC_PaymentRecord, EC_FirmInfo m_EC_FirmInfo)
        {
            try
            {
                return _IEC_MemberBasicDal.UpdateModel(m_EC_MemberBasic, m_EC_SellerBusinessLimitsList, m_EC_PaymentRecord, m_EC_FirmInfo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新会员高级信息
        /// </summary>
        /// <param name="m_EC_MemberExtend"></param>
        /// <returns></returns>
        public bool UpdateModelMemberExtend(EC_MemberExtend m_EC_MemberExtend)
        {
            try
            {
                return _IEC_MemberExtendDal.UpdateModel(m_EC_MemberExtend);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新会员账户信息
        /// </summary>
        /// <param name="m_EC_MemberExtend"></param>
        /// <returns></returns>
        public bool UpdateModelPay_PaymentAccount(Pay_PaymentAccount m_Pay_PaymentAccount)
        {
            try
            {
                return _IPay_PaymentAccountDal.UpdateModel(m_Pay_PaymentAccount);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新会员收货信息
        /// </summary>
        /// <param name="m_EC_MemberExtend"></param>
        /// <returns></returns>
        public bool UpdateModelMemberExtend(EC_AcceptWayBySeller m_EC_AcceptWayBySeller)
        {
            try
            {
                return _IEC_AcceptWayBySellerDal.UpdateModel(m_EC_AcceptWayBySeller);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 添加会员收货信息
        /// </summary>
        /// <param name="m_EC_MemberExtend"></param>
        /// <returns></returns>
        public bool InsertModelEC_AcceptWayBySeller(EC_AcceptWayBySeller m_EC_AcceptWayBySeller)
        {
            try
            {
                return _IEC_AcceptWayBySellerDal.InserModel(m_EC_AcceptWayBySeller);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新厂商信息
        /// </summary>
        /// <param name="m_EC_FirmInfo"></param>
        /// <returns></returns>
        public bool UpdateModelEC_FirmInfo(EC_FirmInfo m_EC_FirmInfo)
        {
            try
            {
                return _IEC_FirmInfoDal.UpdateModel(m_EC_FirmInfo);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 更新安全信息
        /// </summary>
        /// <param name="m_EC_FirmInfo"></param>
        /// <returns></returns>
        public bool UpdateModelEC_SafeValidation(EC_SafeValidation EC_SafeValidation)
        {
            try
            {
                return _IEC_SafeValidationDal.UpdateModel(EC_SafeValidation);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 
        /// <summary>
        /// 检测帐号是否存在
        /// </summary>
        /// <param name="LoginId">登录帐号</param>
        /// <returns></returns>
        public bool ExistMemberByLoginId(string LoginId)
        {
            bool res = false;
            try
            {
                EC_MemberBasic result = _IEC_MemberBasicDal.SelectModleMemberByLoginId(LoginId) as EC_MemberBasic;//执行查询
                if (result != null && result.MemberId != null)
                {
                    return true;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return res;
        }
 
        /// <summary>
        /// 检测公司名是否存在
        /// </summary>
        /// <param name="CompanyName">公司名</param>
        /// <returns></returns>
        public bool ExistMemberByCompanyName(string CompanyName)
        {
            bool res = false;
            try
            {
                EC_MemberBasic result = _IEC_MemberBasicDal.SelectModleMemberByCompanyName(CompanyName) as EC_MemberBasic;//执行查询
                if (result != null && result.MemberId != null)
                {
                    return true;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return res;
        }
 
        /// <summary>
        /// 检测手机是否存在
        /// </summary>
        /// <param name="Phone">手机</param>
        /// <returns></returns>
        public bool ExistMemberByPhone(string Phone)
        {
            bool res = false;
            try
            {
                EC_SafeValidation result = _IEC_SafeValidationDal.SelectModleByPhone(Phone) as EC_SafeValidation;//执行查询
                if (result != null && result.Keyid != null)
                {
                    return true;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return res;
        }
 
        /// <summary>
        /// 检测邮箱是否存在
        /// </summary>
        /// <param name="Email">邮箱</param>
        /// <returns></returns>
        public bool ExistMemberByEmail(string Email)
        {
            bool res = false;
            try
            {
                EC_SafeValidation result = _IEC_SafeValidationDal.SelectModleByEmail(Email) as EC_SafeValidation;//执行查询
                if (result != null && result.Keyid != null)
                {
                    return true;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return res;
        }
 
        /// <summary>
        /// 查询会员分页列表
        /// </summary>
        /// <param name="pa"></param>
        /// <returns></returns>
        public IEnumerable<EC_MemberBasic> GetMemberList(Pagination pa, string Name, string CompanyName, DateTime? beginTime, DateTime? endTime, string MemberStatus, string MemberType, string Province, string City, string Country)
        {
            string Condition = " 1=1 and MemberType <> '管理员' and MemberType <> '员工'   ";
            if (beginTime.HasValue)
            {
                Condition += string.Format(" and CAST(RegisterDate AS DATE) >='{0}'", beginTime);
            }
 
            if (endTime.HasValue)
            {
                Condition += string.Format(" and CAST(RegisterDate AS DATE) <='{0}'", endTime);
            }
            if (!string.IsNullOrEmpty(Name))
            {
                Condition += " and LoginId like '%" + Name + "%'";
 
            }
            if (!string.IsNullOrEmpty(CompanyName))
            {
                Condition += string.Format(" and m.Name like '%{0}%'", CompanyName);
 
            }
            if (!string.IsNullOrEmpty(MemberStatus))
            {
                Condition += string.Format(" and  UseState ='{0}'", MemberStatus);
            }
            if (!string.IsNullOrEmpty(MemberType))
            {
                Condition += string.Format(" and  MemberType ='{0}'", MemberType);
            }
            if (!string.IsNullOrEmpty(Province))
                Condition += " and Province = '" + Province + "' ";
 
            if (!string.IsNullOrEmpty(City))
                Condition += " and City = '" + City + "' ";
 
            if (!string.IsNullOrEmpty(Country))
                Condition += " and County = '" + Country + "' ";
 
            Query query = new Query();
            IList<Criterion> criterias = new List<Criterion>()
            {
                new Criterion("", Condition)
            };
            query.Criteria = criterias;
 
            return _IEC_MemberBasicDal.SelectModelPage(query, pa);
 
        }
 
        /// <summary>
        /// 判断登录会员
        /// </summary>
        /// <param name="LoginId">登录帐号</param>
        /// <param name="LoginId">登录密码</param>
        /// <returns></returns>
        public EC_MemberBasic GetMemberByLogin(string LoginId, string Password)
        {
            EC_MemberBasic result = null;
            try
            {
                result = _IEC_MemberBasicDal.SelectModleByLoginIdAndPwd(LoginId, DESEncrypt.Encrypt(Password)) as EC_MemberBasic;//执行查询
                //result.ShortName ="";// _IEC_MemberExtendDal.GetModelByMemberId(result.MemberId).FirmName;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得会员信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_MemberBasic GetMemberByMemberId(Guid MemberId)
        {
            EC_MemberBasic result = null;
            try
            {
                result = _IEC_MemberBasicDal.GetMemberByMemberId(MemberId) as EC_MemberBasic;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得支付平台支付账户信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public Pay_PaymentAccount GetPaymentAccountByMemberId(Guid MemberId)
        {
            Pay_PaymentAccount result = null;
            try
            {
                result = _IPay_PaymentAccountDal.SelectModleByMemberId(MemberId) as Pay_PaymentAccount;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得安全认证表信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_SafeValidation GetSafeValidationByMemberId(Guid MemberId)
        {
            EC_SafeValidation result = null;
            try
            {
                result = _IEC_SafeValidationDal.GetModelByMemberId(MemberId) as EC_SafeValidation;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得店铺信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_ShopInfo GetShopInfoByMemberId(Guid MemberId)
        {
            EC_ShopInfo result = null;
            try
            {
                result = _IEC_ShopInfoDal.GetModelByMemberId(MemberId) as EC_ShopInfo;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得厂商信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_FirmInfo GetFirmInfoByMemberId(Guid MemberId)
        {
            EC_FirmInfo result = null;
            try
            {
                result = _IEC_FirmInfoDal.GetModelByMemberId(MemberId) as EC_FirmInfo;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得厂商信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_AcceptWayBySeller GetEC_AcceptWayBySellerByMemberId(Guid MemberId)
        {
            EC_AcceptWayBySeller result = null;
            try
            {
                result = _IEC_AcceptWayBySellerDal.SelectModelByTargetId(MemberId) as EC_AcceptWayBySeller;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 根据会员编号获得会员扩展信息
        /// </summary>
        /// <param name="MemberId">会员编号</param>
        /// <returns></returns>
        public EC_MemberExtend GetMemberExtendByMemberId(Guid MemberId)
        {
            EC_MemberExtend result = null;
            try
            {
                result = _IEC_MemberExtendDal.GetModelByMemberId(MemberId) as EC_MemberExtend;//执行查询
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result;//返回结果
        }
 
        /// <summary>
        /// 模糊查询公司名称
        /// </summary>
        /// <param name="CompanyName">公司名</param>
        /// <returns></returns>
        public IEnumerable<EC_MemberExtend> SelectExtendListByName(string CompanyName)
        {
            return _IEC_MemberBasicDal.SelectExtendListByName(CompanyName);
        }
 
        /// <summary>
        /// 分页根据印刷类型获取其对于的厂商列表
        /// </summary>
        /// <param name="printTypeId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        public IList<EC_MemberBasic> GetFirmListByPage(int printTypeId, int printMode, Guid memberId, int orderType, string firmName, string selectProvince, string selectCity, string selectCounty, int pageIndex, int pageSize, ref int pageCount)
        {
            return _IEC_MemberBasicDal.GetFirmListByPage(printTypeId, printMode, memberId, orderType, firmName, selectProvince, selectCity, selectCounty, pageIndex, pageSize, ref pageCount);
        }
 
        /// <summary>
        /// 商家展示分页查询
        /// </summary>
        /// <param name="pagination"></param>
        /// <param name="Province"></param>
        /// <param name="City"></param>
        /// <param name="County"></param>
        /// <param name="FirmDescribe"></param>
        /// <param name="MachineType"></param>
        /// <returns></returns>
        public IEnumerable<Model.EC_FirmInfo> SelectModelPage(Infrastructure.Query.Pagination pagination, string Province, string City, string County, string FirmDescribe, string MachineType)
        {
            try
            {
                return _IEC_FirmInfoDal.SelectModelPage(pagination, Province, City, County, FirmDescribe, MachineType);
            }
            catch (Exception ex)
            {
                return null;
            }
        }
 
        /// <summary>
        /// 获取所有的印刷厂商
        /// </summary>
        /// <returns></returns>
        public IList<EC_MemberBasic> GetAllFirm()
        {
            return _IEC_MemberBasicDal.GetAllFirm();
        }
 
        public IEnumerable<EC_MemberBasic> SelectMemberByName(string CompanyName)
        {
            return _IEC_MemberBasicDal.SelectMemberByName(CompanyName);
        }
 
        /// <summary>
        /// 获取所有的会员
        /// </summary>
        /// <returns></returns>
        public IList<EC_MemberBasic> GetAllMember()
        {
            return _IEC_MemberBasicDal.GetAllMember();
        }
 
        /// <summary>
        /// 我的推广列表
        /// </summary>
        /// <param name="pagination"></param>
        /// <param name="RegStartTime"></param>
        /// <param name="RegEndTime"></param>
        /// <param name="Province"></param>
        /// <param name="City"></param>
        /// <param name="Country"></param>
        /// <param name="MemberType"></param>
        /// <param name="MemberName"></param>
        /// <param name="MemberId"></param>
        /// <returns></returns>
        public IEnumerable<EC_MemberBasic> MyPromotionMemberList(Infrastructure.Query.Pagination pagination, DateTime? RegStartTime, DateTime? RegEndTime, string Province, string City, string Country, string MemberType, string MemberName, Guid MemberId)
        {
            return _IEC_MemberBasicDal.MyPromotionMemberList(pagination, RegStartTime, RegEndTime, Province, City, Country, MemberType, MemberName, MemberId);
        }
 
        /// <summary>
        /// 我的推广提成
        /// </summary>
        /// <param name="pagination"></param>
        /// <param name="RegStartTime"></param>
        /// <param name="RegEndTime"></param>
        /// <param name="Province"></param>
        /// <param name="City"></param>
        /// <param name="Country"></param>
        /// <param name="MemberType"></param>
        /// <param name="MemberName"></param>
        /// <param name="MemberId"></param>
        /// <param name="FromMemberId"></param>
        /// <returns></returns>
        public IEnumerable<Promotion_IncomeRule> MyPromotionmoneyList(Infrastructure.Query.Pagination pagination, DateTime? RegStartTime, DateTime? RegEndTime, string Province, string City, string Country, string MemberType, string MemberName, Guid MemberId, Guid FromMemberId)
        {
            return _IEC_MemberBasicDal.MyPromotionmoneyList(pagination, RegStartTime, RegEndTime, Province, City, Country, MemberType, MemberName, MemberId, FromMemberId);
        }
 
        /// <summary>
        /// 我的代理提成
        /// </summary>
        /// <param name="pagination"></param>
        /// <param name="RegStartTime"></param>
        /// <param name="RegEndTime"></param>
        /// <param name="Province"></param>
        /// <param name="City"></param>
        /// <param name="Country"></param>
        /// <param name="MemberType"></param>
        /// <param name="MemberName"></param>
        /// <param name="MemberId"></param>
        /// <param name="FromMemberId"></param>
        /// <returns></returns>
        public IEnumerable<Promotion_IncomeRule> MyProxymoneyList(Infrastructure.Query.Pagination pagination, DateTime? RegStartTime, DateTime? RegEndTime, string Province, string City, string Country, string MemberType, string MemberName, Guid MemberId, Guid FromMemberId)
        {
            return _IEC_MemberBasicDal.MyProxymoneyList(pagination, RegStartTime, RegEndTime, Province, City, Country, MemberType, MemberName, MemberId, FromMemberId);
        }
 
        /// <summary>
        /// 根据时间查询当前人的账户统计信息
        /// </summary>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="memberId"></param>
        /// <returns></returns>
        public PaymentAccountQueryModel GetPaymentAccountQueryResult(string startDate, string endDate, int currentPayId)
        {
            return _IPay_PaymentAccountDal.GetPaymentAccountQueryResult(startDate, endDate, currentPayId);
        }
 
        /// <summary>
        /// 获取管理员当前账户信息
        /// </summary>
        /// <returns></returns>
        public PaymentAccountModelByAdmin GetPaymentAccountModelByAdmin(int currentPayId, decimal commission)
        {
            return _IPay_PaymentAccountDal.GetPaymentAccountModelByAdmin(currentPayId, commission);
        }
 
        /// <summary>
        /// 查询管理员的统计信息
        /// </summary>
        /// <param name="currentPayId"></param>
        /// <param name="?"></param>
        /// <returns></returns>
        public PaymentAccountQueryModelByAdmin GetPaymentAccountQueryModelByAdmin(int currentPayId, string startDate, string endDate, string selectProvince, string selectCity, string selectCounty)
        {
            return _IPay_PaymentAccountDal.GetPaymentAccountQueryModelByAdmin(currentPayId, startDate, endDate, selectProvince, selectCity, selectCounty);
        }
 
        /// <summary>
        /// 检测域名是否重复
        /// </summary>
        /// <param name="DomainName"></param>
        /// <param name="MemberId"></param>
        /// <returns></returns>
        public int IsExitsDomain(string DomainName, Guid MemberId)
        {
            return _IEC_FirmInfoDal.IsExitsDomain(DomainName, MemberId);
        }
 
        /// <summary>
        /// 检测IP是否重复
        /// </summary>
        /// <param name="RegisteredIP"></param>
        /// <returns></returns>
        public bool IsExitsRegisterIP(string RegisteredIP)
        {
            return _IEC_MemberBasicDal.IsExitsRegisterIP(RegisteredIP);
        }
 
        /// <summary>
        /// 检测公司名是否存在
        /// </summary>
        /// <param name="CompanyName">公司名</param>
        /// <returns></returns>
        public EC_MemberBasic SelectModleMemberByCompanyName(string CompanyName)
        {
            return _IEC_MemberBasicDal.SelectModleMemberByCompanyName(CompanyName);
        }
 
        /// <summary>
        /// 根据卖家编号获得会员信息
        /// </summary>
        /// <param name="bid">卖家编号</param>
        /// <returns></returns>
        public EC_MemberBasic GetMemberBybid(int? bid)
        {
            return _IEC_MemberBasicDal.GetMemberBybid(bid);
        }
 
        /// <summary>
        /// 获取最大的卖家编号
        /// </summary>
        /// <returns></returns>
        public int GetMaxBid()
        {
            return _IEC_MemberBasicDal.GetMaxBid();
        }
 
        /// <summary>
        /// 根据会员的域名获取代表值,如果没找到返回-1
        /// </summary>
        /// <param name="domainName"></param>
        /// <returns></returns>
        public int GetBid(string domainName)
        {
            return _IEC_FirmInfoDal.GetBid(domainName);
        }
 
        /// <summary>
        /// 修改用户是否显示报价到前台询价列表
        /// </summary>
        /// <param name="memberId"></param>
        /// <param name="isShowInquiry"></param>
        /// <returns></returns>
        public bool UpdateIsShowInquiry(Guid memberId, int isShowInquiry)
        {
            return _IEC_MemberBasicDal.UpdateIsShowInquiry(memberId, isShowInquiry);
        }
    }
}