This commit is contained in:
@@ -7,6 +7,7 @@ using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using 全自动水压检测仪;
|
||||
|
||||
namespace 材料热传导系数
|
||||
{
|
||||
@@ -76,25 +77,10 @@ namespace 材料热传导系数
|
||||
/// </summary>
|
||||
public string barcode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联络单号
|
||||
/// </summary>
|
||||
public string ContactNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 件号
|
||||
/// </summary>
|
||||
public string ItemNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 刻字号
|
||||
/// </summary>
|
||||
public string EngravingNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int Quantity { get; set; }
|
||||
///// <summary>
|
||||
///// 数量
|
||||
///// </summary>
|
||||
//public int Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 压力
|
||||
@@ -222,12 +208,12 @@ pressuresetting ,
|
||||
standarderror)
|
||||
VALUES
|
||||
(@barcode, @diffpressure, @exit_temperature, @temperature, @dwelltime, CURRENT_TIMESTAMP, @TemperatureMode,
|
||||
kzh,
|
||||
lldh,
|
||||
jh,
|
||||
quantity,
|
||||
pressuresetting,
|
||||
standarderror
|
||||
@kzh,
|
||||
@lldh,
|
||||
@jh,
|
||||
@quantity,
|
||||
@pressuresetting,
|
||||
@standarderror
|
||||
)";
|
||||
connection.Execute(sql, data);
|
||||
}
|
||||
@@ -256,6 +242,41 @@ standarderror
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConductivityTestData> GetTestData()
|
||||
{
|
||||
using (var connection = new MySqlConnection(_connectionString))
|
||||
{
|
||||
connection.Open();
|
||||
var sql = @"SELECT * FROM normaltemperature
|
||||
|
||||
ORDER BY id asc ";
|
||||
return connection.Query<ConductivityTestData>(sql).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void DeleteTestAllItems()
|
||||
{
|
||||
using (var connection = new MySqlConnection(_connectionString))
|
||||
{
|
||||
connection.Open();
|
||||
var sql = @"delete from normaltemperature
|
||||
";
|
||||
connection.Execute(sql);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ScanData> GetScanDataBylldh_jh(string lldh, string jh)
|
||||
{
|
||||
using (var connection = new MySqlConnection(_connectionString))
|
||||
{
|
||||
connection.Open();
|
||||
var sql = @"SELECT * FROM scandata
|
||||
where lldh=@lldh and jh = @jh
|
||||
ORDER BY id asc ";
|
||||
return connection.Query<ScanData>(sql, new { @lldh, jh }).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public bool TestConnection()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user