Beispiel #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        private Item CreateRainItem(DataRow row)
        {
            Item item = new RainItem ();
            string fromName = row["站点名称"].ToString();
            string fromID = row["站点编号"].ToString();
            string toName;
            int toStationID;
            int toDeviceID;

            _todbi.GetToInfo(fromName, CQRain, out toName, out toStationID, out toDeviceID);

            item.FromName = fromName;
            item.FromID = fromID;
            item.ToName = toName;
            item.ToStationID = toStationID;
            item.ToDeviceID = toDeviceID;

            return item;
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        private Item CreateRainItem(DataRow row)
        {
            Item   item     = new RainItem();
            string fromName = row["站点名称"].ToString();
            string fromID   = row["站点编号"].ToString();
            string toName;
            int    toStationID;
            int    toDeviceID;

            _todbi.GetToInfo(fromName, CQRain, out toName, out toStationID, out toDeviceID);

            item.FromName    = fromName;
            item.FromID      = fromID;
            item.ToName      = toName;
            item.ToStationID = toStationID;
            item.ToDeviceID  = toDeviceID;

            return(item);
        }