/// <summary>
        /// 获取需要更新的(商品)期货_持仓限制的实体
        /// </summary>
        /// <param name="handle">行号</param>
        private void UpdateQHPositionLimitValue(int handle)
        {
            try
            {
                if (handle < 0)
                {
                    return;
                }
                //显示添加(商品)期货_持仓限制窗体
                AddPositionLimitValueUI addPositionLimitValueUI = new AddPositionLimitValueUI();
                addPositionLimitValueUI.EditType = (int)UITypes.EditTypeEnum.UpdateUI;
                DataRow _dr = this.gdPositionLimitValueSelect.GetDataRow(handle);
                int     positionLimitValueID = Convert.ToInt32(_dr["PositionLimitValueID"]);
                QH_PositionLimitValue qHPositionLimitValue = FuturesManageCommon.GetQHPositionLimitValueModel(positionLimitValueID);
                addPositionLimitValueUI.QHPositionLimitValue = qHPositionLimitValue;

                if (addPositionLimitValueUI.ShowDialog(this) == DialogResult.OK)
                {
                    this.QueryQHPositionLimitValue();
                    this.gdPositionLimitValueSelect.FocusedRowHandle = handle;
                }
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-6463";
                string      errMsg    = "获取需要更新的(商品)期货_持仓限制的实体失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }
 /// <summary>
 ///添加(商品)期货_持仓限制
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         //显示添加(商品)期货_持仓限制窗体
         AddPositionLimitValueUI addPositionLimitValueUI = new AddPositionLimitValueUI();
         addPositionLimitValueUI.OnSaved += new EventHandler(addPositionLimitValueUI_OnSaved);
         addPositionLimitValueUI.ShowDialog();
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6461";
         string      errMsg    = "添加(商品)期货_持仓限制窗体加载失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return;
     }
 }