public string UpdateInfo(Guid id, String position, String info, String img_s, String img_b, String video) { DboUtils db = new DboUtils(); String s = Request.Form["orgLookup.id"]; Guid up_item = Guid.Parse(s); String sql = "update top_info set position='" + position + "',up_item='" + up_item + "',info='" + info + "',img_s='" + img_s + "',img_b='" + img_b + "',video='" + video + "'where id='" + id + "'"; int x = db.update(sql); string message = "操作失败"; if (x > 0) { message = "操作成功"; string json = JsonConvert.SerializeObject(new { message = message, statusCode = 200, navTabId = up_item, callbackType = "closeCurrent", forwardUrl = "" }); return(json); } else { string json = JsonConvert.SerializeObject(new { message = message, statusCode = 300, navTabId = up_item, callbackType = "", forwardUrl = "" }); return(json); } }
public ActionResult jiesuan(Guid id) { String sql = "UPDATE orderList SET orderingState='true' where id='" + id + "'"; int raw = dbo.update(sql); if (raw > 0) { return(Json("true")); } else { return(Json("false")); } }
public String ConfirmModifyNav(int id, String name, String href) { DboUtils db = new DboUtils(); String sql = "update nav set name='" + name + "',href='" + href + "'where id='" + id + "'"; int x = db.update(sql); string message = "操作失败"; if (x > 0) { message = "操作成功"; return(message); } else { return(message); } }
public String ConfirmModify(Guid id, String name, double price, String image, String info) { DboUtils db = new DboUtils(); String sql = "update good set name='" + name + "',price='" + price + "',img='" + image + "',info='" + info + "'where id='" + id + "'"; int x = db.update(sql); string message = "操作失败"; if (x > 0) { message = "操作成功"; return(message); } else { return(message); } }
public String UpdateAdmin(String username, String pwd_confirm) { String nav = "admin2"; DboUtils db = new DboUtils(); String sql = "update admin set pwd='" + pwd_confirm + "'"; int x = db.update(sql); string message = "操作失败"; if (x > 0) { message = "操作成功"; string json = JsonConvert.SerializeObject(new { message = message, statusCode = 200, navTabId = nav, callbackType = "closeCurrent", forwardUrl = "" }); return(json); } else { string json = JsonConvert.SerializeObject(new { message = message, statusCode = 300, navTabId = username, callbackType = "", forwardUrl = "" }); return(json); } }