Beispiel #1
0
 /// <summary>
 /// 删除股指期货持仓限制和品种_股指期货_保证金
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (ShowMessageBox.ShowQuestion("确认删除吗?") == DialogResult.No)
         {
             return;
         }
         DataRow _dr =
             this.gdSIFPositionAndSIFBailSelect.GetDataRow(this.gdSIFPositionAndSIFBailSelect.FocusedRowHandle);
         if (_dr == null)
         {
             ShowMessageBox.ShowInformation("请选择数据!");
             return;
         }
         if (!string.IsNullOrEmpty(Convert.ToString(_dr["BreedClassID"])))
         {
             m_BreedClassID = Convert.ToInt32(_dr["BreedClassID"]);
         }
         else
         {
             m_BreedClassID = AppGlobalVariable.INIT_INT;
         }
         if (m_BreedClassID != AppGlobalVariable.INIT_INT)
         {
             m_Result = FuturesManageCommon.DeleteQHSIFPositionAndQHSIFBail(m_BreedClassID);
         }
         if (m_Result)
         {
             ShowMessageBox.ShowInformation("删除成功!");
             m_BreedClassID = AppGlobalVariable.INIT_INT;
             this.ClearAll();
         }
         else
         {
             ShowMessageBox.ShowInformation("删除失败!");
         }
         this.QueryQHSIFPositionAndBail();
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6483";
         string      errMsg    = "删除股指期货持仓限制和品种_股指期货_保证金失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return;
     }
 }