public bool Save(SatisfactionEntity obj) { try { Insert("SatisfactionMap.Insert", obj); return(true); } catch { return(false); } }
public SatisfactionEntity Load(string code) { try { SatisfactionEntity dinner = QueryForObject <SatisfactionEntity>("SatisfactionMap.Load", code); return(dinner); } catch (Exception) { throw; } }
public ActionResult setOrderBySurvey(string orderid, string survey) { JsonResult result = new JsonResult(); OrderDinnerEntity orderEnty = dinnerlogic.Load(orderid); if (orderEnty != null) { SatisfactionEntity model = new SatisfactionEntity(); model.SatisId = orderid + "-" + DateTime.Now.ToString("yyMMddHHmmss"); model.OrderId = orderid; model.SatisResult = survey; model.CreateDate = DateTime.Now; bool isok = Satislogic.Save(model); result.Data = new { status = 100, msg = "成功!" }; return(Json(result, JsonRequestBehavior.AllowGet)); } else { result.Data = new { status = 200, msg = "此订单不存在!" }; return(Json(result, JsonRequestBehavior.AllowGet)); } //return Json(result, JsonRequestBehavior.AllowGet); }
public bool Update(SatisfactionEntity obj) { throw new NotImplementedException(); }
public bool Save(SatisfactionEntity obj) { return(access.Save(obj)); }
public void SubmitBaseInfo(SatisfactionEntity entity) { LogHelper.Info(JsonConvert.SerializeObject(entity)); }