/// <summary>
        /// 获取需要更新的商品期货_保证金比例的实体
        /// </summary>
        /// <param name="handle">行号</param>
        private void UpdateQHCFBailScaleValue(int handle)
        {
            try
            {
                if (handle < 0)
                {
                    return;
                }
                //显示添加 商品期货_保证金比例窗体
                AddCFBailScaleValueUI addCFBailScaleValueUI = new AddCFBailScaleValueUI();
                addCFBailScaleValueUI.EditType = (int)UITypes.EditTypeEnum.UpdateUI;
                DataRow             _dr = this.gdCFBailScaleValueSelect.GetDataRow(handle);
                int                 cFBailScaleValueID  = Convert.ToInt32(_dr["CFBailScaleValueID"]);
                QH_CFBailScaleValue qH_CFBailScaleValue = FuturesManageCommon.GetQHCFBailScaleValueModel(cFBailScaleValueID);
                addCFBailScaleValueUI.QHCFBailScaleValue = qH_CFBailScaleValue;

                if (addCFBailScaleValueUI.ShowDialog(this) == DialogResult.OK)
                {
                    this.QueryQHCFBailScaleValue();
                    this.gdCFBailScaleValueSelect.FocusedRowHandle = handle;
                }
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-6443";
                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
     {
         //显示添加 商品期货_保证金比例窗体
         AddCFBailScaleValueUI addCFBailScaleValueUI = new AddCFBailScaleValueUI();
         addCFBailScaleValueUI.OnSaved += new EventHandler(addCFBailScaleValueUI_OnSaved);
         addCFBailScaleValueUI.ShowDialog();
         //this.QueryQHCFBailScaleValue();
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6441";
         string      errMsg    = "添加 商品期货_保证金比例窗体加载失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return;
     }
 }