/// <summary>
        /// 添加或修改期货最小和最大委托量
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                QH_ConsignQuantum        qH_ConsignQuantum = new QH_ConsignQuantum();
                QH_SingleRequestQuantity qH_SingleRequestQuantity1;
                QH_SingleRequestQuantity qH_SingleRequestQuantity2;

                if (this.txtLimitQuantum.Text != string.Empty)
                {
                    if (InputTest.intTest(this.txtLimitQuantum.Text))
                    {
                        qH_SingleRequestQuantity1 = new QH_SingleRequestQuantity();
                        qH_SingleRequestQuantity1.ConsignInstructionTypeID = (int)GTA.VTS.Common.CommonObject.Types.MarketPriceType.otherPrice;
                        qH_SingleRequestQuantity1.MaxConsignQuanturm       = int.Parse(this.txtLimitQuantum.Text);
                    }
                    else
                    {
                        ShowMessageBox.ShowInformation("请输入正整数!");
                        return;
                    }
                }
                else
                {
                    qH_SingleRequestQuantity1 = null;
                }
                if (this.txtMarketQuantum.Text != string.Empty)
                {
                    if (InputTest.intTest(this.txtMarketQuantum.Text))
                    {
                        qH_SingleRequestQuantity2 = new QH_SingleRequestQuantity();
                        qH_SingleRequestQuantity2.ConsignInstructionTypeID =
                            (int)GTA.VTS.Common.CommonObject.Types.MarketPriceType.MarketPrice;
                        qH_SingleRequestQuantity2.MaxConsignQuanturm = int.Parse(this.txtMarketQuantum.Text);
                    }
                    else
                    {
                        ShowMessageBox.ShowInformation("请输入正整数!");
                        return;
                    }
                }
                else
                {
                    qH_SingleRequestQuantity2 = null;
                }

                if (!string.IsNullOrEmpty(this.txtMinConsignQuantum.Text))
                {
                    qH_ConsignQuantum.MinConsignQuantum = Convert.ToInt32(txtMinConsignQuantum.Text);
                }
                else
                {
                    qH_ConsignQuantum.MinConsignQuantum = AppGlobalVariable.INIT_INT;
                }

                if (m_MinAndMaxConsignQuantumUIEditType == (int)UITypes.EditTypeEnum.AddUI)
                {
                    m_Result = FuturesManageCommon.AddQHConsignQuantumAndSingle(qH_ConsignQuantum, qH_SingleRequestQuantity1, qH_SingleRequestQuantity2);
                    if (m_Result != AppGlobalVariable.INIT_INT)
                    {
                        ConsignQuantumID = m_Result;
                        ShowMessageBox.ShowInformation("添加成功!");
                        this.ClearAll();
                        this.DialogResult = DialogResult.OK;
                        this.Close();
                    }
                    else
                    {
                        ShowMessageBox.ShowInformation("添加失败!");
                    }
                }
                else if (m_MinAndMaxConsignQuantumUIEditType == (int)UITypes.EditTypeEnum.UpdateUI)
                {
                    if (m_ConsignQuantumID != AppGlobalVariable.INIT_INT)
                    {
                        qH_ConsignQuantum.ConsignQuantumID                = m_ConsignQuantumID;
                        qH_SingleRequestQuantity1.ConsignQuantumID        = m_ConsignQuantumID;
                        qH_SingleRequestQuantity1.SingleRequestQuantityID = m_LimitSingleRequestQuantityID;
                        if (m_MarkSingleRequestQuantityID == AppGlobalVariable.INIT_INT)
                        {
                            qH_SingleRequestQuantity2 = null;
                        }
                        else
                        {
                            qH_SingleRequestQuantity2.ConsignQuantumID        = m_ConsignQuantumID;
                            qH_SingleRequestQuantity2.SingleRequestQuantityID = m_MarkSingleRequestQuantityID;
                        }
                    }
                    bool _UpResult = FuturesManageCommon.UpdateQHConsignQuantumAndSingle(qH_ConsignQuantum, qH_SingleRequestQuantity1, qH_SingleRequestQuantity2);
                    if (_UpResult)
                    {
                        ShowMessageBox.ShowInformation("修改成功!");
                        this.DialogResult = DialogResult.OK;
                        this.Close();
                    }
                    else
                    {
                        ShowMessageBox.ShowInformation("修改失败!");
                    }
                }
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-5861";
                string      errMsg    = "添加或修改期货最小和最大委托量失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }