Example #1
0
        public ActionResult Edit(ItemsDetailModel model)
        {
            model.UpdateTime   = DateTime.Now;
            model.UpdateUserId = Operator.UserId;
            var result = ItemsDetailService.UpdateById(model) ? SuccessTip("修改成功") : ErrorTip("修改失败");

            return(Json(result));
        }
Example #2
0
        public ActionResult Add(ItemsDetailModel model)
        {
            model.CreateTime   = DateTime.Now;
            model.CreateUserId = Operator.UserId;
            model.UpdateTime   = DateTime.Now;
            model.UpdateUserId = Operator.UserId;
            var result = ItemsDetailService.Insert(model) ? SuccessTip("添加成功") : ErrorTip("添加失败");

            return(Json(result));
        }
Example #3
0
        public JsonResult List(ItemsDetailModel model, PageInfo pageInfo)
        {
            var result = ItemsDetailService.GetListByFilter(model, pageInfo);

            return(Json(result));
        }