using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading.Tasks;

namespace Bailun.DC.LogicWareHouse
{
    class Program
    {
        //static async Task Main(string[] args)
        //{
        //    Console.WriteLine("进入 逻辑仓库");
        //    var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
        //    {
        //        services.AddHostedService<Services>();
        //    });

        //    await builder.RunConsoleAsync();
        //}

        static void Main(string[] args)
        {
            var _service = new Services();

            _service.Save();

            //半成品库存
            //_service.SemiStock();

            //半成品销量
            //_service.UpdateSemiSale();

            //更新半成品销量和现金流
            //_service.UpdateLogicWareHouseSemiSale();

            // 更新缺货数和待发货数据
            //_service.UpdateOutStockAndNoShipping();

            //更新30天现金流
            //_service.UpdateCash30Days();

            //更新逻辑仓的可用天数
            //_service.UpdateAvailableDays();

            //保存每日数据快照
            //_service.SaleWHDailySnaps();


        }
    }
}
