/// <summary> /// 获取在线客户列表 /// </summary> /// <param name="loginID">登陆标识</param> /// <param name="accType">账户类型,管理员或金商</param> /// <param name="accountName">账户名</param> /// <param name="filter">过滤信息</param> /// <param name="clientList">获取的在线客户列表</param> /// <returns>ErrType</returns> public ErrType GetOnlineClientList(string loginID, ACCOUNT_TYPE accType, string accountName, ClientAccountFilter filter, out List<ClientAccount> onlineClientList) { onlineClientList = null; try { //Todo:金通网待处理 #region MyRegion //UserQueryCon query = MyConverter.ToUserQueryCon(loginID, accType, accountName, filter); //UserBaseInfo info = ManagerService.GetOnLineUserBaseInfo(query); //if (!info.Result) // return new ErrType(ERR.SERVICE, info.Desc); //onlineClientList = info.TdUserList.Select(MyConverter.ToClientAccount).ToList(); #endregion return GeneralErr.Success; } catch (TimeoutException te) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, te.Message); return new ErrType(ERR.EXEPTION, ErrorText.TimeoutException); } catch (Exception ex) { FileLog.WriteLog("", Assembly.GetExecutingAssembly().GetName().Name, this.GetType().Name, new StackTrace().GetFrame(0).GetMethod().Name, ex.Message); return new ErrType(ERR.EXEPTION, ErrorText.GetOnlineClientList); } }
/// <summary> /// 实例化一个后台管理View Mode对象 /// </summary> private ManagementViewModel() { lockobj = new Object(); _TradeJuJianInfo = new ClientTradeJuJianInfo(); _dpObj = new DependencyObject(); LogRequestInfo = new LogRequestInformation(); ClientAccFilter = new ClientAccountFilter(); OnlineClientAccFilter = new ClientAccountFilter(); MarketOrderRequestInfo = new RequestInformationBase(); PendingOrderRequestInfo = new RequestInformationBase(); HedgingTradeRequestInfo = new RequestInformationBase(); StatementsRequestInfo = new StatementsRequestInformation(); _businessService = new BusinessServiceProvider(); _tradeService = new TradeServiceProvider(); _bzjService = new BzjServiceProvider(); // GetNewsCondition = new SelectCondition(); _BzjInfoInformation = new BzjInfoInformation(); TakeGoodsDetialSelectCondition = new SelectCondition(); _TakeGoodsDetailList = new ObservableCollection<BzjTakeGoodsDetailEntity>(); BindingJgjAccountCondition = new SelectCondition(); _DeliveryGoodsCondition = new SelectCondition(); _DeliveryGoodsList = new ObservableCollection<BzjDeliverEntity>(); _TakeGoodsCondition = new SelectCondition(); _TakeGoodsList = new ObservableCollection<BzjOrderEntity>(); _BackGoodsCondition = new SelectCondition(); _BackGoodsList = new ObservableCollection<BzjOrderEntity>(); _JgjGoodsCondition = new SelectCondition(); _JgjGoodsList = new ObservableCollection<BzjOrderEntity>(); _DeliveryBackGoodsCondition = new SelectCondition(); _DeliveryBackGoodsList = new List<BzjRecoverOrder>(); _GetClerkCondition = new SelectCondition(); _ClerkAccountList = new ObservableCollection<BzjClerk>(); InterOfficeSelectCondtion = new SelectCondition(); ClientAccountSelectCondition = new SelectCondition(); OnlineAccountSelectCondition = new SelectCondition(); ManagerAccountSelectCondition = new SelectCondition(); OrgAccountSelectCondition = new SelectCondition(); FundReportSelectCondition = new SelectCondition(); OrgSelectCondition = new SelectCondition(); ChuJinSelectCondition = new SelectCondition(); TerminationSelectCondition = new SelectCondition(); TradeConfigInfoList = new ObservableCollection<TradeConfigInfo>(); NewsList = new ObservableCollection<NewsInfo>(); ArtilesList = new ObservableCollection<NewsInfo>(); AdvertList = new ObservableCollection<AdvertInfo>(); GetNewsCondition = new SelectCondition(); GetArticlesCondition = new SelectCondition(); GetAdvertCondition = new SelectCondition(); FundReportList = new ObservableCollection<FundChangeInformation>(); ChuJinList = new ObservableCollection<TradeChuJinInformation>(); OrgList = new ObservableCollection<OrgInfo>(); UserGroups = new ObservableCollection<UserGroup>(); UserGroupSelectCon = new SelectCondition(); GroupAccounts = new ObservableCollection<ClientAccount>(); }
internal static UserQueryCon ToUserQueryCon(string loginID, ACCOUNT_TYPE accType, string accountName, ClientAccountFilter filter) { return new UserQueryCon { LoginId = loginID, //Todo:金通网待处理 #region MyRegion //UserTypeInfo = (int)accType, //AgentId = accountName, #endregion TradeAccount = filter.AccountName, UserName = filter.UserName, CardNum = filter.CertificateNumber, }; }