예제 #1
0
        /// <summary>
        ///
        /// </summary>
        public StationCollection GetDeletedStationCollection()
        {
            StationCollection stations = this.GetStationList(this.ChannelID);

            stations.Remove(this.StationCollection);
            return(stations);
        }
예제 #2
0
        /// <summary>
        /// 获取候选站点列表
        /// </summary>
        /// <returns></returns>
        public StationCollection GetCandidateStationList()
        {
            StationCollection list = new StationCollection();
            DataTable         tbl  = StationDBI.GetNotAssociateStationDataTable();

            foreach (DataRow row in tbl.Rows)
            {
                int          stationID = Convert.ToInt32(row["StationID"]);
                string       name      = row["Name"].ToString();
                StationClass n         = new StationClass();
                n.StationID   = stationID;
                n.StationName = name;
                list.Add(n);
            }
            list.Remove(this.StationCollection);
            list.Add(GetDeletedStationCollection());
            return(list);
        }
예제 #3
0
 /// <summary>
 /// 获取候选站点列表
 /// </summary>
 /// <returns></returns>
 public StationCollection GetCandidateStationList()
 {
     StationCollection list = new StationCollection();
     DataTable tbl =  StationDBI.GetNotAssociateStationDataTable();
     foreach (DataRow row in tbl.Rows)
     {
         int stationID = Convert.ToInt32(row["StationID"]);
         string name = row["Name"].ToString();
         StationClass n = new StationClass();
         n.StationID = stationID;
         n.StationName = name;
         list.Add(n);
     }
     list.Remove(this.StationCollection);
     list.Add(GetDeletedStationCollection());
     return list;
 }