コード例 #1
0
        /// <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>();
        }
コード例 #2
0
        /// <summary>
        /// 获取日志信息列表
        /// </summary>
        /// <param name="loginID">登陆标识</param>
        /// <param name="logType">日志类型,管理员或金商</param>
        /// <param name="startTime">起始日志时间</param>
        /// <param name="endTime">结束日志时间</param>
        /// <param name="logInfoes">返回的日志信息列表</param>
        /// <returns>ErrType</returns>
        public ErrType GetLogInfo(string loginID, LogRequestInformation logRequestInfo, out List<LogInformation> logInfoes)
        {
            logInfoes = null;
            try
            {
                //Todo:金通网待处理
                #region MyRegion
                //DateTime endDate = new DateTime(logRequestInfo.EndTime.AddDays(1).Year, logRequestInfo.EndTime.AddDays(1).Month, logRequestInfo.EndTime.AddDays(1).Day);
                //TradeALogInfo info = ManagerService.GetTradeALogInfo(loginID, (int)logRequestInfo.LogType, logRequestInfo.StartTime, endDate);
                //if (!info.Result)
                //    return new ErrType(ERR.SERVICE, info.Desc);

                //logInfoes = info.ALogList.Select(MyConverter.ToLogInfo).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.GetLogInfo);
            }
        }