private void btnOK_Click(object sender, System.EventArgs e) { if (PatientID != "") { if (MessageBox.Show("是否确认该患者的过敏信息?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) { string allergicmed = txtmed.Text.Trim(); string allergicdesc = txtdesc.Text.Trim(); clsDcl_DoctorWorkstation objDoctor = new clsDcl_DoctorWorkstation(); long ret = objDoctor.m_lngUpdateallergic(PatientID, RecipeID, allergicmed, allergicdesc); if (ret > 0) { MessageBox.Show("确认成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } objDoctor = null; } } }