QueryLastedPreWarningResult(string time) { var tunnels = Tunnel.FindAllWithHasRules(); var shift = MineDataSimpleBLL.selectWorkTimeNameByWorkTimeGroupIdAndSysTime( WorkingTimeDefault.FindFirst().DefaultWorkTimeGroupId, time); return(tunnels.Select(tunnel => new PreWarningResultQuery { DateTime = Convert.ToDateTime(time), Date_Shift = shift, TunnelID = tunnel.TunnelId, TunelName = GetTunelNameByTunelID(tunnel.TunnelId), WorkingfaceId = tunnel.WorkingFace.WorkingFaceId, WorkingfaceName = tunnel.WorkingFace.WorkingFaceName, OutBrustWarningResult = new WarningResultEnt { WarningResult = (int)WarningResult.GREEN, Coal = (int)WarningResult.GREEN, Gas = (int)WarningResult.GREEN, Geology = (int)WarningResult.GREEN, Management = (int)WarningResult.GREEN, Ventilation = (int)WarningResult.GREEN, HandleStatus = 0, }, OverLimitWarningResult = new WarningResultEnt { WarningResult = (int)WarningResult.GREEN, Coal = (int)WarningResult.GREEN, Gas = (int)WarningResult.GREEN, Geology = (int)WarningResult.GREEN, Management = (int)WarningResult.GREEN, Ventilation = (int)WarningResult.GREEN, HandleStatus = 0, } }).ToList()); }