diff --git a/插件库/Lskj.PubSpecialImport/FrmMain.cs b/插件库/Lskj.PubSpecialImport/FrmMain.cs index bf9ea51..103af81 100644 --- a/插件库/Lskj.PubSpecialImport/FrmMain.cs +++ b/插件库/Lskj.PubSpecialImport/FrmMain.cs @@ -92,6 +92,7 @@ namespace Lskj.PubSpecialImport { try { + bool showType = Model != null && Model.ShowType.Equals("1") && !ERPInfo.Instance.UserName.Equals("管理员"); string fileName = importFileName; if (File.Exists(fileName)) { @@ -99,7 +100,10 @@ namespace Lskj.PubSpecialImport WaitForm.ShowForm("正在导入数据..."); this.ParentView.GridControl.DataSource = this.ToExcelDataTable(fileName, out int count, out int errorCount, true); WaitForm.HideForm(); - MessageUtil.Show(string.Format("成功导入{0}条数据,错误{1}条数据", count, errorCount)); + if (!showType) + { + MessageUtil.Show(string.Format("成功导入{0}条数据,错误{1}条数据", count, errorCount)); + } this.Close(); } else