Esempio n. 1
0
        /// <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.GetShopAccountItemNoPage(query);

            return(ExcelView("收支明细", models));
        }
Esempio n. 2
0
        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.GetShopAccountItemNoPage(query);

            return(ExcelView("已结算列表", data));
        }
Esempio n. 3
0
        /// <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.GetShopAccountItemNoPage(query);

            return(ExcelView("已结算列表", data));
        }