/// <summary> /// 加载以前导入的EXCEL表格 /// </summary> private void LoadPreviouslyExCel() { //这个依旧是新建一个对话框窗体 FrmLoadExcelRecords f = new FrmLoadExcelRecords(); if (f.ShowDialog() == DialogResult.OK) { strTableName = FrmLoadExcelRecords.strTableName; } //从数据库中导入这个表 ClsDataBase myClsDataBase = new ClsDataBase(); LoadDataTable(myClsDataBase.getUserLoadTable(strTableName)); //还得选择哪个是数量 loadPrintedQtytoComboBox(); }
private void btnLoadzPreviously_Click(object sender, EventArgs e) { //这个依旧是新建一个对话框窗体 FrmLoadExcelRecords f = new FrmLoadExcelRecords(); if (f.ShowDialog() == DialogResult.OK) { strCurrentTableName = FrmLoadExcelRecords.strTableName; } //从数据库中导入这个表 ClsDataBase myClsDataBase = new ClsDataBase(); dataGridView1.DataSource = myClsDataBase.getUserLoadTable(strCurrentTableName); //还得选择哪个是数量 loadPrintedQtytoComboBox(); }