public JsonResult GetItemsByPkgId() { List<PkgItemVO> result = new List<PkgItemVO>(); try { var mocker = new BizMocker(); result = mocker.GetItemsByPkgID(1); foreach (var item in result) { item.DT_RowId = item.PackageItemID.ToString(); item.Operation = "<a href='javascript:void(0)' onclick='PackageItems.Del(" + item.DT_RowId + ")'><i class='fa fa-times'></i> 删除</a>"; } } catch (Exception ex) { LogHandler.Error(ex.Message.ToString()); } return Json(result, JsonRequestBehavior.AllowGet); }