/// <summary> /// 执行事件(删除操作) /// </summary> protected void GroupsLists_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.ToString() == "Del") { int ret = bll.DeleteGroup(int.Parse(e.CommandArgument.ToString())); switch (ret) { case 1: BindOrder(); ScriptManager.RegisterClientScriptBlock(CustomPanel1, this.GetType(), "MsgBox", "alert('" + ResourceManager.GetString("Pub_Msg_delete_true") + "');", true); break; case 2: ScriptManager.RegisterClientScriptBlock(CustomPanel1, this.GetType(), "MsgBox", "alert('" + ResourceManager.GetString("Pub_Msg_IsGroupUser") + "');", true); break; case 3: ScriptManager.RegisterClientScriptBlock(CustomPanel1, this.GetType(), "MsgBox", "alert('" + ResourceManager.GetString("Pub_Msg_IsGroupRole") + "');", true); break; default: ScriptManager.RegisterClientScriptBlock(CustomPanel1, this.GetType(), "MsgBox", "alert('" + ResourceManager.GetString("Pub_Msg_delete_false") + "');", true); break; } } }