public static void ShowMsg(EeekSoft.Web.PopupWin PopupWin1, string Message) { //设置为默认的消息窗口 PopupWin1.ActionType = EeekSoft.Web.PopupAction.MessageWindow; //设置窗口的标题,消息文字 PopupWin1.Title = "Warning!"; PopupWin1.Message = Message; PopupWin1.Text = Message; //设置颜色风格 PopupWin1.ColorStyle = EeekSoft.Web.PopupColorStyle.Blue; //设置窗口弹出和消失的时间 PopupWin1.HideAfter = 3000; PopupWin1.ShowAfter = 100; PopupWin1.Visible = true; }
public static void deleteFromGridView(GridView gv, string tableName, EeekSoft.Web.PopupWin PopupWin1) { int count = 0; if (gv.Rows.Count > 0) { for (int i = 0; i < gv.Rows.Count; i++) { CheckBox ck = gv.Rows[i].Cells[1].FindControl("chkSelect") as CheckBox; Label lb = gv.Rows[i].Cells[2].FindControl("lbID") as Label; if (ck.Checked) { SQLHelper.ExecuteNonQuery("delete from " + tableName + " where id = " + lb.Text); count++; } } } JScript.ShowMsg(PopupWin1, "Delete " + count.ToString() + " Records!"); Log.writeLog(System.Web.HttpContext.Current.Request.Cookies["user"].Values["id"], System.Web.HttpContext.Current.Request.Cookies["user"].Values["name"], "Delete " + tableName, "Count: " + count.ToString()); }