//================================  事件 ================================

        #region 期货交易规则管理UI FuturesTradeRulesManageUI_Load

        /// <summary>
        /// 期货交易规则管理UI FuturesTradeRulesManageUI_Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FuturesTradeRulesManageUI_Load(object sender, EventArgs e)
        {
            try
            {
                //绑定是否允许回转
                this.ddlIsSlew.DataSource    = BindData.GetBindListYesOrNo();
                this.ddlIsSlew.ValueMember   = "ValueIndex";
                this.ddlIsSlew.DisplayMember = "TextTitleValue";

                //绑定合约交易月份是否包含春节
                this.ddlIfContainCNewYear.DataSource    = BindData.GetBindListYesOrNo();
                this.ddlIfContainCNewYear.ValueMember   = "ValueIndex";
                this.ddlIfContainCNewYear.DisplayMember = "TextTitleValue";

                //绑定涨跌停板幅度类型
                this.ddlHighLowStopScopeID.DataSource    = BindData.GetBindListQHHighLowStopALLType();// GetBindListQHHighLowStopType();
                this.ddlHighLowStopScopeID.ValueMember   = "ValueIndex";
                this.ddlHighLowStopScopeID.DisplayMember = "TextTitleValue";

                //绑定交易单位
                this.ddlUnitsID.DataSource    = BindData.GetBindListQHAboutUnit();
                this.ddlUnitsID.ValueMember   = "ValueIndex";
                this.ddlUnitsID.DisplayMember = "TextTitleValue";

                //绑定计价单位
                this.ddlPriceUnit.DataSource    = BindData.GetBindListQHPriceUnit();
                this.ddlPriceUnit.ValueMember   = "ValueIndex";
                this.ddlPriceUnit.DisplayMember = "TextTitleValue";


                //绑定行情成交量单位
                this.ddlMarketUnitID.DataSource    = BindData.GetBindListQHAboutUnit();
                this.ddlMarketUnitID.ValueMember   = "ValueIndex";
                this.ddlMarketUnitID.DisplayMember = "TextTitleValue";

                //绑定查询结果
                this.m_pageNo = 1;
                this.gdFuturesTradeRulesResult.DataSource = this.QueryFuturesTradeRules();
                this.ShowDataPage();
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-5820";
                string      errMsg    = "期货交易规则管理UI加载失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }
示例#2
0
        /// <summary>
        /// 绑定期货交易规则初始化数据
        /// </summary>
        private void InitBindData()
        {
            try
            {
                //绑定期货品种的品种名称
                this.cmbBreedClassID.Properties.Items.Clear();
                this.GetBindBreedClassName();
                this.cmbBreedClassID.SelectedIndex = 0;

                //绑定是否允许回转的是和否
                //this.cmbIsSlew.Properties.Items.Clear();
                //this.cmbIsSlew.Properties.Items.AddRange(BindData.GetBindListYesOrNo());
                //this.cmbIsSlew.SelectedIndex = 0;

                //绑定合约交割月是否包含春节月份
                //this.cmbIfContainCNewYear.Properties.Items.Clear();
                //this.cmbIfContainCNewYear.Properties.Items.AddRange(BindData.GetBindListYesOrNo());
                //this.cmbIfContainCNewYear.SelectedIndex = 0;

                //绑定交易单位
                this.cmbUnitsID.Properties.Items.Clear();
                this.cmbUnitsID.Properties.Items.AddRange(BindData.GetBindListQHAboutUnit());
                this.cmbUnitsID.SelectedIndex = 0;

                //绑定涨跌停板幅度类型标识
                this.cmbHighLowStopScopeID.Properties.Items.Clear();
                this.cmbHighLowStopScopeID.Properties.Items.AddRange(BindData.GetBindListQHHighLowStopType());
                this.cmbHighLowStopScopeID.SelectedIndex = 0;

                //绑定计价单位
                this.cmbPriceUnit.Properties.Items.Clear();
                this.cmbPriceUnit.Properties.Items.AddRange(BindData.GetBindListQHPriceUnit());
                this.cmbPriceUnit.SelectedIndex = 0;

                //绑定行情成交量单位
                this.cmbMarketUnitID.Properties.Items.Clear();
                this.cmbMarketUnitID.Properties.Items.AddRange(BindData.GetBindListQHAboutUnit());
                this.cmbMarketUnitID.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-5801";
                string      errMsg    = "绑定期货交易规则初始化数据失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }