Example #1
0
        public static List <AndonAlertEntity> GetByTime()//选出登陆车间一天之内的andon信息
        {
            List <AndonAlertEntity> all   = new  AndonAlertDal().GetByTime();
            List <AndonAlertEntity> andon = new List <AndonAlertEntity>();

            for (int i = 0; i < all.Count; i++)
            {
                if (LoginInfo.StationInfo.PLINE_CODE == all[i].PLINE_CODE)
                {
                    andon.Add(all[i]);
                }
            }
            return(andon);
        }
Example #2
0
        public static AndonAlertEntity GetAutoLine(string LOCATION_CODE)
        {
            List <AndonAlertEntity> andon = new AndonAlertDal().GetAutoLine(LOCATION_CODE);

            return(andon.First <AndonAlertEntity>());
        }