Пример #1
0
        protected void lnkStopUse_Click(object sender, EventArgs e)
        {
            if (hidCId.Value.Trim().Length > 0 && hidStatus.Value.Trim().Length > 0)
            {
                #region 日志记录

                USER_SHARE_LOGMODEL log = new USER_SHARE_LOGMODEL();
                log.LOGID           = CommonBusiness.GetSeqID("S_USER_SHARE_LOG");
                log.OPERATECONTENT  = "删除角色信息";
                log.OPERATECONTENT += ",角色Id:" + hidCId.Value;
                log.OPERATEDATE     = DateTime.Now;
                log.OPERATETYPE     = int.Parse(ShareEnum.LogType.DelRole.ToString("d"));
                log.OPERATORID      = AccountId;
                log.PROJECTID       = ProjectId;

                #endregion

                #region 保存
                if (RoleBusiness.DelRole(hidCId.Value, log))
                {
                    Alert("角色删除成功!");
                    BindData(0);
                }
                else
                {
                    Alert("角色删除失败,请重试!");
                }
                #endregion
            }
        }