public ActionResult AnotherChargeSearch(EasyUIGridParamModel param, AnotherCharge aCharge) { int itemCount = 0; List<dynamic> chargeList = new AnotherChargeRule().AnotherChargeSearch(param, aCharge, out itemCount); var showList = from anotherCharge in chargeList select new { ID = anotherCharge.ID, CustomerName = anotherCharge.CUSTOMERNAME, Money = anotherCharge.MONEY, ActMoney = anotherCharge.ACTMONEY, Remark = anotherCharge.REMARK, ChargeDate = TimeParser.FormatDateTime(anotherCharge.CHARGEDATE), OperatorName = anotherCharge.OPERATORNAME, Detail = "查看详细" }; return Json(new { total = chargeList.Count, rows = showList }, JsonRequestBehavior.AllowGet); }
public ActionResult LoadOtherChargeDetail(string chargeID) { dynamic aCharge = new AnotherChargeRule().GetModelByID(chargeID); return Json(aCharge, JsonRequestBehavior.AllowGet); }