Пример #1
0
 ///请求查询投资者结算结果响应
 public void OnRspQrySettlementInfo(ThostFtdcSettlementInfoField pSettlementInfo, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (!IsErrorRspInfo(pRspInfo))
     {
     }
 }
Пример #2
0
 void trader_OnRspQrySettlementInfo(ThostFtdcSettlementInfoField pSettlementInfo, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     this.BeginInvoke(new Action<ThostFtdcSettlementInfoField>(processRspQrySettlementInfo), pSettlementInfo);
 }
Пример #3
0
 /// <summary>
 /// 查询投资者结算结果应答
 /// </summary>
 /// <param name="pSettlementInfo"></param>
 /// <param name="pRspInfo"></param>
 /// <param name="nRequestID"></param>
 /// <param name="bIsLast"></param>
 void OnRspQrySettlementInfo(ThostFtdcSettlementInfoField pSettlementInfo, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     DebugPrintFunc(new StackTrace());
     if (bIsLast && !IsErrorRspInfo(pRspInfo))
     {
         //用户口令变更确认
         ReqUserPasswordUpdate();
     }
 }
Пример #4
0
        /// <summary>
        /// 处理投资者结算结果响应
        /// </summary>
        void processRspQrySettlementInfo(ThostFtdcSettlementInfoField pSettlementInfo)
        {
            SettlementInfoConfirmDialog dialog = new SettlementInfoConfirmDialog();
            if (pSettlementInfo != null && pSettlementInfo.Content != null)
            {
                dialog.Content = pSettlementInfo.Content;
            }
            if (dialog.ShowDialog(this) == DialogResult.OK)
            {
                this.SetMsg("正在确认结算结果……");
                try
                {

                    ThostFtdcSettlementInfoConfirmField field = new ThostFtdcSettlementInfoConfirmField();
                    field.BrokerID = this.trader.BrokerID;
                    field.InvestorID = this.trader.InvestorID;
                    field.ConfirmDate = DateTime.Now.ToShortDateString();
                    field.ConfirmTime = DateTime.Now.ToShortTimeString();
                    Thread.Sleep(1000);
                    this.trader.ReqSettlementInfoConfirm(field, requestID++);
                }
                catch (Exception exp)
                {
                    this.SetMsg("结算结果确认失败," + exp.Message);
                }
            }
            else
            {
                this.SetMsg("用户取消了操作!");
            }
        }