管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-08-25 f9cf37353cb16d8969c6bef6de9e3bedbea10ae5
DataLoader/MainWindow.xaml.cs
@@ -136,21 +136,27 @@
                MessageBox.Show("请选择资源目录!", "提示");
                return;
            }
            CommonProp.SourcePath = this.tbSource.Text.Trim();
            if (string.IsNullOrEmpty(CommonProp.SourcePath) || !Directory.Exists(CommonProp.SourcePath))
            {
                MessageBox.Show("请选择数据目录或数据目录不存在!", "提示");
                return;
            }
            CommonProp.TargetPath = this.tbTarget.Text.Trim();
            if (string.IsNullOrEmpty(CommonProp.TargetPath) || !Directory.Exists(CommonProp.TargetPath))
            {
                MessageBox.Show("请选择入库目录或入库目录不存在!", "提示");
                return;
            }
            CommonProp.SensorType = this.tbSensorType.Text.Trim();
            ContentControl cc = this.cbMetaType.SelectedItem as ContentControl;
            CommonProp.MetaType = null == cc || "请选择" == cc.Content.ToString() ? string.Empty : cc.Content.ToString();
            ContentControl ccSensor = this.tbSensorType.SelectedItem as ContentControl;
            int.TryParse(ccSensor.Tag.ToString(), out CommonProp.SensorType);
            ContentControl ccMeta = this.cbMetaType.SelectedItem as ContentControl;
            int.TryParse(ccMeta.Tag.ToString(), out CommonProp.MetaType);
            CommonProp.AcqTime = this.dpAcqTime.SelectedDate;
            this.isBusy = true;