SVN r354
SVN-Revision: r354
This commit is contained in:
@@ -92,6 +92,7 @@ namespace Lskj.PubSpecialImport
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
bool showType = Model != null && Model.ShowType.Equals("1") && !ERPInfo.Instance.UserName.Equals("管理员");
|
||||||
string fileName = importFileName;
|
string fileName = importFileName;
|
||||||
if (File.Exists(fileName))
|
if (File.Exists(fileName))
|
||||||
{
|
{
|
||||||
@@ -99,7 +100,10 @@ namespace Lskj.PubSpecialImport
|
|||||||
WaitForm.ShowForm("正在导入数据...");
|
WaitForm.ShowForm("正在导入数据...");
|
||||||
this.ParentView.GridControl.DataSource = this.ToExcelDataTable(fileName, out int count, out int errorCount, true);
|
this.ParentView.GridControl.DataSource = this.ToExcelDataTable(fileName, out int count, out int errorCount, true);
|
||||||
WaitForm.HideForm();
|
WaitForm.HideForm();
|
||||||
|
if (!showType)
|
||||||
|
{
|
||||||
MessageUtil.Show(string.Format("成功导入{0}条数据,错误{1}条数据", count, errorCount));
|
MessageUtil.Show(string.Format("成功导入{0}条数据,错误{1}条数据", count, errorCount));
|
||||||
|
}
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user