public void DoYes() { try { Hashtable hs = new Hashtable(); hs.Add("id", nowId.Value.ToString()); DataRow[] dr = dtm.Select("col0='" + dtjmid + "'"); string jgm = dr[0]["col1"].ToString(); if (settingManager.DeleteDepartmentInfo(hs) > 0) { logManager.InsertLogRunning(uName, GetLangStr("Department40", "删除:名称为[") + jgm + GetLangStr("Department41", "]机构"), nowIp, "3"); Notice(GetLangStr("Department38", "信息删除"), GetLangStr("Department42", "删除成功!")); DepartDataBind(SystemID); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("Department.aspx-DoYes", ex.Message + ";" + ex.StackTrace, "DoYes has an exception"); } }