示例#1
0
 public TradePanelViewModel(MainViewModel mainVM)
 {
     _mainVM = mainVM;
     TransactionViewModel = TransactionViewModel.Instance();
     TransactionPannel    = new TransactionPannelViewModel();
     ConditionBill        = UCConditionBillViewModel.Instance();
     PositionAll          = PositionAllViewModel.Instance();
     OrderCancel          = OrderCancelViewModel.Instance();
     TodayTrader          = TodayTraderViewModels.Instance();
     FundsViewModel       = FundsViewModel.GetInstance();
 }
示例#2
0
        public void ClearTradeList()
        {
            PositionAllViewModel.Instance().DetPMList.Clear();
            PositionAllViewModel.Instance().PMList.Clear();
            PositionViewModel.Instance().PMList.Clear();

            OrderCancelViewModel.Instance().KCDelegations.Clear();
            OrderCancelViewModel.Instance().Delegations.Clear();

            UCConditionBillViewModel.Instance().ConditionBillList.Clear();

            TodayTraderViewModels.Instance().TodayTraderList.Clear();
        }
示例#3
0
        private void ToDayTrade(bool isClear = true)
        {
            //成交明细
            ReqPotion rp = new ReqPotion();

            rp.cmdcode = RequestCmdCode.ToDayTradeCode;
            rp.content = new ReqLoginName()
            {
                user_id = UserInfoHelper.UserId
            };

            ScoketManager.GetInstance().SendTradeWSInfo(JsonConvert.SerializeObject(rp));
            if (isClear)
            {
                TodayTraderViewModels.Instance().TodayTraderList.Clear();
            }
        }