/// <summary> 获取当前时间前的所有生产信息 </summary>
        public List <WELLCTRL> GetAllWellBeforeTime(BaseKey sch, DateTime time = default(DateTime))
        {
            if (time == default(DateTime))
            {
                time = DateTime.MaxValue;
            }


            // Todo :比当前时间小的所有WELL关键字
            var wells = sch.FindAll <WELLCTRL>(l =>
            {
                if (l.ParentKey != null && l.ParentKey is TIME)
                {
                    TIME t = l.ParentKey as TIME;

                    return(time.Date.Date <= time.Date);
                }
                else
                {
                    return(false);
                }
            });

            return(wells);
        }