/// <summary> /// 删除当前系统店铺管辖黑名单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btAddToBlackList_Click(object sender, EventArgs e) { int m = 0; int n = 0; foreach (GridViewRow row in gvBlackStoreArea.Rows) { if (row.RowType == DataControlRowType.DataRow) { CheckBox chk = (CheckBox)row.FindControl("chkSelectRow"); if (chk.Checked) { HiddenField hid = (HiddenField)row.FindControl("hidID"); if (BlackGroupBLL.DelBlackGroup(int.Parse(hid.Value), 4) < 0) { n++; } m++; } } } if (m == 0) { ScriptHelper.SetAlert(out msg, GetTran("001420", "请用户选择要删除的店铺管辖黑名单.")); } else if (n == 0) { ScriptHelper.SetAlert(out msg, GetTran("001419", "删除指定店铺管辖成功.")); PageSet(); } else { ScriptHelper.SetAlert(out msg, GetTran("001418", "删除部分店铺管辖成功.")); PageSet(); } Translations(); }
/// <summary> /// 删除当前系统网络团队黑名单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btAddToBlackList_Click(object sender, EventArgs e) { int m = 0; int n = 0; foreach (GridViewRow row in gvNetWork.Rows) { if (row.RowType == DataControlRowType.DataRow) { CheckBox chk = (CheckBox)row.FindControl("chkNet"); if (chk != null && chk.Checked) { HiddenField hid = (HiddenField)row.FindControl("hidID"); if (BlackGroupBLL.DelBlackGroup(int.Parse(hid.Value)) < 0) { n++; } m++; } } } if (m == 0) { ScriptHelper.SetAlert(out msg, GetTran("001333", "请用户选择要删除的网络团队黑名单.")); } else if (n == 0) { ScriptHelper.SetAlert(out msg, GetTran("001335", "删除指定网络团队成功.")); PageSet(); } else { ScriptHelper.SetAlert(out msg, GetTran("001341", "删除部分网络团队成功.")); PageSet(); } Translations(); }