This commit is contained in:
wxt
2026-01-09 10:33:27 +08:00
parent 826478e790
commit 3e2f950813
3 changed files with 7 additions and 5 deletions

View File

@@ -149,12 +149,12 @@ namespace 材料热传导系数
using (var connection = new MySqlConnection(_connectionString))
{
connection.Open();
var sql = @"INSERT INTO SecondaryIgnitionModel
var sql = @"INSERT INTO secondaryignition
(Id3, O23, result3,
yuhui3, yuyan3, Isdianhuo3, Iszixi3,Testtime3)
VALUES
(@Id3 , @O23,@result3,
@yuhui3,@yuyan3,@Isdianhuo3,,@Iszixi3,@Testtime3)";
@yuhui3,@yuyan3,@Isdianhuo3,@Iszixi3,@Testtime3)";
connection.Execute(sql, data);
}
}

View File

@@ -328,7 +328,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private bool iszixi = false;
private double costtime = 0;
private bool _isCurrentRecordAdded = false;//重复添加标记
private bool _isCurrentRecordAdded = true;//重复添加标记
private async Task<PrimaryIgnitionModel> InsertReportAsync()
{
if (!_isCurrentRecordAdded)
@@ -981,7 +981,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
}
else
{
_isCurrentRecordAdded = false;
//_isCurrentRecordAdded = false;
return new PrimaryIgnitionModel(); ;
}
}
@@ -1091,6 +1091,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
private void uiButton1_Click(object sender, EventArgs e)
{
ma?.BtnClickFunctionForNew(Function.ButtonType., 50);//开始
_isReported = false;
}
private void uiButton2_Click(object sender, EventArgs e)

View File

@@ -347,7 +347,8 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
MessageBox.Show($"导出失败:{ex.Message}", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}//导出
private void ExportToExcel(DataGridView dataGridView, string filePath, string reportTitle)
{
// 检查是否有数据