public ActionResult Add(WMS_PALLET_MASTER  mast, object detail, string prefix)
 {
     string userid = this.GetCookieValue("userid");
     mast.OPERATER = userid;
     bool bResult = PalletmasterService.Add(mast, detail, prefix);
     string msg = bResult ? "新增成功" : "新增失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text/html", JsonRequestBehavior.AllowGet);
 }
 public ActionResult Edit(WMS_PALLET_MASTER mast, object detail)
 {
     bool bResult = PalletmasterService.Edit(mast, detail);
     string msg = bResult ? "修改成功" : "修改失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, null), "text/html", JsonRequestBehavior.AllowGet);
 }