fixed document import and new test version
This commit is contained in:
parent
bb5de64cab
commit
f593d66333
@ -36,7 +36,7 @@
|
||||
<MinimumRequiredVersion>5.4.0.0</MinimumRequiredVersion>
|
||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<WebPage>publish.html</WebPage>
|
||||
<ApplicationRevision>9</ApplicationRevision>
|
||||
<ApplicationRevision>10</ApplicationRevision>
|
||||
<ApplicationVersion>7.5.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||
|
||||
@ -2486,37 +2486,40 @@ namespace ENI2.Excel
|
||||
{
|
||||
byte? result = DakosyUtil.ParseDocumentType(documentType);
|
||||
canceled = false;
|
||||
|
||||
if (!documentType.IsNullOrEmpty() && !result.HasValue)
|
||||
|
||||
if (!result.HasValue)
|
||||
{
|
||||
// special treatment / callback
|
||||
if (_documentTypeImportDict.ContainsKey(documentType))
|
||||
if (documentType.IsNullOrEmpty())
|
||||
{
|
||||
result = byte.Parse(_documentTypeImportDict[documentType]); // we have mapped this before
|
||||
result = 5; // OTHER_LEGAL_IDENTITY_DOCUMENT (CH, 17.10.22)
|
||||
}
|
||||
else
|
||||
{
|
||||
FixImportDialog fid = new FixImportDialog();
|
||||
fid.Value = documentType;
|
||||
fid.ValueType = "Document type";
|
||||
fid.SelectionValues = Util.GlobalStructures.IDDocTypeDict;
|
||||
if (fid.ShowDialog() ?? false)
|
||||
// special treatment / callback
|
||||
if (_documentTypeImportDict.ContainsKey(documentType))
|
||||
{
|
||||
if (!fid.SelectedValue.IsNullOrEmpty())
|
||||
{
|
||||
_genderImportDict[documentType] = fid.SelectedValue;
|
||||
result = byte.Parse(_genderImportDict[documentType]);
|
||||
}
|
||||
}
|
||||
result = byte.Parse(_documentTypeImportDict[documentType]); // we have mapped this before
|
||||
}
|
||||
else
|
||||
{
|
||||
canceled = true;
|
||||
FixImportDialog fid = new FixImportDialog();
|
||||
fid.Value = documentType;
|
||||
fid.ValueType = "Document type";
|
||||
fid.SelectionValues = Util.GlobalStructures.IDDocTypeDict;
|
||||
if (fid.ShowDialog() ?? false)
|
||||
{
|
||||
if (!fid.SelectedValue.IsNullOrEmpty())
|
||||
{
|
||||
_genderImportDict[documentType] = fid.SelectedValue;
|
||||
result = byte.Parse(_genderImportDict[documentType]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
canceled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result = 5; // OTHER_LEGAL_IDENTITY_DOCUMENT (CH, 17.10.22)
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user