/// <summary> /// 上传excel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButtonUpLoad_Click(object sender, EventArgs e) { DeletePointRealeatTables(); DeleteLineRealeatTables(); AsynData.asynRecordTabl(); AsynData.asynExportInfoTabl(); if (UpLoadPointSheet()) { return; } if (UpLoadLineSheet()) { return; } //MessageBox.Show("管点添加成功!"); DialogResult dr = MessageBox.Show("数据上传完成,请进行数据编码", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); if (dr == DialogResult.OK) { //点确定的代码关闭此窗体 this.Close(); } }
/// <summary> /// 同步编码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItemAsynCode_ItemClick(object sender, ItemClickEventArgs e) { //同步编码表 AsynData.asynRecordTabl(); }