Esempio n. 1
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtOpenTracerFile.Text) && !string.IsNullOrEmpty(txtOpenCWDY.Text) && !string.IsNullOrEmpty(txtOpenJHDY.Text))
            {
                splashScreenManager1.ShowWaitForm();
                splashScreenManager1.SetWaitFormCaption("正在导入示踪剂数据");
                splashScreenManager1.SetWaitFormDescription("请稍后...");
                GetTracerDAL.dtTracer.Clear();
                FrmLayerSelectedInfo.dtExcelCWDY.Clear();
                FrmLayerSelectedInfo.dtExcelJHDY.Clear();
                GetTracerDAL gtd       = new GetTracerDAL();
                string[]     filePath  = txtOpenTracerFile.Text.Split(new char[] { ';', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                string[]     tracePath = txtSJDY.Text.Split(new char[] { ';', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = 0; i < filePath.Count(); i++)
                {
                    gtd.GetTracer(filePath[i], tracePath[i]);
                }

                FrmLayerSelectedInfo.dtExcelCWDY = ExcelToDataTableUtil.ExcelToDataTable(txtOpenCWDY.Text);
                FrmLayerSelectedInfo.dtExcelJHDY = ExcelToDataTableUtil.ExcelToDataTable(txtOpenJHDY.Text);

                string selectedNodeName = MainForm.strTreeNodeText;
                ShowResultView(selectedNodeName);

                splashScreenManager1.CloseWaitForm();
            }
            else
            {
                MessageBox.Show("请检查文件是否选择");
            }
        }
Esempio n. 2
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtOpenTracerFile.Text) && !string.IsNullOrEmpty(txtSJDY.Text))
            {
                splashScreenManager1.ShowWaitForm();
                splashScreenManager1.SetWaitFormCaption("正在导入示踪剂数据");
                splashScreenManager1.SetWaitFormDescription("请稍后...");

                GetTracerDAL gtd       = new GetTracerDAL();
                string[]     filePath  = txtOpenTracerFile.Text.Split(new char[] { ';', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                string[]     tracePath = txtSJDY.Text.Split(new char[] { ';', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = 0; i < filePath.Count(); i++)
                {
                    gtd.GetTracer(filePath[i], tracePath[i]);
                }

                ShowDateList();
                splashScreenManager1.CloseWaitForm();
            }
            else
            {
                MessageBox.Show("请检查文件是否选择");
            }
        }