Пример #1
0
        //编辑货位表
        // GET: /Cell/Edit/
        public ActionResult Edit(CMD_CELL cell)
        {
            bool   bResult = CellService.Save(cell);
            string msg     = bResult ? "修改成功" : "修改失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text", JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public ActionResult CellCreate(CMD_CELL cell)
        {
            string errorInfo = string.Empty;
            bool   bResult   = CellService.Add(cell, out errorInfo);
            string msg       = bResult ? "新增成功" : "新增失败";

            return(Json(JsonMessageHelper.getJsonMessage(bResult, msg, errorInfo), "text", JsonRequestBehavior.AllowGet));
        }