Ejemplo n.º 1
0
 public HomeController(IProductService productService, ICategoryService categoryService, IMpUserService mpUserService, IFunongbaoService funongbaoService)
 {
     this._productService  = productService;
     this._categoryService = categoryService;
     this._mpUserService   = mpUserService;
     _funongbaoService     = funongbaoService;
 }
Ejemplo n.º 2
0
 public IdentAuthController(IFunongbaoService funongbaoService, IMobileCodeService mobileCodeService
                            , IMpUserService mpUserservice)
 {
     _funongbaoService  = funongbaoService;
     _mobileCodeService = mobileCodeService;
     _mpUserservice     = mpUserservice;
 }
Ejemplo n.º 3
0
 public PosController(IPosService posService, IPosApplyService posApplyService, IMpUserService mpUserService, IPosAuthService posAuthService)
 {
     this._posService      = posService;
     this._posApplyService = posApplyService;
     _mpUserService        = mpUserService;
     _posAuthService       = posAuthService;
 }
Ejemplo n.º 4
0
 public ClientController(IKfNumberService kfNumberService,
                         IKfMeetingService kfMeetingService,
                         IKfMeetingMessageService kfMeetingMessageService,
                         IMpUserService mpUserService)
 {
     this._kfNumberService         = kfNumberService;
     this._kfMeetingService        = kfMeetingService;
     this._kfMeetingMessageService = kfMeetingMessageService;
     this._mpUserService           = mpUserService;
 }
Ejemplo n.º 5
0
 public VoteController(IMpUserService mpUserService
                       , IVoteInfoService voteInfoService
                       , IVoteItemService voteItemService
                       , IVoteBaseService voteBaseService)
 {
     _mpUserService   = mpUserService;
     _voteInfoService = voteInfoService;
     _voteItemService = voteItemService;
     _voteBaseService = voteBaseService;
 }
Ejemplo n.º 6
0
 public PluginsController(IPluginService pluginService, IPluginBaseStyleService pluginBaseStyleService
                          , IPluginResultService pluginResultService, IPluginUsedService pluginUsedService
                          , IMpUserService mpUserService, IPluginBaseService pluginBaseService)
 {
     _pluginService          = pluginService;
     _pluginBaseStyleService = pluginBaseStyleService;
     _pluginResultService    = pluginResultService;
     _pluginUsedService      = pluginUsedService;
     _mpUserService          = mpUserService;
     _pluginBaseService      = pluginBaseService;
 }
Ejemplo n.º 7
0
 public MpUserController(IMpUserService MpUserService, IMpUserGroupService MpUserGroupService,
                         IFunongbaoApplyService funongbaoApplyService,
                         ILoanService loanService,
                         IPosApplyService posApplyService)
 {
     this.MpUserService      = MpUserService;
     this.MpUserGroupService = MpUserGroupService;
     _funongbaoApplyService  = funongbaoApplyService;
     _loanService            = loanService;
     _posApplyService        = posApplyService;
 }
Ejemplo n.º 8
0
 public PluginsSceneController(IMpUserService mpUserService
                               , IPluginService pluginService
                               , IPluginSceneResultService pluginSceneResultService
                               , IPluginSceneApllyCodeAllowerService pluginSceneApllyCodeAllowerService
                               , IPluginSceneVerifyCodeDetailService pluginSceneVerifyCodeDetailService)
 {
     _pluginService                      = pluginService;
     _pluginSceneResultService           = pluginSceneResultService;
     _pluginSceneApllyCodeAllowerService = pluginSceneApllyCodeAllowerService;
     _mpUserService                      = mpUserService;
     _pluginSceneVerifyCodeDetailService = pluginSceneVerifyCodeDetailService;
 }
Ejemplo n.º 9
0
 public KFController(IKfNumberService kfNumberService,
                     IKfMeetingService kfMeetingService,
                     IKfMeetingMessageService kfMeetingMessageService,
                     IAdminService adminService,
                     IMpUserService mpUserService)
 {
     this._kfNumberService         = kfNumberService;
     this._kfMeetingService        = kfMeetingService;
     this._kfMeetingMessageService = kfMeetingMessageService;
     this._adminService            = adminService;
     this._mpUserService           = mpUserService;
 }
Ejemplo n.º 10
0
 public ServiceController(IKfNumberService kfNumberService,
                          IKfMeetingService kfMeetingService,
                          IKfMeetingMessageService kfMeetingMessageService,
                          IMpUserService mpUserService,
                          IFunongbaoService funongbaoService)
 {
     this._kfNumberService         = kfNumberService;
     this._kfMeetingService        = kfMeetingService;
     this._kfMeetingMessageService = kfMeetingMessageService;
     this._mpUserService           = mpUserService;
     this._funongbaoService        = funongbaoService;
 }
Ejemplo n.º 11
0
 public ScoreSysController(IMpUserService mpUserService
                           , IScoreConsumeInfoService scoreConsumeInfoService
                           , IScorePluginResultService scorePluginResultService
                           , IScoreStoreItemService scoreStoreItemServiceService
                           , IScoreTradeInfoService scoreTradeInfoService
                           , IScoreUserService scoreUserService
                           , IPluginService pluginService)
 {
     _mpUserService                = mpUserService;
     _scoreConsumeInfoService      = scoreConsumeInfoService;
     _scorePluginResultService     = scorePluginResultService;
     _scoreStoreItemServiceService = scoreStoreItemServiceService;
     _scoreTradeInfoService        = scoreTradeInfoService;
     _scoreUserService             = scoreUserService;
     _pluginService                = pluginService;
 }
Ejemplo n.º 12
0
 public MpUserController(IMpUserGroupService MpUserGroupService, IMpUserService MpUserService)
 {
     this.MpUserGroupService = MpUserGroupService;
     this.MpUserService      = MpUserService;
 }
Ejemplo n.º 13
0
        public override void ExecuteNotice(CallerContext callerContext, string[] args, ref string message)
        {
            int type = int.Parse(args[1]);

            //客服离线
            if (type == 1)
            {
                Guid kfNumberId = new Guid(args[0]);
                //移除缓存中的客服
                MessageManager.Instance.RemoveCacheKF(kfNumberId);
                //离线时清理线程中的客服端(防止第一条离线信息丢失)
                CometThreadPool.DequeueCometWaitRequest(kfNumberId);
                //断开与所有访客的会话
                IKfNumberService         kfNumberService         = EngineContext.Current.Resolve <IKfNumberService>();
                IKfMeetingService        kfMeetingService        = EngineContext.Current.Resolve <IKfMeetingService>();
                IKfMeetingMessageService kfMeetingMessageService = EngineContext.Current.Resolve <IKfMeetingMessageService>();
                IMpUserService           mpUserService           = EngineContext.Current.Resolve <IMpUserService>();
                IList <KfMeeting>        listMeeting             = kfMeetingService.GetALL().Where(m => m.KfNumberId == kfNumberId && m.IsEnd == false).ToList();

                foreach (KfMeeting kfMeeting in listMeeting)
                {
                    kfMeeting.RecordCount = kfMeetingMessageService.GetCount(" where KfMeetingId='" + kfMeeting.Id + "'");
                    kfMeeting.EndDate     = DateTime.Now;
                    kfMeeting.IsEnd       = true;
                    kfMeetingService.Update(kfMeeting);
                    base.SendPrivateMessage(kfNumberId, kfMeeting.MpUserId, "本次会话已被断开,您可以重新发起会话请求");
                    //发送给微信
                    MpUser mpUser = mpUserService.GetById(kfMeeting.MpUserId);

                    if (mpUser != null && !string.IsNullOrWhiteSpace(mpUser.OpenID))
                    {
                        mpUserService.SendMessage(mpUser.OpenID, "本次会话已被断开,您可以重新发起会话请求");
                    }
                    //更新用户状态
                    mpUserService.ChangeMpUserState(kfMeeting.MpUserId, 0);
                }
                //把客服设置成离线
                KfNumber kfNumber = kfNumberService.GetById(kfNumberId);
                kfNumber.IsOnline = false;
                kfNumberService.Update(kfNumber);
            }

            //访客离线
            if (type == 2)
            {
                Guid mpUserId = new Guid(args[0]);
                //离线时清理线程中的访客端(防止第一条离线信息丢失)
                CometThreadPool.DequeueCometWaitRequest(mpUserId);
                //断开与客服的会话
                IKfMeetingService        kfMeetingService        = EngineContext.Current.Resolve <IKfMeetingService>();
                IKfMeetingMessageService kfMeetingMessageService = EngineContext.Current.Resolve <IKfMeetingMessageService>();
                IList <KfMeeting>        listMeeting             = kfMeetingService.GetALL().Where(m => m.MpUserId == mpUserId && m.IsEnd == false).ToList();

                foreach (KfMeeting kfMeeting in listMeeting)
                {
                    kfMeeting.RecordCount = kfMeetingMessageService.GetCount(" where KfMeetingId='" + kfMeeting.Id + "'");
                    kfMeeting.EndDate     = DateTime.Now;
                    kfMeeting.IsEnd       = true;
                    kfMeetingService.Update(kfMeeting);
                    base.SendNotice(mpUserId, "访客_" + new Random().Next(100), kfMeeting.KfNumberId, 3, 0, mpUserId.ToString());
                }
            }
        }
Ejemplo n.º 14
0
 public FunongbaoTask(IFunongbaoApplyService funongbaoApplyService, IMpUserService mpUserService)
 {
     this._funongbaoApplyService = funongbaoApplyService;
     _mpUserService = mpUserService;
 }
Ejemplo n.º 15
0
 public DrivingLicenseController(IDrivingLicenseService drivingLicenseService, IMpUserService mpUserService)
 {
     this._drivingLicenseService = drivingLicenseService;
     this._mpUserService         = mpUserService;
 }
Ejemplo n.º 16
0
 public BaoXianController(IMpUserService userService, IBaoXianService baodanService)
 {
     this._userService   = userService;
     this._baodanService = baodanService;
 }
Ejemplo n.º 17
0
 public UserService(IMpUserService mpUserService, IOktaUserService oktaUserService)
 {
     _mpUserService   = mpUserService;
     _oktaUserService = oktaUserService;
 }
Ejemplo n.º 18
0
 public BackUpDbTask(IMpUserService mpUserService)
 {
     _mpUserService = mpUserService;
 }
Ejemplo n.º 19
0
 public ComplainController(IMpUserService mpUserService,
                           IComplainService complainService)
 {
     _userService     = mpUserService;
     _complainService = complainService;
 }
Ejemplo n.º 20
0
 public MyUnderController(IMpUserService mpUserService,
                          IVehicleLicenseService vehicleLicenseService)
 {
     _userService = mpUserService;
 }
Ejemplo n.º 21
0
 public WebBaseController()
 {
     this._mpUserService     = EngineContext.Current.Resolve <IMpUserService>();
     this._mobileCodeService = EngineContext.Current.Resolve <IMobileCodeService>();
 }
Ejemplo n.º 22
0
 public BankLoanController(ILoanService loanService, IMpUserService mpUserService, IMobileCodeService mobileCodeService)
 {
     this._loanService       = loanService;
     this._mpUserService     = mpUserService;
     this._mobileCodeService = mobileCodeService;
 }
Ejemplo n.º 23
0
 public VehicleLicenseController(IMpUserService mpUserService,
                                 IVehicleLicenseService vehicleLicenseService)
 {
     _userService           = mpUserService;
     _vehicleLicenseService = vehicleLicenseService;
 }
Ejemplo n.º 24
0
 public WeixinController(IMpUserService MpUserService, IMpUserGroupService MpUserGroupService)
 {
     this.MpUserService      = MpUserService;
     this.MpUserGroupService = MpUserGroupService;
     Token = MpCenterCache.Token;
 }
Ejemplo n.º 25
0
 public DrivingLicenseController(IMpUserService mpUserService,
                                 IDrivingLicenseService drivingLicenseService)
 {
     _userService           = mpUserService;
     _drivingLicenseService = drivingLicenseService;
 }
Ejemplo n.º 26
0
 public MyUnderController(IMpUserService userService)
 {
     this._userService = userService;
 }
Ejemplo n.º 27
0
 public VehicleLicenseController(IVehicleLicenseService vehicleLicenseService, IMpUserService mpUserService)
 {
     this._vehicleLicenseService = vehicleLicenseService;
     this._mpUserService         = mpUserService;
 }