/// <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.gdvFutureCostsSelect.GetDataRow(this.gdvFutureCostsSelect.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.DeleteQHFutureCosts(m_BreedClassID); } if (m_Result) { ShowMessageBox.ShowInformation("删除成功!"); m_BreedClassID = AppGlobalVariable.INIT_INT; } else { ShowMessageBox.ShowInformation("删除失败!"); } this.QueryQHFutureCosts(); } catch (Exception ex) { string errCode = "GL-6203"; string errMsg = "删除品种_期货_交易费用失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return; } }