public JsonResult Approve(string ID, string state = "0") {//ApprovalStates 状态(-1;--未提交;0--待审核;1--审核通过;2--审核不通过) string sql = string.Format("update TF_EntryAndExitRegistration set ApprovalStates={0},AprovalTime=getdate() Where Id='{1}'", state, ID); int f = OPBiz.ExecuteSqlWithNonQuery(sql); 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 = "审核处理成功!"; return Json(ReSultMode, JsonRequestBehavior.AllowGet); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "审核处理失败!"; return Json(ReSultMode, JsonRequestBehavior.AllowGet); } }
public JsonResult Approve(string ID, string state = "-1") {//States 状态(已审核--2、审核中--1,已提交--0,编辑中--1) string sql = string.Format("update TF_LifeComments set States={0} Where Id='{1}'", state, ID); int f = OPBiz.ExecuteSqlWithNonQuery(sql); HttpReSultMode ReSultMode = new HttpReSultMode(); if (f > 0) { ReSultMode.Code = 11; ReSultMode.Data = f.ToString(); ReSultMode.Msg = "提交审核成功!"; SysOperateLogBiz.AddSysOperateLog(UserData.Id.ToString(), UserData.UserName, e3net.Mode.OperatEnumName.提交, "生平管理--用户提交", true, WebClientIP, "生平管理"); return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "提交审核失败!"; SysOperateLogBiz.AddSysOperateLog(UserData.Id.ToString(), UserData.UserName, e3net.Mode.OperatEnumName.提交, "生平管理--用户提交", false, WebClientIP, "生平管理"); return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } }