Esempio n. 1
0
        protected void BtnDel_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            bool IsIn = CodeIsIn();

            if (IsIn == true)
            {
                baseOperation.DeleteActorInfo(t_ActorCode.Value.Trim());
                Log.WriteLog("", Session["username"] + ":删除角色编号" + t_ActorCaption.Value.Trim());
                ClearText();
            }

            if (IsIn == false)
            {
                baseOperation.ShowErrorMessage(this.Page, "数据库中没有此角色编号,不能进行删除操作!");
            }
        }