WorkManage.cs 980 字节
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace BLL
{
    public static class WorkManage
    {
        public static string GetChargingName(AgvInfo info)
        {
            string name = null;
            if (Common.chargingPile == null) return name;

            //空闲充电桩
            for (int i = 0; i < Common.chargingPile.Count; i++)
            {
                if (Common.chargingPile[i].Employ == "")
                {
                    int idx = Array.FindIndex(Common.chargingPile[i].User, s => s == info.Name);
                    if (idx > -1)
                    {
                        name = Common.chargingPile[i].Name;
                        return name;
                    }
                }
            }

            if (info.Battery <= info.BatteryMin)
            {
            }




    



            return name;
   
        }






    }
}