From 10c02c88071c7c2503a4958c0e583ddc25fc30a1 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 19 Jan 2021 14:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.U8.App/FrmMain.cs | 4 ++-- NX.ERP.U8/Base/MaterielDAL.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NX.ERP.U8.App/FrmMain.cs b/NX.ERP.U8.App/FrmMain.cs index 9d8fa6d..5f12521 100644 --- a/NX.ERP.U8.App/FrmMain.cs +++ b/NX.ERP.U8.App/FrmMain.cs @@ -211,11 +211,11 @@ namespace U8AppMain purchase.purchaseapp.body.Add(body); } } - catch (Exception) + catch (Exception err) { this.richTextBox1.SelectionColor = Color.Red; - this.richTextBox1.AppendText("读取数据出错\r\n"); + this.richTextBox1.AppendText("读取数据出错\r\n"+err.Message); return; } diff --git a/NX.ERP.U8/Base/MaterielDAL.cs b/NX.ERP.U8/Base/MaterielDAL.cs index 967aaf6..89d3d55 100644 --- a/NX.ERP.U8/Base/MaterielDAL.cs +++ b/NX.ERP.U8/Base/MaterielDAL.cs @@ -281,7 +281,7 @@ namespace NX.ERP.U8 public IEnumerable GetList(IEnumerable codes) { - return this.GetList(" cInvCode=@codes ", codes); + return this.GetList(" cInvCode in @codes ",new { codes }); }