/// <summary> /// 删除通用技术要求菜单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsmiDeleteGeneralRequirement_Click(object sender, EventArgs e) { if (txtGeneralRequirementId.Text.Trim().Length == 0) { return; } string generalRequirementId = txtGeneralRequirementId.Text; //删除询问 DialogResult result = MessageBox.Show("确定要删除(项目编号ODP: " + cobODPNo.Text + " )这个项目的通用技术要求吗?", "删除询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.No) { return; } try { if (objRequirementService.DeleteGeneralRequirement(generalRequirementId) == 1) { btnRefreshData_Click(null, null); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }