Пример #1
0
 public bool Save(SatisfactionEntity obj)
 {
     try
     {
         Insert("SatisfactionMap.Insert", obj);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Пример #2
0
 public SatisfactionEntity Load(string code)
 {
     try
     {
         SatisfactionEntity dinner = QueryForObject <SatisfactionEntity>("SatisfactionMap.Load", code);
         return(dinner);
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
 public bool Update(SatisfactionEntity obj)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public bool Save(SatisfactionEntity obj)
 {
     return(access.Save(obj));
 }
 public void SubmitBaseInfo(SatisfactionEntity entity)
 {
     LogHelper.Info(JsonConvert.SerializeObject(entity));
 }