//================================ 事件 ================================ #region 港股交易规则管理窗体 HKTradeRulesManageUI_Load /// <summary> ///港股交易规则管理窗体 HKTradeRulesManageUI_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HKTradeRulesManageUI_Load(object sender, EventArgs e) { try { //绑定交易规则表中的品种ID对应的品种名称 this.cmbBreedClassID.Properties.Items.Clear(); this.GetBindHKBreedClassName(); //从交易商品品种表中获取港股品种类型的品种 this.cmbBreedClassID.SelectedIndex = 0; //绑定计价单位 this.cmbPriceUnit.Properties.Items.Clear(); this.cmbPriceUnit.Properties.Items.AddRange(BindData.GetBindListHKAboutUnit()); this.cmbPriceUnit.SelectedIndex = 0; //绑定行情成交量单位 this.cmbMarketUnitID.Properties.Items.Clear(); this.cmbMarketUnitID.Properties.Items.AddRange(BindData.GetBindListHKAboutUnit()); this.cmbMarketUnitID.SelectedIndex = 0; //绑定查询结果 this.m_pageNo = 1; this.gdHKTradeRulesQResult.DataSource = this.QueryHKTradeRules(); this.ShowDataPage(); //窗体加载时禁用界面中文本框和确定按钮 this.cmbMarketUnitID.Enabled = false; this.speFundDeliveryIns.Enabled = false; this.speStockDeliveryIns.Enabled = false; this.txtMaxLeaveQuantity.Enabled = false; this.cmbBreedClassID.Enabled = false; this.cmbPriceUnit.Enabled = false; this.btnOK.Enabled = false; } catch (Exception ex) { string errCode = "GL-7900"; string errMsg = " 港股交易规则管理UI加载失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); } }