/// <summary> /// 票据分类一览数据 /// </summary> /// <returns></returns> public ActionResult TypeSearch(EasyUIGridParamModel param) { int itemCount = 0; List<dynamic> inTypeList = new InvoiceTypeRule().Search(param, new InvoiceType(), out itemCount); var showList = from inType in inTypeList select new { ID = inType.ID, Name = inType.NAME, Standard = inType.STANDARD, Code = inType.CODE, StepValue = inType.STEPVALUE }; return Json(new { total = itemCount, rows = showList }, JsonRequestBehavior.AllowGet); }
/// <summary> /// 获取所有票据类型json /// </summary> /// <returns></returns> public ActionResult InvoiceAllTypeJson() { List<InvoiceType> invoiceTypeList = new InvoiceTypeRule().GetList(null); var showList = from inType in invoiceTypeList select new { id = inType.ID, text = inType.Name }; return Json(showList, JsonRequestBehavior.AllowGet); }