示例#1
0
 private void dgRemindList_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
 {
     try
     {
         string     strKey = this.dgRemindList.DataKeys[(int)e.Item.ItemIndex].ToString();
         EntityData entity = RemindDAO.GetRemindObjectByCode(strKey);
         RemindDAO.DeleteRemindObject(entity);
         entity.Dispose();
         this.LoadData();
     }
     catch (Exception ex)
     {
         ApplicationLog.WriteLog(this.ToString(), ex, "获取提醒列表失败");
     }
 }