添加错误写入

This commit is contained in:
sc committed 2025-03-20 19:47:07 +08:00
commit 4ec1505bc5
2 files changed
+44 -2

No files matched your search

+4 -2
View File
@@ -465,7 +465,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
if (e.Key == Key.Enter)
{
string Connstr_SC;
string DYELOTS_sql = "SELECT count(*) FROM [dbo].[DYELOTS] WHERE OrderNo = '" + comboBoxWorkOrder.Text + "'";//单号查询语句
string DYELOTS_sql = "SELECT * FROM [dbo].[DYELOTS] WHERE OrderNo = '" + comboBoxWorkOrder.Text + "'";//单号查询语句
try
{
if (MainWindowViewModel.SQMOD == "Windows Authentication")
@@ -489,7 +489,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
TEXTColorName.Text = ds.AsEnumerable().Select(row => row.Field<string>("ColorName")).First();
TEXTClient.Text = ds.AsEnumerable().Select(row => row.Field<string>("CustomerName")).First();
TEXTClothSpecies.Text = ds.AsEnumerable().Select(row => row.Field<string>("FabricName")).First();
TEXTClothWeight.Text = ds.AsEnumerable().Select(row => row.Field<string>("TotalWeight")).First();
TEXTClothWeight.Text = ds.AsEnumerable().Select(row => row.Field<float>("TotalWeight")).First().ToString();
TEXTBathRatio.Text = ds.AsEnumerable().Select(row => row.Field<string>("LiquidRatio")).First();
TEXTTotal.Text = ds.AsEnumerable().Select(row => row.Field<string>("TotalVolume")).First();
TEXTUSER.Text = ds.AsEnumerable().Select(row => row.Field<string>("UserAccount")).First();
@@ -498,6 +498,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
}
catch (Exception ex)
{
LogGing.ERRDATA(ex);
}
}
}