public JsonResult Del(string IDSet) { int f = OPBiz.DelForSetDelete("Id", IDSet); HttpReSultMode ReSultMode = new HttpReSultMode(); if (UserData.UserTypes != 1) { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "没有权限删除生平信息,请联系管理员!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } if (f > 0) { ReSultMode.Code = 11; ReSultMode.Data = f.ToString(); ReSultMode.Msg = "成功删除" + f + "条数据!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "删除失败!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } }
public JsonResult Del(string IDSet) { int f = OPBiz.DelForSetDelete("Id", IDSet); HttpReSultMode ReSultMode = new HttpReSultMode(); if (f > 0) { SysOperateLogBiz.AddSysOperateLog(UserData.Id.ToString(), UserData.UserName, e3net.Mode.OperatEnumName.除, "证件登记--删除", true, WebClientIP, "证件登记"); ReSultMode.Code = 11; ReSultMode.Data = f.ToString(); ReSultMode.Msg = "成功删除" + f + "条数据!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "删除失败!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } }
public JsonResult Del(string IDSet) { var mql2 = TS_ShopUserSet.Id.In(IDSet.Split(',')); // int f = OPBiz.Remove<TS_ShopUserSet>(mql2); int f = OPBiz.DelForSetDelete("Id", IDSet); HttpReSultMode ReSultMode = new HttpReSultMode(); if (f > 0) { ReSultMode.Code = 11; ReSultMode.Data = f.ToString(); ReSultMode.Msg = "成功删除" + f + "条数据!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "删除失败!"; return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } }