This commit is contained in:
2020-05-04 14:19:35 +00:00
parent 7c6e0d4deb
commit ff98f938a7
2 changed files with 45 additions and 0 deletions

View File

@@ -324,11 +324,35 @@ namespace AyaNova.PlugIn.V8
#region BIZ OBJECT Export methods
List<string> UsedNames = new List<string>();
long LUniqueName = 1;
private string GetUniqueName(string tryName) {
string retName=tryName;
do
{
if (!UsedNames.Contains(retName))
{
UsedNames.Add(retName);
return retName;
}
retName = util.UniqueNameBuilder(tryName, LUniqueName++, 255);
} while (true);
}
private void ResetUniqueNames()
{
LUniqueName = 1;
UsedNames.Clear();
}
#region users
private async System.Threading.Tasks.Task ExportUsers(ProgressForm progress)
{
if (!progress.KeepGoing) return;
UsedNames.clear
//Step 1: export the CustomFields to FormCustom if applicable so that when doing individual items we can export their custom data too
var ocf = ObjectHasCustomFieldDataToExport("User");
bool ShouldExportCustom = ocf != null;