private void ShowDetail(DataSet ds)
        {
            if (ds == null)
            {
                MessageBox.Show("获取不到台站概要信息,请确认数据源是否改变!");
                return;
            }
            else
            {
                #region 弹出对话框
                if (ds.Tables.Count > 0)
                {
                    //申请表
                    ApplyControl = new ApplyInfoControl(ds);
                    this.lg_Apply.Children.Add(ApplyControl);

                    //台站资料表
                    if (ds.Tables["RSBT_STATION"] != null && ds.Tables["RSBT_STATION"].Rows.Count > 0)
                    {
                        StationControl = new StationInfoControl(ds.Tables["RSBT_STATION"]);
                        this.lg_Station.Children.Add(StationControl);
                    }

                    //设备表
                    if (ds.Tables["RSBT_EQU"] != null && ds.Tables["RSBT_EQU"].Rows.Count > 0)
                    {
                        EquControl = new EquInfoControl(ds.Tables["RSBT_EQU"], ds.Tables["RSBT_EQU_T"]);
                        this.lg_Equinfo.Children.Add(EquControl);
                    }

                    //频率表
                    if (ds.Tables["RSBT_FREQ"] != null && ds.Tables["RSBT_FREQ"].Rows.Count > 0)
                    {
                        FreqControl = new FreqInfoControl(ds.Tables["RSBT_FREQ"]);
                        this.lg_Freq.Children.Add(FreqControl);
                    }

                    //天线表
                    if (ds.Tables["RSBT_ANTFEED"] != null && ds.Tables["RSBT_ANTFEED"].Rows.Count > 0)
                    {
                        AntfeedControl = new AntfeedInfoControl(ds.Tables["RSBT_ANTFEED"]);
                        this.lg_Antfeed.Children.Add(AntfeedControl);
                    }
                }
                #endregion
            }
        }
        /// <summary>
        /// 环境分析调用,脱机情况下
        /// </summary>
        public StationDetailDialog(List <ActivitySurroundStation> listStation, List <StationEmitInfo> listEmitInfo)
        {
            InitializeComponent();
            lg_Apply.Visibility   = System.Windows.Visibility.Collapsed;
            lg_Equinfo.Visibility = System.Windows.Visibility.Collapsed;
            lg_Antfeed.Visibility = System.Windows.Visibility.Collapsed;


            if (listStation != null && listStation.Count > 0)
            {
                StationControl = new StationInfoControl(listStation);
                this.lg_Station.Children.Add(StationControl);
            }
            if (listEmitInfo != null && listEmitInfo.Count > 0)
            {
                FreqControl = new FreqInfoControl(listEmitInfo);
                this.lg_Freq.Children.Add(FreqControl);
            }
        }