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

        #region 添加或修改合约交割月份UI AgreementDeliMonthManageUI_Load

        /// <summary>
        /// 添加或修改合约交割月份UI AgreementDeliMonthManageUI_Load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AgreementDeliMonthManageUI_Load(object sender, EventArgs e)
        {
            try
            {
                //绑定期货交易规则表中的品种ID对应的品种名称
                //this.cmbBreedClassID.Properties.Items.Clear();
                //this.GetBindBreedClassName(); //获取期货交易规则表中的品种ID对应的品种名称
                //this.cmbBreedClassID.SelectedIndex = 0;
                labBreedClassName.Text = SpotManageCommon.GetBreedClassNameByID(m_BreedClassID);
                List <QH_AgreementDeliveryMonth> MonthID = new List <QH_AgreementDeliveryMonth>();
                MonthID = FuturesManageCommon.GetQHAgreementDeliveryMonth(m_BreedClassID);

                foreach (Control c in this.panelControl1.Controls)
                {
                    if (c is DevExpress.XtraEditors.CheckEdit)
                    {
                        DevExpress.XtraEditors.CheckEdit checkEdit = (DevExpress.XtraEditors.CheckEdit)c;

                        int id = int.Parse(c.Name.Substring(9));

                        CheckTag ct = new CheckTag();
                        ct.ID             = id;
                        ct.InitIsChecked  = false;
                        checkEdit.Checked = false;

                        foreach (QH_AgreementDeliveryMonth i in MonthID)
                        {
                            if (i.MonthID == id)
                            {
                                ct.InitIsChecked  = true;
                                checkEdit.Checked = true;
                            }
                        }
                        c.Tag = ct;
                    }
                }
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-5870";
                string      errMsg    = "添加或修改合约交割月份UI加载失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }
        //================================  事件 ================================

        #region 添加或修改现货交易规则窗体的 AddSpotTradeRulesUI_Load事件

        /// <summary>
        /// 添加或修改现货交易规则窗体的 AddSpotTradeRulesUI_Load事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddSpotTradeRulesUI_Load(object sender, EventArgs e)
        {
            try
            {
                if (EditType == (int)UITypes.EditTypeEnum.AddUI)
                {
                    m_SpotTradeRules             = new XH_SpotTradeRules();
                    this.cmbBreedClassID.Enabled = true;
                    //this.btnMinChangePriceV.Visible = false;//添加交易规则时最小变动价位范围不显示
                }
                this.InitBindData();

                if (EditType == (int)UITypes.EditTypeEnum.UpdateUI)
                {
                    this.UpdateInitData();
                    this.btnAddXHSpotHighLowValue.Text = "涨跌幅";
                    //this.btnAddXHValidDeclareValue.Text = "有效申报";
                    this.Text = "现货交易规则";
                    this.cmbBreedClassID.Enabled = false;
                }

                string BreedClassName = SpotManageCommon.GetBreedClassNameByID(m_BreedClassID);

                //if (((int)CommonObject.Types.GetValueTypeEnum.Scope ==
                //     ((UComboItem)this.cmbMinChangePriceVType.SelectedItem).ValueIndex)
                //    && BreedClassName == "香港H股")
                //{
                //    this.txtMinChangePrice.Enabled = false;
                //}
                //else
                //{
                //    this.txtMinChangePrice.Enabled = true;
                //}
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-5000";
                string      errMsg    = "添加或修改现货交易规则窗体加载失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
            }
        }