public static List <PlanEntity> GetWorkStationPlans(string StationRmesID) { StationEntity station = StationFactory.GetByPrimaryKey(StationRmesID); if (station == null) { Rmes.Public.ErrorHandle.EH.LASTMSG = "传入的StationRmesID不正确,没有找到相应Station"; return(null); } List <PlanEntity> plans = new PlanDal().FindBySql <PlanEntity>("where RUN_FLAG<>'N' and PLINE_CODE=@0 and sysdate between BEGIN_DATE and END_DATE order by PLAN_SEQUENCE,PLAN_CODE", station.PLINE_CODE); return(plans); }
public List <string> speaking() { List <AndonAlertEntity> list = AndonFactory.GetByPline(AndonEntity.PLINE_CODE); // LocationEntity LocationEn = dal1.GetByLocationCode(AndonEntity.LOCATION_CODE); if (AndonEntity.REPORT_FLAG == "Y") { foreach (AndonAlertEntity list1 in list) { StationEntity Stationen = StationFactory.GetByPrimaryKey(list1.LOCATION_CODE); str.Add(Stationen.STATION_NAME + list1.ANDON_ALERT_CONTENT); } return(str); } else { return(null); } }