Пример #1
0
        private void leaveList_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e)
        {
            long leaveId = (long)this.leaveList.DataKeys[e.RowIndex].Value;

            if (NoticeHelper.DeleteLeaveComment(leaveId))
            {
                this.ShowMsg("删除成功", true);
                this.BindList();
                return;
            }
            this.ShowMsg("删除失败", true);
        }
Пример #2
0
        private void leaveList_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            long leaveId = (long)leaveList.DataKeys[e.RowIndex].Value;

            if (NoticeHelper.DeleteLeaveComment(leaveId))
            {
                ShowMsg("删除成功", true);
                BindList();
            }
            else
            {
                ShowMsg("删除失败", true);
            }
        }