/// <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; } }