EDKB04
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
Connection String für die EDOKA Datenbank
Zum Suchen von LSV-BEs eines Partners mit Hilfe von zusäztlichen Kriterein (Selektoren).
Grundlage für die Klasse bildet die Tatsache, dass man mit einem SELECT Statement wie
select d.dokumentid, diw.inhalt from dbo.dokument d
inner join dbo.dokumentinfo_wert diw on d.dokumentid = diw.dokumentid
where d.dokumenttypnr = 1176
and d.nrpar00= 1339632
and diw.inhalt in ( 'IBAN;CH4400784013396322002', 'Paginatornummer;02180305004720', 'BE_LSV-ID_gueltig_ab;20180305', 'LSV-ID;SCW1W', 'Referenz1;60211909')
schon sehr gut eine LSV-BE finden kann und auch sieht, ob alle Suchkriterien aus dbo.dokumentinfo_wert mitberücksichtigt wurden.
Tag Id des Selektors in der XML Message von Avaloq
Id (das ist der Teil vor dem ;) von dbo.dokumentinfo_wert.inhalt
Wert des XML Tags aus der Message von Avaloq
True: Der Selektor wurde in die DataTable abgefüllt
False: Der Selektor fehlt in der DataTable
Adapter für Edoka Datenbank auf dem SQL Server
gemäss Stackoverflow https://stackoverflow.com/a/10373384
Hebt die LSV BEs gemäss Contract auf.
Dazu wird der ConnectionString benötigt
True, wenn ein einziges Dokument identifiziert und aufgehoben werden konnte. Sonst False
Füllt Items mit passenden Dokumenten. Zuerst wird nur mit Partner- und Paginatornummer gesucht.
Die restlichen Suchkriterien werden erst angewendet, wenn mit Partner- und Paginatornummer
keine passenden Dokumente gefunden werden können.
Always true
Fügt die TGNummer des Erstellers und die XML-Datei in die Datenbank (edk_data) ein.
Teil von Update_Partner()
Aktualisiert alle berechtigte Email Adressen eines Parnters
Die Daten (siehe Parameter) kommen alle aus der XML Message
aus XML Message
True: Alles OK, False: nicht alles OK
Gibt den InnerText eines Tags zurück. Falls eine Ausnahme auftritt, wird diese abgefangen und
ein Leerstring ("") zurückgegeben.
Erstellt aus einer Serie von XML Objekten eine DataTable.
Haben die XML Objekte gleichnamige Subnodes, so wird der Spaltenname in der Tabelle mit einer
angehängten Indexnummer eindeutig gemacht.
Falls eine Ausnahme Auftritt, wird eine leere DataTable mit einer Spalte "Dummy" zurückgegeben.
-----------------------------------------------------------------------------
Gets the value from an attribute at the specified node.
The XmlNode from which this method will get the value of an attribute.
Name of the attribute that will be read.
Attribute value read by this method
True if node is found and value is retrieved successfully.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Gets the value from an attribute at the specified node.
The XmlNode from which this method will get the value of an attribute.
Name of the attribute that will be read.
Attribute value read by this method
True if success.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Gets the value from an attribute at the specified node.
The XmlNode from which this method will get the value of an attribute.
Name of the attribute that will be read.
Attribute value read by this method
True if success.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Sets the value of an attribute for a given XmlNode.
XmlNode whose attribute will be set.
Name of the attribute to set.
Value to be set
True if success.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Sets the value of an attribute for a given XmlNode.
XmlNode whose attribute will be set.
Name of the attribute to set.
Value to be set
True if success.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Sets the value of an attribute for a given XmlNode.
XmlNode whose attribute will be set.
Name of the attribute to set.
Value to be set
True if success.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
s
Converts a list of Xml nodes to a DataTable.
List of Xml nodes
DataTable
This method convert
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Converts a list of Xml nodes to a DataTable and sets one of the columns as a primary key.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Updates the child nodes of "parentNode" by using the fields from a datatable.
The child nodes that will be updated must have attribute fields that correspond to
the DataTable. The "keyField" will be used to identify the attribute that serves as
an identifier of the rows. The datatable can have less fields than the nodes so
you have the chance to update smaller subsets.
Make sure that you did not call "AcceptChanges" before passing the datatable or this
function will not find any change.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Returns contents of an XmlNode in a string.
The XmlNode whose contents will be read into a string.
Xml formatted string with contents of "node" parameter.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Convert a XmlNodeList to string
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Method to convert a XmlDocument to string.
XmlDocument that will be converted to string.
A xml formatted string.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Converts a string array to XmlNodes and appends all those nodes to a root node.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Inserts an empty record at the bottom of the hierarchy, creating the
tree as required.
The XmlDocument to which the node will be inserted.
The xml XPath query to get to the bottom node.
The XmlNode inserted into the hierarchy.
Thrown when an argument is null.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Inserts an record with a multiple fields at the bottom of the hierarchy.
The XmlDocument to which the node will be inserted.
The xml XPath query to get to the bottom node.
The attribute names that will be created for the node inserted.
The corresponding value of each field.
Thrown when an argument is null.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Inserts a record with a single field at the bottom of the hierarchy.
The xml XPath query to get to the bottom node.
The field to add to the record.
The value assigned to the field.
Thrown when an argument is null.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Insert a record with multiple fields at the bottom of the hierarchy.
The xml XPath query to get to the bottom node.
The array of fields as field/value pairs.
Thrown when an argument is null.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Inserts a record with multiple fields at bottom of the hierarchy.
The xml XPath query to get to the bottom node.
The DataRow values that will be added as attributes.
The columns names of the DataRow will become the attribute names and
the row values of the DataRow will be the attribute values.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Inserts a record with multiple fields from a DataTable at bottom of the hierarchy.
The xml XPath query to get to the bottom node.
The DataRow values that will be added as attributes.
Inserts a record with multiple values at bottom of hierarchy. This is analogous to inserting
a column of data.
The xml XPath query to get to the bottom node.
Name of the attribute to be created at node inserted.
Values that will be inserted that correspond to the field name.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to insert an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Update a single field in all records in the specified path.
The XmlDocument whose node will be udpated.
The xml path.
The field name to update.
The new value.
The number of records affected.
Thrown when an argument is null.
The "doc" variable must have a root node. The path should not contain the root node.
The path can contain only the node names or it can contain attributes in XPath query form.
For example to update an "Address" node at the bottom, the following is a valid xpath query
xpath = "University[@Name='UT']/Student[@Id=12222]/Address"
Deletes all records of the specified path.
The xml XPath query to get to the bottom node.
The number of records deleted.
Thrown when an argument is null.
Additional exceptions may be thrown by the XmlDocument class.
Deletes a field from all records on the specified path.
The xml path.
The field to delete.
The number of records affected.
Thrown when an argument is null.
Additional exceptions may be thrown by the XmlDocument class.
Return a single string representing the value of the specified field
for the first record encountered.
The xml path.
The desired field.
A string with the field's value or null.
Thrown when an argument is null.
Additional exceptions may be thrown by the XmlDocument class.
Returns a DataTable for all rows on the path.
The xml path.
The DataTable with the returned rows.
The row count will be 0 if no rows returned.
Thrown when an argument is null.
Additional exceptions may be thrown by the XmlDocument class.
Returns an array of values for the specified field for all rows on
the path.
The xml path.
The desired field.
The array of string values for each row qualified by the path.
A null is returned if the query results in 0 rows.
Thrown when an argument is null.
Additional exceptions may be thrown by the XmlDocument class.
Inserts a node at the specified segment if it doesn't exist, otherwise
traverses the node.
The current node.
The path segment list.
The current segment.
Creates columns given an XmlNode.
The target DataTable.
The source XmlNode.