public ActionResult ExportPendingSettlementList(string shopName) { var query = new CommonModel.QueryModel.StatisticsPendingSettlementQuery(); query.ShopName = shopName; var result = BillingApplication.StatisticsPendingSettlementOrdersNoPage(query); var shopNames = ShopApplication.GetShopNames(result.Select(p => p.ShopId)); var model = new ExportPendingSettlementListModel(); model.Data = result; model.ShopNames = shopNames; model.SettmentCycle = BillingApplication.GetCurrentBilingTime(); return(ExcelView("待结算列表", model)); }
public JsonResult PendingSettlementList(string shopName, int page, int rows) { var query = new CommonModel.QueryModel.StatisticsPendingSettlementQuery(); query.PageNo = page; query.PageSize = rows; query.ShopName = shopName; var result = BillingApplication.StatisticsPendingSettlementOrders(query); var shopNames = ShopApplication.GetShopNames(result.Models.Select(p => p.ShopId)); return(Json(new { rows = result.Models.Select(p => new { p.ShopId, ShopName = shopNames[p.ShopId], p.Amount }), result.Total }, true)); }