Ejemplo n.º 1
0
        private void dgRemindList_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
        {
            try
            {
                string     strCode = this.dgRemindList.DataKeys[(int)e.Item.ItemIndex].ToString();
                EntityData entity  = RemindDAO.GetRemindStrategyByCode(strCode);
                RemindDAO.DeleteRemindStrategy(entity);

                this.InitPage();
                entity.Dispose();
            }
            catch (Exception ex)
            {
                ApplicationLog.WriteLog(this.ToString(), ex, "删除提醒信息失败!");
            }
        }