//================================ 事件 ================================ #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; } }