Merge branch 'master' of http://dd-vmp07-com04:3000/AppStd/Monorepo
This commit is contained in:
commit
5001002ab8
@ -1,4 +1,5 @@
|
|||||||
Imports System.IO
|
Imports System.Globalization
|
||||||
|
Imports System.IO
|
||||||
Imports System.Security.Cryptography
|
Imports System.Security.Cryptography
|
||||||
Imports DigitalData.Modules.Config
|
Imports DigitalData.Modules.Config
|
||||||
Imports DigitalData.Modules.Database
|
Imports DigitalData.Modules.Database
|
||||||
@ -191,7 +192,11 @@ Public Class Form1
|
|||||||
|
|
||||||
WriteLog("Valid Properties: [{0}]", oResult2.ValidProperties.Count)
|
WriteLog("Valid Properties: [{0}]", oResult2.ValidProperties.Count)
|
||||||
For Each Prop In oResult2.ValidProperties
|
For Each Prop In oResult2.ValidProperties
|
||||||
WriteLog("Property: [{0}] = [{1}]", Prop.Description, Prop.Value)
|
If Prop.Value.Length > 250 Then
|
||||||
|
WriteLog("Property: [{0}] = [{1}]", Prop.Description, Prop.Value.Substring(0, 250))
|
||||||
|
Else
|
||||||
|
WriteLog("Property: [{0}] = [{1}]", Prop.Description, Prop.Value)
|
||||||
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
WriteLog("Missing Properties: [{0}]", oResult2.MissingProperties.Count)
|
WriteLog("Missing Properties: [{0}]", oResult2.MissingProperties.Count)
|
||||||
|
|||||||
@ -68,7 +68,7 @@ namespace ZUGFeRDRESTService.Controllers
|
|||||||
AllowXRechnung_Filename = _AllowXRechnung,
|
AllowXRechnung_Filename = _AllowXRechnung,
|
||||||
AllowZugferd_1_0_Schema = _AllowZugferd10,
|
AllowZugferd_1_0_Schema = _AllowZugferd10,
|
||||||
AllowZugferd_2_x_Schema = _AllowZugferd2x,
|
AllowZugferd_2_x_Schema = _AllowZugferd2x,
|
||||||
AllowPeppol_3017_Schema = _AllowPeppolBISBill3x
|
AllowPeppol_3_x_Schema = _AllowPeppolBISBill3x
|
||||||
});
|
});
|
||||||
_props = new PropertyValues(_logConfig);
|
_props = new PropertyValues(_logConfig);
|
||||||
|
|
||||||
@ -86,6 +86,12 @@ namespace ZUGFeRDRESTService.Controllers
|
|||||||
Concat(_propertyMap).
|
Concat(_propertyMap).
|
||||||
ToDictionary(kv => kv.Key, kv => kv.Value);
|
ToDictionary(kv => kv.Key, kv => kv.Value);
|
||||||
|
|
||||||
|
if (_AllowPeppolBISBill3x == true)
|
||||||
|
_propertyMap = oPropertyMap.
|
||||||
|
Where(kv => kv.Value.Specification == UBL_SPEC_21).
|
||||||
|
Concat(_propertyMap).
|
||||||
|
ToDictionary(kv => kv.Key, kv => kv.Value);
|
||||||
|
|
||||||
_logger.Debug("Property Map filtered: [{0}] entries found.", _propertyMap.Count);
|
_logger.Debug("Property Map filtered: [{0}] entries found.", _propertyMap.Count);
|
||||||
|
|
||||||
_logger.Debug("Validation Controller initialized!");
|
_logger.Debug("Validation Controller initialized!");
|
||||||
@ -374,7 +380,13 @@ namespace ZUGFeRDRESTService.Controllers
|
|||||||
public bool InsertPropertyMap(ValidProperty pProperty, string pMessageId)
|
public bool InsertPropertyMap(ValidProperty pProperty, string pMessageId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (pProperty.ItemType == 3)
|
||||||
|
{
|
||||||
|
// Wir speichern keine Attachment-Werte in die DB
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
var oSql = $"INSERT INTO {pProperty.TableName} " +
|
var oSql = $"INSERT INTO {pProperty.TableName} " +
|
||||||
"(REFERENCE_GUID, ITEM_DESCRIPTION, ITEM_VALUE, CREATEDWHO, SPEC_NAME, GROUP_COUNTER, IS_REQUIRED) VALUES " +
|
"(REFERENCE_GUID, ITEM_DESCRIPTION, ITEM_VALUE, CREATEDWHO, SPEC_NAME, GROUP_COUNTER, IS_REQUIRED) VALUES " +
|
||||||
"(@REFERENCE_GUID, @ITEM_DESCRIPTION, @ITEM_VALUE, @CREATEDWHO, @SPEC_NAME, @GROUP_COUNTER, @IS_REQUIRED)";
|
"(@REFERENCE_GUID, @ITEM_DESCRIPTION, @ITEM_VALUE, @CREATEDWHO, @SPEC_NAME, @GROUP_COUNTER, @IS_REQUIRED)";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user