|
|
@@ -493,7 +493,9 @@ namespace HKCardManager.UserPages |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
MessageBox.Show($"导入失败,请先关闭Excel!"); |
|
|
|
cmd.HideOpaqueLayer(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
@@ -550,11 +552,14 @@ namespace HKCardManager.UserPages |
|
|
|
string message = string.Empty; |
|
|
|
foreach (var item in RrrorUser) |
|
|
|
{ |
|
|
|
message += "\n" + item.Key + "列表:\n"; |
|
|
|
(item.Value as List<UserDtoModel>)?.ForEach(par => |
|
|
|
if (item.Value.Count > 0) |
|
|
|
{ |
|
|
|
message += par.Name + "[" + par.OrgId + "] "; |
|
|
|
}); |
|
|
|
message += "\n" + item.Key + "列表:\n"; |
|
|
|
(item.Value as List<UserDtoModel>)?.ForEach(par => |
|
|
|
{ |
|
|
|
message += par.Name + "[" + par.OrgId + "] "; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
MessageLogNotify.GetInstance.Show($"批量录入成功!\n成功{RrrorUser["成功"].Count}条\n失败{(RrrorUser["名字重复"].Count + RrrorUser["机构不存在"].Count + RrrorUser["添加出错"].Count)}条\n"); |
|
|
|
MessageLogNotify.GetInstance.Show($"{message}\n"); |
|
|
|