//检查箱号是否正确 public ActionResult CheckBoxNumIsRight(string boxNum) { if (!string.IsNullOrEmpty(boxNum) && ValidateHelper.CheckContainerNumber(boxNum)) { return(Json(true, JsonRequestBehavior.AllowGet)); } else { return(Json(false, JsonRequestBehavior.AllowGet)); } }