/// <summary> /// 获取收发票列表 /// </summary> /// <returns></returns> public JsonResult ReceiveBill_getList() { DaReceiveBill dal = new DaReceiveBill(); IList <ReceiveBill> bills = dal.getList(); var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = bills.Count, rows = bills }; return(result); }
/// <summary> /// 获取发票收到情况列表 /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult ReceiveBillList_getList(string id) { DaReceiveBill dal = new DaReceiveBill(); IList <ReceiveBill> list = dal.getList(id); var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = list.Count, rows = list }; return(result); }