C# Класс Sage.Integration.Northwind.Application.Base.Document

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddDefaultResourceElements ( XmlElement root ) : void
ClearTransactionStatus ( ) : void
GetOperationNotImplementedTransactionResult ( ) : TransactionResult
GetSchemaElement ( ) : XmlSchemaElement
GetSuccessTransactionResult ( ) : TransactionResult
GetTransactionResult ( ) : TransactionResult
GetTransactionResult ( List &result ) : void
GetTypePropertyValue ( ) : string

get the type on an documemt. If the document has no type propery or the property is null, it returns an emty string

GetXmlNode ( XmlDocument document ) : XmlNode

Returns the document as xml node

Merge ( Document sourceDocument ) : void

merge a document into the current.

ReadFromXmlNode ( XmlNode node ) : void

Read the Document from a given xml node

SetTransactionStatus ( TransactionStatus status ) : TransactionResult
SetTransactionStatus ( TransactionStatus status, string message ) : TransactionResult

Защищенные методы

Метод Описание
AddCollection ( DocumentCollection collection ) : bool

add a new collection to the document. If the collection already exists, it returns false

AddProperty ( string propertyName, TypeCode type ) : bool

add a new property to the document. If the property already exists, it returns false

AddProperty ( string propertyName, TypeCode type, int maxLength ) : bool

add a new property to the document. If the property already exists, it returns false

Document ( string documentName ) : System

Приватные методы

Метод Описание
CreateAttribute ( XmlDocument document, XmlElement element, string name, string value ) : void
CreateElement ( XmlDocument document, XmlNode parentElement, DocumentCollection collection ) : void
CreateElement ( XmlDocument document, XmlNode parentElement, Property property ) : void
LogstateToTransactionAction ( LogState logState ) : TransactionAction
ReadElement ( XmlNode parentNode, DocumentCollection collection ) : void
ReadElement ( XmlNode parentNode, Property property ) : void

Описание методов

AddCollection() защищенный Метод

add a new collection to the document. If the collection already exists, it returns false
protected AddCollection ( DocumentCollection collection ) : bool
collection DocumentCollection the collection to add
Результат bool

AddDefaultResourceElements() публичный Метод

public AddDefaultResourceElements ( XmlElement root ) : void
root System.Xml.XmlElement
Результат void

AddProperty() защищенный Метод

add a new property to the document. If the property already exists, it returns false
protected AddProperty ( string propertyName, TypeCode type ) : bool
propertyName string the Name of the Property
type TypeCode the typecode of the property value
Результат bool

AddProperty() защищенный Метод

add a new property to the document. If the property already exists, it returns false
protected AddProperty ( string propertyName, TypeCode type, int maxLength ) : bool
propertyName string the Name of the Property
type TypeCode the typecode of the property value
maxLength int the max lentgh of the property value
Результат bool

ClearTransactionStatus() публичный Метод

public ClearTransactionStatus ( ) : void
Результат void

Document() защищенный Метод

protected Document ( string documentName ) : System
documentName string the name of the Document
Результат System

GetOperationNotImplementedTransactionResult() публичный Метод

public GetOperationNotImplementedTransactionResult ( ) : TransactionResult
Результат Sage.Integration.Northwind.Application.API.TransactionResult

GetSchemaElement() публичный Метод

public GetSchemaElement ( ) : XmlSchemaElement
Результат System.Xml.Schema.XmlSchemaElement

GetSuccessTransactionResult() публичный Метод

public GetSuccessTransactionResult ( ) : TransactionResult
Результат Sage.Integration.Northwind.Application.API.TransactionResult

GetTransactionResult() публичный Метод

public GetTransactionResult ( ) : TransactionResult
Результат Sage.Integration.Northwind.Application.API.TransactionResult

GetTransactionResult() публичный Метод

public GetTransactionResult ( List &result ) : void
result List
Результат void

GetTypePropertyValue() публичный Метод

get the type on an documemt. If the document has no type propery or the property is null, it returns an emty string
public GetTypePropertyValue ( ) : string
Результат string

GetXmlNode() публичный Метод

Returns the document as xml node
public GetXmlNode ( XmlDocument document ) : XmlNode
document System.Xml.XmlDocument The paren xmlDocument to work on
Результат System.Xml.XmlNode

Merge() публичный Метод

merge a document into the current.
public Merge ( Document sourceDocument ) : void
sourceDocument Document the source Document
Результат void

ReadFromXmlNode() публичный Метод

Read the Document from a given xml node
public ReadFromXmlNode ( XmlNode node ) : void
node System.Xml.XmlNode The xml node named as the document
Результат void

SetTransactionStatus() публичный Метод

public SetTransactionStatus ( TransactionStatus status ) : TransactionResult
status TransactionStatus
Результат Sage.Integration.Northwind.Application.API.TransactionResult

SetTransactionStatus() публичный Метод

public SetTransactionStatus ( TransactionStatus status, string message ) : TransactionResult
status TransactionStatus
message string
Результат Sage.Integration.Northwind.Application.API.TransactionResult