SVN r354
SVN-Revision: r354
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user