/// <summary> /// 获取店铺帐户流水 /// </summary> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <param name="type"></param> /// <returns></returns> public ActionResult ExportShopAccountItemlist(DateTime?startDate, DateTime?endDate, ShopAccountType?type) { ShopAccountItemQuery query = new ShopAccountItemQuery(); query.TimeStart = startDate; query.TimeEnd = endDate; query.ShopAccountType = type; query.ShopId = CurrentSellerManager.ShopId; var models = BillingApplication.GetAllShopAccountItem(query); return(ExcelView("收支明细", models)); }
/// <summary> /// 已结算数据 /// </summary> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <param name="shopName"></param> /// <param name="page"></param> /// <param name="rows"></param> /// <returns></returns> public ViewResult ExportSettlementList(DateTime?startDate, DateTime?endDate, string shopName) { if (startDate == null) { startDate = endDate.HasValue ? endDate.Value.AddYears(-1).Date : DateTime.Now.AddYears(-1).Date; } var query = new ShopAccountItemQuery(); query.ShopName = shopName; query.TimeStart = startDate; query.TimeEnd = endDate; query.ShopAccountType = ShopAccountType.SettlementIncome; var data = BillingApplication.GetAllShopAccountItem(query); return(ExcelView("已结算列表", data)); }
public ActionResult ExportSettlementList(DateTime?startDate, DateTime?endDate) { if (startDate == null) { startDate = endDate.HasValue ? endDate.Value.AddYears(-1) : DateTime.Now.AddYears(-1); } var query = new ShopAccountItemQuery(); query.TimeStart = startDate; query.TimeEnd = endDate; query.ShopAccountType = ShopAccountType.SettlementIncome; query.ShopId = CurrentSellerManager.ShopId; var data = BillingApplication.GetAllShopAccountItem(query); return(ExcelView("已结算列表", data)); }