public ContentResult PubInfo_API() { string action = GetParam("action"); int pubId = DataConvert.CLng(GetParam("pubid")); string ids = GetParam("ids"); SafeSC.CheckIDSEx(ids); M_Pub pubMod = pubBll.SelReturnModel(pubId); if (pubMod == null) { throw new Exception("未指定互动模型"); } switch (action) { case "del": DBCenter.DelByIDS(pubMod.PubTableName, "ID", ids); break; case "audit": DBCenter.UpdateSQL(pubMod.PubTableName, "PubStart=1", "ID IN (" + ids + ")"); break; case "cancel": DBCenter.UpdateSQL(pubMod.PubTableName, "PubStart=0", "ID IN (" + ids + ")"); break; } return(Content(Success.ToString())); }
public bool RealDelByIDS(string ids, string items) { SafeSC.CheckDataEx(items); SafeSC.CheckIDSEx(ids); DBCenter.DelByIDS(TbName, PK, ids); DBCenter.DelByIDS("ZL_P_Shop", "ID", items); return(true); }
public void DelByIDS(string ids) { if (string.IsNullOrEmpty(ids)) { return; } SafeSC.CheckIDSEx(ids); DBCenter.DelByIDS(TbName, PK, ids); }
public void Del(string ids) { if (string.IsNullOrEmpty(ids)) { return; } DBCenter.DelByIDS(strTableName, PK, ids); }
public bool DelByIDS(string ids) { if (string.IsNullOrEmpty(ids)) { return(false); } SafeSC.CheckIDSEx(ids); return(DBCenter.DelByIDS(TbName, PK, ids)); }
public static bool DelQuestion(string ids) { if (string.IsNullOrEmpty(ids)) { return(false); } SafeSC.CheckIDSEx(ids); return(DBCenter.DelByIDS("ZL_QUESTION", "QID", ids)); }
protected void BatDel_Btn_Click(object sender, EventArgs e) { string ids = Request.Form["idchk"]; if (!string.IsNullOrEmpty(ids)) { SafeSC.CheckIDSEx(ids); DBCenter.DelByIDS(pubMod.PubTableName, "ID", ids); } RPT.DataBind(); }
/// <summary> /// 删除贴子 /// </summary> /// <param name="ids"></param> /// <param name="realdel">true:真正删除,false:更改状态</param> public void DelByIDS(string ids, bool realdel = false) { SafeSC.CheckIDSEx(ids); if (realdel) { DBCenter.DelByIDS(TbName, PK, ids); } else { DBCenter.UpdateSQL(TbName, "Status=" + (int)ConStatus.Recycle, "ID IN(" + ids + ")"); } }
/// <summary> /// true:真正删除 /// </summary> public bool DelByIds(string ids, bool flag = false) { SafeSC.CheckIDSEx(ids); if (flag) { DBCenter.DelByIDS(TbName, PK, ids); } else { DBCenter.UpdateSQL(TbName, "Status=0", "ID IN (" + ids + ")"); } return(true); }
/// <summary> /// 吧主删贴 /// </summary> public void DelByIDS(int cateid, string ids, bool realdeal = false) { if (string.IsNullOrEmpty(ids)) { return; } SafeSC.CheckIDSEx(ids); if (realdeal) { DBCenter.DelByIDS(TbName, PK, ids); } else { DBCenter.UpdateSQL(TbName, "Status=" + (int)ConStatus.Recycle, "ID IN(" + ids + ") AND CateID=" + cateid); } }
public void DelByIDS(string ids) { SafeSC.CheckIDSEx(ids); DBCenter.DelByIDS(TbName, PK, ids); }
public bool Del(int ID) { return(DBCenter.DelByIDS(TbName, PK, ID.ToString())); }
public bool DelByIDS(string ids) { SafeSC.CheckIDSEx(ids); return(DBCenter.DelByIDS(TbName, PK, ids)); }
public void DelByIDS(string ids, string pk = "id") { DBCenter.DelByIDS(TbName, pk, ids); }
public bool DelByIDS(SType stype, string ids) { SafeSC.CheckIDSEx(ids); return(DBCenter.DelByIDS(GetTbName(stype), PK, ids)); }
public void DelByIDS(string ids) { DBCenter.DelByIDS(TbName, PK, ids); }