public JsonResult LoadCarNos(string term) { //读取所有车辆数据 string strErrText = string.Empty; DDSystem dd = new DDSystem(); List<CarrierCar> listCar = dd.LoadCarsByCarNo(term, LoginAccountId, LoginStaffName, out strErrText); if (listCar == null) { listCar = new List<CarrierCar>(); } //提取车号中包含关键字的记录 var ret = ( from c in listCar select c.CarNo).ToArray(); return Json(ret, JsonRequestBehavior.AllowGet); }