예제 #1
0
        private StationMaintainInfo convertToMaintainInfoFromObj(IStation temp)
        {
            StationMaintainInfo station = new StationMaintainInfo();

            station.Station = temp.StationId;
            //station.StationType = temp.StationType;
            station.OperationObject = temp.OperationObject;
            station.Cdt = temp.Cdt;
            station.Descr = temp.Descr;
            station.Editor = temp.Editor;
            station.Udt = temp.Udt;

            return station;
        }
예제 #2
0
        public IList<StationMaintainInfo> getStationList()
        {
            IList<StationMaintainInfo> stationList = new List<StationMaintainInfo>();
            try
            {
                IList<IStation> tmpStationList = stationRepository.FindAll();

                foreach (IStation temp in tmpStationList)
                {
                    StationMaintainInfo station = new StationMaintainInfo();

                    station = convertToMaintainInfoFromObj(temp);

                    stationList.Add(station);
                }

            }
            catch (FisException e)
            {
                logger.Error(e.mErrmsg);
                throw e;
            }
            catch (Exception e)
            {
                logger.Error(e.Message);
                throw;
            }

            return stationList;
        }
예제 #3
0
        public IList<StationMaintainInfo> GetStationList()
        {
            //Select Station, Name from Station order by Station
            IList<StationMaintainInfo> stationList = new List<StationMaintainInfo>();

            try
            {
                IList<IStation> tmpList = null;

                tmpList = stationRep.FindAll();

                foreach (IStation temp in tmpList)
                {
                    
                    StationMaintainInfo station = new StationMaintainInfo();

                    station.Station = temp.StationId;
                    station.Descr = temp.Name;

                    stationList.Add(station);
                }
            }
            catch (Exception e)
            {
                logger.Error(e.Message);
                throw e;
            }
            return stationList;
        }