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

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

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

            return(item);
        }
コード例 #2
0
ファイル: ItemFactory.cs プロジェクト: hkiaipc/yh
        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        /// <returns></returns>
        private Item CreateWaterItem(DataRow row)
        {
            Item item = new WaterItem ();
            string fromName = row["站点名称"].ToString();
            string fromID = row["站点编号"].ToString();
            string toName;
            int toStationID;
            int toDeviceID;

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

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

            return item;
        }