'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.42000
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On



'''<summary>
'''Represents a strongly typed in-memory cache of data.
'''</summary>
<Global.System.Serializable(),  _
 Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
 Global.System.ComponentModel.ToolboxItem(true),  _
 Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema"),  _
 Global.System.Xml.Serialization.XmlRootAttribute("DataSetEncomendas"),  _
 Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")>  _
Partial Public Class DataSetEncomendas
    Inherits Global.System.Data.DataSet
    
    Private tableMov_EncomendasCliente_Cab As Mov_EncomendasCliente_CabDataTable
    
    Private tableMov_EncomendasCliente_Lin As Mov_EncomendasCliente_LinDataTable
    
    Private tableMov_EncomendasFornecedor_Cab As Mov_EncomendasFornecedor_CabDataTable
    
    Private tableMov_EncomendasFornecedor_Lin As Mov_EncomendasFornecedor_LinDataTable
    
    Private tableMov_EncomendasCliente_SubLin As Mov_EncomendasCliente_SubLinDataTable
    
    Private tableUSR_RST3_VIEW_ERP_Clientes As USR_RST3_VIEW_ERP_ClientesDataTable
    
    Private tableUSR_RST3_VIEW_ERP_Fornecedores As USR_RST3_VIEW_ERP_FornecedoresDataTable
    
    Private relationFK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab As Global.System.Data.DataRelation
    
    Private relationFK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab As Global.System.Data.DataRelation
    
    Private relationMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin As Global.System.Data.DataRelation
    
    Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Sub New()
        MyBase.New
        Me.BeginInit
        Me.InitClass
        Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
        AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
        Me.EndInit
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
        MyBase.New(info, context, false)
        If (Me.IsBinarySerialized(info, context) = true) Then
            Me.InitVars(false)
            Dim schemaChangedHandler1 As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
            AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
            AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
            Return
        End If
        Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
        If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
            Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
            ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
            If (Not (ds.Tables("Mov_EncomendasCliente_Cab")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_CabDataTable(ds.Tables("Mov_EncomendasCliente_Cab")))
            End If
            If (Not (ds.Tables("Mov_EncomendasCliente_Lin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_LinDataTable(ds.Tables("Mov_EncomendasCliente_Lin")))
            End If
            If (Not (ds.Tables("Mov_EncomendasFornecedor_Cab")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasFornecedor_CabDataTable(ds.Tables("Mov_EncomendasFornecedor_Cab")))
            End If
            If (Not (ds.Tables("Mov_EncomendasFornecedor_Lin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasFornecedor_LinDataTable(ds.Tables("Mov_EncomendasFornecedor_Lin")))
            End If
            If (Not (ds.Tables("Mov_EncomendasCliente_SubLin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_SubLinDataTable(ds.Tables("Mov_EncomendasCliente_SubLin")))
            End If
            If (Not (ds.Tables("USR_RST3_VIEW_ERP_Clientes")) Is Nothing) Then
                MyBase.Tables.Add(New USR_RST3_VIEW_ERP_ClientesDataTable(ds.Tables("USR_RST3_VIEW_ERP_Clientes")))
            End If
            If (Not (ds.Tables("USR_RST3_VIEW_ERP_Fornecedores")) Is Nothing) Then
                MyBase.Tables.Add(New USR_RST3_VIEW_ERP_FornecedoresDataTable(ds.Tables("USR_RST3_VIEW_ERP_Fornecedores")))
            End If
            Me.DataSetName = ds.DataSetName
            Me.Prefix = ds.Prefix
            Me.Namespace = ds.Namespace
            Me.Locale = ds.Locale
            Me.CaseSensitive = ds.CaseSensitive
            Me.EnforceConstraints = ds.EnforceConstraints
            Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
            Me.InitVars
        Else
            Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
        End If
        Me.GetSerializationData(info, context)
        Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Mov_EncomendasCliente_Cab() As Mov_EncomendasCliente_CabDataTable
        Get
            Return Me.tableMov_EncomendasCliente_Cab
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Mov_EncomendasCliente_Lin() As Mov_EncomendasCliente_LinDataTable
        Get
            Return Me.tableMov_EncomendasCliente_Lin
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Mov_EncomendasFornecedor_Cab() As Mov_EncomendasFornecedor_CabDataTable
        Get
            Return Me.tableMov_EncomendasFornecedor_Cab
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Mov_EncomendasFornecedor_Lin() As Mov_EncomendasFornecedor_LinDataTable
        Get
            Return Me.tableMov_EncomendasFornecedor_Lin
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Mov_EncomendasCliente_SubLin() As Mov_EncomendasCliente_SubLinDataTable
        Get
            Return Me.tableMov_EncomendasCliente_SubLin
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property USR_RST3_VIEW_ERP_Clientes() As USR_RST3_VIEW_ERP_ClientesDataTable
        Get
            Return Me.tableUSR_RST3_VIEW_ERP_Clientes
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.Browsable(false),  _
     Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property USR_RST3_VIEW_ERP_Fornecedores() As USR_RST3_VIEW_ERP_FornecedoresDataTable
        Get
            Return Me.tableUSR_RST3_VIEW_ERP_Fornecedores
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.BrowsableAttribute(true),  _
     Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)>  _
    Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
        Get
            Return Me._schemaSerializationMode
        End Get
        Set
            Me._schemaSerializationMode = value
        End Set
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)>  _
    Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
        Get
            Return MyBase.Tables
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
     Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)>  _
    Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
        Get
            Return MyBase.Relations
        End Get
    End Property
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Overrides Sub InitializeDerivedDataSet()
        Me.BeginInit
        Me.InitClass
        Me.EndInit
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Overrides Function Clone() As Global.System.Data.DataSet
        Dim cln As DataSetEncomendas = CType(MyBase.Clone,DataSetEncomendas)
        cln.InitVars
        cln.SchemaSerializationMode = Me.SchemaSerializationMode
        Return cln
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Overrides Function ShouldSerializeTables() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Overrides Function ShouldSerializeRelations() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
        If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
            Me.Reset
            Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
            ds.ReadXml(reader)
            If (Not (ds.Tables("Mov_EncomendasCliente_Cab")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_CabDataTable(ds.Tables("Mov_EncomendasCliente_Cab")))
            End If
            If (Not (ds.Tables("Mov_EncomendasCliente_Lin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_LinDataTable(ds.Tables("Mov_EncomendasCliente_Lin")))
            End If
            If (Not (ds.Tables("Mov_EncomendasFornecedor_Cab")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasFornecedor_CabDataTable(ds.Tables("Mov_EncomendasFornecedor_Cab")))
            End If
            If (Not (ds.Tables("Mov_EncomendasFornecedor_Lin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasFornecedor_LinDataTable(ds.Tables("Mov_EncomendasFornecedor_Lin")))
            End If
            If (Not (ds.Tables("Mov_EncomendasCliente_SubLin")) Is Nothing) Then
                MyBase.Tables.Add(New Mov_EncomendasCliente_SubLinDataTable(ds.Tables("Mov_EncomendasCliente_SubLin")))
            End If
            If (Not (ds.Tables("USR_RST3_VIEW_ERP_Clientes")) Is Nothing) Then
                MyBase.Tables.Add(New USR_RST3_VIEW_ERP_ClientesDataTable(ds.Tables("USR_RST3_VIEW_ERP_Clientes")))
            End If
            If (Not (ds.Tables("USR_RST3_VIEW_ERP_Fornecedores")) Is Nothing) Then
                MyBase.Tables.Add(New USR_RST3_VIEW_ERP_FornecedoresDataTable(ds.Tables("USR_RST3_VIEW_ERP_Fornecedores")))
            End If
            Me.DataSetName = ds.DataSetName
            Me.Prefix = ds.Prefix
            Me.Namespace = ds.Namespace
            Me.Locale = ds.Locale
            Me.CaseSensitive = ds.CaseSensitive
            Me.EnforceConstraints = ds.EnforceConstraints
            Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
            Me.InitVars
        Else
            Me.ReadXml(reader)
            Me.InitVars
        End If
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
        Dim stream As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
        Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
        stream.Position = 0
        Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Friend Overloads Sub InitVars()
        Me.InitVars(true)
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Friend Overloads Sub InitVars(ByVal initTable As Boolean)
        Me.tableMov_EncomendasCliente_Cab = CType(MyBase.Tables("Mov_EncomendasCliente_Cab"),Mov_EncomendasCliente_CabDataTable)
        If (initTable = true) Then
            If (Not (Me.tableMov_EncomendasCliente_Cab) Is Nothing) Then
                Me.tableMov_EncomendasCliente_Cab.InitVars
            End If
        End If
        Me.tableMov_EncomendasCliente_Lin = CType(MyBase.Tables("Mov_EncomendasCliente_Lin"),Mov_EncomendasCliente_LinDataTable)
        If (initTable = true) Then
            If (Not (Me.tableMov_EncomendasCliente_Lin) Is Nothing) Then
                Me.tableMov_EncomendasCliente_Lin.InitVars
            End If
        End If
        Me.tableMov_EncomendasFornecedor_Cab = CType(MyBase.Tables("Mov_EncomendasFornecedor_Cab"),Mov_EncomendasFornecedor_CabDataTable)
        If (initTable = true) Then
            If (Not (Me.tableMov_EncomendasFornecedor_Cab) Is Nothing) Then
                Me.tableMov_EncomendasFornecedor_Cab.InitVars
            End If
        End If
        Me.tableMov_EncomendasFornecedor_Lin = CType(MyBase.Tables("Mov_EncomendasFornecedor_Lin"),Mov_EncomendasFornecedor_LinDataTable)
        If (initTable = true) Then
            If (Not (Me.tableMov_EncomendasFornecedor_Lin) Is Nothing) Then
                Me.tableMov_EncomendasFornecedor_Lin.InitVars
            End If
        End If
        Me.tableMov_EncomendasCliente_SubLin = CType(MyBase.Tables("Mov_EncomendasCliente_SubLin"),Mov_EncomendasCliente_SubLinDataTable)
        If (initTable = true) Then
            If (Not (Me.tableMov_EncomendasCliente_SubLin) Is Nothing) Then
                Me.tableMov_EncomendasCliente_SubLin.InitVars
            End If
        End If
        Me.tableUSR_RST3_VIEW_ERP_Clientes = CType(MyBase.Tables("USR_RST3_VIEW_ERP_Clientes"),USR_RST3_VIEW_ERP_ClientesDataTable)
        If (initTable = true) Then
            If (Not (Me.tableUSR_RST3_VIEW_ERP_Clientes) Is Nothing) Then
                Me.tableUSR_RST3_VIEW_ERP_Clientes.InitVars
            End If
        End If
        Me.tableUSR_RST3_VIEW_ERP_Fornecedores = CType(MyBase.Tables("USR_RST3_VIEW_ERP_Fornecedores"),USR_RST3_VIEW_ERP_FornecedoresDataTable)
        If (initTable = true) Then
            If (Not (Me.tableUSR_RST3_VIEW_ERP_Fornecedores) Is Nothing) Then
                Me.tableUSR_RST3_VIEW_ERP_Fornecedores.InitVars
            End If
        End If
        Me.relationFK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab = Me.Relations("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab")
        Me.relationFK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab = Me.Relations("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab")
        Me.relationMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin = Me.Relations("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin")
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Sub InitClass()
        Me.DataSetName = "DataSetEncomendas"
        Me.Prefix = ""
        Me.Namespace = "http://tempuri.org/DataSetEncomendas.xsd"
        Me.EnforceConstraints = true
        Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
        Me.tableMov_EncomendasCliente_Cab = New Mov_EncomendasCliente_CabDataTable()
        MyBase.Tables.Add(Me.tableMov_EncomendasCliente_Cab)
        Me.tableMov_EncomendasCliente_Lin = New Mov_EncomendasCliente_LinDataTable()
        MyBase.Tables.Add(Me.tableMov_EncomendasCliente_Lin)
        Me.tableMov_EncomendasFornecedor_Cab = New Mov_EncomendasFornecedor_CabDataTable()
        MyBase.Tables.Add(Me.tableMov_EncomendasFornecedor_Cab)
        Me.tableMov_EncomendasFornecedor_Lin = New Mov_EncomendasFornecedor_LinDataTable()
        MyBase.Tables.Add(Me.tableMov_EncomendasFornecedor_Lin)
        Me.tableMov_EncomendasCliente_SubLin = New Mov_EncomendasCliente_SubLinDataTable()
        MyBase.Tables.Add(Me.tableMov_EncomendasCliente_SubLin)
        Me.tableUSR_RST3_VIEW_ERP_Clientes = New USR_RST3_VIEW_ERP_ClientesDataTable()
        MyBase.Tables.Add(Me.tableUSR_RST3_VIEW_ERP_Clientes)
        Me.tableUSR_RST3_VIEW_ERP_Fornecedores = New USR_RST3_VIEW_ERP_FornecedoresDataTable()
        MyBase.Tables.Add(Me.tableUSR_RST3_VIEW_ERP_Fornecedores)
        Me.relationFK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab = New Global.System.Data.DataRelation("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab", New Global.System.Data.DataColumn() {Me.tableMov_EncomendasCliente_Cab.strCodEmpColumn, Me.tableMov_EncomendasCliente_Cab.strTipoDocColumn, Me.tableMov_EncomendasCliente_Cab.strAnoColumn, Me.tableMov_EncomendasCliente_Cab.intNumeroColumn}, New Global.System.Data.DataColumn() {Me.tableMov_EncomendasCliente_Lin.strCodEmpColumn, Me.tableMov_EncomendasCliente_Lin.strTipoDocColumn, Me.tableMov_EncomendasCliente_Lin.strAnoColumn, Me.tableMov_EncomendasCliente_Lin.intNumeroColumn}, false)
        Me.Relations.Add(Me.relationFK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab)
        Me.relationFK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab = New Global.System.Data.DataRelation("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab", New Global.System.Data.DataColumn() {Me.tableMov_EncomendasFornecedor_Cab.strCodEmpColumn, Me.tableMov_EncomendasFornecedor_Cab.strTipoDocColumn, Me.tableMov_EncomendasFornecedor_Cab.strAnoColumn, Me.tableMov_EncomendasFornecedor_Cab.intNumeroColumn}, New Global.System.Data.DataColumn() {Me.tableMov_EncomendasFornecedor_Lin.strCodEmpColumn, Me.tableMov_EncomendasFornecedor_Lin.strTipoDocColumn, Me.tableMov_EncomendasFornecedor_Lin.strAnoColumn, Me.tableMov_EncomendasFornecedor_Lin.intNumeroColumn}, false)
        Me.Relations.Add(Me.relationFK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab)
        Me.relationMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin = New Global.System.Data.DataRelation("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin", New Global.System.Data.DataColumn() {Me.tableMov_EncomendasCliente_Lin.strHashColumn}, New Global.System.Data.DataColumn() {Me.tableMov_EncomendasCliente_SubLin.strHashLinhaColumn}, false)
        Me.Relations.Add(Me.relationMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin)
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeMov_EncomendasCliente_Cab() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeMov_EncomendasCliente_Lin() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeMov_EncomendasFornecedor_Cab() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeMov_EncomendasFornecedor_Lin() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeMov_EncomendasCliente_SubLin() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeUSR_RST3_VIEW_ERP_Clientes() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Function ShouldSerializeUSR_RST3_VIEW_ERP_Fornecedores() As Boolean
        Return false
    End Function
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
        If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
            Me.InitVars
        End If
    End Sub
    
    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
        Dim ds As DataSetEncomendas = New DataSetEncomendas()
        Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
        Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
        Dim any As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
        any.Namespace = ds.Namespace
        sequence.Items.Add(any)
        type.Particle = sequence
        Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
        If xs.Contains(dsSchema.TargetNamespace) Then
            Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
            Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
            Try 
                Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                dsSchema.Write(s1)
                Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                Do While schemas.MoveNext
                    schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                    s2.SetLength(0)
                    schema.Write(s2)
                    If (s1.Length = s2.Length) Then
                        s1.Position = 0
                        s2.Position = 0
                        
                        Do While ((s1.Position <> s1.Length)  _
                                    AndAlso (s1.ReadByte = s2.ReadByte))
                            
                            
                        Loop
                        If (s1.Position = s1.Length) Then
                            Return type
                        End If
                    End If
                    
                Loop
            Finally
                If (Not (s1) Is Nothing) Then
                    s1.Close
                End If
                If (Not (s2) Is Nothing) Then
                    s2.Close
                End If
            End Try
        End If
        xs.Add(dsSchema)
        Return type
    End Function
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub Mov_EncomendasCliente_CabRowChangeEventHandler(ByVal sender As Object, ByVal e As Mov_EncomendasCliente_CabRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub Mov_EncomendasCliente_LinRowChangeEventHandler(ByVal sender As Object, ByVal e As Mov_EncomendasCliente_LinRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub Mov_EncomendasFornecedor_CabRowChangeEventHandler(ByVal sender As Object, ByVal e As Mov_EncomendasFornecedor_CabRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub Mov_EncomendasFornecedor_LinRowChangeEventHandler(ByVal sender As Object, ByVal e As Mov_EncomendasFornecedor_LinRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub Mov_EncomendasCliente_SubLinRowChangeEventHandler(ByVal sender As Object, ByVal e As Mov_EncomendasCliente_SubLinRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub USR_RST3_VIEW_ERP_ClientesRowChangeEventHandler(ByVal sender As Object, ByVal e As USR_RST3_VIEW_ERP_ClientesRowChangeEvent)
    
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Delegate Sub USR_RST3_VIEW_ERP_FornecedoresRowChangeEventHandler(ByVal sender As Object, ByVal e As USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent)
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class Mov_EncomendasCliente_CabDataTable
        Inherits Global.System.Data.TypedTableBase(Of Mov_EncomendasCliente_CabRow)
        
        Private columnintId As Global.System.Data.DataColumn
        
        Private columnstrCodEmp As Global.System.Data.DataColumn
        
        Private columnstrTipoDoc As Global.System.Data.DataColumn
        
        Private columnstrAno As Global.System.Data.DataColumn
        
        Private columnintNumero As Global.System.Data.DataColumn
        
        Private columnstrNumero As Global.System.Data.DataColumn
        
        Private columnstrHash As Global.System.Data.DataColumn
        
        Private columndtmDataRegisto As Global.System.Data.DataColumn
        
        Private columnstrUserRegisto As Global.System.Data.DataColumn
        
        Private columndtmData As Global.System.Data.DataColumn
        
        Private columnstrEstado As Global.System.Data.DataColumn
        
        Private columnstrCodCliente As Global.System.Data.DataColumn
        
        Private columnstrNomeCliente As Global.System.Data.DataColumn
        
        Private columndtmDataEntregaPrevista As Global.System.Data.DataColumn
        
        Private columnstrCodMoeda As Global.System.Data.DataColumn
        
        Private columnstrNomeMoeda As Global.System.Data.DataColumn
        
        Private columnfltCambio As Global.System.Data.DataColumn
        
        Private columnintDiasPag As Global.System.Data.DataColumn
        
        Private columnstrCondicaoPag As Global.System.Data.DataColumn
        
        Private columnstrMeioPag As Global.System.Data.DataColumn
        
        Private columnstrPedidoCotacao As Global.System.Data.DataColumn
        
        Private columnstrObs As Global.System.Data.DataColumn
        
        Private columnupdateStamp As Global.System.Data.DataColumn
        
        Private columnfltTotal As Global.System.Data.DataColumn
        
        Private columnbitAnulado As Global.System.Data.DataColumn
        
        Private columndtmDataAnulado As Global.System.Data.DataColumn
        
        Private columnstrUserAnulado As Global.System.Data.DataColumn
        
        Private columnstrNumExterno As Global.System.Data.DataColumn
        
        Private columndtmDataAlteracao As Global.System.Data.DataColumn
        
        Private columnstrUserAlteracao As Global.System.Data.DataColumn
        
        Private columnbitSatisfeita As Global.System.Data.DataColumn
        
        Private columndtmDataSatisfeito As Global.System.Data.DataColumn
        
        Private columnstrUserSatisfeito As Global.System.Data.DataColumn
        
        Private columndtmDataLimite As Global.System.Data.DataColumn
        
        Private columnbitPulmao As Global.System.Data.DataColumn
        
        Private columnstrPulmaoHashEnc As Global.System.Data.DataColumn
        
        Private columnstrMoradaEntrega As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Mov_EncomendasCliente_Cab"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintId
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodEmpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodEmp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoDocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoDoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strAnoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrAno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHash
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmData
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strEstadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrEstado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodClienteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodCliente
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNomeClienteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNomeCliente
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEntregaPrevistaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEntregaPrevista
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodMoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNomeMoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNomeMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltCambioColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltCambio
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intDiasPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintDiasPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCondicaoPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCondicaoPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strMeioPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrMeioPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPedidoCotacaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPedidoCotacao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strObsColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrObs
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property updateStampColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnupdateStamp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltTotalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltTotal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNumExternoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNumExterno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitSatisfeitaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitSatisfeita
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataSatisfeitoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataSatisfeito
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserSatisfeitoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserSatisfeito
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataLimiteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataLimite
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitPulmaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitPulmao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPulmaoHashEncColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPulmaoHashEnc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strMoradaEntregaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrMoradaEntrega
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As Mov_EncomendasCliente_CabRow
            Get
                Return CType(Me.Rows(index),Mov_EncomendasCliente_CabRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_CabRowChanging As Mov_EncomendasCliente_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_CabRowChanged As Mov_EncomendasCliente_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_CabRowDeleting As Mov_EncomendasCliente_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_CabRowDeleted As Mov_EncomendasCliente_CabRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddMov_EncomendasCliente_CabRow(ByVal row As Mov_EncomendasCliente_CabRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddMov_EncomendasCliente_CabRow( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Date,  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strEstado As String,  _
                    ByVal strCodCliente As String,  _
                    ByVal strNomeCliente As String,  _
                    ByVal dtmDataEntregaPrevista As Date,  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Double,  _
                    ByVal intDiasPag As Integer,  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal updateStamp() As Byte,  _
                    ByVal fltTotal As Decimal,  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Date,  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Date,  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Date,  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal dtmDataLimite As Date,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal strMoradaEntrega As String) As Mov_EncomendasCliente_CabRow
            Dim rowMov_EncomendasCliente_CabRow As Mov_EncomendasCliente_CabRow = CType(Me.NewRow,Mov_EncomendasCliente_CabRow)
            Dim columnValuesArray() As Object = New Object() {Nothing, strCodEmp, strTipoDoc, strAno, intNumero, strNumero, strHash, dtmDataRegisto, strUserRegisto, dtmData, strEstado, strCodCliente, strNomeCliente, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, dtmDataLimite, bitPulmao, strPulmaoHashEnc, strMoradaEntrega}
            rowMov_EncomendasCliente_CabRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowMov_EncomendasCliente_CabRow)
            Return rowMov_EncomendasCliente_CabRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindBystrCodEmpstrTipoDocstrAnointNumero(ByVal strCodEmp As String, ByVal strTipoDoc As String, ByVal strAno As String, ByVal intNumero As Integer) As Mov_EncomendasCliente_CabRow
            Return CType(Me.Rows.Find(New Object() {strCodEmp, strTipoDoc, strAno, intNumero}),Mov_EncomendasCliente_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As Mov_EncomendasCliente_CabDataTable = CType(MyBase.Clone,Mov_EncomendasCliente_CabDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New Mov_EncomendasCliente_CabDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnintId = MyBase.Columns("intId")
            Me.columnstrCodEmp = MyBase.Columns("strCodEmp")
            Me.columnstrTipoDoc = MyBase.Columns("strTipoDoc")
            Me.columnstrAno = MyBase.Columns("strAno")
            Me.columnintNumero = MyBase.Columns("intNumero")
            Me.columnstrNumero = MyBase.Columns("strNumero")
            Me.columnstrHash = MyBase.Columns("strHash")
            Me.columndtmDataRegisto = MyBase.Columns("dtmDataRegisto")
            Me.columnstrUserRegisto = MyBase.Columns("strUserRegisto")
            Me.columndtmData = MyBase.Columns("dtmData")
            Me.columnstrEstado = MyBase.Columns("strEstado")
            Me.columnstrCodCliente = MyBase.Columns("strCodCliente")
            Me.columnstrNomeCliente = MyBase.Columns("strNomeCliente")
            Me.columndtmDataEntregaPrevista = MyBase.Columns("dtmDataEntregaPrevista")
            Me.columnstrCodMoeda = MyBase.Columns("strCodMoeda")
            Me.columnstrNomeMoeda = MyBase.Columns("strNomeMoeda")
            Me.columnfltCambio = MyBase.Columns("fltCambio")
            Me.columnintDiasPag = MyBase.Columns("intDiasPag")
            Me.columnstrCondicaoPag = MyBase.Columns("strCondicaoPag")
            Me.columnstrMeioPag = MyBase.Columns("strMeioPag")
            Me.columnstrPedidoCotacao = MyBase.Columns("strPedidoCotacao")
            Me.columnstrObs = MyBase.Columns("strObs")
            Me.columnupdateStamp = MyBase.Columns("updateStamp")
            Me.columnfltTotal = MyBase.Columns("fltTotal")
            Me.columnbitAnulado = MyBase.Columns("bitAnulado")
            Me.columndtmDataAnulado = MyBase.Columns("dtmDataAnulado")
            Me.columnstrUserAnulado = MyBase.Columns("strUserAnulado")
            Me.columnstrNumExterno = MyBase.Columns("strNumExterno")
            Me.columndtmDataAlteracao = MyBase.Columns("dtmDataAlteracao")
            Me.columnstrUserAlteracao = MyBase.Columns("strUserAlteracao")
            Me.columnbitSatisfeita = MyBase.Columns("bitSatisfeita")
            Me.columndtmDataSatisfeito = MyBase.Columns("dtmDataSatisfeito")
            Me.columnstrUserSatisfeito = MyBase.Columns("strUserSatisfeito")
            Me.columndtmDataLimite = MyBase.Columns("dtmDataLimite")
            Me.columnbitPulmao = MyBase.Columns("bitPulmao")
            Me.columnstrPulmaoHashEnc = MyBase.Columns("strPulmaoHashEnc")
            Me.columnstrMoradaEntrega = MyBase.Columns("strMoradaEntrega")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnintId = New Global.System.Data.DataColumn("intId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintId)
            Me.columnstrCodEmp = New Global.System.Data.DataColumn("strCodEmp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodEmp)
            Me.columnstrTipoDoc = New Global.System.Data.DataColumn("strTipoDoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoDoc)
            Me.columnstrAno = New Global.System.Data.DataColumn("strAno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrAno)
            Me.columnintNumero = New Global.System.Data.DataColumn("intNumero", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintNumero)
            Me.columnstrNumero = New Global.System.Data.DataColumn("strNumero", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNumero)
            Me.columnstrHash = New Global.System.Data.DataColumn("strHash", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHash)
            Me.columndtmDataRegisto = New Global.System.Data.DataColumn("dtmDataRegisto", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataRegisto)
            Me.columnstrUserRegisto = New Global.System.Data.DataColumn("strUserRegisto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserRegisto)
            Me.columndtmData = New Global.System.Data.DataColumn("dtmData", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmData)
            Me.columnstrEstado = New Global.System.Data.DataColumn("strEstado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrEstado)
            Me.columnstrCodCliente = New Global.System.Data.DataColumn("strCodCliente", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodCliente)
            Me.columnstrNomeCliente = New Global.System.Data.DataColumn("strNomeCliente", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNomeCliente)
            Me.columndtmDataEntregaPrevista = New Global.System.Data.DataColumn("dtmDataEntregaPrevista", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEntregaPrevista)
            Me.columnstrCodMoeda = New Global.System.Data.DataColumn("strCodMoeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodMoeda)
            Me.columnstrNomeMoeda = New Global.System.Data.DataColumn("strNomeMoeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNomeMoeda)
            Me.columnfltCambio = New Global.System.Data.DataColumn("fltCambio", GetType(Double), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltCambio)
            Me.columnintDiasPag = New Global.System.Data.DataColumn("intDiasPag", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintDiasPag)
            Me.columnstrCondicaoPag = New Global.System.Data.DataColumn("strCondicaoPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCondicaoPag)
            Me.columnstrMeioPag = New Global.System.Data.DataColumn("strMeioPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrMeioPag)
            Me.columnstrPedidoCotacao = New Global.System.Data.DataColumn("strPedidoCotacao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPedidoCotacao)
            Me.columnstrObs = New Global.System.Data.DataColumn("strObs", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrObs)
            Me.columnupdateStamp = New Global.System.Data.DataColumn("updateStamp", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnupdateStamp)
            Me.columnfltTotal = New Global.System.Data.DataColumn("fltTotal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltTotal)
            Me.columnbitAnulado = New Global.System.Data.DataColumn("bitAnulado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitAnulado)
            Me.columndtmDataAnulado = New Global.System.Data.DataColumn("dtmDataAnulado", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAnulado)
            Me.columnstrUserAnulado = New Global.System.Data.DataColumn("strUserAnulado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAnulado)
            Me.columnstrNumExterno = New Global.System.Data.DataColumn("strNumExterno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNumExterno)
            Me.columndtmDataAlteracao = New Global.System.Data.DataColumn("dtmDataAlteracao", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAlteracao)
            Me.columnstrUserAlteracao = New Global.System.Data.DataColumn("strUserAlteracao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAlteracao)
            Me.columnbitSatisfeita = New Global.System.Data.DataColumn("bitSatisfeita", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitSatisfeita)
            Me.columndtmDataSatisfeito = New Global.System.Data.DataColumn("dtmDataSatisfeito", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataSatisfeito)
            Me.columnstrUserSatisfeito = New Global.System.Data.DataColumn("strUserSatisfeito", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserSatisfeito)
            Me.columndtmDataLimite = New Global.System.Data.DataColumn("dtmDataLimite", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataLimite)
            Me.columnbitPulmao = New Global.System.Data.DataColumn("bitPulmao", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitPulmao)
            Me.columnstrPulmaoHashEnc = New Global.System.Data.DataColumn("strPulmaoHashEnc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPulmaoHashEnc)
            Me.columnstrMoradaEntrega = New Global.System.Data.DataColumn("strMoradaEntrega", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrMoradaEntrega)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnstrCodEmp, Me.columnstrTipoDoc, Me.columnstrAno, Me.columnintNumero}, true))
            Me.columnintId.AutoIncrement = true
            Me.columnintId.AutoIncrementSeed = -1
            Me.columnintId.AutoIncrementStep = -1
            Me.columnintId.AllowDBNull = false
            Me.columnintId.ReadOnly = true
            Me.columnstrCodEmp.AllowDBNull = false
            Me.columnstrCodEmp.MaxLength = 2
            Me.columnstrTipoDoc.AllowDBNull = false
            Me.columnstrTipoDoc.MaxLength = 10
            Me.columnstrAno.AllowDBNull = false
            Me.columnstrAno.MaxLength = 4
            Me.columnintNumero.AllowDBNull = false
            Me.columnstrNumero.AllowDBNull = false
            Me.columnstrNumero.MaxLength = 50
            Me.columnstrHash.AllowDBNull = false
            Me.columnstrHash.MaxLength = 50
            Me.columnstrUserRegisto.MaxLength = 50
            Me.columndtmData.AllowDBNull = false
            Me.columnstrEstado.MaxLength = 50
            Me.columnstrCodCliente.AllowDBNull = false
            Me.columnstrCodCliente.MaxLength = 50
            Me.columnstrNomeCliente.AllowDBNull = false
            Me.columnstrNomeCliente.MaxLength = 50
            Me.columnstrCodMoeda.MaxLength = 50
            Me.columnstrNomeMoeda.MaxLength = 50
            Me.columnstrCondicaoPag.MaxLength = 50
            Me.columnstrMeioPag.MaxLength = 50
            Me.columnstrPedidoCotacao.MaxLength = 50
            Me.columnstrObs.MaxLength = 2147483647
            Me.columnupdateStamp.ReadOnly = true
            Me.columnbitAnulado.AllowDBNull = false
            Me.columnstrUserAnulado.MaxLength = 50
            Me.columnstrNumExterno.MaxLength = 50
            Me.columnstrUserAlteracao.MaxLength = 50
            Me.columnbitSatisfeita.AllowDBNull = false
            Me.columnstrUserSatisfeito.MaxLength = 50
            Me.columnbitPulmao.AllowDBNull = false
            Me.columnstrPulmaoHashEnc.MaxLength = 50
            Me.columnstrMoradaEntrega.MaxLength = 255
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewMov_EncomendasCliente_CabRow() As Mov_EncomendasCliente_CabRow
            Return CType(Me.NewRow,Mov_EncomendasCliente_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New Mov_EncomendasCliente_CabRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(Mov_EncomendasCliente_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Mov_EncomendasCliente_CabRowChangedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_CabRowChanged(Me, New Mov_EncomendasCliente_CabRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Mov_EncomendasCliente_CabRowChangingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_CabRowChanging(Me, New Mov_EncomendasCliente_CabRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Mov_EncomendasCliente_CabRowDeletedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_CabRowDeleted(Me, New Mov_EncomendasCliente_CabRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Mov_EncomendasCliente_CabRowDeletingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_CabRowDeleting(Me, New Mov_EncomendasCliente_CabRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveMov_EncomendasCliente_CabRow(ByVal row As Mov_EncomendasCliente_CabRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "Mov_EncomendasCliente_CabDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class Mov_EncomendasCliente_LinDataTable
        Inherits Global.System.Data.TypedTableBase(Of Mov_EncomendasCliente_LinRow)
        
        Private columnintId As Global.System.Data.DataColumn
        
        Private columnstrCodEmp As Global.System.Data.DataColumn
        
        Private columnstrTipoDoc As Global.System.Data.DataColumn
        
        Private columnstrAno As Global.System.Data.DataColumn
        
        Private columnintNumero As Global.System.Data.DataColumn
        
        Private columnintLinha As Global.System.Data.DataColumn
        
        Private columnstrHashCab As Global.System.Data.DataColumn
        
        Private columnintPosicao As Global.System.Data.DataColumn
        
        Private columnstrCodArtigo As Global.System.Data.DataColumn
        
        Private columnstrDescricaoArtigo As Global.System.Data.DataColumn
        
        Private columnstrCodUnidade As Global.System.Data.DataColumn
        
        Private columnintCasasDecimaisUN As Global.System.Data.DataColumn
        
        Private columnfltQtd As Global.System.Data.DataColumn
        
        Private columnfltQtdAnulada As Global.System.Data.DataColumn
        
        Private columnfltPrecoUnitario As Global.System.Data.DataColumn
        
        Private columnfltDesconto As Global.System.Data.DataColumn
        
        Private columnfltDescontoValor As Global.System.Data.DataColumn
        
        Private columnstrCodIVA As Global.System.Data.DataColumn
        
        Private columnfltIVA As Global.System.Data.DataColumn
        
        Private columnfltTotalLinha As Global.System.Data.DataColumn
        
        Private columndtmDataEntrega As Global.System.Data.DataColumn
        
        Private columnupdateStamp As Global.System.Data.DataColumn
        
        Private columnbitParcial As Global.System.Data.DataColumn
        
        Private columndtmDataRegisto As Global.System.Data.DataColumn
        
        Private columnstrUserRegisto As Global.System.Data.DataColumn
        
        Private columndtmDataAlteracao As Global.System.Data.DataColumn
        
        Private columnstrUserAlteracao As Global.System.Data.DataColumn
        
        Private columnintPosicaoOriginal As Global.System.Data.DataColumn
        
        Private columnfltQtdOriginal As Global.System.Data.DataColumn
        
        Private columnbitEliminado As Global.System.Data.DataColumn
        
        Private columndtmDataEliminado As Global.System.Data.DataColumn
        
        Private columnstrUserEliminado As Global.System.Data.DataColumn
        
        Private columnstrDescricaoComplementar As Global.System.Data.DataColumn
        
        Private columnstrObs As Global.System.Data.DataColumn
        
        Private columndtmDataCliente As Global.System.Data.DataColumn
        
        Private columnbitPulmao As Global.System.Data.DataColumn
        
        Private columnstrPulmaoHashEnc As Global.System.Data.DataColumn
        
        Private columnstrMoradaEntrega As Global.System.Data.DataColumn
        
        Private columnstrHash As Global.System.Data.DataColumn
        
        Private columnstrPulmaoEnc As Global.System.Data.DataColumn
        
        Private columnstrTipoMateriaProd As Global.System.Data.DataColumn
        
        Private columndtmDataAbatimento As Global.System.Data.DataColumn
        
        Private columnstrIdMoradaEntrega As Global.System.Data.DataColumn
        
        Private columnbitMoradaAlternativa As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Mov_EncomendasCliente_Lin"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintId
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodEmpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodEmp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoDocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoDoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strAnoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrAno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashCabColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHashCab
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intPosicaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintPosicao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodArtigoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodArtigo
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strDescricaoArtigoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrDescricaoArtigo
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodUnidadeColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodUnidade
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intCasasDecimaisUNColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintCasasDecimaisUN
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtd
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdAnuladaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdAnulada
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltPrecoUnitarioColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltPrecoUnitario
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltDescontoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltDesconto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltDescontoValorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltDescontoValor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodIVAColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodIVA
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltIVAColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltIVA
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltTotalLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltTotalLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEntregaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEntrega
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property updateStampColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnupdateStamp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitParcialColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitParcial
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intPosicaoOriginalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintPosicaoOriginal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdOriginalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdOriginal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strDescricaoComplementarColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrDescricaoComplementar
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strObsColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrObs
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataClienteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataCliente
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitPulmaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitPulmao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPulmaoHashEncColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPulmaoHashEnc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strMoradaEntregaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrMoradaEntrega
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHash
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPulmaoEncColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPulmaoEnc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoMateriaProdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoMateriaProd
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAbatimentoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAbatimento
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strIdMoradaEntregaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrIdMoradaEntrega
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitMoradaAlternativaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitMoradaAlternativa
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As Mov_EncomendasCliente_LinRow
            Get
                Return CType(Me.Rows(index),Mov_EncomendasCliente_LinRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_LinRowChanging As Mov_EncomendasCliente_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_LinRowChanged As Mov_EncomendasCliente_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_LinRowDeleting As Mov_EncomendasCliente_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_LinRowDeleted As Mov_EncomendasCliente_LinRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddMov_EncomendasCliente_LinRow(ByVal row As Mov_EncomendasCliente_LinRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddMov_EncomendasCliente_LinRow( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Integer,  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Decimal,  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Decimal,  _
                    ByVal fltTotalLinha As Decimal,  _
                    ByVal dtmDataEntrega As Date,  _
                    ByVal updateStamp() As Byte,  _
                    ByVal bitParcial As Boolean,  _
                    ByVal dtmDataRegisto As Date,  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Date,  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Integer,  _
                    ByVal fltQtdOriginal As Decimal,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Date,  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal strObs As String,  _
                    ByVal dtmDataCliente As Date,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strHash As String,  _
                    ByVal strPulmaoEnc As String,  _
                    ByVal strTipoMateriaProd As String,  _
                    ByVal dtmDataAbatimento As Date,  _
                    ByVal strIdMoradaEntrega As String,  _
                    ByVal bitMoradaAlternativa As Boolean) As Mov_EncomendasCliente_LinRow
            Dim rowMov_EncomendasCliente_LinRow As Mov_EncomendasCliente_LinRow = CType(Me.NewRow,Mov_EncomendasCliente_LinRow)
            Dim columnValuesArray() As Object = New Object() {Nothing, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab, intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, updateStamp, bitParcial, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComplementar, strObs, dtmDataCliente, bitPulmao, strPulmaoHashEnc, strMoradaEntrega, strHash, strPulmaoEnc, strTipoMateriaProd, dtmDataAbatimento, strIdMoradaEntrega, bitMoradaAlternativa}
            rowMov_EncomendasCliente_LinRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowMov_EncomendasCliente_LinRow)
            Return rowMov_EncomendasCliente_LinRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindBystrCodEmpstrTipoDocstrAnointNumerointLinha(ByVal strCodEmp As String, ByVal strTipoDoc As String, ByVal strAno As String, ByVal intNumero As Integer, ByVal intLinha As Integer) As Mov_EncomendasCliente_LinRow
            Return CType(Me.Rows.Find(New Object() {strCodEmp, strTipoDoc, strAno, intNumero, intLinha}),Mov_EncomendasCliente_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As Mov_EncomendasCliente_LinDataTable = CType(MyBase.Clone,Mov_EncomendasCliente_LinDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New Mov_EncomendasCliente_LinDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnintId = MyBase.Columns("intId")
            Me.columnstrCodEmp = MyBase.Columns("strCodEmp")
            Me.columnstrTipoDoc = MyBase.Columns("strTipoDoc")
            Me.columnstrAno = MyBase.Columns("strAno")
            Me.columnintNumero = MyBase.Columns("intNumero")
            Me.columnintLinha = MyBase.Columns("intLinha")
            Me.columnstrHashCab = MyBase.Columns("strHashCab")
            Me.columnintPosicao = MyBase.Columns("intPosicao")
            Me.columnstrCodArtigo = MyBase.Columns("strCodArtigo")
            Me.columnstrDescricaoArtigo = MyBase.Columns("strDescricaoArtigo")
            Me.columnstrCodUnidade = MyBase.Columns("strCodUnidade")
            Me.columnintCasasDecimaisUN = MyBase.Columns("intCasasDecimaisUN")
            Me.columnfltQtd = MyBase.Columns("fltQtd")
            Me.columnfltQtdAnulada = MyBase.Columns("fltQtdAnulada")
            Me.columnfltPrecoUnitario = MyBase.Columns("fltPrecoUnitario")
            Me.columnfltDesconto = MyBase.Columns("fltDesconto")
            Me.columnfltDescontoValor = MyBase.Columns("fltDescontoValor")
            Me.columnstrCodIVA = MyBase.Columns("strCodIVA")
            Me.columnfltIVA = MyBase.Columns("fltIVA")
            Me.columnfltTotalLinha = MyBase.Columns("fltTotalLinha")
            Me.columndtmDataEntrega = MyBase.Columns("dtmDataEntrega")
            Me.columnupdateStamp = MyBase.Columns("updateStamp")
            Me.columnbitParcial = MyBase.Columns("bitParcial")
            Me.columndtmDataRegisto = MyBase.Columns("dtmDataRegisto")
            Me.columnstrUserRegisto = MyBase.Columns("strUserRegisto")
            Me.columndtmDataAlteracao = MyBase.Columns("dtmDataAlteracao")
            Me.columnstrUserAlteracao = MyBase.Columns("strUserAlteracao")
            Me.columnintPosicaoOriginal = MyBase.Columns("intPosicaoOriginal")
            Me.columnfltQtdOriginal = MyBase.Columns("fltQtdOriginal")
            Me.columnbitEliminado = MyBase.Columns("bitEliminado")
            Me.columndtmDataEliminado = MyBase.Columns("dtmDataEliminado")
            Me.columnstrUserEliminado = MyBase.Columns("strUserEliminado")
            Me.columnstrDescricaoComplementar = MyBase.Columns("strDescricaoComplementar")
            Me.columnstrObs = MyBase.Columns("strObs")
            Me.columndtmDataCliente = MyBase.Columns("dtmDataCliente")
            Me.columnbitPulmao = MyBase.Columns("bitPulmao")
            Me.columnstrPulmaoHashEnc = MyBase.Columns("strPulmaoHashEnc")
            Me.columnstrMoradaEntrega = MyBase.Columns("strMoradaEntrega")
            Me.columnstrHash = MyBase.Columns("strHash")
            Me.columnstrPulmaoEnc = MyBase.Columns("strPulmaoEnc")
            Me.columnstrTipoMateriaProd = MyBase.Columns("strTipoMateriaProd")
            Me.columndtmDataAbatimento = MyBase.Columns("dtmDataAbatimento")
            Me.columnstrIdMoradaEntrega = MyBase.Columns("strIdMoradaEntrega")
            Me.columnbitMoradaAlternativa = MyBase.Columns("bitMoradaAlternativa")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnintId = New Global.System.Data.DataColumn("intId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintId)
            Me.columnstrCodEmp = New Global.System.Data.DataColumn("strCodEmp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodEmp)
            Me.columnstrTipoDoc = New Global.System.Data.DataColumn("strTipoDoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoDoc)
            Me.columnstrAno = New Global.System.Data.DataColumn("strAno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrAno)
            Me.columnintNumero = New Global.System.Data.DataColumn("intNumero", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintNumero)
            Me.columnintLinha = New Global.System.Data.DataColumn("intLinha", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintLinha)
            Me.columnstrHashCab = New Global.System.Data.DataColumn("strHashCab", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHashCab)
            Me.columnintPosicao = New Global.System.Data.DataColumn("intPosicao", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintPosicao)
            Me.columnstrCodArtigo = New Global.System.Data.DataColumn("strCodArtigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodArtigo)
            Me.columnstrDescricaoArtigo = New Global.System.Data.DataColumn("strDescricaoArtigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrDescricaoArtigo)
            Me.columnstrCodUnidade = New Global.System.Data.DataColumn("strCodUnidade", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodUnidade)
            Me.columnintCasasDecimaisUN = New Global.System.Data.DataColumn("intCasasDecimaisUN", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintCasasDecimaisUN)
            Me.columnfltQtd = New Global.System.Data.DataColumn("fltQtd", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtd)
            Me.columnfltQtdAnulada = New Global.System.Data.DataColumn("fltQtdAnulada", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdAnulada)
            Me.columnfltPrecoUnitario = New Global.System.Data.DataColumn("fltPrecoUnitario", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltPrecoUnitario)
            Me.columnfltDesconto = New Global.System.Data.DataColumn("fltDesconto", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltDesconto)
            Me.columnfltDescontoValor = New Global.System.Data.DataColumn("fltDescontoValor", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltDescontoValor)
            Me.columnstrCodIVA = New Global.System.Data.DataColumn("strCodIVA", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodIVA)
            Me.columnfltIVA = New Global.System.Data.DataColumn("fltIVA", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltIVA)
            Me.columnfltTotalLinha = New Global.System.Data.DataColumn("fltTotalLinha", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltTotalLinha)
            Me.columndtmDataEntrega = New Global.System.Data.DataColumn("dtmDataEntrega", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEntrega)
            Me.columnupdateStamp = New Global.System.Data.DataColumn("updateStamp", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnupdateStamp)
            Me.columnbitParcial = New Global.System.Data.DataColumn("bitParcial", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitParcial)
            Me.columndtmDataRegisto = New Global.System.Data.DataColumn("dtmDataRegisto", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataRegisto)
            Me.columnstrUserRegisto = New Global.System.Data.DataColumn("strUserRegisto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserRegisto)
            Me.columndtmDataAlteracao = New Global.System.Data.DataColumn("dtmDataAlteracao", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAlteracao)
            Me.columnstrUserAlteracao = New Global.System.Data.DataColumn("strUserAlteracao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAlteracao)
            Me.columnintPosicaoOriginal = New Global.System.Data.DataColumn("intPosicaoOriginal", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintPosicaoOriginal)
            Me.columnfltQtdOriginal = New Global.System.Data.DataColumn("fltQtdOriginal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdOriginal)
            Me.columnbitEliminado = New Global.System.Data.DataColumn("bitEliminado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitEliminado)
            Me.columndtmDataEliminado = New Global.System.Data.DataColumn("dtmDataEliminado", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEliminado)
            Me.columnstrUserEliminado = New Global.System.Data.DataColumn("strUserEliminado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserEliminado)
            Me.columnstrDescricaoComplementar = New Global.System.Data.DataColumn("strDescricaoComplementar", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrDescricaoComplementar)
            Me.columnstrObs = New Global.System.Data.DataColumn("strObs", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrObs)
            Me.columndtmDataCliente = New Global.System.Data.DataColumn("dtmDataCliente", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataCliente)
            Me.columnbitPulmao = New Global.System.Data.DataColumn("bitPulmao", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitPulmao)
            Me.columnstrPulmaoHashEnc = New Global.System.Data.DataColumn("strPulmaoHashEnc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPulmaoHashEnc)
            Me.columnstrMoradaEntrega = New Global.System.Data.DataColumn("strMoradaEntrega", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrMoradaEntrega)
            Me.columnstrHash = New Global.System.Data.DataColumn("strHash", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHash)
            Me.columnstrPulmaoEnc = New Global.System.Data.DataColumn("strPulmaoEnc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPulmaoEnc)
            Me.columnstrTipoMateriaProd = New Global.System.Data.DataColumn("strTipoMateriaProd", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoMateriaProd)
            Me.columndtmDataAbatimento = New Global.System.Data.DataColumn("dtmDataAbatimento", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAbatimento)
            Me.columnstrIdMoradaEntrega = New Global.System.Data.DataColumn("strIdMoradaEntrega", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrIdMoradaEntrega)
            Me.columnbitMoradaAlternativa = New Global.System.Data.DataColumn("bitMoradaAlternativa", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitMoradaAlternativa)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnstrCodEmp, Me.columnstrTipoDoc, Me.columnstrAno, Me.columnintNumero, Me.columnintLinha}, true))
            Me.columnintId.AutoIncrement = true
            Me.columnintId.AutoIncrementSeed = -1
            Me.columnintId.AutoIncrementStep = -1
            Me.columnintId.AllowDBNull = false
            Me.columnintId.ReadOnly = true
            Me.columnstrCodEmp.AllowDBNull = false
            Me.columnstrCodEmp.MaxLength = 2
            Me.columnstrTipoDoc.AllowDBNull = false
            Me.columnstrTipoDoc.MaxLength = 10
            Me.columnstrAno.AllowDBNull = false
            Me.columnstrAno.MaxLength = 4
            Me.columnintNumero.AllowDBNull = false
            Me.columnintLinha.AllowDBNull = false
            Me.columnstrHashCab.MaxLength = 50
            Me.columnintPosicao.AllowDBNull = false
            Me.columnstrCodArtigo.MaxLength = 50
            Me.columnstrDescricaoArtigo.MaxLength = 255
            Me.columnstrCodUnidade.MaxLength = 50
            Me.columnfltQtd.AllowDBNull = false
            Me.columnfltQtdAnulada.AllowDBNull = false
            Me.columnfltDesconto.AllowDBNull = false
            Me.columnstrCodIVA.MaxLength = 50
            Me.columnupdateStamp.ReadOnly = true
            Me.columnbitParcial.AllowDBNull = false
            Me.columnstrUserRegisto.MaxLength = 50
            Me.columnstrUserAlteracao.MaxLength = 50
            Me.columnbitEliminado.AllowDBNull = false
            Me.columnstrUserEliminado.MaxLength = 50
            Me.columnstrDescricaoComplementar.MaxLength = 255
            Me.columnstrObs.MaxLength = 255
            Me.columnbitPulmao.AllowDBNull = false
            Me.columnstrPulmaoHashEnc.MaxLength = 50
            Me.columnstrMoradaEntrega.MaxLength = 255
            Me.columnstrHash.MaxLength = 50
            Me.columnstrPulmaoEnc.MaxLength = 50
            Me.columnstrTipoMateriaProd.MaxLength = 50
            Me.columnstrIdMoradaEntrega.MaxLength = 50
            Me.columnbitMoradaAlternativa.AllowDBNull = false
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewMov_EncomendasCliente_LinRow() As Mov_EncomendasCliente_LinRow
            Return CType(Me.NewRow,Mov_EncomendasCliente_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New Mov_EncomendasCliente_LinRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(Mov_EncomendasCliente_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Mov_EncomendasCliente_LinRowChangedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_LinRowChanged(Me, New Mov_EncomendasCliente_LinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Mov_EncomendasCliente_LinRowChangingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_LinRowChanging(Me, New Mov_EncomendasCliente_LinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Mov_EncomendasCliente_LinRowDeletedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_LinRowDeleted(Me, New Mov_EncomendasCliente_LinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Mov_EncomendasCliente_LinRowDeletingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_LinRowDeleting(Me, New Mov_EncomendasCliente_LinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveMov_EncomendasCliente_LinRow(ByVal row As Mov_EncomendasCliente_LinRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "Mov_EncomendasCliente_LinDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class Mov_EncomendasFornecedor_CabDataTable
        Inherits Global.System.Data.TypedTableBase(Of Mov_EncomendasFornecedor_CabRow)
        
        Private columnintId As Global.System.Data.DataColumn
        
        Private columnstrCodEmp As Global.System.Data.DataColumn
        
        Private columnstrTipoDoc As Global.System.Data.DataColumn
        
        Private columnstrAno As Global.System.Data.DataColumn
        
        Private columnintNumero As Global.System.Data.DataColumn
        
        Private columnstrNumero As Global.System.Data.DataColumn
        
        Private columnstrHash As Global.System.Data.DataColumn
        
        Private columndtmDataRegisto As Global.System.Data.DataColumn
        
        Private columnstrUserRegisto As Global.System.Data.DataColumn
        
        Private columndtmData As Global.System.Data.DataColumn
        
        Private columnstrCodFornecedor As Global.System.Data.DataColumn
        
        Private columnstrNomeFornecedor As Global.System.Data.DataColumn
        
        Private columnstrPropostaFornecedor As Global.System.Data.DataColumn
        
        Private columndtmDataEntregaPrevista As Global.System.Data.DataColumn
        
        Private columnstrCodMoeda As Global.System.Data.DataColumn
        
        Private columnstrNomeMoeda As Global.System.Data.DataColumn
        
        Private columnfltCambio As Global.System.Data.DataColumn
        
        Private columnintContrato As Global.System.Data.DataColumn
        
        Private columnintDiasPag As Global.System.Data.DataColumn
        
        Private columnstrCondicaoPag As Global.System.Data.DataColumn
        
        Private columnstrMeioPag As Global.System.Data.DataColumn
        
        Private columnstrPedidoCotacao As Global.System.Data.DataColumn
        
        Private columnstrObs As Global.System.Data.DataColumn
        
        Private columnupdateStamp As Global.System.Data.DataColumn
        
        Private columnfltTotal As Global.System.Data.DataColumn
        
        Private columnbitAnulado As Global.System.Data.DataColumn
        
        Private columndtmDataAnulado As Global.System.Data.DataColumn
        
        Private columnstrUserAnulado As Global.System.Data.DataColumn
        
        Private columnstrNumExterno As Global.System.Data.DataColumn
        
        Private columndtmDataAlteracao As Global.System.Data.DataColumn
        
        Private columnstrUserAlteracao As Global.System.Data.DataColumn
        
        Private columnbitSatisfeita As Global.System.Data.DataColumn
        
        Private columndtmDataSatisfeito As Global.System.Data.DataColumn
        
        Private columnstrUserSatisfeito As Global.System.Data.DataColumn
        
        Private columnintIdEstado As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Mov_EncomendasFornecedor_Cab"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintId
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodEmpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodEmp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoDocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoDoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strAnoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrAno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHash
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmData
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodFornecedorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodFornecedor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNomeFornecedorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNomeFornecedor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPropostaFornecedorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPropostaFornecedor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEntregaPrevistaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEntregaPrevista
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodMoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNomeMoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNomeMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltCambioColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltCambio
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intContratoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintContrato
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intDiasPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintDiasPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCondicaoPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCondicaoPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strMeioPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrMeioPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strPedidoCotacaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrPedidoCotacao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strObsColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrObs
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property updateStampColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnupdateStamp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltTotalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltTotal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strNumExternoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrNumExterno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitSatisfeitaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitSatisfeita
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataSatisfeitoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataSatisfeito
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserSatisfeitoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserSatisfeito
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdEstadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintIdEstado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As Mov_EncomendasFornecedor_CabRow
            Get
                Return CType(Me.Rows(index),Mov_EncomendasFornecedor_CabRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_CabRowChanging As Mov_EncomendasFornecedor_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_CabRowChanged As Mov_EncomendasFornecedor_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_CabRowDeleting As Mov_EncomendasFornecedor_CabRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_CabRowDeleted As Mov_EncomendasFornecedor_CabRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddMov_EncomendasFornecedor_CabRow(ByVal row As Mov_EncomendasFornecedor_CabRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddMov_EncomendasFornecedor_CabRow( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Date,  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strCodFornecedor As String,  _
                    ByVal strNomeFornecedor As String,  _
                    ByVal strPropostaFornecedor As String,  _
                    ByVal dtmDataEntregaPrevista As Date,  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Double,  _
                    ByVal intContrato As Integer,  _
                    ByVal intDiasPag As Integer,  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal updateStamp() As Byte,  _
                    ByVal fltTotal As Decimal,  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Date,  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Date,  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Date,  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal intIdEstado As Integer) As Mov_EncomendasFornecedor_CabRow
            Dim rowMov_EncomendasFornecedor_CabRow As Mov_EncomendasFornecedor_CabRow = CType(Me.NewRow,Mov_EncomendasFornecedor_CabRow)
            Dim columnValuesArray() As Object = New Object() {Nothing, strCodEmp, strTipoDoc, strAno, intNumero, strNumero, strHash, dtmDataRegisto, strUserRegisto, dtmData, strCodFornecedor, strNomeFornecedor, strPropostaFornecedor, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intContrato, intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, intIdEstado}
            rowMov_EncomendasFornecedor_CabRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowMov_EncomendasFornecedor_CabRow)
            Return rowMov_EncomendasFornecedor_CabRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindBystrCodEmpstrTipoDocstrAnointNumero(ByVal strCodEmp As String, ByVal strTipoDoc As String, ByVal strAno As String, ByVal intNumero As Integer) As Mov_EncomendasFornecedor_CabRow
            Return CType(Me.Rows.Find(New Object() {strCodEmp, strTipoDoc, strAno, intNumero}),Mov_EncomendasFornecedor_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As Mov_EncomendasFornecedor_CabDataTable = CType(MyBase.Clone,Mov_EncomendasFornecedor_CabDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New Mov_EncomendasFornecedor_CabDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnintId = MyBase.Columns("intId")
            Me.columnstrCodEmp = MyBase.Columns("strCodEmp")
            Me.columnstrTipoDoc = MyBase.Columns("strTipoDoc")
            Me.columnstrAno = MyBase.Columns("strAno")
            Me.columnintNumero = MyBase.Columns("intNumero")
            Me.columnstrNumero = MyBase.Columns("strNumero")
            Me.columnstrHash = MyBase.Columns("strHash")
            Me.columndtmDataRegisto = MyBase.Columns("dtmDataRegisto")
            Me.columnstrUserRegisto = MyBase.Columns("strUserRegisto")
            Me.columndtmData = MyBase.Columns("dtmData")
            Me.columnstrCodFornecedor = MyBase.Columns("strCodFornecedor")
            Me.columnstrNomeFornecedor = MyBase.Columns("strNomeFornecedor")
            Me.columnstrPropostaFornecedor = MyBase.Columns("strPropostaFornecedor")
            Me.columndtmDataEntregaPrevista = MyBase.Columns("dtmDataEntregaPrevista")
            Me.columnstrCodMoeda = MyBase.Columns("strCodMoeda")
            Me.columnstrNomeMoeda = MyBase.Columns("strNomeMoeda")
            Me.columnfltCambio = MyBase.Columns("fltCambio")
            Me.columnintContrato = MyBase.Columns("intContrato")
            Me.columnintDiasPag = MyBase.Columns("intDiasPag")
            Me.columnstrCondicaoPag = MyBase.Columns("strCondicaoPag")
            Me.columnstrMeioPag = MyBase.Columns("strMeioPag")
            Me.columnstrPedidoCotacao = MyBase.Columns("strPedidoCotacao")
            Me.columnstrObs = MyBase.Columns("strObs")
            Me.columnupdateStamp = MyBase.Columns("updateStamp")
            Me.columnfltTotal = MyBase.Columns("fltTotal")
            Me.columnbitAnulado = MyBase.Columns("bitAnulado")
            Me.columndtmDataAnulado = MyBase.Columns("dtmDataAnulado")
            Me.columnstrUserAnulado = MyBase.Columns("strUserAnulado")
            Me.columnstrNumExterno = MyBase.Columns("strNumExterno")
            Me.columndtmDataAlteracao = MyBase.Columns("dtmDataAlteracao")
            Me.columnstrUserAlteracao = MyBase.Columns("strUserAlteracao")
            Me.columnbitSatisfeita = MyBase.Columns("bitSatisfeita")
            Me.columndtmDataSatisfeito = MyBase.Columns("dtmDataSatisfeito")
            Me.columnstrUserSatisfeito = MyBase.Columns("strUserSatisfeito")
            Me.columnintIdEstado = MyBase.Columns("intIdEstado")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnintId = New Global.System.Data.DataColumn("intId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintId)
            Me.columnstrCodEmp = New Global.System.Data.DataColumn("strCodEmp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodEmp)
            Me.columnstrTipoDoc = New Global.System.Data.DataColumn("strTipoDoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoDoc)
            Me.columnstrAno = New Global.System.Data.DataColumn("strAno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrAno)
            Me.columnintNumero = New Global.System.Data.DataColumn("intNumero", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintNumero)
            Me.columnstrNumero = New Global.System.Data.DataColumn("strNumero", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNumero)
            Me.columnstrHash = New Global.System.Data.DataColumn("strHash", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHash)
            Me.columndtmDataRegisto = New Global.System.Data.DataColumn("dtmDataRegisto", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataRegisto)
            Me.columnstrUserRegisto = New Global.System.Data.DataColumn("strUserRegisto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserRegisto)
            Me.columndtmData = New Global.System.Data.DataColumn("dtmData", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmData)
            Me.columnstrCodFornecedor = New Global.System.Data.DataColumn("strCodFornecedor", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodFornecedor)
            Me.columnstrNomeFornecedor = New Global.System.Data.DataColumn("strNomeFornecedor", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNomeFornecedor)
            Me.columnstrPropostaFornecedor = New Global.System.Data.DataColumn("strPropostaFornecedor", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPropostaFornecedor)
            Me.columndtmDataEntregaPrevista = New Global.System.Data.DataColumn("dtmDataEntregaPrevista", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEntregaPrevista)
            Me.columnstrCodMoeda = New Global.System.Data.DataColumn("strCodMoeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodMoeda)
            Me.columnstrNomeMoeda = New Global.System.Data.DataColumn("strNomeMoeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNomeMoeda)
            Me.columnfltCambio = New Global.System.Data.DataColumn("fltCambio", GetType(Double), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltCambio)
            Me.columnintContrato = New Global.System.Data.DataColumn("intContrato", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintContrato)
            Me.columnintDiasPag = New Global.System.Data.DataColumn("intDiasPag", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintDiasPag)
            Me.columnstrCondicaoPag = New Global.System.Data.DataColumn("strCondicaoPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCondicaoPag)
            Me.columnstrMeioPag = New Global.System.Data.DataColumn("strMeioPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrMeioPag)
            Me.columnstrPedidoCotacao = New Global.System.Data.DataColumn("strPedidoCotacao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrPedidoCotacao)
            Me.columnstrObs = New Global.System.Data.DataColumn("strObs", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrObs)
            Me.columnupdateStamp = New Global.System.Data.DataColumn("updateStamp", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnupdateStamp)
            Me.columnfltTotal = New Global.System.Data.DataColumn("fltTotal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltTotal)
            Me.columnbitAnulado = New Global.System.Data.DataColumn("bitAnulado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitAnulado)
            Me.columndtmDataAnulado = New Global.System.Data.DataColumn("dtmDataAnulado", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAnulado)
            Me.columnstrUserAnulado = New Global.System.Data.DataColumn("strUserAnulado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAnulado)
            Me.columnstrNumExterno = New Global.System.Data.DataColumn("strNumExterno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrNumExterno)
            Me.columndtmDataAlteracao = New Global.System.Data.DataColumn("dtmDataAlteracao", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAlteracao)
            Me.columnstrUserAlteracao = New Global.System.Data.DataColumn("strUserAlteracao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAlteracao)
            Me.columnbitSatisfeita = New Global.System.Data.DataColumn("bitSatisfeita", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitSatisfeita)
            Me.columndtmDataSatisfeito = New Global.System.Data.DataColumn("dtmDataSatisfeito", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataSatisfeito)
            Me.columnstrUserSatisfeito = New Global.System.Data.DataColumn("strUserSatisfeito", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserSatisfeito)
            Me.columnintIdEstado = New Global.System.Data.DataColumn("intIdEstado", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintIdEstado)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnstrCodEmp, Me.columnstrTipoDoc, Me.columnstrAno, Me.columnintNumero}, true))
            Me.columnintId.AutoIncrement = true
            Me.columnintId.AutoIncrementSeed = -1
            Me.columnintId.AutoIncrementStep = -1
            Me.columnintId.AllowDBNull = false
            Me.columnintId.ReadOnly = true
            Me.columnstrCodEmp.AllowDBNull = false
            Me.columnstrCodEmp.MaxLength = 2
            Me.columnstrTipoDoc.AllowDBNull = false
            Me.columnstrTipoDoc.MaxLength = 10
            Me.columnstrAno.AllowDBNull = false
            Me.columnstrAno.MaxLength = 4
            Me.columnintNumero.AllowDBNull = false
            Me.columnstrNumero.AllowDBNull = false
            Me.columnstrNumero.MaxLength = 50
            Me.columnstrHash.AllowDBNull = false
            Me.columnstrHash.MaxLength = 50
            Me.columnstrUserRegisto.MaxLength = 50
            Me.columndtmData.AllowDBNull = false
            Me.columnstrCodFornecedor.AllowDBNull = false
            Me.columnstrCodFornecedor.MaxLength = 50
            Me.columnstrNomeFornecedor.AllowDBNull = false
            Me.columnstrNomeFornecedor.MaxLength = 50
            Me.columnstrPropostaFornecedor.MaxLength = 50
            Me.columnstrCodMoeda.MaxLength = 50
            Me.columnstrNomeMoeda.MaxLength = 50
            Me.columnstrCondicaoPag.MaxLength = 50
            Me.columnstrMeioPag.MaxLength = 50
            Me.columnstrPedidoCotacao.MaxLength = 50
            Me.columnstrObs.MaxLength = 2147483647
            Me.columnupdateStamp.ReadOnly = true
            Me.columnbitAnulado.AllowDBNull = false
            Me.columnstrUserAnulado.MaxLength = 50
            Me.columnstrNumExterno.MaxLength = 50
            Me.columnstrUserAlteracao.MaxLength = 50
            Me.columnbitSatisfeita.AllowDBNull = false
            Me.columnstrUserSatisfeito.MaxLength = 50
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewMov_EncomendasFornecedor_CabRow() As Mov_EncomendasFornecedor_CabRow
            Return CType(Me.NewRow,Mov_EncomendasFornecedor_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New Mov_EncomendasFornecedor_CabRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(Mov_EncomendasFornecedor_CabRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Mov_EncomendasFornecedor_CabRowChangedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_CabRowChanged(Me, New Mov_EncomendasFornecedor_CabRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Mov_EncomendasFornecedor_CabRowChangingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_CabRowChanging(Me, New Mov_EncomendasFornecedor_CabRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Mov_EncomendasFornecedor_CabRowDeletedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_CabRowDeleted(Me, New Mov_EncomendasFornecedor_CabRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Mov_EncomendasFornecedor_CabRowDeletingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_CabRowDeleting(Me, New Mov_EncomendasFornecedor_CabRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_CabRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveMov_EncomendasFornecedor_CabRow(ByVal row As Mov_EncomendasFornecedor_CabRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "Mov_EncomendasFornecedor_CabDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class Mov_EncomendasFornecedor_LinDataTable
        Inherits Global.System.Data.TypedTableBase(Of Mov_EncomendasFornecedor_LinRow)
        
        Private columnintId As Global.System.Data.DataColumn
        
        Private columnstrCodEmp As Global.System.Data.DataColumn
        
        Private columnstrTipoDoc As Global.System.Data.DataColumn
        
        Private columnstrAno As Global.System.Data.DataColumn
        
        Private columnintNumero As Global.System.Data.DataColumn
        
        Private columnintLinha As Global.System.Data.DataColumn
        
        Private columnstrHashCab As Global.System.Data.DataColumn
        
        Private columnintPosicao As Global.System.Data.DataColumn
        
        Private columnstrCodArtigo As Global.System.Data.DataColumn
        
        Private columnstrDescricaoArtigo As Global.System.Data.DataColumn
        
        Private columnstrCodUnidade As Global.System.Data.DataColumn
        
        Private columnintCasasDecimaisUN As Global.System.Data.DataColumn
        
        Private columnfltQtd As Global.System.Data.DataColumn
        
        Private columnfltQtdAnulada As Global.System.Data.DataColumn
        
        Private columnfltPrecoUnitario As Global.System.Data.DataColumn
        
        Private columnfltDesconto As Global.System.Data.DataColumn
        
        Private columnfltDescontoValor As Global.System.Data.DataColumn
        
        Private columnstrCodIVA As Global.System.Data.DataColumn
        
        Private columnfltIVA As Global.System.Data.DataColumn
        
        Private columnfltTotalLinha As Global.System.Data.DataColumn
        
        Private columndtmDataEntrega As Global.System.Data.DataColumn
        
        Private columnstrRequisicao As Global.System.Data.DataColumn
        
        Private columnstrRequisitante As Global.System.Data.DataColumn
        
        Private columnupdateStamp As Global.System.Data.DataColumn
        
        Private columnbitParcial As Global.System.Data.DataColumn
        
        Private columnfltQtdRequisitada As Global.System.Data.DataColumn
        
        Private columndtmDataRegisto As Global.System.Data.DataColumn
        
        Private columnstrUserRegisto As Global.System.Data.DataColumn
        
        Private columndtmDataAlteracao As Global.System.Data.DataColumn
        
        Private columnstrUserAlteracao As Global.System.Data.DataColumn
        
        Private columnintPosicaoOriginal As Global.System.Data.DataColumn
        
        Private columnfltQtdOriginal As Global.System.Data.DataColumn
        
        Private columnbitEliminado As Global.System.Data.DataColumn
        
        Private columndtmDataEliminado As Global.System.Data.DataColumn
        
        Private columnstrUserEliminado As Global.System.Data.DataColumn
        
        Private columnstrDescricaoComplementar As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Mov_EncomendasFornecedor_Lin"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintId
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodEmpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodEmp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoDocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoDoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strAnoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrAno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashCabColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHashCab
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intPosicaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintPosicao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodArtigoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodArtigo
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strDescricaoArtigoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrDescricaoArtigo
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodUnidadeColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodUnidade
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intCasasDecimaisUNColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintCasasDecimaisUN
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtd
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdAnuladaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdAnulada
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltPrecoUnitarioColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltPrecoUnitario
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltDescontoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltDesconto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltDescontoValorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltDescontoValor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodIVAColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodIVA
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltIVAColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltIVA
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltTotalLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltTotalLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEntregaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEntrega
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strRequisicaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrRequisicao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strRequisitanteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrRequisitante
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property updateStampColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnupdateStamp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitParcialColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitParcial
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdRequisitadaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdRequisitada
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intPosicaoOriginalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintPosicaoOriginal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdOriginalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdOriginal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strDescricaoComplementarColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrDescricaoComplementar
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As Mov_EncomendasFornecedor_LinRow
            Get
                Return CType(Me.Rows(index),Mov_EncomendasFornecedor_LinRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_LinRowChanging As Mov_EncomendasFornecedor_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_LinRowChanged As Mov_EncomendasFornecedor_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_LinRowDeleting As Mov_EncomendasFornecedor_LinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasFornecedor_LinRowDeleted As Mov_EncomendasFornecedor_LinRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddMov_EncomendasFornecedor_LinRow(ByVal row As Mov_EncomendasFornecedor_LinRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddMov_EncomendasFornecedor_LinRow( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Integer,  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Decimal,  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Decimal,  _
                    ByVal fltTotalLinha As Decimal,  _
                    ByVal dtmDataEntrega As Date,  _
                    ByVal strRequisicao As String,  _
                    ByVal strRequisitante As String,  _
                    ByVal updateStamp() As Byte,  _
                    ByVal bitParcial As Boolean,  _
                    ByVal fltQtdRequisitada As Decimal,  _
                    ByVal dtmDataRegisto As Date,  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Date,  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Integer,  _
                    ByVal fltQtdOriginal As Decimal,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Date,  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String) As Mov_EncomendasFornecedor_LinRow
            Dim rowMov_EncomendasFornecedor_LinRow As Mov_EncomendasFornecedor_LinRow = CType(Me.NewRow,Mov_EncomendasFornecedor_LinRow)
            Dim columnValuesArray() As Object = New Object() {Nothing, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab, intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, strRequisicao, strRequisitante, updateStamp, bitParcial, fltQtdRequisitada, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComplementar}
            rowMov_EncomendasFornecedor_LinRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowMov_EncomendasFornecedor_LinRow)
            Return rowMov_EncomendasFornecedor_LinRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindBystrCodEmpstrTipoDocstrAnointNumerointLinha(ByVal strCodEmp As String, ByVal strTipoDoc As String, ByVal strAno As String, ByVal intNumero As Integer, ByVal intLinha As Integer) As Mov_EncomendasFornecedor_LinRow
            Return CType(Me.Rows.Find(New Object() {strCodEmp, strTipoDoc, strAno, intNumero, intLinha}),Mov_EncomendasFornecedor_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As Mov_EncomendasFornecedor_LinDataTable = CType(MyBase.Clone,Mov_EncomendasFornecedor_LinDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New Mov_EncomendasFornecedor_LinDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnintId = MyBase.Columns("intId")
            Me.columnstrCodEmp = MyBase.Columns("strCodEmp")
            Me.columnstrTipoDoc = MyBase.Columns("strTipoDoc")
            Me.columnstrAno = MyBase.Columns("strAno")
            Me.columnintNumero = MyBase.Columns("intNumero")
            Me.columnintLinha = MyBase.Columns("intLinha")
            Me.columnstrHashCab = MyBase.Columns("strHashCab")
            Me.columnintPosicao = MyBase.Columns("intPosicao")
            Me.columnstrCodArtigo = MyBase.Columns("strCodArtigo")
            Me.columnstrDescricaoArtigo = MyBase.Columns("strDescricaoArtigo")
            Me.columnstrCodUnidade = MyBase.Columns("strCodUnidade")
            Me.columnintCasasDecimaisUN = MyBase.Columns("intCasasDecimaisUN")
            Me.columnfltQtd = MyBase.Columns("fltQtd")
            Me.columnfltQtdAnulada = MyBase.Columns("fltQtdAnulada")
            Me.columnfltPrecoUnitario = MyBase.Columns("fltPrecoUnitario")
            Me.columnfltDesconto = MyBase.Columns("fltDesconto")
            Me.columnfltDescontoValor = MyBase.Columns("fltDescontoValor")
            Me.columnstrCodIVA = MyBase.Columns("strCodIVA")
            Me.columnfltIVA = MyBase.Columns("fltIVA")
            Me.columnfltTotalLinha = MyBase.Columns("fltTotalLinha")
            Me.columndtmDataEntrega = MyBase.Columns("dtmDataEntrega")
            Me.columnstrRequisicao = MyBase.Columns("strRequisicao")
            Me.columnstrRequisitante = MyBase.Columns("strRequisitante")
            Me.columnupdateStamp = MyBase.Columns("updateStamp")
            Me.columnbitParcial = MyBase.Columns("bitParcial")
            Me.columnfltQtdRequisitada = MyBase.Columns("fltQtdRequisitada")
            Me.columndtmDataRegisto = MyBase.Columns("dtmDataRegisto")
            Me.columnstrUserRegisto = MyBase.Columns("strUserRegisto")
            Me.columndtmDataAlteracao = MyBase.Columns("dtmDataAlteracao")
            Me.columnstrUserAlteracao = MyBase.Columns("strUserAlteracao")
            Me.columnintPosicaoOriginal = MyBase.Columns("intPosicaoOriginal")
            Me.columnfltQtdOriginal = MyBase.Columns("fltQtdOriginal")
            Me.columnbitEliminado = MyBase.Columns("bitEliminado")
            Me.columndtmDataEliminado = MyBase.Columns("dtmDataEliminado")
            Me.columnstrUserEliminado = MyBase.Columns("strUserEliminado")
            Me.columnstrDescricaoComplementar = MyBase.Columns("strDescricaoComplementar")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnintId = New Global.System.Data.DataColumn("intId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintId)
            Me.columnstrCodEmp = New Global.System.Data.DataColumn("strCodEmp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodEmp)
            Me.columnstrTipoDoc = New Global.System.Data.DataColumn("strTipoDoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoDoc)
            Me.columnstrAno = New Global.System.Data.DataColumn("strAno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrAno)
            Me.columnintNumero = New Global.System.Data.DataColumn("intNumero", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintNumero)
            Me.columnintLinha = New Global.System.Data.DataColumn("intLinha", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintLinha)
            Me.columnstrHashCab = New Global.System.Data.DataColumn("strHashCab", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHashCab)
            Me.columnintPosicao = New Global.System.Data.DataColumn("intPosicao", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintPosicao)
            Me.columnstrCodArtigo = New Global.System.Data.DataColumn("strCodArtigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodArtigo)
            Me.columnstrDescricaoArtigo = New Global.System.Data.DataColumn("strDescricaoArtigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrDescricaoArtigo)
            Me.columnstrCodUnidade = New Global.System.Data.DataColumn("strCodUnidade", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodUnidade)
            Me.columnintCasasDecimaisUN = New Global.System.Data.DataColumn("intCasasDecimaisUN", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintCasasDecimaisUN)
            Me.columnfltQtd = New Global.System.Data.DataColumn("fltQtd", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtd)
            Me.columnfltQtdAnulada = New Global.System.Data.DataColumn("fltQtdAnulada", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdAnulada)
            Me.columnfltPrecoUnitario = New Global.System.Data.DataColumn("fltPrecoUnitario", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltPrecoUnitario)
            Me.columnfltDesconto = New Global.System.Data.DataColumn("fltDesconto", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltDesconto)
            Me.columnfltDescontoValor = New Global.System.Data.DataColumn("fltDescontoValor", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltDescontoValor)
            Me.columnstrCodIVA = New Global.System.Data.DataColumn("strCodIVA", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodIVA)
            Me.columnfltIVA = New Global.System.Data.DataColumn("fltIVA", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltIVA)
            Me.columnfltTotalLinha = New Global.System.Data.DataColumn("fltTotalLinha", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltTotalLinha)
            Me.columndtmDataEntrega = New Global.System.Data.DataColumn("dtmDataEntrega", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEntrega)
            Me.columnstrRequisicao = New Global.System.Data.DataColumn("strRequisicao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrRequisicao)
            Me.columnstrRequisitante = New Global.System.Data.DataColumn("strRequisitante", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrRequisitante)
            Me.columnupdateStamp = New Global.System.Data.DataColumn("updateStamp", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnupdateStamp)
            Me.columnbitParcial = New Global.System.Data.DataColumn("bitParcial", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitParcial)
            Me.columnfltQtdRequisitada = New Global.System.Data.DataColumn("fltQtdRequisitada", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdRequisitada)
            Me.columndtmDataRegisto = New Global.System.Data.DataColumn("dtmDataRegisto", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataRegisto)
            Me.columnstrUserRegisto = New Global.System.Data.DataColumn("strUserRegisto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserRegisto)
            Me.columndtmDataAlteracao = New Global.System.Data.DataColumn("dtmDataAlteracao", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAlteracao)
            Me.columnstrUserAlteracao = New Global.System.Data.DataColumn("strUserAlteracao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAlteracao)
            Me.columnintPosicaoOriginal = New Global.System.Data.DataColumn("intPosicaoOriginal", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintPosicaoOriginal)
            Me.columnfltQtdOriginal = New Global.System.Data.DataColumn("fltQtdOriginal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdOriginal)
            Me.columnbitEliminado = New Global.System.Data.DataColumn("bitEliminado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitEliminado)
            Me.columndtmDataEliminado = New Global.System.Data.DataColumn("dtmDataEliminado", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEliminado)
            Me.columnstrUserEliminado = New Global.System.Data.DataColumn("strUserEliminado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserEliminado)
            Me.columnstrDescricaoComplementar = New Global.System.Data.DataColumn("strDescricaoComplementar", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrDescricaoComplementar)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnstrCodEmp, Me.columnstrTipoDoc, Me.columnstrAno, Me.columnintNumero, Me.columnintLinha}, true))
            Me.columnintId.AutoIncrement = true
            Me.columnintId.AutoIncrementSeed = -1
            Me.columnintId.AutoIncrementStep = -1
            Me.columnintId.AllowDBNull = false
            Me.columnintId.ReadOnly = true
            Me.columnstrCodEmp.AllowDBNull = false
            Me.columnstrCodEmp.MaxLength = 2
            Me.columnstrTipoDoc.AllowDBNull = false
            Me.columnstrTipoDoc.MaxLength = 10
            Me.columnstrAno.AllowDBNull = false
            Me.columnstrAno.MaxLength = 4
            Me.columnintNumero.AllowDBNull = false
            Me.columnintLinha.AllowDBNull = false
            Me.columnstrHashCab.MaxLength = 50
            Me.columnintPosicao.AllowDBNull = false
            Me.columnstrCodArtigo.MaxLength = 50
            Me.columnstrDescricaoArtigo.MaxLength = 255
            Me.columnstrCodUnidade.MaxLength = 50
            Me.columnfltQtd.AllowDBNull = false
            Me.columnfltQtdAnulada.AllowDBNull = false
            Me.columnfltDesconto.AllowDBNull = false
            Me.columnstrCodIVA.MaxLength = 50
            Me.columnstrRequisicao.MaxLength = 50
            Me.columnstrRequisitante.MaxLength = 50
            Me.columnupdateStamp.ReadOnly = true
            Me.columnbitParcial.AllowDBNull = false
            Me.columnstrUserRegisto.MaxLength = 50
            Me.columnstrUserAlteracao.MaxLength = 50
            Me.columnbitEliminado.AllowDBNull = false
            Me.columnstrUserEliminado.MaxLength = 50
            Me.columnstrDescricaoComplementar.MaxLength = 255
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewMov_EncomendasFornecedor_LinRow() As Mov_EncomendasFornecedor_LinRow
            Return CType(Me.NewRow,Mov_EncomendasFornecedor_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New Mov_EncomendasFornecedor_LinRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(Mov_EncomendasFornecedor_LinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Mov_EncomendasFornecedor_LinRowChangedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_LinRowChanged(Me, New Mov_EncomendasFornecedor_LinRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Mov_EncomendasFornecedor_LinRowChangingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_LinRowChanging(Me, New Mov_EncomendasFornecedor_LinRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Mov_EncomendasFornecedor_LinRowDeletedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_LinRowDeleted(Me, New Mov_EncomendasFornecedor_LinRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Mov_EncomendasFornecedor_LinRowDeletingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasFornecedor_LinRowDeleting(Me, New Mov_EncomendasFornecedor_LinRowChangeEvent(CType(e.Row,Mov_EncomendasFornecedor_LinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveMov_EncomendasFornecedor_LinRow(ByVal row As Mov_EncomendasFornecedor_LinRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "Mov_EncomendasFornecedor_LinDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class Mov_EncomendasCliente_SubLinDataTable
        Inherits Global.System.Data.TypedTableBase(Of Mov_EncomendasCliente_SubLinRow)
        
        Private columnintId As Global.System.Data.DataColumn
        
        Private columnstrCodEmp As Global.System.Data.DataColumn
        
        Private columnstrTipoDoc As Global.System.Data.DataColumn
        
        Private columnstrAno As Global.System.Data.DataColumn
        
        Private columnintNumero As Global.System.Data.DataColumn
        
        Private columnintLinha As Global.System.Data.DataColumn
        
        Private columnintSubLinha As Global.System.Data.DataColumn
        
        Private columnfltQtdGosimac As Global.System.Data.DataColumn
        
        Private columnfltQtdPendente As Global.System.Data.DataColumn
        
        Private columnfltQtdAnulada As Global.System.Data.DataColumn
        
        Private columnfltQtdEntregue As Global.System.Data.DataColumn
        
        Private columnfltPrecoUnitario As Global.System.Data.DataColumn
        
        Private columndtmDataGosimac As Global.System.Data.DataColumn
        
        Private columnintEstado As Global.System.Data.DataColumn
        
        Private columndtmDataRegisto As Global.System.Data.DataColumn
        
        Private columnstrUserRegisto As Global.System.Data.DataColumn
        
        Private columndtmDataAlteracao As Global.System.Data.DataColumn
        
        Private columnstrUserAlteracao As Global.System.Data.DataColumn
        
        Private columnbitEliminado As Global.System.Data.DataColumn
        
        Private columndtmDataEliminado As Global.System.Data.DataColumn
        
        Private columnstrUserEliminado As Global.System.Data.DataColumn
        
        Private columnstrHashLinha As Global.System.Data.DataColumn
        
        Private columnstrHash As Global.System.Data.DataColumn
        
        Private columnfltDescontoPercGosimac As Global.System.Data.DataColumn
        
        Private columnfltIvaPercGosimac As Global.System.Data.DataColumn
        
        Private columnfltTotalGosimac As Global.System.Data.DataColumn
        
        Private columnupdateStamp As Global.System.Data.DataColumn
        
        Private columnstrObs As Global.System.Data.DataColumn
        
        Private columnstrCodUnidade As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "Mov_EncomendasCliente_SubLin"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intIdColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintId
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodEmpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodEmp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strTipoDocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrTipoDoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strAnoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrAno
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intNumeroColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintNumero
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intSubLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintSubLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdGosimacColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdGosimac
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdPendenteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdPendente
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdAnuladaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdAnulada
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltQtdEntregueColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltQtdEntregue
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltPrecoUnitarioColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltPrecoUnitario
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataGosimacColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataGosimac
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property intEstadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnintEstado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserRegistoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserRegisto
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserAlteracaoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserAlteracao
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property bitEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnbitEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property dtmDataEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columndtmDataEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strUserEliminadoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrUserEliminado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashLinhaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHashLinha
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strHashColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrHash
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltDescontoPercGosimacColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltDescontoPercGosimac
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltIvaPercGosimacColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltIvaPercGosimac
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property fltTotalGosimacColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnfltTotalGosimac
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property updateStampColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnupdateStamp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strObsColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrObs
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property strCodUnidadeColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnstrCodUnidade
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As Mov_EncomendasCliente_SubLinRow
            Get
                Return CType(Me.Rows(index),Mov_EncomendasCliente_SubLinRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_SubLinRowChanging As Mov_EncomendasCliente_SubLinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_SubLinRowChanged As Mov_EncomendasCliente_SubLinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_SubLinRowDeleting As Mov_EncomendasCliente_SubLinRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event Mov_EncomendasCliente_SubLinRowDeleted As Mov_EncomendasCliente_SubLinRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddMov_EncomendasCliente_SubLinRow(ByVal row As Mov_EncomendasCliente_SubLinRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddMov_EncomendasCliente_SubLinRow( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal intSubLinha As Integer,  _
                    ByVal fltQtdGosimac As Decimal,  _
                    ByVal fltQtdPendente As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltQtdEntregue As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal dtmDataGosimac As Date,  _
                    ByVal intEstado As Integer,  _
                    ByVal dtmDataRegisto As Date,  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Date,  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Date,  _
                    ByVal strUserEliminado As String,  _
                    ByVal parentMov_EncomendasCliente_LinRowByMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin As Mov_EncomendasCliente_LinRow,  _
                    ByVal strHash As String,  _
                    ByVal fltDescontoPercGosimac As Decimal,  _
                    ByVal fltIvaPercGosimac As Decimal,  _
                    ByVal fltTotalGosimac As Decimal,  _
                    ByVal updateStamp() As Byte,  _
                    ByVal strObs As String,  _
                    ByVal strCodUnidade As String) As Mov_EncomendasCliente_SubLinRow
            Dim rowMov_EncomendasCliente_SubLinRow As Mov_EncomendasCliente_SubLinRow = CType(Me.NewRow,Mov_EncomendasCliente_SubLinRow)
            Dim columnValuesArray() As Object = New Object() {Nothing, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, intSubLinha, fltQtdGosimac, fltQtdPendente, fltQtdAnulada, fltQtdEntregue, fltPrecoUnitario, dtmDataGosimac, intEstado, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, bitEliminado, dtmDataEliminado, strUserEliminado, Nothing, strHash, fltDescontoPercGosimac, fltIvaPercGosimac, fltTotalGosimac, updateStamp, strObs, strCodUnidade}
            If (Not (parentMov_EncomendasCliente_LinRowByMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin) Is Nothing) Then
                columnValuesArray(21) = parentMov_EncomendasCliente_LinRowByMov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin(38)
            End If
            rowMov_EncomendasCliente_SubLinRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowMov_EncomendasCliente_SubLinRow)
            Return rowMov_EncomendasCliente_SubLinRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindBystrCodEmpstrTipoDocstrAnointNumerointLinhaintSubLinha(ByVal strCodEmp As String, ByVal strTipoDoc As String, ByVal strAno As String, ByVal intNumero As Integer, ByVal intLinha As Integer, ByVal intSubLinha As Integer) As Mov_EncomendasCliente_SubLinRow
            Return CType(Me.Rows.Find(New Object() {strCodEmp, strTipoDoc, strAno, intNumero, intLinha, intSubLinha}),Mov_EncomendasCliente_SubLinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As Mov_EncomendasCliente_SubLinDataTable = CType(MyBase.Clone,Mov_EncomendasCliente_SubLinDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New Mov_EncomendasCliente_SubLinDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnintId = MyBase.Columns("intId")
            Me.columnstrCodEmp = MyBase.Columns("strCodEmp")
            Me.columnstrTipoDoc = MyBase.Columns("strTipoDoc")
            Me.columnstrAno = MyBase.Columns("strAno")
            Me.columnintNumero = MyBase.Columns("intNumero")
            Me.columnintLinha = MyBase.Columns("intLinha")
            Me.columnintSubLinha = MyBase.Columns("intSubLinha")
            Me.columnfltQtdGosimac = MyBase.Columns("fltQtdGosimac")
            Me.columnfltQtdPendente = MyBase.Columns("fltQtdPendente")
            Me.columnfltQtdAnulada = MyBase.Columns("fltQtdAnulada")
            Me.columnfltQtdEntregue = MyBase.Columns("fltQtdEntregue")
            Me.columnfltPrecoUnitario = MyBase.Columns("fltPrecoUnitario")
            Me.columndtmDataGosimac = MyBase.Columns("dtmDataGosimac")
            Me.columnintEstado = MyBase.Columns("intEstado")
            Me.columndtmDataRegisto = MyBase.Columns("dtmDataRegisto")
            Me.columnstrUserRegisto = MyBase.Columns("strUserRegisto")
            Me.columndtmDataAlteracao = MyBase.Columns("dtmDataAlteracao")
            Me.columnstrUserAlteracao = MyBase.Columns("strUserAlteracao")
            Me.columnbitEliminado = MyBase.Columns("bitEliminado")
            Me.columndtmDataEliminado = MyBase.Columns("dtmDataEliminado")
            Me.columnstrUserEliminado = MyBase.Columns("strUserEliminado")
            Me.columnstrHashLinha = MyBase.Columns("strHashLinha")
            Me.columnstrHash = MyBase.Columns("strHash")
            Me.columnfltDescontoPercGosimac = MyBase.Columns("fltDescontoPercGosimac")
            Me.columnfltIvaPercGosimac = MyBase.Columns("fltIvaPercGosimac")
            Me.columnfltTotalGosimac = MyBase.Columns("fltTotalGosimac")
            Me.columnupdateStamp = MyBase.Columns("updateStamp")
            Me.columnstrObs = MyBase.Columns("strObs")
            Me.columnstrCodUnidade = MyBase.Columns("strCodUnidade")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnintId = New Global.System.Data.DataColumn("intId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintId)
            Me.columnstrCodEmp = New Global.System.Data.DataColumn("strCodEmp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodEmp)
            Me.columnstrTipoDoc = New Global.System.Data.DataColumn("strTipoDoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrTipoDoc)
            Me.columnstrAno = New Global.System.Data.DataColumn("strAno", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrAno)
            Me.columnintNumero = New Global.System.Data.DataColumn("intNumero", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintNumero)
            Me.columnintLinha = New Global.System.Data.DataColumn("intLinha", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintLinha)
            Me.columnintSubLinha = New Global.System.Data.DataColumn("intSubLinha", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintSubLinha)
            Me.columnfltQtdGosimac = New Global.System.Data.DataColumn("fltQtdGosimac", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdGosimac)
            Me.columnfltQtdPendente = New Global.System.Data.DataColumn("fltQtdPendente", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdPendente)
            Me.columnfltQtdAnulada = New Global.System.Data.DataColumn("fltQtdAnulada", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdAnulada)
            Me.columnfltQtdEntregue = New Global.System.Data.DataColumn("fltQtdEntregue", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltQtdEntregue)
            Me.columnfltPrecoUnitario = New Global.System.Data.DataColumn("fltPrecoUnitario", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltPrecoUnitario)
            Me.columndtmDataGosimac = New Global.System.Data.DataColumn("dtmDataGosimac", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataGosimac)
            Me.columnintEstado = New Global.System.Data.DataColumn("intEstado", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnintEstado)
            Me.columndtmDataRegisto = New Global.System.Data.DataColumn("dtmDataRegisto", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataRegisto)
            Me.columnstrUserRegisto = New Global.System.Data.DataColumn("strUserRegisto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserRegisto)
            Me.columndtmDataAlteracao = New Global.System.Data.DataColumn("dtmDataAlteracao", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataAlteracao)
            Me.columnstrUserAlteracao = New Global.System.Data.DataColumn("strUserAlteracao", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserAlteracao)
            Me.columnbitEliminado = New Global.System.Data.DataColumn("bitEliminado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnbitEliminado)
            Me.columndtmDataEliminado = New Global.System.Data.DataColumn("dtmDataEliminado", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columndtmDataEliminado)
            Me.columnstrUserEliminado = New Global.System.Data.DataColumn("strUserEliminado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrUserEliminado)
            Me.columnstrHashLinha = New Global.System.Data.DataColumn("strHashLinha", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHashLinha)
            Me.columnstrHash = New Global.System.Data.DataColumn("strHash", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrHash)
            Me.columnfltDescontoPercGosimac = New Global.System.Data.DataColumn("fltDescontoPercGosimac", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltDescontoPercGosimac)
            Me.columnfltIvaPercGosimac = New Global.System.Data.DataColumn("fltIvaPercGosimac", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltIvaPercGosimac)
            Me.columnfltTotalGosimac = New Global.System.Data.DataColumn("fltTotalGosimac", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnfltTotalGosimac)
            Me.columnupdateStamp = New Global.System.Data.DataColumn("updateStamp", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnupdateStamp)
            Me.columnstrObs = New Global.System.Data.DataColumn("strObs", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrObs)
            Me.columnstrCodUnidade = New Global.System.Data.DataColumn("strCodUnidade", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnstrCodUnidade)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnstrCodEmp, Me.columnstrTipoDoc, Me.columnstrAno, Me.columnintNumero, Me.columnintLinha, Me.columnintSubLinha}, true))
            Me.columnintId.AutoIncrement = true
            Me.columnintId.AutoIncrementSeed = -1
            Me.columnintId.AutoIncrementStep = -1
            Me.columnintId.AllowDBNull = false
            Me.columnintId.ReadOnly = true
            Me.columnstrCodEmp.AllowDBNull = false
            Me.columnstrCodEmp.MaxLength = 2
            Me.columnstrTipoDoc.AllowDBNull = false
            Me.columnstrTipoDoc.MaxLength = 10
            Me.columnstrAno.AllowDBNull = false
            Me.columnstrAno.MaxLength = 4
            Me.columnintNumero.AllowDBNull = false
            Me.columnintLinha.AllowDBNull = false
            Me.columnintSubLinha.AllowDBNull = false
            Me.columnfltQtdGosimac.AllowDBNull = false
            Me.columnfltQtdPendente.AllowDBNull = false
            Me.columnfltQtdAnulada.AllowDBNull = false
            Me.columnfltQtdEntregue.AllowDBNull = false
            Me.columnfltPrecoUnitario.AllowDBNull = false
            Me.columnstrUserRegisto.MaxLength = 50
            Me.columnstrUserAlteracao.MaxLength = 50
            Me.columnbitEliminado.AllowDBNull = false
            Me.columnstrUserEliminado.MaxLength = 50
            Me.columnstrHashLinha.MaxLength = 50
            Me.columnstrHash.MaxLength = 50
            Me.columnfltDescontoPercGosimac.AllowDBNull = false
            Me.columnfltIvaPercGosimac.AllowDBNull = false
            Me.columnfltTotalGosimac.AllowDBNull = false
            Me.columnupdateStamp.ReadOnly = true
            Me.columnstrObs.MaxLength = 2147483647
            Me.columnstrCodUnidade.MaxLength = 50
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewMov_EncomendasCliente_SubLinRow() As Mov_EncomendasCliente_SubLinRow
            Return CType(Me.NewRow,Mov_EncomendasCliente_SubLinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New Mov_EncomendasCliente_SubLinRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(Mov_EncomendasCliente_SubLinRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.Mov_EncomendasCliente_SubLinRowChangedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_SubLinRowChanged(Me, New Mov_EncomendasCliente_SubLinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_SubLinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.Mov_EncomendasCliente_SubLinRowChangingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_SubLinRowChanging(Me, New Mov_EncomendasCliente_SubLinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_SubLinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.Mov_EncomendasCliente_SubLinRowDeletedEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_SubLinRowDeleted(Me, New Mov_EncomendasCliente_SubLinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_SubLinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.Mov_EncomendasCliente_SubLinRowDeletingEvent) Is Nothing) Then
                RaiseEvent Mov_EncomendasCliente_SubLinRowDeleting(Me, New Mov_EncomendasCliente_SubLinRowChangeEvent(CType(e.Row,Mov_EncomendasCliente_SubLinRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveMov_EncomendasCliente_SubLinRow(ByVal row As Mov_EncomendasCliente_SubLinRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "Mov_EncomendasCliente_SubLinDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class USR_RST3_VIEW_ERP_ClientesDataTable
        Inherits Global.System.Data.TypedTableBase(Of USR_RST3_VIEW_ERP_ClientesRow)
        
        Private columnCliente As Global.System.Data.DataColumn
        
        Private columnNome As Global.System.Data.DataColumn
        
        Private columnFac_Mor As Global.System.Data.DataColumn
        
        Private columnFac_Local As Global.System.Data.DataColumn
        
        Private columnFac_Cp As Global.System.Data.DataColumn
        
        Private columnFac_Cploc As Global.System.Data.DataColumn
        
        Private columnFac_Tel As Global.System.Data.DataColumn
        
        Private columnFac_Fax As Global.System.Data.DataColumn
        
        Private columnNumContrib As Global.System.Data.DataColumn
        
        Private columnPais As Global.System.Data.DataColumn
        
        Private columnModoPag As Global.System.Data.DataColumn
        
        Private columnCondPag As Global.System.Data.DataColumn
        
        Private columnMoeda As Global.System.Data.DataColumn
        
        Private columnClienteAnulado As Global.System.Data.DataColumn
        
        Private columnDistrito As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "USR_RST3_VIEW_ERP_Clientes"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property ClienteColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnCliente
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property NomeColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnNome
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_MorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Mor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_LocalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Local
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_CpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Cp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_CplocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Cploc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_TelColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Tel
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Fac_FaxColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFac_Fax
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property NumContribColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnNumContrib
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property PaisColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnPais
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property ModoPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnModoPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property CondPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnCondPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property MoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property ClienteAnuladoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnClienteAnulado
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property DistritoColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnDistrito
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As USR_RST3_VIEW_ERP_ClientesRow
            Get
                Return CType(Me.Rows(index),USR_RST3_VIEW_ERP_ClientesRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_ClientesRowChanging As USR_RST3_VIEW_ERP_ClientesRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_ClientesRowChanged As USR_RST3_VIEW_ERP_ClientesRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_ClientesRowDeleting As USR_RST3_VIEW_ERP_ClientesRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_ClientesRowDeleted As USR_RST3_VIEW_ERP_ClientesRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddUSR_RST3_VIEW_ERP_ClientesRow(ByVal row As USR_RST3_VIEW_ERP_ClientesRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddUSR_RST3_VIEW_ERP_ClientesRow(ByVal Cliente As String, ByVal Nome As String, ByVal Fac_Mor As String, ByVal Fac_Local As String, ByVal Fac_Cp As String, ByVal Fac_Cploc As String, ByVal Fac_Tel As String, ByVal Fac_Fax As String, ByVal NumContrib As String, ByVal Pais As String, ByVal ModoPag As String, ByVal CondPag As String, ByVal Moeda As String, ByVal ClienteAnulado As Boolean, ByVal Distrito As String) As USR_RST3_VIEW_ERP_ClientesRow
            Dim rowUSR_RST3_VIEW_ERP_ClientesRow As USR_RST3_VIEW_ERP_ClientesRow = CType(Me.NewRow,USR_RST3_VIEW_ERP_ClientesRow)
            Dim columnValuesArray() As Object = New Object() {Cliente, Nome, Fac_Mor, Fac_Local, Fac_Cp, Fac_Cploc, Fac_Tel, Fac_Fax, NumContrib, Pais, ModoPag, CondPag, Moeda, ClienteAnulado, Distrito}
            rowUSR_RST3_VIEW_ERP_ClientesRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowUSR_RST3_VIEW_ERP_ClientesRow)
            Return rowUSR_RST3_VIEW_ERP_ClientesRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindByCliente(ByVal Cliente As String) As USR_RST3_VIEW_ERP_ClientesRow
            Return CType(Me.Rows.Find(New Object() {Cliente}),USR_RST3_VIEW_ERP_ClientesRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As USR_RST3_VIEW_ERP_ClientesDataTable = CType(MyBase.Clone,USR_RST3_VIEW_ERP_ClientesDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New USR_RST3_VIEW_ERP_ClientesDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnCliente = MyBase.Columns("Cliente")
            Me.columnNome = MyBase.Columns("Nome")
            Me.columnFac_Mor = MyBase.Columns("Fac_Mor")
            Me.columnFac_Local = MyBase.Columns("Fac_Local")
            Me.columnFac_Cp = MyBase.Columns("Fac_Cp")
            Me.columnFac_Cploc = MyBase.Columns("Fac_Cploc")
            Me.columnFac_Tel = MyBase.Columns("Fac_Tel")
            Me.columnFac_Fax = MyBase.Columns("Fac_Fax")
            Me.columnNumContrib = MyBase.Columns("NumContrib")
            Me.columnPais = MyBase.Columns("Pais")
            Me.columnModoPag = MyBase.Columns("ModoPag")
            Me.columnCondPag = MyBase.Columns("CondPag")
            Me.columnMoeda = MyBase.Columns("Moeda")
            Me.columnClienteAnulado = MyBase.Columns("ClienteAnulado")
            Me.columnDistrito = MyBase.Columns("Distrito")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnCliente = New Global.System.Data.DataColumn("Cliente", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCliente)
            Me.columnNome = New Global.System.Data.DataColumn("Nome", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNome)
            Me.columnFac_Mor = New Global.System.Data.DataColumn("Fac_Mor", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Mor)
            Me.columnFac_Local = New Global.System.Data.DataColumn("Fac_Local", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Local)
            Me.columnFac_Cp = New Global.System.Data.DataColumn("Fac_Cp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Cp)
            Me.columnFac_Cploc = New Global.System.Data.DataColumn("Fac_Cploc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Cploc)
            Me.columnFac_Tel = New Global.System.Data.DataColumn("Fac_Tel", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Tel)
            Me.columnFac_Fax = New Global.System.Data.DataColumn("Fac_Fax", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFac_Fax)
            Me.columnNumContrib = New Global.System.Data.DataColumn("NumContrib", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNumContrib)
            Me.columnPais = New Global.System.Data.DataColumn("Pais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPais)
            Me.columnModoPag = New Global.System.Data.DataColumn("ModoPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnModoPag)
            Me.columnCondPag = New Global.System.Data.DataColumn("CondPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCondPag)
            Me.columnMoeda = New Global.System.Data.DataColumn("Moeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnMoeda)
            Me.columnClienteAnulado = New Global.System.Data.DataColumn("ClienteAnulado", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnClienteAnulado)
            Me.columnDistrito = New Global.System.Data.DataColumn("Distrito", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnDistrito)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCliente}, true))
            Me.columnCliente.AllowDBNull = false
            Me.columnCliente.Unique = true
            Me.columnCliente.MaxLength = 12
            Me.columnNome.MaxLength = 50
            Me.columnFac_Mor.MaxLength = 50
            Me.columnFac_Local.MaxLength = 50
            Me.columnFac_Cp.MaxLength = 15
            Me.columnFac_Cploc.MaxLength = 50
            Me.columnFac_Tel.MaxLength = 20
            Me.columnFac_Fax.MaxLength = 20
            Me.columnNumContrib.MaxLength = 20
            Me.columnPais.MaxLength = 2
            Me.columnModoPag.MaxLength = 5
            Me.columnCondPag.MaxLength = 2
            Me.columnMoeda.MaxLength = 3
            Me.columnDistrito.MaxLength = 2
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewUSR_RST3_VIEW_ERP_ClientesRow() As USR_RST3_VIEW_ERP_ClientesRow
            Return CType(Me.NewRow,USR_RST3_VIEW_ERP_ClientesRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New USR_RST3_VIEW_ERP_ClientesRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(USR_RST3_VIEW_ERP_ClientesRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.USR_RST3_VIEW_ERP_ClientesRowChangedEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_ClientesRowChanged(Me, New USR_RST3_VIEW_ERP_ClientesRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_ClientesRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.USR_RST3_VIEW_ERP_ClientesRowChangingEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_ClientesRowChanging(Me, New USR_RST3_VIEW_ERP_ClientesRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_ClientesRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.USR_RST3_VIEW_ERP_ClientesRowDeletedEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_ClientesRowDeleted(Me, New USR_RST3_VIEW_ERP_ClientesRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_ClientesRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.USR_RST3_VIEW_ERP_ClientesRowDeletingEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_ClientesRowDeleting(Me, New USR_RST3_VIEW_ERP_ClientesRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_ClientesRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveUSR_RST3_VIEW_ERP_ClientesRow(ByVal row As USR_RST3_VIEW_ERP_ClientesRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "USR_RST3_VIEW_ERP_ClientesDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents the strongly named DataTable class.
    '''</summary>
    <Global.System.Serializable(),  _
     Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")>  _
    Partial Public Class USR_RST3_VIEW_ERP_FornecedoresDataTable
        Inherits Global.System.Data.TypedTableBase(Of USR_RST3_VIEW_ERP_FornecedoresRow)
        
        Private columnFornecedor As Global.System.Data.DataColumn
        
        Private columnNome As Global.System.Data.DataColumn
        
        Private columnMorada As Global.System.Data.DataColumn
        
        Private columnLocal As Global.System.Data.DataColumn
        
        Private columnCp As Global.System.Data.DataColumn
        
        Private columnCpLoc As Global.System.Data.DataColumn
        
        Private columnTel As Global.System.Data.DataColumn
        
        Private columnFax As Global.System.Data.DataColumn
        
        Private columnNumContrib As Global.System.Data.DataColumn
        
        Private columnPais As Global.System.Data.DataColumn
        
        Private columnCondPag As Global.System.Data.DataColumn
        
        Private columnModoPag As Global.System.Data.DataColumn
        
        Private columnMoeda As Global.System.Data.DataColumn
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.TableName = "USR_RST3_VIEW_ERP_Fornecedores"
            Me.BeginInit
            Me.InitClass
            Me.EndInit
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal table As Global.System.Data.DataTable)
            MyBase.New
            Me.TableName = table.TableName
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
            MyBase.New(info, context)
            Me.InitVars
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property FornecedorColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFornecedor
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property NomeColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnNome
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property MoradaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnMorada
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property LocalColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnLocal
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property CpColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnCp
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property CpLocColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnCpLoc
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property TelColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnTel
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property FaxColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnFax
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property NumContribColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnNumContrib
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property PaisColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnPais
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property CondPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnCondPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property ModoPagColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnModoPag
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property MoedaColumn() As Global.System.Data.DataColumn
            Get
                Return Me.columnMoeda
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count() As Integer
            Get
                Return Me.Rows.Count
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Default ReadOnly Property Item(ByVal index As Integer) As USR_RST3_VIEW_ERP_FornecedoresRow
            Get
                Return CType(Me.Rows(index),USR_RST3_VIEW_ERP_FornecedoresRow)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_FornecedoresRowChanging As USR_RST3_VIEW_ERP_FornecedoresRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_FornecedoresRowChanged As USR_RST3_VIEW_ERP_FornecedoresRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_FornecedoresRowDeleting As USR_RST3_VIEW_ERP_FornecedoresRowChangeEventHandler
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Event USR_RST3_VIEW_ERP_FornecedoresRowDeleted As USR_RST3_VIEW_ERP_FornecedoresRowChangeEventHandler
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Sub AddUSR_RST3_VIEW_ERP_FornecedoresRow(ByVal row As USR_RST3_VIEW_ERP_FornecedoresRow)
            Me.Rows.Add(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overloads Function AddUSR_RST3_VIEW_ERP_FornecedoresRow(ByVal Fornecedor As String, ByVal Nome As String, ByVal Morada As String, ByVal Local As String, ByVal Cp As String, ByVal CpLoc As String, ByVal Tel As String, ByVal Fax As String, ByVal NumContrib As String, ByVal Pais As String, ByVal CondPag As String, ByVal ModoPag As String, ByVal Moeda As String) As USR_RST3_VIEW_ERP_FornecedoresRow
            Dim rowUSR_RST3_VIEW_ERP_FornecedoresRow As USR_RST3_VIEW_ERP_FornecedoresRow = CType(Me.NewRow,USR_RST3_VIEW_ERP_FornecedoresRow)
            Dim columnValuesArray() As Object = New Object() {Fornecedor, Nome, Morada, Local, Cp, CpLoc, Tel, Fax, NumContrib, Pais, CondPag, ModoPag, Moeda}
            rowUSR_RST3_VIEW_ERP_FornecedoresRow.ItemArray = columnValuesArray
            Me.Rows.Add(rowUSR_RST3_VIEW_ERP_FornecedoresRow)
            Return rowUSR_RST3_VIEW_ERP_FornecedoresRow
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function FindByFornecedor(ByVal Fornecedor As String) As USR_RST3_VIEW_ERP_FornecedoresRow
            Return CType(Me.Rows.Find(New Object() {Fornecedor}),USR_RST3_VIEW_ERP_FornecedoresRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overrides Function Clone() As Global.System.Data.DataTable
            Dim cln As USR_RST3_VIEW_ERP_FornecedoresDataTable = CType(MyBase.Clone,USR_RST3_VIEW_ERP_FornecedoresDataTable)
            cln.InitVars
            Return cln
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
            Return New USR_RST3_VIEW_ERP_FornecedoresDataTable()
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub InitVars()
            Me.columnFornecedor = MyBase.Columns("Fornecedor")
            Me.columnNome = MyBase.Columns("Nome")
            Me.columnMorada = MyBase.Columns("Morada")
            Me.columnLocal = MyBase.Columns("Local")
            Me.columnCp = MyBase.Columns("Cp")
            Me.columnCpLoc = MyBase.Columns("CpLoc")
            Me.columnTel = MyBase.Columns("Tel")
            Me.columnFax = MyBase.Columns("Fax")
            Me.columnNumContrib = MyBase.Columns("NumContrib")
            Me.columnPais = MyBase.Columns("Pais")
            Me.columnCondPag = MyBase.Columns("CondPag")
            Me.columnModoPag = MyBase.Columns("ModoPag")
            Me.columnMoeda = MyBase.Columns("Moeda")
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitClass()
            Me.columnFornecedor = New Global.System.Data.DataColumn("Fornecedor", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFornecedor)
            Me.columnNome = New Global.System.Data.DataColumn("Nome", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNome)
            Me.columnMorada = New Global.System.Data.DataColumn("Morada", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnMorada)
            Me.columnLocal = New Global.System.Data.DataColumn("Local", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnLocal)
            Me.columnCp = New Global.System.Data.DataColumn("Cp", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCp)
            Me.columnCpLoc = New Global.System.Data.DataColumn("CpLoc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCpLoc)
            Me.columnTel = New Global.System.Data.DataColumn("Tel", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnTel)
            Me.columnFax = New Global.System.Data.DataColumn("Fax", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnFax)
            Me.columnNumContrib = New Global.System.Data.DataColumn("NumContrib", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnNumContrib)
            Me.columnPais = New Global.System.Data.DataColumn("Pais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnPais)
            Me.columnCondPag = New Global.System.Data.DataColumn("CondPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnCondPag)
            Me.columnModoPag = New Global.System.Data.DataColumn("ModoPag", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnModoPag)
            Me.columnMoeda = New Global.System.Data.DataColumn("Moeda", GetType(String), Nothing, Global.System.Data.MappingType.Element)
            MyBase.Columns.Add(Me.columnMoeda)
            Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnFornecedor}, true))
            Me.columnFornecedor.AllowDBNull = false
            Me.columnFornecedor.Unique = true
            Me.columnFornecedor.MaxLength = 12
            Me.columnNome.MaxLength = 50
            Me.columnMorada.MaxLength = 50
            Me.columnLocal.MaxLength = 50
            Me.columnCp.MaxLength = 15
            Me.columnCpLoc.MaxLength = 50
            Me.columnTel.MaxLength = 20
            Me.columnFax.MaxLength = 20
            Me.columnNumContrib.MaxLength = 20
            Me.columnPais.MaxLength = 2
            Me.columnCondPag.MaxLength = 2
            Me.columnModoPag.MaxLength = 5
            Me.columnMoeda.MaxLength = 3
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function NewUSR_RST3_VIEW_ERP_FornecedoresRow() As USR_RST3_VIEW_ERP_FornecedoresRow
            Return CType(Me.NewRow,USR_RST3_VIEW_ERP_FornecedoresRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
            Return New USR_RST3_VIEW_ERP_FornecedoresRow(builder)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Function GetRowType() As Global.System.Type
            Return GetType(USR_RST3_VIEW_ERP_FornecedoresRow)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.USR_RST3_VIEW_ERP_FornecedoresRowChangedEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_FornecedoresRowChanged(Me, New USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_FornecedoresRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.USR_RST3_VIEW_ERP_FornecedoresRowChangingEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_FornecedoresRowChanging(Me, New USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_FornecedoresRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.USR_RST3_VIEW_ERP_FornecedoresRowDeletedEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_FornecedoresRowDeleted(Me, New USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_FornecedoresRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.USR_RST3_VIEW_ERP_FornecedoresRowDeletingEvent) Is Nothing) Then
                RaiseEvent USR_RST3_VIEW_ERP_FornecedoresRowDeleting(Me, New USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent(CType(e.Row,USR_RST3_VIEW_ERP_FornecedoresRow), e.Action))
            End If
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub RemoveUSR_RST3_VIEW_ERP_FornecedoresRow(ByVal row As USR_RST3_VIEW_ERP_FornecedoresRow)
            Me.Rows.Remove(row)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
            Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
            Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
            Dim ds As DataSetEncomendas = New DataSetEncomendas()
            Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any1.Namespace = "http://www.w3.org/2001/XMLSchema"
            any1.MinOccurs = New Decimal(0)
            any1.MaxOccurs = Decimal.MaxValue
            any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any1)
            Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
            any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
            any2.MinOccurs = New Decimal(1)
            any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
            sequence.Items.Add(any2)
            Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute1.Name = "namespace"
            attribute1.FixedValue = ds.Namespace
            type.Attributes.Add(attribute1)
            Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
            attribute2.Name = "tableTypeName"
            attribute2.FixedValue = "USR_RST3_VIEW_ERP_FornecedoresDataTable"
            type.Attributes.Add(attribute2)
            type.Particle = sequence
            Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
            If xs.Contains(dsSchema.TargetNamespace) Then
                Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
                Try 
                    Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
                    dsSchema.Write(s1)
                    Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
                    Do While schemas.MoveNext
                        schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
                        s2.SetLength(0)
                        schema.Write(s2)
                        If (s1.Length = s2.Length) Then
                            s1.Position = 0
                            s2.Position = 0
                            
                            Do While ((s1.Position <> s1.Length)  _
                                        AndAlso (s1.ReadByte = s2.ReadByte))
                                
                                
                            Loop
                            If (s1.Position = s1.Length) Then
                                Return type
                            End If
                        End If
                        
                    Loop
                Finally
                    If (Not (s1) Is Nothing) Then
                        s1.Close
                    End If
                    If (Not (s2) Is Nothing) Then
                        s2.Close
                    End If
                End Try
            End If
            xs.Add(dsSchema)
            Return type
        End Function
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class Mov_EncomendasCliente_CabRow
        Inherits Global.System.Data.DataRow
        
        Private tableMov_EncomendasCliente_Cab As Mov_EncomendasCliente_CabDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableMov_EncomendasCliente_Cab = CType(Me.Table,Mov_EncomendasCliente_CabDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intId() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.intIdColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.intIdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodEmp() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strCodEmpColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strCodEmpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoDoc() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strTipoDocColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strTipoDocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strAno() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strAnoColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strAnoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intNumero() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.intNumeroColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.intNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNumero() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strNumeroColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHash() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strHashColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strHashColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataRegisto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataRegistoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataRegisto' in table 'Mov_EncomendasCliente_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserRegisto() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strUserRegistoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserRegisto' in table 'Mov_EncomendasCliente_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strUserRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmData() As Date
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataColumn),Date)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strEstado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strEstadoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strEstado' in table 'Mov_EncomendasCliente_Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strEstadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodCliente() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strCodClienteColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strCodClienteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNomeCliente() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strNomeClienteColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strNomeClienteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEntregaPrevista() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataEntregaPrevistaColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEntregaPrevista' in table 'Mov_EncomendasCliente_Cab"& _ 
                            "' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataEntregaPrevistaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodMoeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strCodMoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodMoeda' in table 'Mov_EncomendasCliente_Cab' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strCodMoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNomeMoeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strNomeMoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strNomeMoeda' in table 'Mov_EncomendasCliente_Cab' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strNomeMoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltCambio() As Double
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.fltCambioColumn),Double)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltCambio' in table 'Mov_EncomendasCliente_Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.fltCambioColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intDiasPag() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.intDiasPagColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intDiasPag' in table 'Mov_EncomendasCliente_Cab' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.intDiasPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCondicaoPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strCondicaoPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCondicaoPag' in table 'Mov_EncomendasCliente_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strCondicaoPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strMeioPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strMeioPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strMeioPag' in table 'Mov_EncomendasCliente_Cab' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strMeioPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPedidoCotacao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strPedidoCotacaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPedidoCotacao' in table 'Mov_EncomendasCliente_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strPedidoCotacaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strObs() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strObsColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strObs' in table 'Mov_EncomendasCliente_Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strObsColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property updateStamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.updateStampColumn),Byte())
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'updateStamp' in table 'Mov_EncomendasCliente_Cab' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.updateStampColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltTotal() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.fltTotalColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltTotal' in table 'Mov_EncomendasCliente_Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.fltTotalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitAnulado() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.bitAnuladoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.bitAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAnulado() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAnuladoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAnulado' in table 'Mov_EncomendasCliente_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAnulado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strUserAnuladoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAnulado' in table 'Mov_EncomendasCliente_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strUserAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNumExterno() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strNumExternoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strNumExterno' in table 'Mov_EncomendasCliente_Cab' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strNumExternoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAlteracao() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAlteracaoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAlteracao' in table 'Mov_EncomendasCliente_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAlteracao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strUserAlteracaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAlteracao' in table 'Mov_EncomendasCliente_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strUserAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitSatisfeita() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.bitSatisfeitaColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.bitSatisfeitaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataSatisfeito() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataSatisfeitoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataSatisfeito' in table 'Mov_EncomendasCliente_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataSatisfeitoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserSatisfeito() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strUserSatisfeitoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserSatisfeito' in table 'Mov_EncomendasCliente_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strUserSatisfeitoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataLimite() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.dtmDataLimiteColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataLimite' in table 'Mov_EncomendasCliente_Cab' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.dtmDataLimiteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitPulmao() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Cab.bitPulmaoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.bitPulmaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPulmaoHashEnc() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strPulmaoHashEncColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPulmaoHashEnc' in table 'Mov_EncomendasCliente_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strPulmaoHashEncColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strMoradaEntrega() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Cab.strMoradaEntregaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strMoradaEntrega' in table 'Mov_EncomendasCliente_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Cab.strMoradaEntregaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataRegistoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strUserRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserRegistoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strUserRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrEstadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strEstadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrEstadoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strEstadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEntregaPrevistaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataEntregaPrevistaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEntregaPrevistaNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataEntregaPrevistaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodMoedaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strCodMoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodMoedaNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strCodMoedaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrNomeMoedaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strNomeMoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrNomeMoedaNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strNomeMoedaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltCambioNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.fltCambioColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltCambioNull()
            Me(Me.tableMov_EncomendasCliente_Cab.fltCambioColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintDiasPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.intDiasPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintDiasPagNull()
            Me(Me.tableMov_EncomendasCliente_Cab.intDiasPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCondicaoPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strCondicaoPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCondicaoPagNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strCondicaoPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrMeioPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strMeioPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrMeioPagNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strMeioPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPedidoCotacaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strPedidoCotacaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPedidoCotacaoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strPedidoCotacaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrObsNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strObsColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrObsNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strObsColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsupdateStampNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.updateStampColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetupdateStampNull()
            Me(Me.tableMov_EncomendasCliente_Cab.updateStampColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltTotalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.fltTotalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltTotalNull()
            Me(Me.tableMov_EncomendasCliente_Cab.fltTotalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAnuladoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataAnuladoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAnuladoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAnuladoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAnuladoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strUserAnuladoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAnuladoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strUserAnuladoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrNumExternoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strNumExternoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrNumExternoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strNumExternoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strUserAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strUserAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataSatisfeitoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataSatisfeitoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataSatisfeitoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataSatisfeitoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserSatisfeitoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strUserSatisfeitoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserSatisfeitoNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strUserSatisfeitoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataLimiteNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.dtmDataLimiteColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataLimiteNull()
            Me(Me.tableMov_EncomendasCliente_Cab.dtmDataLimiteColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPulmaoHashEncNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strPulmaoHashEncColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPulmaoHashEncNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strPulmaoHashEncColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrMoradaEntregaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Cab.strMoradaEntregaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrMoradaEntregaNull()
            Me(Me.tableMov_EncomendasCliente_Cab.strMoradaEntregaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function GetMov_EncomendasCliente_LinRows() As Mov_EncomendasCliente_LinRow()
            If (Me.Table.ChildRelations("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab") Is Nothing) Then
                Return New Mov_EncomendasCliente_LinRow(-1) {}
            Else
                Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab")),Mov_EncomendasCliente_LinRow())
            End If
        End Function
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class Mov_EncomendasCliente_LinRow
        Inherits Global.System.Data.DataRow
        
        Private tableMov_EncomendasCliente_Lin As Mov_EncomendasCliente_LinDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableMov_EncomendasCliente_Lin = CType(Me.Table,Mov_EncomendasCliente_LinDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intId() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intIdColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intIdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodEmp() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strCodEmpColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strCodEmpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoDoc() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strTipoDocColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strTipoDocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strAno() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strAnoColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strAnoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intNumero() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intNumeroColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intLinha() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intLinhaColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHashCab() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strHashCabColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strHashCab' in table 'Mov_EncomendasCliente_Lin' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strHashCabColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intPosicao() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intPosicaoColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intPosicaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodArtigo() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strCodArtigoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodArtigo' in table 'Mov_EncomendasCliente_Lin' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strCodArtigoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strDescricaoArtigo() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoArtigoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strDescricaoArtigo' in table 'Mov_EncomendasCliente_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoArtigoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodUnidade() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strCodUnidadeColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodUnidade' in table 'Mov_EncomendasCliente_Lin' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strCodUnidadeColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intCasasDecimaisUN() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intCasasDecimaisUNColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intCasasDecimaisUN' in table 'Mov_EncomendasCliente_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intCasasDecimaisUNColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtd() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltQtdColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltQtdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdAnulada() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltQtdAnuladaColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltQtdAnuladaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltPrecoUnitario() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltPrecoUnitarioColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltPrecoUnitario' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltPrecoUnitarioColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltDesconto() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltDescontoColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltDescontoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltDescontoValor() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltDescontoValorColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltDescontoValor' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltDescontoValorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodIVA() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strCodIVAColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodIVA' in table 'Mov_EncomendasCliente_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strCodIVAColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltIVA() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltIVAColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltIVA' in table 'Mov_EncomendasCliente_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltIVAColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltTotalLinha() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltTotalLinhaColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltTotalLinha' in table 'Mov_EncomendasCliente_Lin' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltTotalLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEntrega() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEntregaColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEntrega' in table 'Mov_EncomendasCliente_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEntregaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property updateStamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.updateStampColumn),Byte())
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'updateStamp' in table 'Mov_EncomendasCliente_Lin' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.updateStampColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitParcial() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.bitParcialColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.bitParcialColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataRegisto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataRegistoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataRegisto' in table 'Mov_EncomendasCliente_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserRegisto() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strUserRegistoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserRegisto' in table 'Mov_EncomendasCliente_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strUserRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAlteracao() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAlteracaoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAlteracao' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAlteracao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strUserAlteracaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAlteracao' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strUserAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intPosicaoOriginal() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.intPosicaoOriginalColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intPosicaoOriginal' in table 'Mov_EncomendasCliente_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.intPosicaoOriginalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdOriginal() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.fltQtdOriginalColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltQtdOriginal' in table 'Mov_EncomendasCliente_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.fltQtdOriginalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitEliminado() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.bitEliminadoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.bitEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEliminado() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEliminadoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEliminado' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserEliminado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strUserEliminadoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserEliminado' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strUserEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strDescricaoComplementar() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoComplementarColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strDescricaoComplementar' in table 'Mov_EncomendasCliente_L"& _ 
                            "in' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoComplementarColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strObs() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strObsColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strObs' in table 'Mov_EncomendasCliente_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strObsColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataCliente() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataClienteColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataCliente' in table 'Mov_EncomendasCliente_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataClienteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitPulmao() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.bitPulmaoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.bitPulmaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPulmaoHashEnc() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoHashEncColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPulmaoHashEnc' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoHashEncColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strMoradaEntrega() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strMoradaEntregaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strMoradaEntrega' in table 'Mov_EncomendasCliente_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strMoradaEntregaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHash() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strHashColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strHash' in table 'Mov_EncomendasCliente_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strHashColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPulmaoEnc() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoEncColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPulmaoEnc' in table 'Mov_EncomendasCliente_Lin' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoEncColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoMateriaProd() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strTipoMateriaProdColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strTipoMateriaProd' in table 'Mov_EncomendasCliente_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strTipoMateriaProdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAbatimento() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAbatimentoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAbatimento' in table 'Mov_EncomendasCliente_Lin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAbatimentoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strIdMoradaEntrega() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_Lin.strIdMoradaEntregaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strIdMoradaEntrega' in table 'Mov_EncomendasCliente_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.strIdMoradaEntregaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitMoradaAlternativa() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_Lin.bitMoradaAlternativaColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_Lin.bitMoradaAlternativaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Mov_EncomendasCliente_CabRowParent() As Mov_EncomendasCliente_CabRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab")),Mov_EncomendasCliente_CabRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK_Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_Cab"))
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrHashCabNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strHashCabColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrHashCabNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strHashCabColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodArtigoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strCodArtigoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodArtigoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strCodArtigoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrDescricaoArtigoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strDescricaoArtigoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrDescricaoArtigoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoArtigoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodUnidadeNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strCodUnidadeColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodUnidadeNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strCodUnidadeColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintCasasDecimaisUNNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.intCasasDecimaisUNColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintCasasDecimaisUNNull()
            Me(Me.tableMov_EncomendasCliente_Lin.intCasasDecimaisUNColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltPrecoUnitarioNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.fltPrecoUnitarioColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltPrecoUnitarioNull()
            Me(Me.tableMov_EncomendasCliente_Lin.fltPrecoUnitarioColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltDescontoValorNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.fltDescontoValorColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltDescontoValorNull()
            Me(Me.tableMov_EncomendasCliente_Lin.fltDescontoValorColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodIVANull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strCodIVAColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodIVANull()
            Me(Me.tableMov_EncomendasCliente_Lin.strCodIVAColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltIVANull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.fltIVAColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltIVANull()
            Me(Me.tableMov_EncomendasCliente_Lin.fltIVAColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltTotalLinhaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.fltTotalLinhaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltTotalLinhaNull()
            Me(Me.tableMov_EncomendasCliente_Lin.fltTotalLinhaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEntregaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataEntregaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEntregaNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEntregaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsupdateStampNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.updateStampColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetupdateStampNull()
            Me(Me.tableMov_EncomendasCliente_Lin.updateStampColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataRegistoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strUserRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserRegistoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strUserRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strUserAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strUserAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintPosicaoOriginalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.intPosicaoOriginalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintPosicaoOriginalNull()
            Me(Me.tableMov_EncomendasCliente_Lin.intPosicaoOriginalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltQtdOriginalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.fltQtdOriginalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltQtdOriginalNull()
            Me(Me.tableMov_EncomendasCliente_Lin.fltQtdOriginalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEliminadoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strUserEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserEliminadoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strUserEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrDescricaoComplementarNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strDescricaoComplementarColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrDescricaoComplementarNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strDescricaoComplementarColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrObsNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strObsColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrObsNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strObsColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataClienteNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataClienteColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataClienteNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataClienteColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPulmaoHashEncNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strPulmaoHashEncColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPulmaoHashEncNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoHashEncColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrMoradaEntregaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strMoradaEntregaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrMoradaEntregaNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strMoradaEntregaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrHashNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strHashColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrHashNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strHashColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPulmaoEncNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strPulmaoEncColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPulmaoEncNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strPulmaoEncColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrTipoMateriaProdNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strTipoMateriaProdColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrTipoMateriaProdNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strTipoMateriaProdColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAbatimentoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.dtmDataAbatimentoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAbatimentoNull()
            Me(Me.tableMov_EncomendasCliente_Lin.dtmDataAbatimentoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrIdMoradaEntregaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_Lin.strIdMoradaEntregaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrIdMoradaEntregaNull()
            Me(Me.tableMov_EncomendasCliente_Lin.strIdMoradaEntregaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function GetMov_EncomendasCliente_SubLinRows() As Mov_EncomendasCliente_SubLinRow()
            If (Me.Table.ChildRelations("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin") Is Nothing) Then
                Return New Mov_EncomendasCliente_SubLinRow(-1) {}
            Else
                Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin")),Mov_EncomendasCliente_SubLinRow())
            End If
        End Function
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class Mov_EncomendasFornecedor_CabRow
        Inherits Global.System.Data.DataRow
        
        Private tableMov_EncomendasFornecedor_Cab As Mov_EncomendasFornecedor_CabDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableMov_EncomendasFornecedor_Cab = CType(Me.Table,Mov_EncomendasFornecedor_CabDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intId() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.intIdColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.intIdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodEmp() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strCodEmpColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strCodEmpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoDoc() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strTipoDocColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strTipoDocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strAno() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strAnoColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strAnoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intNumero() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.intNumeroColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.intNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNumero() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strNumeroColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHash() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strHashColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strHashColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataRegisto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataRegistoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataRegisto' in table 'Mov_EncomendasFornecedor_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserRegisto() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strUserRegistoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserRegisto' in table 'Mov_EncomendasFornecedor_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strUserRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmData() As Date
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataColumn),Date)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodFornecedor() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strCodFornecedorColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strCodFornecedorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNomeFornecedor() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strNomeFornecedorColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strNomeFornecedorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPropostaFornecedor() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strPropostaFornecedorColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPropostaFornecedor' in table 'Mov_EncomendasFornecedor_C"& _ 
                            "ab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strPropostaFornecedorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEntregaPrevista() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataEntregaPrevistaColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEntregaPrevista' in table 'Mov_EncomendasFornecedor_"& _ 
                            "Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataEntregaPrevistaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodMoeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strCodMoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodMoeda' in table 'Mov_EncomendasFornecedor_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strCodMoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNomeMoeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strNomeMoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strNomeMoeda' in table 'Mov_EncomendasFornecedor_Cab' is DB"& _ 
                            "Null.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strNomeMoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltCambio() As Double
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.fltCambioColumn),Double)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltCambio' in table 'Mov_EncomendasFornecedor_Cab' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.fltCambioColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intContrato() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.intContratoColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intContrato' in table 'Mov_EncomendasFornecedor_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.intContratoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intDiasPag() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.intDiasPagColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intDiasPag' in table 'Mov_EncomendasFornecedor_Cab' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.intDiasPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCondicaoPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strCondicaoPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCondicaoPag' in table 'Mov_EncomendasFornecedor_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strCondicaoPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strMeioPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strMeioPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strMeioPag' in table 'Mov_EncomendasFornecedor_Cab' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strMeioPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strPedidoCotacao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strPedidoCotacaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strPedidoCotacao' in table 'Mov_EncomendasFornecedor_Cab' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strPedidoCotacaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strObs() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strObsColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strObs' in table 'Mov_EncomendasFornecedor_Cab' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strObsColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property updateStamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.updateStampColumn),Byte())
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'updateStamp' in table 'Mov_EncomendasFornecedor_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.updateStampColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltTotal() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.fltTotalColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltTotal' in table 'Mov_EncomendasFornecedor_Cab' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.fltTotalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitAnulado() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.bitAnuladoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.bitAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAnulado() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAnuladoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAnulado' in table 'Mov_EncomendasFornecedor_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAnulado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAnuladoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAnulado' in table 'Mov_EncomendasFornecedor_Cab' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strNumExterno() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strNumExternoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strNumExterno' in table 'Mov_EncomendasFornecedor_Cab' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strNumExternoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAlteracao() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAlteracaoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAlteracao' in table 'Mov_EncomendasFornecedor_Cab' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAlteracao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAlteracaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAlteracao' in table 'Mov_EncomendasFornecedor_Cab' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitSatisfeita() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.bitSatisfeitaColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.bitSatisfeitaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataSatisfeito() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataSatisfeitoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataSatisfeito' in table 'Mov_EncomendasFornecedor_Cab' "& _ 
                            "is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataSatisfeitoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserSatisfeito() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.strUserSatisfeitoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserSatisfeito' in table 'Mov_EncomendasFornecedor_Cab' "& _ 
                            "is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.strUserSatisfeitoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intIdEstado() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Cab.intIdEstadoColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intIdEstado' in table 'Mov_EncomendasFornecedor_Cab' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Cab.intIdEstadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.dtmDataRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataRegistoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strUserRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserRegistoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strUserRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPropostaFornecedorNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strPropostaFornecedorColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPropostaFornecedorNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strPropostaFornecedorColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEntregaPrevistaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.dtmDataEntregaPrevistaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEntregaPrevistaNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataEntregaPrevistaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodMoedaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strCodMoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodMoedaNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strCodMoedaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrNomeMoedaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strNomeMoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrNomeMoedaNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strNomeMoedaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltCambioNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.fltCambioColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltCambioNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.fltCambioColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintContratoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.intContratoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintContratoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.intContratoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintDiasPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.intDiasPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintDiasPagNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.intDiasPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCondicaoPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strCondicaoPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCondicaoPagNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strCondicaoPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrMeioPagNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strMeioPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrMeioPagNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strMeioPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrPedidoCotacaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strPedidoCotacaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrPedidoCotacaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strPedidoCotacaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrObsNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strObsColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrObsNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strObsColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsupdateStampNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.updateStampColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetupdateStampNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.updateStampColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltTotalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.fltTotalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltTotalNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.fltTotalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAnuladoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAnuladoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAnuladoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAnuladoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAnuladoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strUserAnuladoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAnuladoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAnuladoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrNumExternoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strNumExternoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrNumExternoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strNumExternoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAlteracaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strUserAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAlteracaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strUserAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataSatisfeitoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.dtmDataSatisfeitoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataSatisfeitoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.dtmDataSatisfeitoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserSatisfeitoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.strUserSatisfeitoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserSatisfeitoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.strUserSatisfeitoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintIdEstadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Cab.intIdEstadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintIdEstadoNull()
            Me(Me.tableMov_EncomendasFornecedor_Cab.intIdEstadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function GetMov_EncomendasFornecedor_LinRows() As Mov_EncomendasFornecedor_LinRow()
            If (Me.Table.ChildRelations("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab") Is Nothing) Then
                Return New Mov_EncomendasFornecedor_LinRow(-1) {}
            Else
                Return CType(MyBase.GetChildRows(Me.Table.ChildRelations("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab")),Mov_EncomendasFornecedor_LinRow())
            End If
        End Function
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class Mov_EncomendasFornecedor_LinRow
        Inherits Global.System.Data.DataRow
        
        Private tableMov_EncomendasFornecedor_Lin As Mov_EncomendasFornecedor_LinDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableMov_EncomendasFornecedor_Lin = CType(Me.Table,Mov_EncomendasFornecedor_LinDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intId() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intIdColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intIdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodEmp() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strCodEmpColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strCodEmpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoDoc() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strTipoDocColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strTipoDocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strAno() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strAnoColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strAnoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intNumero() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intNumeroColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intLinha() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intLinhaColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHashCab() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strHashCabColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strHashCab' in table 'Mov_EncomendasFornecedor_Lin' is DBNu"& _ 
                            "ll.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strHashCabColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intPosicao() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodArtigo() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strCodArtigoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodArtigo' in table 'Mov_EncomendasFornecedor_Lin' is DB"& _ 
                            "Null.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strCodArtigoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strDescricaoArtigo() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoArtigoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strDescricaoArtigo' in table 'Mov_EncomendasFornecedor_Lin'"& _ 
                            " is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoArtigoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodUnidade() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strCodUnidadeColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodUnidade' in table 'Mov_EncomendasFornecedor_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strCodUnidadeColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intCasasDecimaisUN() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intCasasDecimaisUNColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intCasasDecimaisUN' in table 'Mov_EncomendasFornecedor_Lin'"& _ 
                            " is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intCasasDecimaisUNColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtd() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdAnulada() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdAnuladaColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdAnuladaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltPrecoUnitario() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltPrecoUnitarioColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltPrecoUnitario' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltPrecoUnitarioColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltDesconto() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltDescontoValor() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoValorColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltDescontoValor' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoValorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodIVA() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strCodIVAColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodIVA' in table 'Mov_EncomendasFornecedor_Lin' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strCodIVAColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltIVA() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltIVAColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltIVA' in table 'Mov_EncomendasFornecedor_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltIVAColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltTotalLinha() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltTotalLinhaColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltTotalLinha' in table 'Mov_EncomendasFornecedor_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltTotalLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEntrega() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEntregaColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEntrega' in table 'Mov_EncomendasFornecedor_Lin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEntregaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strRequisicao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisicaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strRequisicao' in table 'Mov_EncomendasFornecedor_Lin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisicaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strRequisitante() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisitanteColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strRequisitante' in table 'Mov_EncomendasFornecedor_Lin' is"& _ 
                            " DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisitanteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property updateStamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.updateStampColumn),Byte())
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'updateStamp' in table 'Mov_EncomendasFornecedor_Lin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.updateStampColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitParcial() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.bitParcialColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.bitParcialColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdRequisitada() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdRequisitadaColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltQtdRequisitada' in table 'Mov_EncomendasFornecedor_Lin' "& _ 
                            "is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdRequisitadaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataRegisto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataRegistoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataRegisto' in table 'Mov_EncomendasFornecedor_Lin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserRegisto() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strUserRegistoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserRegisto' in table 'Mov_EncomendasFornecedor_Lin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strUserRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAlteracao() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataAlteracaoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAlteracao' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAlteracao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strUserAlteracaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAlteracao' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strUserAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intPosicaoOriginal() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoOriginalColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intPosicaoOriginal' in table 'Mov_EncomendasFornecedor_Lin'"& _ 
                            " is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoOriginalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdOriginal() As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdOriginalColumn),Decimal)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'fltQtdOriginal' in table 'Mov_EncomendasFornecedor_Lin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdOriginalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitEliminado() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.bitEliminadoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.bitEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEliminado() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEliminadoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEliminado' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserEliminado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strUserEliminadoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserEliminado' in table 'Mov_EncomendasFornecedor_Lin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strUserEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strDescricaoComplementar() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoComplementarColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strDescricaoComplementar' in table 'Mov_EncomendasFornecedo"& _ 
                            "r_Lin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoComplementarColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Mov_EncomendasFornecedor_CabRowParent() As Mov_EncomendasFornecedor_CabRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab")),Mov_EncomendasFornecedor_CabRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("FK_Mov_EncomendasFornecedor_Lin_Mov_EncomendasFornecedor_Cab"))
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrHashCabNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strHashCabColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrHashCabNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strHashCabColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodArtigoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strCodArtigoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodArtigoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strCodArtigoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrDescricaoArtigoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoArtigoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrDescricaoArtigoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoArtigoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodUnidadeNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strCodUnidadeColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodUnidadeNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strCodUnidadeColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintCasasDecimaisUNNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.intCasasDecimaisUNColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintCasasDecimaisUNNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.intCasasDecimaisUNColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltPrecoUnitarioNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltPrecoUnitarioColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltPrecoUnitarioNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltPrecoUnitarioColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltDescontoValorNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoValorColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltDescontoValorNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltDescontoValorColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodIVANull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strCodIVAColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodIVANull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strCodIVAColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltIVANull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltIVAColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltIVANull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltIVAColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltTotalLinhaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltTotalLinhaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltTotalLinhaNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltTotalLinhaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEntregaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEntregaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEntregaNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEntregaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrRequisicaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strRequisicaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrRequisicaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisicaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrRequisitanteNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strRequisitanteColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrRequisitanteNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strRequisitanteColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsupdateStampNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.updateStampColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetupdateStampNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.updateStampColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltQtdRequisitadaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltQtdRequisitadaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltQtdRequisitadaNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdRequisitadaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.dtmDataRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataRegistoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strUserRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserRegistoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strUserRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.dtmDataAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAlteracaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strUserAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAlteracaoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strUserAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintPosicaoOriginalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoOriginalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintPosicaoOriginalNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.intPosicaoOriginalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsfltQtdOriginalNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.fltQtdOriginalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetfltQtdOriginalNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.fltQtdOriginalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEliminadoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.dtmDataEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strUserEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserEliminadoNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strUserEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrDescricaoComplementarNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoComplementarColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrDescricaoComplementarNull()
            Me(Me.tableMov_EncomendasFornecedor_Lin.strDescricaoComplementarColumn) = Global.System.Convert.DBNull
        End Sub
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class Mov_EncomendasCliente_SubLinRow
        Inherits Global.System.Data.DataRow
        
        Private tableMov_EncomendasCliente_SubLin As Mov_EncomendasCliente_SubLinDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableMov_EncomendasCliente_SubLin = CType(Me.Table,Mov_EncomendasCliente_SubLinDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intId() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.intIdColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.intIdColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodEmp() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strCodEmpColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strCodEmpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strTipoDoc() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strTipoDocColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strTipoDocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strAno() As String
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strAnoColumn),String)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strAnoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intNumero() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.intNumeroColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.intNumeroColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intLinha() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.intLinhaColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.intLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intSubLinha() As Integer
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.intSubLinhaColumn),Integer)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.intSubLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdGosimac() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdGosimacColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdGosimacColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdPendente() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdPendenteColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdPendenteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdAnulada() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdAnuladaColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdAnuladaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltQtdEntregue() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdEntregueColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltQtdEntregueColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltPrecoUnitario() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltPrecoUnitarioColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltPrecoUnitarioColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataGosimac() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataGosimacColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataGosimac' in table 'Mov_EncomendasCliente_SubLin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataGosimacColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property intEstado() As Integer
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.intEstadoColumn),Integer)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'intEstado' in table 'Mov_EncomendasCliente_SubLin' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.intEstadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataRegisto() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataRegistoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataRegisto' in table 'Mov_EncomendasCliente_SubLin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserRegisto() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strUserRegistoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserRegisto' in table 'Mov_EncomendasCliente_SubLin' is "& _ 
                            "DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strUserRegistoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataAlteracao() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataAlteracaoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataAlteracao' in table 'Mov_EncomendasCliente_SubLin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserAlteracao() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strUserAlteracaoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserAlteracao' in table 'Mov_EncomendasCliente_SubLin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strUserAlteracaoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property bitEliminado() As Boolean
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.bitEliminadoColumn),Boolean)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.bitEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property dtmDataEliminado() As Date
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataEliminadoColumn),Date)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'dtmDataEliminado' in table 'Mov_EncomendasCliente_SubLin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strUserEliminado() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strUserEliminadoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strUserEliminado' in table 'Mov_EncomendasCliente_SubLin' i"& _ 
                            "s DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strUserEliminadoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHashLinha() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strHashLinhaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strHashLinha' in table 'Mov_EncomendasCliente_SubLin' is DB"& _ 
                            "Null.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strHashLinhaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strHash() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strHashColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strHash' in table 'Mov_EncomendasCliente_SubLin' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strHashColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltDescontoPercGosimac() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltDescontoPercGosimacColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltDescontoPercGosimacColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltIvaPercGosimac() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltIvaPercGosimacColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltIvaPercGosimacColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property fltTotalGosimac() As Decimal
            Get
                Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.fltTotalGosimacColumn),Decimal)
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.fltTotalGosimacColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property updateStamp() As Byte()
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.updateStampColumn),Byte())
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'updateStamp' in table 'Mov_EncomendasCliente_SubLin' is DBN"& _ 
                            "ull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.updateStampColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strObs() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strObsColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strObs' in table 'Mov_EncomendasCliente_SubLin' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strObsColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property strCodUnidade() As String
            Get
                Try 
                    Return CType(Me(Me.tableMov_EncomendasCliente_SubLin.strCodUnidadeColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'strCodUnidade' in table 'Mov_EncomendasCliente_SubLin' is D"& _ 
                            "BNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableMov_EncomendasCliente_SubLin.strCodUnidadeColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Mov_EncomendasCliente_LinRow() As Mov_EncomendasCliente_LinRow
            Get
                Return CType(Me.GetParentRow(Me.Table.ParentRelations("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin")),Mov_EncomendasCliente_LinRow)
            End Get
            Set
                Me.SetParentRow(value, Me.Table.ParentRelations("Mov_EncomendasCliente_Lin_Mov_EncomendasCliente_SubLin"))
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataGosimacNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.dtmDataGosimacColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataGosimacNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataGosimacColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsintEstadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.intEstadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetintEstadoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.intEstadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.dtmDataRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataRegistoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserRegistoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strUserRegistoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserRegistoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strUserRegistoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.dtmDataAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserAlteracaoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strUserAlteracaoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserAlteracaoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strUserAlteracaoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsdtmDataEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.dtmDataEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetdtmDataEliminadoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.dtmDataEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrUserEliminadoNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strUserEliminadoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrUserEliminadoNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strUserEliminadoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrHashLinhaNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strHashLinhaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrHashLinhaNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strHashLinhaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrHashNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strHashColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrHashNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strHashColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsupdateStampNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.updateStampColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetupdateStampNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.updateStampColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrObsNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strObsColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrObsNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strObsColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsstrCodUnidadeNull() As Boolean
            Return Me.IsNull(Me.tableMov_EncomendasCliente_SubLin.strCodUnidadeColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetstrCodUnidadeNull()
            Me(Me.tableMov_EncomendasCliente_SubLin.strCodUnidadeColumn) = Global.System.Convert.DBNull
        End Sub
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class USR_RST3_VIEW_ERP_ClientesRow
        Inherits Global.System.Data.DataRow
        
        Private tableUSR_RST3_VIEW_ERP_Clientes As USR_RST3_VIEW_ERP_ClientesDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableUSR_RST3_VIEW_ERP_Clientes = CType(Me.Table,USR_RST3_VIEW_ERP_ClientesDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Cliente() As String
            Get
                Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteColumn),String)
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Nome() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NomeColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Nome' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NomeColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Mor() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_MorColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Mor' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_MorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Local() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_LocalColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Local' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_LocalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Cp() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CpColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Cp' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Cploc() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CplocColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Cploc' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CplocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Tel() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_TelColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Tel' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_TelColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fac_Fax() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_FaxColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fac_Fax' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_FaxColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property NumContrib() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NumContribColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'NumContrib' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NumContribColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Pais() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.PaisColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Pais' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.PaisColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ModoPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ModoPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'ModoPag' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ModoPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property CondPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.CondPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'CondPag' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.CondPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Moeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.MoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Moeda' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.MoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClienteAnulado() As Boolean
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteAnuladoColumn),Boolean)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'ClienteAnulado' in table 'USR_RST3_VIEW_ERP_Clientes' is DB"& _ 
                            "Null.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteAnuladoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Distrito() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.DistritoColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Distrito' in table 'USR_RST3_VIEW_ERP_Clientes' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.DistritoColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsNomeNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.NomeColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetNomeNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NomeColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_MorNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_MorColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_MorNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_MorColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_LocalNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_LocalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_LocalNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_LocalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_CpNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CpColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_CpNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CpColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_CplocNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CplocColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_CplocNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_CplocColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_TelNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_TelColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_TelNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_TelColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFac_FaxNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_FaxColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFac_FaxNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.Fac_FaxColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsNumContribNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.NumContribColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetNumContribNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.NumContribColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsPaisNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.PaisColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetPaisNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.PaisColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsModoPagNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.ModoPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetModoPagNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ModoPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsCondPagNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.CondPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetCondPagNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.CondPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsMoedaNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.MoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetMoedaNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.MoedaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsClienteAnuladoNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteAnuladoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetClienteAnuladoNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.ClienteAnuladoColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsDistritoNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Clientes.DistritoColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetDistritoNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Clientes.DistritoColumn) = Global.System.Convert.DBNull
        End Sub
    End Class
    
    '''<summary>
    '''Represents strongly named DataRow class.
    '''</summary>
    Partial Public Class USR_RST3_VIEW_ERP_FornecedoresRow
        Inherits Global.System.Data.DataRow
        
        Private tableUSR_RST3_VIEW_ERP_Fornecedores As USR_RST3_VIEW_ERP_FornecedoresDataTable
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
            MyBase.New(rb)
            Me.tableUSR_RST3_VIEW_ERP_Fornecedores = CType(Me.Table,USR_RST3_VIEW_ERP_FornecedoresDataTable)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fornecedor() As String
            Get
                Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FornecedorColumn),String)
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FornecedorColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Nome() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NomeColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Nome' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NomeColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Morada() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoradaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Morada' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull"& _ 
                            ".", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoradaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Local() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.LocalColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Local' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.LocalColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Cp() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Cp' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property CpLoc() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpLocColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'CpLoc' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpLocColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Tel() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.TelColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Tel' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.TelColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Fax() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FaxColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Fax' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FaxColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property NumContrib() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NumContribColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'NumContrib' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DB"& _ 
                            "Null.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NumContribColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Pais() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.PaisColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Pais' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.PaisColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property CondPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CondPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'CondPag' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CondPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ModoPag() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.ModoPagColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'ModoPag' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNul"& _ 
                            "l.", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.ModoPagColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property Moeda() As String
            Get
                Try 
                    Return CType(Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoedaColumn),String)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'Moeda' in table 'USR_RST3_VIEW_ERP_Fornecedores' is DBNull."& _ 
                            "", e)
                End Try
            End Get
            Set
                Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoedaColumn) = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsNomeNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NomeColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetNomeNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NomeColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsMoradaNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoradaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetMoradaNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoradaColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsLocalNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.LocalColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetLocalNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.LocalColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsCpNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetCpNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsCpLocNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpLocColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetCpLocNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CpLocColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsTelNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.TelColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetTelNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.TelColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsFaxNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FaxColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetFaxNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.FaxColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsNumContribNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NumContribColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetNumContribNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.NumContribColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsPaisNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.PaisColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetPaisNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.PaisColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsCondPagNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CondPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetCondPagNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.CondPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsModoPagNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.ModoPagColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetModoPagNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.ModoPagColumn) = Global.System.Convert.DBNull
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Function IsMoedaNull() As Boolean
            Return Me.IsNull(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoedaColumn)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub SetMoedaNull()
            Me(Me.tableUSR_RST3_VIEW_ERP_Fornecedores.MoedaColumn) = Global.System.Convert.DBNull
        End Sub
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class Mov_EncomendasCliente_CabRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As Mov_EncomendasCliente_CabRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As Mov_EncomendasCliente_CabRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As Mov_EncomendasCliente_CabRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class Mov_EncomendasCliente_LinRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As Mov_EncomendasCliente_LinRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As Mov_EncomendasCliente_LinRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As Mov_EncomendasCliente_LinRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class Mov_EncomendasFornecedor_CabRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As Mov_EncomendasFornecedor_CabRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As Mov_EncomendasFornecedor_CabRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As Mov_EncomendasFornecedor_CabRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class Mov_EncomendasFornecedor_LinRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As Mov_EncomendasFornecedor_LinRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As Mov_EncomendasFornecedor_LinRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As Mov_EncomendasFornecedor_LinRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class Mov_EncomendasCliente_SubLinRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As Mov_EncomendasCliente_SubLinRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As Mov_EncomendasCliente_SubLinRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As Mov_EncomendasCliente_SubLinRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class USR_RST3_VIEW_ERP_ClientesRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As USR_RST3_VIEW_ERP_ClientesRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As USR_RST3_VIEW_ERP_ClientesRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As USR_RST3_VIEW_ERP_ClientesRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
    
    '''<summary>
    '''Row event argument class
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
    Public Class USR_RST3_VIEW_ERP_FornecedoresRowChangeEvent
        Inherits Global.System.EventArgs
        
        Private eventRow As USR_RST3_VIEW_ERP_FornecedoresRow
        
        Private eventAction As Global.System.Data.DataRowAction
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New(ByVal row As USR_RST3_VIEW_ERP_FornecedoresRow, ByVal action As Global.System.Data.DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Row() As USR_RST3_VIEW_ERP_FornecedoresRow
            Get
                Return Me.eventRow
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public ReadOnly Property Action() As Global.System.Data.DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
End Class

Namespace DataSetEncomendasTableAdapters
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class Mov_EncomendasCliente_CabTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Mov_EncomendasCliente_Cab"
            tableMapping.ColumnMappings.Add("intId", "intId")
            tableMapping.ColumnMappings.Add("strCodEmp", "strCodEmp")
            tableMapping.ColumnMappings.Add("strTipoDoc", "strTipoDoc")
            tableMapping.ColumnMappings.Add("strAno", "strAno")
            tableMapping.ColumnMappings.Add("intNumero", "intNumero")
            tableMapping.ColumnMappings.Add("strNumero", "strNumero")
            tableMapping.ColumnMappings.Add("strHash", "strHash")
            tableMapping.ColumnMappings.Add("dtmDataRegisto", "dtmDataRegisto")
            tableMapping.ColumnMappings.Add("strUserRegisto", "strUserRegisto")
            tableMapping.ColumnMappings.Add("dtmData", "dtmData")
            tableMapping.ColumnMappings.Add("strEstado", "strEstado")
            tableMapping.ColumnMappings.Add("strCodCliente", "strCodCliente")
            tableMapping.ColumnMappings.Add("strNomeCliente", "strNomeCliente")
            tableMapping.ColumnMappings.Add("dtmDataEntregaPrevista", "dtmDataEntregaPrevista")
            tableMapping.ColumnMappings.Add("strCodMoeda", "strCodMoeda")
            tableMapping.ColumnMappings.Add("strNomeMoeda", "strNomeMoeda")
            tableMapping.ColumnMappings.Add("fltCambio", "fltCambio")
            tableMapping.ColumnMappings.Add("intDiasPag", "intDiasPag")
            tableMapping.ColumnMappings.Add("strCondicaoPag", "strCondicaoPag")
            tableMapping.ColumnMappings.Add("strMeioPag", "strMeioPag")
            tableMapping.ColumnMappings.Add("strPedidoCotacao", "strPedidoCotacao")
            tableMapping.ColumnMappings.Add("strObs", "strObs")
            tableMapping.ColumnMappings.Add("updateStamp", "updateStamp")
            tableMapping.ColumnMappings.Add("fltTotal", "fltTotal")
            tableMapping.ColumnMappings.Add("bitAnulado", "bitAnulado")
            tableMapping.ColumnMappings.Add("dtmDataAnulado", "dtmDataAnulado")
            tableMapping.ColumnMappings.Add("strUserAnulado", "strUserAnulado")
            tableMapping.ColumnMappings.Add("strNumExterno", "strNumExterno")
            tableMapping.ColumnMappings.Add("dtmDataAlteracao", "dtmDataAlteracao")
            tableMapping.ColumnMappings.Add("strUserAlteracao", "strUserAlteracao")
            tableMapping.ColumnMappings.Add("bitSatisfeita", "bitSatisfeita")
            tableMapping.ColumnMappings.Add("dtmDataSatisfeito", "dtmDataSatisfeito")
            tableMapping.ColumnMappings.Add("strUserSatisfeito", "strUserSatisfeito")
            tableMapping.ColumnMappings.Add("dtmDataLimite", "dtmDataLimite")
            tableMapping.ColumnMappings.Add("bitPulmao", "bitPulmao")
            tableMapping.ColumnMappings.Add("strPulmaoHashEnc", "strPulmaoHashEnc")
            tableMapping.ColumnMappings.Add("strMoradaEntrega", "strMoradaEntrega")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [Mov_EncomendasCliente_Cab] WHERE (([strCodEmp] = @Original_strCodEmp"& _ 
                ") AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_strAno) AN"& _ 
                "D ([intNumero] = @Original_intNumero) AND ([updateStamp] = @Original_updateStamp"& _ 
                "))"
            Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [Mov_EncomendasCliente_Cab] ([strCodEmp], [strTipoDoc], [strAno], [in"& _ 
                "tNumero], [strNumero], [strHash], [dtmDataRegisto], [strUserRegisto], [dtmData],"& _ 
                " [strEstado], [strCodCliente], [strNomeCliente], [dtmDataEntregaPrevista], [strC"& _ 
                "odMoeda], [strNomeMoeda], [fltCambio], [intDiasPag], [strCondicaoPag], [strMeioP"& _ 
                "ag], [strPedidoCotacao], [strObs], [fltTotal], [bitAnulado], [dtmDataAnulado], ["& _ 
                "strUserAnulado], [strNumExterno], [dtmDataAlteracao], [strUserAlteracao], [bitSa"& _ 
                "tisfeita], [dtmDataSatisfeito], [strUserSatisfeito], [bitPulmao], [dtmDataLimite"& _ 
                "], [strMoradaEntrega], [strPulmaoHashEnc]) VALUES (@strCodEmp, @strTipoDoc, @str"& _ 
                "Ano, @intNumero, @strNumero, @strHash, @dtmDataRegisto, @strUserRegisto, @dtmDat"& _ 
                "a, @strEstado, @strCodCliente, @strNomeCliente, @dtmDataEntregaPrevista, @strCod"& _ 
                "Moeda, @strNomeMoeda, @fltCambio, @intDiasPag, @strCondicaoPag, @strMeioPag, @st"& _ 
                "rPedidoCotacao, @strObs, @fltTotal, @bitAnulado, @dtmDataAnulado, @strUserAnulad"& _ 
                "o, @strNumExterno, @dtmDataAlteracao, @strUserAlteracao, @bitSatisfeita, @dtmDat"& _ 
                "aSatisfeito, @strUserSatisfeito, @bitPulmao, @dtmDataLimite, @strMoradaEntrega, "& _ 
                "@strPulmaoHashEnc);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, str"& _ 
                "Numero, strHash, dtmDataRegisto, strUserRegisto, dtmData, strEstado, strCodClien"& _ 
                "te, strNomeCliente, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio"& _ 
                ", intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp,"& _ 
                " fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlt"& _ 
                "eracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, b"& _ 
                "itPulmao, dtmDataLimite, strMoradaEntrega, strPulmaoHashEnc FROM Mov_EncomendasC"& _ 
                "liente_Cab WHERE (intNumero = @intNumero) AND (strAno = @strAno) AND (strCodEmp "& _ 
                "= @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumero", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmData", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmData", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strEstado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodCliente", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeCliente", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntregaPrevista", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntregaPrevista", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltCambio", Global.System.Data.SqlDbType.Float, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "fltCambio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intDiasPag", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intDiasPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCondicaoPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCondicaoPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMeioPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMeioPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPedidoCotacao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPedidoCotacao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 4, "fltTotal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitAnulado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAnulado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAnulado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumExterno", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumExterno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitSatisfeita", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitSatisfeita", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataSatisfeito", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserSatisfeito", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitPulmao", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitPulmao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataLimite", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataLimite", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoHashEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoHashEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [Mov_EncomendasCliente_Cab] SET [strCodEmp] = @strCodEmp, [strTipoDoc] = @"& _ 
                "strTipoDoc, [strAno] = @strAno, [intNumero] = @intNumero, [strNumero] = @strNume"& _ 
                "ro, [strHash] = @strHash, [dtmDataRegisto] = @dtmDataRegisto, [strUserRegisto] ="& _ 
                " @strUserRegisto, [dtmData] = @dtmData, [strEstado] = @strEstado, [strCodCliente"& _ 
                "] = @strCodCliente, [strNomeCliente] = @strNomeCliente, [dtmDataEntregaPrevista]"& _ 
                " = @dtmDataEntregaPrevista, [strCodMoeda] = @strCodMoeda, [strNomeMoeda] = @strN"& _ 
                "omeMoeda, [fltCambio] = @fltCambio, [intDiasPag] = @intDiasPag, [strCondicaoPag]"& _ 
                " = @strCondicaoPag, [strMeioPag] = @strMeioPag, [strPedidoCotacao] = @strPedidoC"& _ 
                "otacao, [strObs] = @strObs, [fltTotal] = @fltTotal, [bitAnulado] = @bitAnulado, "& _ 
                "[dtmDataAnulado] = @dtmDataAnulado, [strUserAnulado] = @strUserAnulado, [strNumE"& _ 
                "xterno] = @strNumExterno, [dtmDataAlteracao] = @dtmDataAlteracao, [strUserAltera"& _ 
                "cao] = @strUserAlteracao, [bitSatisfeita] = @bitSatisfeita, [dtmDataSatisfeito] "& _ 
                "= @dtmDataSatisfeito, [strUserSatisfeito] = @strUserSatisfeito, [bitPulmao] = @b"& _ 
                "itPulmao, [dtmDataLimite] = @dtmDataLimite, [strMoradaEntrega] = @strMoradaEntre"& _ 
                "ga, [strPulmaoHashEnc] = @strPulmaoHashEnc WHERE (([strCodEmp] = @Original_strCo"& _ 
                "dEmp) AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_strAno"& _ 
                ") AND ([intNumero] = @Original_intNumero) AND ([updateStamp] = @Original_updateS"& _ 
                "tamp));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, strNumero, strH"& _ 
                "ash, dtmDataRegisto, strUserRegisto, dtmData, strEstado, strCodCliente, strNomeC"& _ 
                "liente, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intDiasPag"& _ 
                ", strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTotal, b"& _ 
                "itAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strU"& _ 
                "serAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, bitPulmao, dt"& _ 
                "mDataLimite, strMoradaEntrega, strPulmaoHashEnc FROM Mov_EncomendasCliente_Cab W"& _ 
                "HERE (intNumero = @intNumero) AND (strAno = @strAno) AND (strCodEmp = @strCodEmp"& _ 
                ") AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumero", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmData", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmData", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strEstado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodCliente", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeCliente", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntregaPrevista", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntregaPrevista", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltCambio", Global.System.Data.SqlDbType.Float, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "fltCambio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intDiasPag", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intDiasPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCondicaoPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCondicaoPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMeioPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMeioPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPedidoCotacao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPedidoCotacao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 4, "fltTotal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitAnulado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAnulado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAnulado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumExterno", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumExterno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitSatisfeita", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitSatisfeita", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataSatisfeito", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserSatisfeito", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitPulmao", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitPulmao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataLimite", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataLimite", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoHashEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoHashEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, strNumero, strHash, dtmDa"& _ 
                "taRegisto, strUserRegisto, dtmData, strEstado, strCodCliente, strNomeCliente, dt"& _ 
                "mDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intDiasPag, strCondi"& _ 
                "caoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTotal, bitAnulado,"& _ 
                " dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlterac"& _ 
                "ao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, bitPulmao, dtmDataLimit"& _ 
                "e, strMoradaEntrega, strPulmaoHashEnc FROM Mov_EncomendasCliente_Cab"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_CabDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.Mov_EncomendasCliente_CabDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.Mov_EncomendasCliente_CabDataTable = New DataSetEncomendas.Mov_EncomendasCliente_CabDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_CabDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As DataSetEncomendas) As Integer
            Return Me.Adapter.Update(dataSet, "Mov_EncomendasCliente_Cab")
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_strCodEmp As String, ByVal Original_strTipoDoc As String, ByVal Original_strAno As String, ByVal Original_intNumero As Integer, ByVal Original_updateStamp() As Byte) As Integer
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_intNumero,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strEstado As String,  _
                    ByVal strCodCliente As String,  _
                    ByVal strNomeCliente As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataLimite As Global.System.Nullable(Of Date),  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoHashEnc As String) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.InsertCommand.Parameters(3).Value = CType(intNumero,Integer)
            If (strNumero Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNumero")
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(strNumero,String)
            End If
            If (strHash Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strHash")
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(strHash,String)
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(strUserRegisto,String)
            End If
            Me.Adapter.InsertCommand.Parameters(8).Value = CType(dtmData,Date)
            If (strEstado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(strEstado,String)
            End If
            If (strCodCliente Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodCliente")
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(strCodCliente,String)
            End If
            If (strNomeCliente Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNomeCliente")
            Else
                Me.Adapter.InsertCommand.Parameters(11).Value = CType(strNomeCliente,String)
            End If
            If (dtmDataEntregaPrevista.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(12).Value = CType(dtmDataEntregaPrevista.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (strCodMoeda Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(strCodMoeda,String)
            End If
            If (strNomeMoeda Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(14).Value = CType(strNomeMoeda,String)
            End If
            If (fltCambio.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(fltCambio.Value,Double)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (intDiasPag.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(intDiasPag.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
            End If
            If (strCondicaoPag Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(17).Value = CType(strCondicaoPag,String)
            End If
            If (strMeioPag Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(18).Value = CType(strMeioPag,String)
            End If
            If (strPedidoCotacao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(19).Value = CType(strPedidoCotacao,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(20).Value = CType(strObs,String)
            End If
            If (fltTotal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(21).Value = CType(fltTotal.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(22).Value = CType(bitAnulado,Boolean)
            If (dtmDataAnulado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(23).Value = CType(dtmDataAnulado.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (strUserAnulado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(24).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(24).Value = CType(strUserAnulado,String)
            End If
            If (strNumExterno Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(25).Value = CType(strNumExterno,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(26).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(27).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(27).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.InsertCommand.Parameters(28).Value = CType(bitSatisfeita,Boolean)
            If (dtmDataSatisfeito.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(29).Value = CType(dtmDataSatisfeito.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(29).Value = Global.System.DBNull.Value
            End If
            If (strUserSatisfeito Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(30).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(30).Value = CType(strUserSatisfeito,String)
            End If
            Me.Adapter.InsertCommand.Parameters(31).Value = CType(bitPulmao,Boolean)
            If (dtmDataLimite.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(32).Value = CType(dtmDataLimite.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            If (strMoradaEntrega Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(33).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(33).Value = CType(strMoradaEntrega,String)
            End If
            If (strPulmaoHashEnc Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(34).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(34).Value = CType(strPulmaoHashEnc,String)
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strEstado As String,  _
                    ByVal strCodCliente As String,  _
                    ByVal strNomeCliente As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataLimite As Global.System.Nullable(Of Date),  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(intNumero,Integer)
            If (strNumero Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNumero")
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(strNumero,String)
            End If
            If (strHash Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strHash")
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(strHash,String)
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(strUserRegisto,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(dtmData,Date)
            If (strEstado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(strEstado,String)
            End If
            If (strCodCliente Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodCliente")
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(strCodCliente,String)
            End If
            If (strNomeCliente Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNomeCliente")
            Else
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(strNomeCliente,String)
            End If
            If (dtmDataEntregaPrevista.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(dtmDataEntregaPrevista.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (strCodMoeda Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(strCodMoeda,String)
            End If
            If (strNomeMoeda Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(strNomeMoeda,String)
            End If
            If (fltCambio.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(fltCambio.Value,Double)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (intDiasPag.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(intDiasPag.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
            End If
            If (strCondicaoPag Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(strCondicaoPag,String)
            End If
            If (strMeioPag Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(strMeioPag,String)
            End If
            If (strPedidoCotacao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(strPedidoCotacao,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(strObs,String)
            End If
            If (fltTotal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(fltTotal.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(22).Value = CType(bitAnulado,Boolean)
            If (dtmDataAnulado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(dtmDataAnulado.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (strUserAnulado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(24).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(strUserAnulado,String)
            End If
            If (strNumExterno Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(strNumExterno,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(27).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(27).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(28).Value = CType(bitSatisfeita,Boolean)
            If (dtmDataSatisfeito.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(29).Value = CType(dtmDataSatisfeito.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(29).Value = Global.System.DBNull.Value
            End If
            If (strUserSatisfeito Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(30).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(30).Value = CType(strUserSatisfeito,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(31).Value = CType(bitPulmao,Boolean)
            If (dtmDataLimite.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(dtmDataLimite.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            If (strMoradaEntrega Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(33).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(33).Value = CType(strMoradaEntrega,String)
            End If
            If (strPulmaoHashEnc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(34).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(34).Value = CType(strPulmaoHashEnc,String)
            End If
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(35).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(36).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(37).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(38).Value = CType(Original_intNumero,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(39).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strEstado As String,  _
                    ByVal strCodCliente As String,  _
                    ByVal strNomeCliente As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataLimite As Global.System.Nullable(Of Date),  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            Return Me.Update(Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, strNumero, strHash, dtmDataRegisto, strUserRegisto, dtmData, strEstado, strCodCliente, strNomeCliente, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, bitPulmao, dtmDataLimite, strMoradaEntrega, strPulmaoHashEnc, Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_updateStamp)
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class Mov_EncomendasCliente_LinTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Mov_EncomendasCliente_Lin"
            tableMapping.ColumnMappings.Add("intId", "intId")
            tableMapping.ColumnMappings.Add("strCodEmp", "strCodEmp")
            tableMapping.ColumnMappings.Add("strTipoDoc", "strTipoDoc")
            tableMapping.ColumnMappings.Add("strAno", "strAno")
            tableMapping.ColumnMappings.Add("intNumero", "intNumero")
            tableMapping.ColumnMappings.Add("intLinha", "intLinha")
            tableMapping.ColumnMappings.Add("strHashCab", "strHashCab")
            tableMapping.ColumnMappings.Add("intPosicao", "intPosicao")
            tableMapping.ColumnMappings.Add("strCodArtigo", "strCodArtigo")
            tableMapping.ColumnMappings.Add("strDescricaoArtigo", "strDescricaoArtigo")
            tableMapping.ColumnMappings.Add("strCodUnidade", "strCodUnidade")
            tableMapping.ColumnMappings.Add("intCasasDecimaisUN", "intCasasDecimaisUN")
            tableMapping.ColumnMappings.Add("fltQtd", "fltQtd")
            tableMapping.ColumnMappings.Add("fltQtdAnulada", "fltQtdAnulada")
            tableMapping.ColumnMappings.Add("fltPrecoUnitario", "fltPrecoUnitario")
            tableMapping.ColumnMappings.Add("fltDesconto", "fltDesconto")
            tableMapping.ColumnMappings.Add("fltDescontoValor", "fltDescontoValor")
            tableMapping.ColumnMappings.Add("strCodIVA", "strCodIVA")
            tableMapping.ColumnMappings.Add("fltIVA", "fltIVA")
            tableMapping.ColumnMappings.Add("fltTotalLinha", "fltTotalLinha")
            tableMapping.ColumnMappings.Add("dtmDataEntrega", "dtmDataEntrega")
            tableMapping.ColumnMappings.Add("updateStamp", "updateStamp")
            tableMapping.ColumnMappings.Add("bitParcial", "bitParcial")
            tableMapping.ColumnMappings.Add("dtmDataRegisto", "dtmDataRegisto")
            tableMapping.ColumnMappings.Add("strUserRegisto", "strUserRegisto")
            tableMapping.ColumnMappings.Add("dtmDataAlteracao", "dtmDataAlteracao")
            tableMapping.ColumnMappings.Add("strUserAlteracao", "strUserAlteracao")
            tableMapping.ColumnMappings.Add("intPosicaoOriginal", "intPosicaoOriginal")
            tableMapping.ColumnMappings.Add("fltQtdOriginal", "fltQtdOriginal")
            tableMapping.ColumnMappings.Add("bitEliminado", "bitEliminado")
            tableMapping.ColumnMappings.Add("dtmDataEliminado", "dtmDataEliminado")
            tableMapping.ColumnMappings.Add("strUserEliminado", "strUserEliminado")
            tableMapping.ColumnMappings.Add("strDescricaoComplementar", "strDescricaoComplementar")
            tableMapping.ColumnMappings.Add("strObs", "strObs")
            tableMapping.ColumnMappings.Add("dtmDataCliente", "dtmDataCliente")
            tableMapping.ColumnMappings.Add("bitPulmao", "bitPulmao")
            tableMapping.ColumnMappings.Add("strPulmaoHashEnc", "strPulmaoHashEnc")
            tableMapping.ColumnMappings.Add("strMoradaEntrega", "strMoradaEntrega")
            tableMapping.ColumnMappings.Add("strHash", "strHash")
            tableMapping.ColumnMappings.Add("strPulmaoEnc", "strPulmaoEnc")
            tableMapping.ColumnMappings.Add("strTipoMateriaProd", "strTipoMateriaProd")
            tableMapping.ColumnMappings.Add("dtmDataAbatimento", "dtmDataAbatimento")
            tableMapping.ColumnMappings.Add("strIdMoradaEntrega", "strIdMoradaEntrega")
            tableMapping.ColumnMappings.Add("bitMoradaAlternativa", "bitMoradaAlternativa")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [Mov_EncomendasCliente_Lin] WHERE (([strCodEmp] = @Original_strCodEmp"& _ 
                ") AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_strAno) AN"& _ 
                "D ([intNumero] = @Original_intNumero) AND ([intLinha] = @Original_intLinha) AND "& _ 
                "([updateStamp] = @Original_updateStamp))"
            Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [Mov_EncomendasCliente_Lin] ([strCodEmp], [strTipoDoc], [strAno], [in"& _ 
                "tNumero], [intLinha], [strHashCab], [intPosicao], [strCodArtigo], [strDescricaoA"& _ 
                "rtigo], [strCodUnidade], [intCasasDecimaisUN], [fltQtd], [fltQtdAnulada], [fltPr"& _ 
                "ecoUnitario], [fltDesconto], [fltDescontoValor], [strCodIVA], [fltIVA], [fltTota"& _ 
                "lLinha], [dtmDataEntrega], [bitParcial], [dtmDataRegisto], [strUserRegisto], [dt"& _ 
                "mDataAlteracao], [strUserAlteracao], [intPosicaoOriginal], [fltQtdOriginal], [bi"& _ 
                "tEliminado], [dtmDataEliminado], [strUserEliminado], [strDescricaoComplementar],"& _ 
                " [strObs], [dtmDataCliente], [bitMoradaAlternativa], [bitPulmao], [dtmDataAbatim"& _ 
                "ento], [strHash], [strIdMoradaEntrega], [strMoradaEntrega], [strPulmaoEnc], [str"& _ 
                "PulmaoHashEnc], [strTipoMateriaProd]) VALUES (@strCodEmp, @strTipoDoc, @strAno, "& _ 
                "@intNumero, @intLinha, @strHashCab, @intPosicao, @strCodArtigo, @strDescricaoArt"& _ 
                "igo, @strCodUnidade, @intCasasDecimaisUN, @fltQtd, @fltQtdAnulada, @fltPrecoUnit"& _ 
                "ario, @fltDesconto, @fltDescontoValor, @strCodIVA, @fltIVA, @fltTotalLinha, @dtm"& _ 
                "DataEntrega, @bitParcial, @dtmDataRegisto, @strUserRegisto, @dtmDataAlteracao, @"& _ 
                "strUserAlteracao, @intPosicaoOriginal, @fltQtdOriginal, @bitEliminado, @dtmDataE"& _ 
                "liminado, @strUserEliminado, @strDescricaoComplementar, @strObs, @dtmDataCliente"& _ 
                ", @bitMoradaAlternativa, @bitPulmao, @dtmDataAbatimento, @strHash, @strIdMoradaE"& _ 
                "ntrega, @strMoradaEntrega, @strPulmaoEnc, @strPulmaoHashEnc, @strTipoMateriaProd"& _ 
                ");"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab"& _ 
                ", intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisU"& _ 
                "N, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCo"& _ 
                "dIVA, fltIVA, fltTotalLinha, dtmDataEntrega, updateStamp, bitParcial, dtmDataReg"& _ 
                "isto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fl"& _ 
                "tQtdOriginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComp"& _ 
                "lementar, strObs, dtmDataCliente, bitMoradaAlternativa, bitPulmao, dtmDataAbatim"& _ 
                "ento, strHash, strIdMoradaEntrega, strMoradaEntrega, strPulmaoEnc, strPulmaoHash"& _ 
                "Enc, strTipoMateriaProd FROM Mov_EncomendasCliente_Lin WHERE (intLinha = @intLin"& _ 
                "ha) AND (intNumero = @intNumero) AND (strAno = @strAno) AND (strCodEmp = @strCod"& _ 
                "Emp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashCab", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashCab", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicao", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intCasasDecimaisUN", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intCasasDecimaisUN", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtd", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDesconto", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDesconto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoValor", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoValor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodIVA", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIVA", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalLinha", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntrega", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitParcial", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitParcial", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicaoOriginal", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicaoOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdOriginal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoComplementar", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoComplementar", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataCliente", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitMoradaAlternativa", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitMoradaAlternativa", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitPulmao", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitPulmao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAbatimento", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAbatimento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strIdMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strIdMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoHashEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoHashEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoMateriaProd", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoMateriaProd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [Mov_EncomendasCliente_Lin] SET [strCodEmp] = @strCodEmp, [strTipoDoc] = @"& _ 
                "strTipoDoc, [strAno] = @strAno, [intNumero] = @intNumero, [intLinha] = @intLinha"& _ 
                ", [strHashCab] = @strHashCab, [intPosicao] = @intPosicao, [strCodArtigo] = @strC"& _ 
                "odArtigo, [strDescricaoArtigo] = @strDescricaoArtigo, [strCodUnidade] = @strCodU"& _ 
                "nidade, [intCasasDecimaisUN] = @intCasasDecimaisUN, [fltQtd] = @fltQtd, [fltQtdA"& _ 
                "nulada] = @fltQtdAnulada, [fltPrecoUnitario] = @fltPrecoUnitario, [fltDesconto] "& _ 
                "= @fltDesconto, [fltDescontoValor] = @fltDescontoValor, [strCodIVA] = @strCodIVA"& _ 
                ", [fltIVA] = @fltIVA, [fltTotalLinha] = @fltTotalLinha, [dtmDataEntrega] = @dtmD"& _ 
                "ataEntrega, [bitParcial] = @bitParcial, [dtmDataRegisto] = @dtmDataRegisto, [str"& _ 
                "UserRegisto] = @strUserRegisto, [dtmDataAlteracao] = @dtmDataAlteracao, [strUser"& _ 
                "Alteracao] = @strUserAlteracao, [intPosicaoOriginal] = @intPosicaoOriginal, [flt"& _ 
                "QtdOriginal] = @fltQtdOriginal, [bitEliminado] = @bitEliminado, [dtmDataEliminad"& _ 
                "o] = @dtmDataEliminado, [strUserEliminado] = @strUserEliminado, [strDescricaoCom"& _ 
                "plementar] = @strDescricaoComplementar, [strObs] = @strObs, [dtmDataCliente] = @"& _ 
                "dtmDataCliente, [bitMoradaAlternativa] = @bitMoradaAlternativa, [bitPulmao] = @b"& _ 
                "itPulmao, [dtmDataAbatimento] = @dtmDataAbatimento, [strHash] = @strHash, [strId"& _ 
                "MoradaEntrega] = @strIdMoradaEntrega, [strMoradaEntrega] = @strMoradaEntrega, [s"& _ 
                "trPulmaoEnc] = @strPulmaoEnc, [strPulmaoHashEnc] = @strPulmaoHashEnc, [strTipoMa"& _ 
                "teriaProd] = @strTipoMateriaProd WHERE (([strCodEmp] = @Original_strCodEmp) AND "& _ 
                "([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_strAno) AND ([in"& _ 
                "tNumero] = @Original_intNumero) AND ([intLinha] = @Original_intLinha) AND ([upda"& _ 
                "teStamp] = @Original_updateStamp));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno"& _ 
                ", intNumero, intLinha, strHashCab, intPosicao, strCodArtigo, strDescricaoArtigo,"& _ 
                " strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, flt"& _ 
                "Desconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, up"& _ 
                "dateStamp, bitParcial, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUser"& _ 
                "Alteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, s"& _ 
                "trUserEliminado, strDescricaoComplementar, strObs, dtmDataCliente, bitMoradaAlte"& _ 
                "rnativa, bitPulmao, dtmDataAbatimento, strHash, strIdMoradaEntrega, strMoradaEnt"& _ 
                "rega, strPulmaoEnc, strPulmaoHashEnc, strTipoMateriaProd FROM Mov_EncomendasClie"& _ 
                "nte_Lin WHERE (intLinha = @intLinha) AND (intNumero = @intNumero) AND (strAno = "& _ 
                "@strAno) AND (strCodEmp = @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashCab", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashCab", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicao", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intCasasDecimaisUN", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intCasasDecimaisUN", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtd", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDesconto", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDesconto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoValor", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoValor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodIVA", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIVA", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalLinha", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntrega", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitParcial", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitParcial", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicaoOriginal", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicaoOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdOriginal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoComplementar", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoComplementar", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataCliente", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataCliente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitMoradaAlternativa", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitMoradaAlternativa", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitPulmao", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitPulmao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAbatimento", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAbatimento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strIdMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strIdMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMoradaEntrega", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMoradaEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPulmaoHashEnc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPulmaoHashEnc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoMateriaProd", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoMateriaProd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab, int"& _ 
                "Posicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fl"& _ 
                "tQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA,"& _ 
                " fltIVA, fltTotalLinha, dtmDataEntrega, updateStamp, bitParcial, dtmDataRegisto,"& _ 
                " strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdO"& _ 
                "riginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComplemen"& _ 
                "tar, strObs, dtmDataCliente, bitMoradaAlternativa, bitPulmao, dtmDataAbatimento,"& _ 
                " strHash, strIdMoradaEntrega, strMoradaEntrega, strPulmaoEnc, strPulmaoHashEnc, "& _ 
                "strTipoMateriaProd FROM Mov_EncomendasCliente_Lin"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_LinDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.Mov_EncomendasCliente_LinDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.Mov_EncomendasCliente_LinDataTable = New DataSetEncomendas.Mov_EncomendasCliente_LinDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_LinDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As DataSetEncomendas) As Integer
            Return Me.Adapter.Update(dataSet, "Mov_EncomendasCliente_Lin")
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_strCodEmp As String, ByVal Original_strTipoDoc As String, ByVal Original_strAno As String, ByVal Original_intNumero As Integer, ByVal Original_intLinha As Integer, ByVal Original_updateStamp() As Byte) As Integer
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_intNumero,Integer)
            Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_intLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal bitParcial As Boolean,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal strObs As String,  _
                    ByVal dtmDataCliente As Global.System.Nullable(Of Date),  _
                    ByVal bitMoradaAlternativa As Boolean,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataAbatimento As Global.System.Nullable(Of Date),  _
                    ByVal strHash As String,  _
                    ByVal strIdMoradaEntrega As String,  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoEnc As String,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal strTipoMateriaProd As String) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.InsertCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.InsertCommand.Parameters(4).Value = CType(intLinha,Integer)
            If (strHashCab Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(strHashCab,String)
            End If
            Me.Adapter.InsertCommand.Parameters(6).Value = CType(intPosicao,Integer)
            If (strCodArtigo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(strCodArtigo,String)
            End If
            If (strDescricaoArtigo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(8).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(8).Value = CType(strDescricaoArtigo,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(strCodUnidade,String)
            End If
            If (intCasasDecimaisUN.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(intCasasDecimaisUN.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(11).Value = CType(fltQtd,Decimal)
            Me.Adapter.InsertCommand.Parameters(12).Value = CType(fltQtdAnulada,Decimal)
            If (fltPrecoUnitario.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(fltPrecoUnitario.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(14).Value = CType(fltDesconto,Decimal)
            If (fltDescontoValor.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(fltDescontoValor.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strCodIVA Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(strCodIVA,String)
            End If
            If (fltIVA.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(17).Value = CType(fltIVA.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (fltTotalLinha.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(18).Value = CType(fltTotalLinha.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (dtmDataEntrega.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(19).Value = CType(dtmDataEntrega.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(20).Value = CType(bitParcial,Boolean)
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(21).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(22).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(22).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(23).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(24).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(24).Value = CType(strUserAlteracao,String)
            End If
            If (intPosicaoOriginal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(25).Value = CType(intPosicaoOriginal.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(25).Value = Global.System.DBNull.Value
            End If
            If (fltQtdOriginal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(26).Value = CType(fltQtdOriginal.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(27).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(28).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(28).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(29).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(29).Value = CType(strUserEliminado,String)
            End If
            If (strDescricaoComplementar Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(30).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(30).Value = CType(strDescricaoComplementar,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(31).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(31).Value = CType(strObs,String)
            End If
            If (dtmDataCliente.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(32).Value = CType(dtmDataCliente.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(33).Value = CType(bitMoradaAlternativa,Boolean)
            Me.Adapter.InsertCommand.Parameters(34).Value = CType(bitPulmao,Boolean)
            If (dtmDataAbatimento.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(35).Value = CType(dtmDataAbatimento.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(35).Value = Global.System.DBNull.Value
            End If
            If (strHash Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(36).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(36).Value = CType(strHash,String)
            End If
            If (strIdMoradaEntrega Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(37).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(37).Value = CType(strIdMoradaEntrega,String)
            End If
            If (strMoradaEntrega Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(38).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(38).Value = CType(strMoradaEntrega,String)
            End If
            If (strPulmaoEnc Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(39).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(39).Value = CType(strPulmaoEnc,String)
            End If
            If (strPulmaoHashEnc Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(40).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(40).Value = CType(strPulmaoHashEnc,String)
            End If
            If (strTipoMateriaProd Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(41).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(41).Value = CType(strTipoMateriaProd,String)
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal bitParcial As Boolean,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal strObs As String,  _
                    ByVal dtmDataCliente As Global.System.Nullable(Of Date),  _
                    ByVal bitMoradaAlternativa As Boolean,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataAbatimento As Global.System.Nullable(Of Date),  _
                    ByVal strHash As String,  _
                    ByVal strIdMoradaEntrega As String,  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoEnc As String,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal strTipoMateriaProd As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(4).Value = CType(intLinha,Integer)
            If (strHashCab Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(strHashCab,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(6).Value = CType(intPosicao,Integer)
            If (strCodArtigo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(strCodArtigo,String)
            End If
            If (strDescricaoArtigo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(strDescricaoArtigo,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(strCodUnidade,String)
            End If
            If (intCasasDecimaisUN.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(intCasasDecimaisUN.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(11).Value = CType(fltQtd,Decimal)
            Me.Adapter.UpdateCommand.Parameters(12).Value = CType(fltQtdAnulada,Decimal)
            If (fltPrecoUnitario.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(fltPrecoUnitario.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(14).Value = CType(fltDesconto,Decimal)
            If (fltDescontoValor.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(fltDescontoValor.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strCodIVA Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(strCodIVA,String)
            End If
            If (fltIVA.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(fltIVA.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (fltTotalLinha.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(fltTotalLinha.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (dtmDataEntrega.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(dtmDataEntrega.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(20).Value = CType(bitParcial,Boolean)
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(22).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(24).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(strUserAlteracao,String)
            End If
            If (intPosicaoOriginal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(intPosicaoOriginal.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
            End If
            If (fltQtdOriginal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(fltQtdOriginal.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(27).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(28).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(29).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(29).Value = CType(strUserEliminado,String)
            End If
            If (strDescricaoComplementar Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(30).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(30).Value = CType(strDescricaoComplementar,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(31).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(31).Value = CType(strObs,String)
            End If
            If (dtmDataCliente.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(dtmDataCliente.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(33).Value = CType(bitMoradaAlternativa,Boolean)
            Me.Adapter.UpdateCommand.Parameters(34).Value = CType(bitPulmao,Boolean)
            If (dtmDataAbatimento.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(35).Value = CType(dtmDataAbatimento.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(35).Value = Global.System.DBNull.Value
            End If
            If (strHash Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(36).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(36).Value = CType(strHash,String)
            End If
            If (strIdMoradaEntrega Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(37).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(37).Value = CType(strIdMoradaEntrega,String)
            End If
            If (strMoradaEntrega Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(38).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(38).Value = CType(strMoradaEntrega,String)
            End If
            If (strPulmaoEnc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(39).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(39).Value = CType(strPulmaoEnc,String)
            End If
            If (strPulmaoHashEnc Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(40).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(40).Value = CType(strPulmaoHashEnc,String)
            End If
            If (strTipoMateriaProd Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(41).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(41).Value = CType(strTipoMateriaProd,String)
            End If
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(42).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(43).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(44).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(45).Value = CType(Original_intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(46).Value = CType(Original_intLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(47).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal bitParcial As Boolean,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal strObs As String,  _
                    ByVal dtmDataCliente As Global.System.Nullable(Of Date),  _
                    ByVal bitMoradaAlternativa As Boolean,  _
                    ByVal bitPulmao As Boolean,  _
                    ByVal dtmDataAbatimento As Global.System.Nullable(Of Date),  _
                    ByVal strHash As String,  _
                    ByVal strIdMoradaEntrega As String,  _
                    ByVal strMoradaEntrega As String,  _
                    ByVal strPulmaoEnc As String,  _
                    ByVal strPulmaoHashEnc As String,  _
                    ByVal strTipoMateriaProd As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            Return Me.Update(Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, strHashCab, intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, bitParcial, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComplementar, strObs, dtmDataCliente, bitMoradaAlternativa, bitPulmao, dtmDataAbatimento, strHash, strIdMoradaEntrega, strMoradaEntrega, strPulmaoEnc, strPulmaoHashEnc, strTipoMateriaProd, Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, Original_updateStamp)
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class Mov_EncomendasFornecedor_CabTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Mov_EncomendasFornecedor_Cab"
            tableMapping.ColumnMappings.Add("intId", "intId")
            tableMapping.ColumnMappings.Add("strCodEmp", "strCodEmp")
            tableMapping.ColumnMappings.Add("strTipoDoc", "strTipoDoc")
            tableMapping.ColumnMappings.Add("strAno", "strAno")
            tableMapping.ColumnMappings.Add("intNumero", "intNumero")
            tableMapping.ColumnMappings.Add("strNumero", "strNumero")
            tableMapping.ColumnMappings.Add("strHash", "strHash")
            tableMapping.ColumnMappings.Add("dtmDataRegisto", "dtmDataRegisto")
            tableMapping.ColumnMappings.Add("strUserRegisto", "strUserRegisto")
            tableMapping.ColumnMappings.Add("dtmData", "dtmData")
            tableMapping.ColumnMappings.Add("strCodFornecedor", "strCodFornecedor")
            tableMapping.ColumnMappings.Add("strNomeFornecedor", "strNomeFornecedor")
            tableMapping.ColumnMappings.Add("strPropostaFornecedor", "strPropostaFornecedor")
            tableMapping.ColumnMappings.Add("dtmDataEntregaPrevista", "dtmDataEntregaPrevista")
            tableMapping.ColumnMappings.Add("strCodMoeda", "strCodMoeda")
            tableMapping.ColumnMappings.Add("strNomeMoeda", "strNomeMoeda")
            tableMapping.ColumnMappings.Add("fltCambio", "fltCambio")
            tableMapping.ColumnMappings.Add("intContrato", "intContrato")
            tableMapping.ColumnMappings.Add("intDiasPag", "intDiasPag")
            tableMapping.ColumnMappings.Add("strCondicaoPag", "strCondicaoPag")
            tableMapping.ColumnMappings.Add("strMeioPag", "strMeioPag")
            tableMapping.ColumnMappings.Add("strPedidoCotacao", "strPedidoCotacao")
            tableMapping.ColumnMappings.Add("strObs", "strObs")
            tableMapping.ColumnMappings.Add("updateStamp", "updateStamp")
            tableMapping.ColumnMappings.Add("fltTotal", "fltTotal")
            tableMapping.ColumnMappings.Add("bitAnulado", "bitAnulado")
            tableMapping.ColumnMappings.Add("dtmDataAnulado", "dtmDataAnulado")
            tableMapping.ColumnMappings.Add("strUserAnulado", "strUserAnulado")
            tableMapping.ColumnMappings.Add("strNumExterno", "strNumExterno")
            tableMapping.ColumnMappings.Add("dtmDataAlteracao", "dtmDataAlteracao")
            tableMapping.ColumnMappings.Add("strUserAlteracao", "strUserAlteracao")
            tableMapping.ColumnMappings.Add("bitSatisfeita", "bitSatisfeita")
            tableMapping.ColumnMappings.Add("dtmDataSatisfeito", "dtmDataSatisfeito")
            tableMapping.ColumnMappings.Add("strUserSatisfeito", "strUserSatisfeito")
            tableMapping.ColumnMappings.Add("intIdEstado", "intIdEstado")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [Mov_EncomendasFornecedor_Cab] WHERE (([strCodEmp] = @Original_strCod"& _ 
                "Emp) AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_strAno)"& _ 
                " AND ([intNumero] = @Original_intNumero) AND ([updateStamp] = @Original_updateSt"& _ 
                "amp))"
            Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [Mov_EncomendasFornecedor_Cab] ([strCodEmp], [strTipoDoc], [strAno], "& _ 
                "[intNumero], [strNumero], [strHash], [dtmDataRegisto], [strUserRegisto], [dtmDat"& _ 
                "a], [strCodFornecedor], [strNomeFornecedor], [strPropostaFornecedor], [dtmDataEn"& _ 
                "tregaPrevista], [strCodMoeda], [strNomeMoeda], [fltCambio], [intContrato], [intD"& _ 
                "iasPag], [strCondicaoPag], [strMeioPag], [strPedidoCotacao], [strObs], [fltTotal"& _ 
                "], [bitAnulado], [dtmDataAnulado], [strUserAnulado], [strNumExterno], [dtmDataAl"& _ 
                "teracao], [strUserAlteracao], [bitSatisfeita], [dtmDataSatisfeito], [strUserSati"& _ 
                "sfeito], [intIdEstado]) VALUES (@strCodEmp, @strTipoDoc, @strAno, @intNumero, @s"& _ 
                "trNumero, @strHash, @dtmDataRegisto, @strUserRegisto, @dtmData, @strCodFornecedo"& _ 
                "r, @strNomeFornecedor, @strPropostaFornecedor, @dtmDataEntregaPrevista, @strCodM"& _ 
                "oeda, @strNomeMoeda, @fltCambio, @intContrato, @intDiasPag, @strCondicaoPag, @st"& _ 
                "rMeioPag, @strPedidoCotacao, @strObs, @fltTotal, @bitAnulado, @dtmDataAnulado, @"& _ 
                "strUserAnulado, @strNumExterno, @dtmDataAlteracao, @strUserAlteracao, @bitSatisf"& _ 
                "eita, @dtmDataSatisfeito, @strUserSatisfeito, @intIdEstado);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strC"& _ 
                "odEmp, strTipoDoc, strAno, intNumero, strNumero, strHash, dtmDataRegisto, strUse"& _ 
                "rRegisto, dtmData, strCodFornecedor, strNomeFornecedor, strPropostaFornecedor, d"& _ 
                "tmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intContrato, intDia"& _ 
                "sPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTota"& _ 
                "l, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, "& _ 
                "strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, intIdEsta"& _ 
                "do FROM Mov_EncomendasFornecedor_Cab WHERE (intNumero = @intNumero) AND (strAno "& _ 
                "= @strAno) AND (strCodEmp = @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumero", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmData", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmData", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPropostaFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPropostaFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntregaPrevista", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntregaPrevista", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltCambio", Global.System.Data.SqlDbType.Float, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "fltCambio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intContrato", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intContrato", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intDiasPag", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intDiasPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCondicaoPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCondicaoPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMeioPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMeioPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPedidoCotacao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPedidoCotacao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 4, "fltTotal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitAnulado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAnulado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAnulado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumExterno", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumExterno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitSatisfeita", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitSatisfeita", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataSatisfeito", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserSatisfeito", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intIdEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intIdEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [Mov_EncomendasFornecedor_Cab] SET [strCodEmp] = @strCodEmp, [strTipoDoc] "& _ 
                "= @strTipoDoc, [strAno] = @strAno, [intNumero] = @intNumero, [strNumero] = @strN"& _ 
                "umero, [strHash] = @strHash, [dtmDataRegisto] = @dtmDataRegisto, [strUserRegisto"& _ 
                "] = @strUserRegisto, [dtmData] = @dtmData, [strCodFornecedor] = @strCodFornecedo"& _ 
                "r, [strNomeFornecedor] = @strNomeFornecedor, [strPropostaFornecedor] = @strPropo"& _ 
                "staFornecedor, [dtmDataEntregaPrevista] = @dtmDataEntregaPrevista, [strCodMoeda]"& _ 
                " = @strCodMoeda, [strNomeMoeda] = @strNomeMoeda, [fltCambio] = @fltCambio, [intC"& _ 
                "ontrato] = @intContrato, [intDiasPag] = @intDiasPag, [strCondicaoPag] = @strCond"& _ 
                "icaoPag, [strMeioPag] = @strMeioPag, [strPedidoCotacao] = @strPedidoCotacao, [st"& _ 
                "rObs] = @strObs, [fltTotal] = @fltTotal, [bitAnulado] = @bitAnulado, [dtmDataAnu"& _ 
                "lado] = @dtmDataAnulado, [strUserAnulado] = @strUserAnulado, [strNumExterno] = @"& _ 
                "strNumExterno, [dtmDataAlteracao] = @dtmDataAlteracao, [strUserAlteracao] = @str"& _ 
                "UserAlteracao, [bitSatisfeita] = @bitSatisfeita, [dtmDataSatisfeito] = @dtmDataS"& _ 
                "atisfeito, [strUserSatisfeito] = @strUserSatisfeito, [intIdEstado] = @intIdEstad"& _ 
                "o WHERE (([strCodEmp] = @Original_strCodEmp) AND ([strTipoDoc] = @Original_strTi"& _ 
                "poDoc) AND ([strAno] = @Original_strAno) AND ([intNumero] = @Original_intNumero)"& _ 
                " AND ([updateStamp] = @Original_updateStamp));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipo"& _ 
                "Doc, strAno, intNumero, strNumero, strHash, dtmDataRegisto, strUserRegisto, dtmD"& _ 
                "ata, strCodFornecedor, strNomeFornecedor, strPropostaFornecedor, dtmDataEntregaP"& _ 
                "revista, strCodMoeda, strNomeMoeda, fltCambio, intContrato, intDiasPag, strCondi"& _ 
                "caoPag, strMeioPag, strPedidoCotacao, strObs, updateStamp, fltTotal, bitAnulado,"& _ 
                " dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlterac"& _ 
                "ao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, intIdEstado FROM Mov_En"& _ 
                "comendasFornecedor_Cab WHERE (intNumero = @intNumero) AND (strAno = @strAno) AND"& _ 
                " (strCodEmp = @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumero", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmData", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmData", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPropostaFornecedor", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPropostaFornecedor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntregaPrevista", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntregaPrevista", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNomeMoeda", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNomeMoeda", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltCambio", Global.System.Data.SqlDbType.Float, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "fltCambio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intContrato", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intContrato", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intDiasPag", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intDiasPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCondicaoPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCondicaoPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strMeioPag", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strMeioPag", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strPedidoCotacao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strPedidoCotacao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 4, "fltTotal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitAnulado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAnulado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAnulado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAnulado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strNumExterno", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strNumExterno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitSatisfeita", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitSatisfeita", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataSatisfeito", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserSatisfeito", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserSatisfeito", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intIdEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intIdEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, strNumero, strHash, dtmDa"& _ 
                "taRegisto, strUserRegisto, dtmData, strCodFornecedor, strNomeFornecedor, strProp"& _ 
                "ostaFornecedor, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, in"& _ 
                "tContrato, intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, upd"& _ 
                "ateStamp, fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, d"& _ 
                "tmDataAlteracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSati"& _ 
                "sfeito, intIdEstado FROM Mov_EncomendasFornecedor_Cab"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_CabDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.Mov_EncomendasFornecedor_CabDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_CabDataTable = New DataSetEncomendas.Mov_EncomendasFornecedor_CabDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_CabDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As DataSetEncomendas) As Integer
            Return Me.Adapter.Update(dataSet, "Mov_EncomendasFornecedor_Cab")
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_strCodEmp As String, ByVal Original_strTipoDoc As String, ByVal Original_strAno As String, ByVal Original_intNumero As Integer, ByVal Original_updateStamp() As Byte) As Integer
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_intNumero,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strCodFornecedor As String,  _
                    ByVal strNomeFornecedor As String,  _
                    ByVal strPropostaFornecedor As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intContrato As Global.System.Nullable(Of Integer),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal intIdEstado As Global.System.Nullable(Of Integer)) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.InsertCommand.Parameters(3).Value = CType(intNumero,Integer)
            If (strNumero Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNumero")
            Else
                Me.Adapter.InsertCommand.Parameters(4).Value = CType(strNumero,String)
            End If
            If (strHash Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strHash")
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(strHash,String)
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(6).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(strUserRegisto,String)
            End If
            Me.Adapter.InsertCommand.Parameters(8).Value = CType(dtmData,Date)
            If (strCodFornecedor Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodFornecedor")
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(strCodFornecedor,String)
            End If
            If (strNomeFornecedor Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNomeFornecedor")
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(strNomeFornecedor,String)
            End If
            If (strPropostaFornecedor Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(11).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(11).Value = CType(strPropostaFornecedor,String)
            End If
            If (dtmDataEntregaPrevista.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(12).Value = CType(dtmDataEntregaPrevista.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (strCodMoeda Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(strCodMoeda,String)
            End If
            If (strNomeMoeda Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(14).Value = CType(strNomeMoeda,String)
            End If
            If (fltCambio.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(fltCambio.Value,Double)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (intContrato.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(intContrato.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
            End If
            If (intDiasPag.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(17).Value = CType(intDiasPag.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (strCondicaoPag Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(18).Value = CType(strCondicaoPag,String)
            End If
            If (strMeioPag Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(19).Value = CType(strMeioPag,String)
            End If
            If (strPedidoCotacao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(20).Value = CType(strPedidoCotacao,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(21).Value = CType(strObs,String)
            End If
            If (fltTotal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(22).Value = CType(fltTotal.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(22).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(23).Value = CType(bitAnulado,Boolean)
            If (dtmDataAnulado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(24).Value = CType(dtmDataAnulado.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(24).Value = Global.System.DBNull.Value
            End If
            If (strUserAnulado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(25).Value = CType(strUserAnulado,String)
            End If
            If (strNumExterno Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(26).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(26).Value = CType(strNumExterno,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(27).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(27).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(28).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(28).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.InsertCommand.Parameters(29).Value = CType(bitSatisfeita,Boolean)
            If (dtmDataSatisfeito.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(30).Value = CType(dtmDataSatisfeito.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(30).Value = Global.System.DBNull.Value
            End If
            If (strUserSatisfeito Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(31).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(31).Value = CType(strUserSatisfeito,String)
            End If
            If (intIdEstado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(32).Value = CType(intIdEstado.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strCodFornecedor As String,  _
                    ByVal strNomeFornecedor As String,  _
                    ByVal strPropostaFornecedor As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intContrato As Global.System.Nullable(Of Integer),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal intIdEstado As Global.System.Nullable(Of Integer),  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(intNumero,Integer)
            If (strNumero Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNumero")
            Else
                Me.Adapter.UpdateCommand.Parameters(4).Value = CType(strNumero,String)
            End If
            If (strHash Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strHash")
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(strHash,String)
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(6).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(strUserRegisto,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(dtmData,Date)
            If (strCodFornecedor Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodFornecedor")
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(strCodFornecedor,String)
            End If
            If (strNomeFornecedor Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strNomeFornecedor")
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(strNomeFornecedor,String)
            End If
            If (strPropostaFornecedor Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(11).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(strPropostaFornecedor,String)
            End If
            If (dtmDataEntregaPrevista.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(dtmDataEntregaPrevista.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (strCodMoeda Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(strCodMoeda,String)
            End If
            If (strNomeMoeda Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(strNomeMoeda,String)
            End If
            If (fltCambio.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(fltCambio.Value,Double)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (intContrato.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(intContrato.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
            End If
            If (intDiasPag.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(intDiasPag.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (strCondicaoPag Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(strCondicaoPag,String)
            End If
            If (strMeioPag Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(strMeioPag,String)
            End If
            If (strPedidoCotacao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(strPedidoCotacao,String)
            End If
            If (strObs Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(strObs,String)
            End If
            If (fltTotal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(22).Value = CType(fltTotal.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(22).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(23).Value = CType(bitAnulado,Boolean)
            If (dtmDataAnulado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(dtmDataAnulado.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(24).Value = Global.System.DBNull.Value
            End If
            If (strUserAnulado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(strUserAnulado,String)
            End If
            If (strNumExterno Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(strNumExterno,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(27).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(27).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(28).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(29).Value = CType(bitSatisfeita,Boolean)
            If (dtmDataSatisfeito.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(30).Value = CType(dtmDataSatisfeito.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(30).Value = Global.System.DBNull.Value
            End If
            If (strUserSatisfeito Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(31).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(31).Value = CType(strUserSatisfeito,String)
            End If
            If (intIdEstado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(intIdEstado.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(32).Value = Global.System.DBNull.Value
            End If
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(33).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(34).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(35).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(36).Value = CType(Original_intNumero,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(37).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strNumero As String,  _
                    ByVal strHash As String,  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmData As Date,  _
                    ByVal strCodFornecedor As String,  _
                    ByVal strNomeFornecedor As String,  _
                    ByVal strPropostaFornecedor As String,  _
                    ByVal dtmDataEntregaPrevista As Global.System.Nullable(Of Date),  _
                    ByVal strCodMoeda As String,  _
                    ByVal strNomeMoeda As String,  _
                    ByVal fltCambio As Global.System.Nullable(Of Double),  _
                    ByVal intContrato As Global.System.Nullable(Of Integer),  _
                    ByVal intDiasPag As Global.System.Nullable(Of Integer),  _
                    ByVal strCondicaoPag As String,  _
                    ByVal strMeioPag As String,  _
                    ByVal strPedidoCotacao As String,  _
                    ByVal strObs As String,  _
                    ByVal fltTotal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitAnulado As Boolean,  _
                    ByVal dtmDataAnulado As Global.System.Nullable(Of Date),  _
                    ByVal strUserAnulado As String,  _
                    ByVal strNumExterno As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitSatisfeita As Boolean,  _
                    ByVal dtmDataSatisfeito As Global.System.Nullable(Of Date),  _
                    ByVal strUserSatisfeito As String,  _
                    ByVal intIdEstado As Global.System.Nullable(Of Integer),  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            Return Me.Update(Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, strNumero, strHash, dtmDataRegisto, strUserRegisto, dtmData, strCodFornecedor, strNomeFornecedor, strPropostaFornecedor, dtmDataEntregaPrevista, strCodMoeda, strNomeMoeda, fltCambio, intContrato, intDiasPag, strCondicaoPag, strMeioPag, strPedidoCotacao, strObs, fltTotal, bitAnulado, dtmDataAnulado, strUserAnulado, strNumExterno, dtmDataAlteracao, strUserAlteracao, bitSatisfeita, dtmDataSatisfeito, strUserSatisfeito, intIdEstado, Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_updateStamp)
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class Mov_EncomendasFornecedor_LinTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Mov_EncomendasFornecedor_Lin"
            tableMapping.ColumnMappings.Add("intId", "intId")
            tableMapping.ColumnMappings.Add("strCodEmp", "strCodEmp")
            tableMapping.ColumnMappings.Add("strTipoDoc", "strTipoDoc")
            tableMapping.ColumnMappings.Add("strAno", "strAno")
            tableMapping.ColumnMappings.Add("intNumero", "intNumero")
            tableMapping.ColumnMappings.Add("intLinha", "intLinha")
            tableMapping.ColumnMappings.Add("strHashCab", "strHashCab")
            tableMapping.ColumnMappings.Add("intPosicao", "intPosicao")
            tableMapping.ColumnMappings.Add("strCodArtigo", "strCodArtigo")
            tableMapping.ColumnMappings.Add("strDescricaoArtigo", "strDescricaoArtigo")
            tableMapping.ColumnMappings.Add("strCodUnidade", "strCodUnidade")
            tableMapping.ColumnMappings.Add("intCasasDecimaisUN", "intCasasDecimaisUN")
            tableMapping.ColumnMappings.Add("fltQtd", "fltQtd")
            tableMapping.ColumnMappings.Add("fltQtdAnulada", "fltQtdAnulada")
            tableMapping.ColumnMappings.Add("fltPrecoUnitario", "fltPrecoUnitario")
            tableMapping.ColumnMappings.Add("fltDesconto", "fltDesconto")
            tableMapping.ColumnMappings.Add("fltDescontoValor", "fltDescontoValor")
            tableMapping.ColumnMappings.Add("strCodIVA", "strCodIVA")
            tableMapping.ColumnMappings.Add("fltIVA", "fltIVA")
            tableMapping.ColumnMappings.Add("fltTotalLinha", "fltTotalLinha")
            tableMapping.ColumnMappings.Add("dtmDataEntrega", "dtmDataEntrega")
            tableMapping.ColumnMappings.Add("strRequisicao", "strRequisicao")
            tableMapping.ColumnMappings.Add("strRequisitante", "strRequisitante")
            tableMapping.ColumnMappings.Add("updateStamp", "updateStamp")
            tableMapping.ColumnMappings.Add("bitParcial", "bitParcial")
            tableMapping.ColumnMappings.Add("fltQtdRequisitada", "fltQtdRequisitada")
            tableMapping.ColumnMappings.Add("dtmDataRegisto", "dtmDataRegisto")
            tableMapping.ColumnMappings.Add("strUserRegisto", "strUserRegisto")
            tableMapping.ColumnMappings.Add("dtmDataAlteracao", "dtmDataAlteracao")
            tableMapping.ColumnMappings.Add("strUserAlteracao", "strUserAlteracao")
            tableMapping.ColumnMappings.Add("intPosicaoOriginal", "intPosicaoOriginal")
            tableMapping.ColumnMappings.Add("fltQtdOriginal", "fltQtdOriginal")
            tableMapping.ColumnMappings.Add("bitEliminado", "bitEliminado")
            tableMapping.ColumnMappings.Add("dtmDataEliminado", "dtmDataEliminado")
            tableMapping.ColumnMappings.Add("strUserEliminado", "strUserEliminado")
            tableMapping.ColumnMappings.Add("strDescricaoComplementar", "strDescricaoComplementar")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Mov_EncomendasFornecedor_Lin] WHERE (([strCodEmp] = @Original_"& _ 
                "strCodEmp) AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_s"& _ 
                "trAno) AND ([intNumero] = @Original_intNumero) AND ([intLinha] = @Original_intLi"& _ 
                "nha) AND ([updateStamp] = @Original_updateStamp))"
            Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Mov_EncomendasFornecedor_Lin] ([strCodEmp], [strTipoDoc], [str"& _ 
                "Ano], [intNumero], [intLinha], [strHashCab], [intPosicao], [strCodArtigo], [strD"& _ 
                "escricaoArtigo], [strCodUnidade], [intCasasDecimaisUN], [fltQtd], [fltQtdAnulada"& _ 
                "], [fltPrecoUnitario], [fltDesconto], [fltDescontoValor], [strCodIVA], [fltIVA],"& _ 
                " [fltTotalLinha], [dtmDataEntrega], [strRequisicao], [strRequisitante], [bitParc"& _ 
                "ial], [fltQtdRequisitada], [dtmDataRegisto], [strUserRegisto], [dtmDataAlteracao"& _ 
                "], [strUserAlteracao], [intPosicaoOriginal], [fltQtdOriginal], [bitEliminado], ["& _ 
                "dtmDataEliminado], [strUserEliminado], [strDescricaoComplementar]) VALUES (@strC"& _ 
                "odEmp, @strTipoDoc, @strAno, @intNumero, @intLinha, @strHashCab, @intPosicao, @s"& _ 
                "trCodArtigo, @strDescricaoArtigo, @strCodUnidade, @intCasasDecimaisUN, @fltQtd, "& _ 
                "@fltQtdAnulada, @fltPrecoUnitario, @fltDesconto, @fltDescontoValor, @strCodIVA, "& _ 
                "@fltIVA, @fltTotalLinha, @dtmDataEntrega, @strRequisicao, @strRequisitante, @bit"& _ 
                "Parcial, @fltQtdRequisitada, @dtmDataRegisto, @strUserRegisto, @dtmDataAlteracao"& _ 
                ", @strUserAlteracao, @intPosicaoOriginal, @fltQtdOriginal, @bitEliminado, @dtmDa"& _ 
                "taEliminado, @strUserEliminado, @strDescricaoComplementar);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCo"& _ 
                "dEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab, intPosicao, strCodArt"& _ 
                "igo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulad"& _ 
                "a, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalL"& _ 
                "inha, dtmDataEntrega, strRequisicao, strRequisitante, updateStamp, bitParcial, f"& _ 
                "ltQtdRequisitada, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlter"& _ 
                "acao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, strUse"& _ 
                "rEliminado, strDescricaoComplementar FROM Mov_EncomendasFornecedor_Lin WHERE (in"& _ 
                "tLinha = @intLinha) AND (intNumero = @intNumero) AND (strAno = @strAno) AND (str"& _ 
                "CodEmp = @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashCab", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashCab", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicao", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intCasasDecimaisUN", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intCasasDecimaisUN", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtd", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDesconto", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDesconto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoValor", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoValor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodIVA", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIVA", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalLinha", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntrega", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strRequisicao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strRequisicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strRequisitante", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strRequisitante", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitParcial", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitParcial", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdRequisitada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdRequisitada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicaoOriginal", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicaoOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdOriginal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoComplementar", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoComplementar", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Mov_EncomendasFornecedor_Lin] SET [strCodEmp] = @strCodEmp, [strTip"& _ 
                "oDoc] = @strTipoDoc, [strAno] = @strAno, [intNumero] = @intNumero, [intLinha] = "& _ 
                "@intLinha, [strHashCab] = @strHashCab, [intPosicao] = @intPosicao, [strCodArtigo"& _ 
                "] = @strCodArtigo, [strDescricaoArtigo] = @strDescricaoArtigo, [strCodUnidade] ="& _ 
                " @strCodUnidade, [intCasasDecimaisUN] = @intCasasDecimaisUN, [fltQtd] = @fltQtd,"& _ 
                " [fltQtdAnulada] = @fltQtdAnulada, [fltPrecoUnitario] = @fltPrecoUnitario, [fltD"& _ 
                "esconto] = @fltDesconto, [fltDescontoValor] = @fltDescontoValor, [strCodIVA] = @"& _ 
                "strCodIVA, [fltIVA] = @fltIVA, [fltTotalLinha] = @fltTotalLinha, [dtmDataEntrega"& _ 
                "] = @dtmDataEntrega, [strRequisicao] = @strRequisicao, [strRequisitante] = @strR"& _ 
                "equisitante, [bitParcial] = @bitParcial, [fltQtdRequisitada] = @fltQtdRequisitad"& _ 
                "a, [dtmDataRegisto] = @dtmDataRegisto, [strUserRegisto] = @strUserRegisto, [dtmD"& _ 
                "ataAlteracao] = @dtmDataAlteracao, [strUserAlteracao] = @strUserAlteracao, [intP"& _ 
                "osicaoOriginal] = @intPosicaoOriginal, [fltQtdOriginal] = @fltQtdOriginal, [bitE"& _ 
                "liminado] = @bitEliminado, [dtmDataEliminado] = @dtmDataEliminado, [strUserElimi"& _ 
                "nado] = @strUserEliminado, [strDescricaoComplementar] = @strDescricaoComplementa"& _ 
                "r WHERE (([strCodEmp] = @Original_strCodEmp) AND ([strTipoDoc] = @Original_strTi"& _ 
                "poDoc) AND ([strAno] = @Original_strAno) AND ([intNumero] = @Original_intNumero)"& _ 
                " AND ([intLinha] = @Original_intLinha) AND ([updateStamp] = @Original_updateStam"& _ 
                "p));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashC"& _ 
                "ab, intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimai"& _ 
                "sUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, str"& _ 
                "CodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, strRequisicao, strRequisitante, u"& _ 
                "pdateStamp, bitParcial, fltQtdRequisitada, dtmDataRegisto, strUserRegisto, dtmDa"& _ 
                "taAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado,"& _ 
                " dtmDataEliminado, strUserEliminado, strDescricaoComplementar FROM Mov_Encomenda"& _ 
                "sFornecedor_Lin WHERE (intLinha = @intLinha) AND (intNumero = @intNumero) AND (s"& _ 
                "trAno = @strAno) AND (strCodEmp = @strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashCab", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashCab", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicao", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoArtigo", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoArtigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intCasasDecimaisUN", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intCasasDecimaisUN", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtd", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtd", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDesconto", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDesconto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoValor", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoValor", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodIVA", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIVA", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIVA", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalLinha", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEntrega", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEntrega", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strRequisicao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strRequisicao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strRequisitante", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strRequisitante", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitParcial", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitParcial", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdRequisitada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdRequisitada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intPosicaoOriginal", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intPosicaoOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdOriginal", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdOriginal", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strDescricaoComplementar", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strDescricaoComplementar", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, strHashCab, int"& _ 
                "Posicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fl"& _ 
                "tQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA,"& _ 
                " fltIVA, fltTotalLinha, dtmDataEntrega, strRequisicao, strRequisitante, updateSt"& _ 
                "amp, bitParcial, fltQtdRequisitada, dtmDataRegisto, strUserRegisto, dtmDataAlter"& _ 
                "acao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDat"& _ 
                "aEliminado, strUserEliminado, strDescricaoComplementar FROM dbo.Mov_EncomendasFo"& _ 
                "rnecedor_Lin"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_LinDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.Mov_EncomendasFornecedor_LinDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_LinDataTable = New DataSetEncomendas.Mov_EncomendasFornecedor_LinDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As DataSetEncomendas.Mov_EncomendasFornecedor_LinDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As DataSetEncomendas) As Integer
            Return Me.Adapter.Update(dataSet, "Mov_EncomendasFornecedor_Lin")
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_strCodEmp As String, ByVal Original_strTipoDoc As String, ByVal Original_strAno As String, ByVal Original_intNumero As Integer, ByVal Original_intLinha As Integer, ByVal Original_updateStamp() As Byte) As Integer
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_intNumero,Integer)
            Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_intLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal strRequisicao As String,  _
                    ByVal strRequisitante As String,  _
                    ByVal bitParcial As Boolean,  _
                    ByVal fltQtdRequisitada As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.InsertCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.InsertCommand.Parameters(4).Value = CType(intLinha,Integer)
            If (strHashCab Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(5).Value = CType(strHashCab,String)
            End If
            Me.Adapter.InsertCommand.Parameters(6).Value = CType(intPosicao,Integer)
            If (strCodArtigo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(7).Value = CType(strCodArtigo,String)
            End If
            If (strDescricaoArtigo Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(8).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(8).Value = CType(strDescricaoArtigo,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(9).Value = CType(strCodUnidade,String)
            End If
            If (intCasasDecimaisUN.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(10).Value = CType(intCasasDecimaisUN.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(10).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(11).Value = CType(fltQtd,Decimal)
            Me.Adapter.InsertCommand.Parameters(12).Value = CType(fltQtdAnulada,Decimal)
            If (fltPrecoUnitario.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(fltPrecoUnitario.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(14).Value = CType(fltDesconto,Decimal)
            If (fltDescontoValor.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(fltDescontoValor.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strCodIVA Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(strCodIVA,String)
            End If
            If (fltIVA.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(17).Value = CType(fltIVA.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (fltTotalLinha.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(18).Value = CType(fltTotalLinha.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (dtmDataEntrega.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(19).Value = CType(dtmDataEntrega.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
            End If
            If (strRequisicao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(20).Value = CType(strRequisicao,String)
            End If
            If (strRequisitante Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(21).Value = CType(strRequisitante,String)
            End If
            Me.Adapter.InsertCommand.Parameters(22).Value = CType(bitParcial,Boolean)
            If (fltQtdRequisitada.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(23).Value = CType(fltQtdRequisitada.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(24).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(24).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(25).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(26).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(27).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(27).Value = CType(strUserAlteracao,String)
            End If
            If (intPosicaoOriginal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(28).Value = CType(intPosicaoOriginal.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(28).Value = Global.System.DBNull.Value
            End If
            If (fltQtdOriginal.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(29).Value = CType(fltQtdOriginal.Value,Decimal)
            Else
                Me.Adapter.InsertCommand.Parameters(29).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.InsertCommand.Parameters(30).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(31).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(31).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(32).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(32).Value = CType(strUserEliminado,String)
            End If
            If (strDescricaoComplementar Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(33).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(33).Value = CType(strDescricaoComplementar,String)
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal strRequisicao As String,  _
                    ByVal strRequisitante As String,  _
                    ByVal bitParcial As Boolean,  _
                    ByVal fltQtdRequisitada As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(4).Value = CType(intLinha,Integer)
            If (strHashCab Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(5).Value = CType(strHashCab,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(6).Value = CType(intPosicao,Integer)
            If (strCodArtigo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(7).Value = CType(strCodArtigo,String)
            End If
            If (strDescricaoArtigo Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(8).Value = CType(strDescricaoArtigo,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(9).Value = CType(strCodUnidade,String)
            End If
            If (intCasasDecimaisUN.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(10).Value = CType(intCasasDecimaisUN.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(10).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(11).Value = CType(fltQtd,Decimal)
            Me.Adapter.UpdateCommand.Parameters(12).Value = CType(fltQtdAnulada,Decimal)
            If (fltPrecoUnitario.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(fltPrecoUnitario.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(14).Value = CType(fltDesconto,Decimal)
            If (fltDescontoValor.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(fltDescontoValor.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strCodIVA Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(strCodIVA,String)
            End If
            If (fltIVA.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(17).Value = CType(fltIVA.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
            End If
            If (fltTotalLinha.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(fltTotalLinha.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (dtmDataEntrega.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(dtmDataEntrega.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
            End If
            If (strRequisicao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(strRequisicao,String)
            End If
            If (strRequisitante Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(strRequisitante,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(22).Value = CType(bitParcial,Boolean)
            If (fltQtdRequisitada.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(23).Value = CType(fltQtdRequisitada.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(23).Value = Global.System.DBNull.Value
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(24).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(24).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(27).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(27).Value = CType(strUserAlteracao,String)
            End If
            If (intPosicaoOriginal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(intPosicaoOriginal.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(28).Value = Global.System.DBNull.Value
            End If
            If (fltQtdOriginal.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(29).Value = CType(fltQtdOriginal.Value,Decimal)
            Else
                Me.Adapter.UpdateCommand.Parameters(29).Value = Global.System.DBNull.Value
            End If
            Me.Adapter.UpdateCommand.Parameters(30).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(31).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(31).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(32).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(32).Value = CType(strUserEliminado,String)
            End If
            If (strDescricaoComplementar Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(33).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(33).Value = CType(strDescricaoComplementar,String)
            End If
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(34).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(35).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(36).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(37).Value = CType(Original_intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(38).Value = CType(Original_intLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(39).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strHashCab As String,  _
                    ByVal intPosicao As Integer,  _
                    ByVal strCodArtigo As String,  _
                    ByVal strDescricaoArtigo As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal intCasasDecimaisUN As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtd As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltPrecoUnitario As Global.System.Nullable(Of Decimal),  _
                    ByVal fltDesconto As Decimal,  _
                    ByVal fltDescontoValor As Global.System.Nullable(Of Decimal),  _
                    ByVal strCodIVA As String,  _
                    ByVal fltIVA As Global.System.Nullable(Of Decimal),  _
                    ByVal fltTotalLinha As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataEntrega As Global.System.Nullable(Of Date),  _
                    ByVal strRequisicao As String,  _
                    ByVal strRequisitante As String,  _
                    ByVal bitParcial As Boolean,  _
                    ByVal fltQtdRequisitada As Global.System.Nullable(Of Decimal),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal intPosicaoOriginal As Global.System.Nullable(Of Integer),  _
                    ByVal fltQtdOriginal As Global.System.Nullable(Of Decimal),  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strDescricaoComplementar As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            Return Me.Update(Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, strHashCab, intPosicao, strCodArtigo, strDescricaoArtigo, strCodUnidade, intCasasDecimaisUN, fltQtd, fltQtdAnulada, fltPrecoUnitario, fltDesconto, fltDescontoValor, strCodIVA, fltIVA, fltTotalLinha, dtmDataEntrega, strRequisicao, strRequisitante, bitParcial, fltQtdRequisitada, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, intPosicaoOriginal, fltQtdOriginal, bitEliminado, dtmDataEliminado, strUserEliminado, strDescricaoComplementar, Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, Original_updateStamp)
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class Mov_EncomendasCliente_SubLinTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "Mov_EncomendasCliente_SubLin"
            tableMapping.ColumnMappings.Add("intId", "intId")
            tableMapping.ColumnMappings.Add("strCodEmp", "strCodEmp")
            tableMapping.ColumnMappings.Add("strTipoDoc", "strTipoDoc")
            tableMapping.ColumnMappings.Add("strAno", "strAno")
            tableMapping.ColumnMappings.Add("intNumero", "intNumero")
            tableMapping.ColumnMappings.Add("intLinha", "intLinha")
            tableMapping.ColumnMappings.Add("intSubLinha", "intSubLinha")
            tableMapping.ColumnMappings.Add("fltQtdGosimac", "fltQtdGosimac")
            tableMapping.ColumnMappings.Add("fltQtdPendente", "fltQtdPendente")
            tableMapping.ColumnMappings.Add("fltQtdAnulada", "fltQtdAnulada")
            tableMapping.ColumnMappings.Add("fltQtdEntregue", "fltQtdEntregue")
            tableMapping.ColumnMappings.Add("fltPrecoUnitario", "fltPrecoUnitario")
            tableMapping.ColumnMappings.Add("dtmDataGosimac", "dtmDataGosimac")
            tableMapping.ColumnMappings.Add("intEstado", "intEstado")
            tableMapping.ColumnMappings.Add("dtmDataRegisto", "dtmDataRegisto")
            tableMapping.ColumnMappings.Add("strUserRegisto", "strUserRegisto")
            tableMapping.ColumnMappings.Add("dtmDataAlteracao", "dtmDataAlteracao")
            tableMapping.ColumnMappings.Add("strUserAlteracao", "strUserAlteracao")
            tableMapping.ColumnMappings.Add("bitEliminado", "bitEliminado")
            tableMapping.ColumnMappings.Add("dtmDataEliminado", "dtmDataEliminado")
            tableMapping.ColumnMappings.Add("strUserEliminado", "strUserEliminado")
            tableMapping.ColumnMappings.Add("strHashLinha", "strHashLinha")
            tableMapping.ColumnMappings.Add("strHash", "strHash")
            tableMapping.ColumnMappings.Add("fltDescontoPercGosimac", "fltDescontoPercGosimac")
            tableMapping.ColumnMappings.Add("fltIvaPercGosimac", "fltIvaPercGosimac")
            tableMapping.ColumnMappings.Add("fltTotalGosimac", "fltTotalGosimac")
            tableMapping.ColumnMappings.Add("updateStamp", "updateStamp")
            tableMapping.ColumnMappings.Add("strObs", "strObs")
            tableMapping.ColumnMappings.Add("strCodUnidade", "strCodUnidade")
            Me._adapter.TableMappings.Add(tableMapping)
            Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.DeleteCommand.Connection = Me.Connection
            Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Mov_EncomendasCliente_SubLin] WHERE (([strCodEmp] = @Original_"& _ 
                "strCodEmp) AND ([strTipoDoc] = @Original_strTipoDoc) AND ([strAno] = @Original_s"& _ 
                "trAno) AND ([intNumero] = @Original_intNumero) AND ([intLinha] = @Original_intLi"& _ 
                "nha) AND ([intSubLinha] = @Original_intSubLinha) AND ([updateStamp] = @Original_"& _ 
                "updateStamp))"
            Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intSubLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intSubLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.InsertCommand.Connection = Me.Connection
            Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Mov_EncomendasCliente_SubLin] ([strCodEmp], [strTipoDoc], [str"& _ 
                "Ano], [intNumero], [intLinha], [intSubLinha], [fltQtdGosimac], [fltQtdPendente],"& _ 
                " [fltQtdAnulada], [fltQtdEntregue], [fltPrecoUnitario], [dtmDataGosimac], [intEs"& _ 
                "tado], [dtmDataRegisto], [strUserRegisto], [dtmDataAlteracao], [strUserAlteracao"& _ 
                "], [bitEliminado], [dtmDataEliminado], [strUserEliminado], [strHashLinha], [strH"& _ 
                "ash], [fltDescontoPercGosimac], [fltIvaPercGosimac], [fltTotalGosimac], [strObs]"& _ 
                ", [strCodUnidade]) VALUES (@strCodEmp, @strTipoDoc, @strAno, @intNumero, @intLin"& _ 
                "ha, @intSubLinha, @fltQtdGosimac, @fltQtdPendente, @fltQtdAnulada, @fltQtdEntreg"& _ 
                "ue, @fltPrecoUnitario, @dtmDataGosimac, @intEstado, @dtmDataRegisto, @strUserReg"& _ 
                "isto, @dtmDataAlteracao, @strUserAlteracao, @bitEliminado, @dtmDataEliminado, @s"& _ 
                "trUserEliminado, @strHashLinha, @strHash, @fltDescontoPercGosimac, @fltIvaPercGo"& _ 
                "simac, @fltTotalGosimac, @strObs, @strCodUnidade);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, str"& _ 
                "TipoDoc, strAno, intNumero, intLinha, intSubLinha, fltQtdGosimac, fltQtdPendente"& _ 
                ", fltQtdAnulada, fltQtdEntregue, fltPrecoUnitario, dtmDataGosimac, intEstado, dt"& _ 
                "mDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, bitEliminado, "& _ 
                "dtmDataEliminado, strUserEliminado, strHashLinha, strHash, fltDescontoPercGosima"& _ 
                "c, fltIvaPercGosimac, fltTotalGosimac, updateStamp, strObs, strCodUnidade FROM M"& _ 
                "ov_EncomendasCliente_SubLin WHERE (intLinha = @intLinha) AND (intNumero = @intNu"& _ 
                "mero) AND (intSubLinha = @intSubLinha) AND (strAno = @strAno) AND (strCodEmp = @"& _ 
                "strCodEmp) AND (strTipoDoc = @strTipoDoc)"
            Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intSubLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intSubLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdPendente", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdPendente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdEntregue", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdEntregue", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataGosimac", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashLinha", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoPercGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoPercGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIvaPercGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIvaPercGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
            Me._adapter.UpdateCommand.Connection = Me.Connection
            Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Mov_EncomendasCliente_SubLin] SET [strCodEmp] = @strCodEmp, [strTip"& _ 
                "oDoc] = @strTipoDoc, [strAno] = @strAno, [intNumero] = @intNumero, [intLinha] = "& _ 
                "@intLinha, [intSubLinha] = @intSubLinha, [fltQtdGosimac] = @fltQtdGosimac, [fltQ"& _ 
                "tdPendente] = @fltQtdPendente, [fltQtdAnulada] = @fltQtdAnulada, [fltQtdEntregue"& _ 
                "] = @fltQtdEntregue, [fltPrecoUnitario] = @fltPrecoUnitario, [dtmDataGosimac] = "& _ 
                "@dtmDataGosimac, [intEstado] = @intEstado, [dtmDataRegisto] = @dtmDataRegisto, ["& _ 
                "strUserRegisto] = @strUserRegisto, [dtmDataAlteracao] = @dtmDataAlteracao, [strU"& _ 
                "serAlteracao] = @strUserAlteracao, [bitEliminado] = @bitEliminado, [dtmDataElimi"& _ 
                "nado] = @dtmDataEliminado, [strUserEliminado] = @strUserEliminado, [strHashLinha"& _ 
                "] = @strHashLinha, [strHash] = @strHash, [fltDescontoPercGosimac] = @fltDesconto"& _ 
                "PercGosimac, [fltIvaPercGosimac] = @fltIvaPercGosimac, [fltTotalGosimac] = @fltT"& _ 
                "otalGosimac, [strObs] = @strObs, [strCodUnidade] = @strCodUnidade WHERE (([strCo"& _ 
                "dEmp] = @Original_strCodEmp) AND ([strTipoDoc] = @Original_strTipoDoc) AND ([str"& _ 
                "Ano] = @Original_strAno) AND ([intNumero] = @Original_intNumero) AND ([intLinha]"& _ 
                " = @Original_intLinha) AND ([intSubLinha] = @Original_intSubLinha) AND ([updateS"& _ 
                "tamp] = @Original_updateStamp));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT intId, strCodEmp, strTipoDoc, strAno, i"& _ 
                "ntNumero, intLinha, intSubLinha, fltQtdGosimac, fltQtdPendente, fltQtdAnulada, f"& _ 
                "ltQtdEntregue, fltPrecoUnitario, dtmDataGosimac, intEstado, dtmDataRegisto, strU"& _ 
                "serRegisto, dtmDataAlteracao, strUserAlteracao, bitEliminado, dtmDataEliminado, "& _ 
                "strUserEliminado, strHashLinha, strHash, fltDescontoPercGosimac, fltIvaPercGosim"& _ 
                "ac, fltTotalGosimac, updateStamp, strObs, strCodUnidade FROM Mov_EncomendasClien"& _ 
                "te_SubLin WHERE (intLinha = @intLinha) AND (intNumero = @intNumero) AND (intSubL"& _ 
                "inha = @intSubLinha) AND (strAno = @strAno) AND (strCodEmp = @strCodEmp) AND (st"& _ 
                "rTipoDoc = @strTipoDoc)"
            Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodEmp", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strTipoDoc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intSubLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intSubLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdPendente", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdPendente", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdAnulada", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdAnulada", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltQtdEntregue", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltQtdEntregue", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltPrecoUnitario", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltPrecoUnitario", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataGosimac", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@intEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataRegisto", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserRegisto", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserRegisto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataAlteracao", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserAlteracao", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserAlteracao", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@bitEliminado", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "bitEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@dtmDataEliminado", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "dtmDataEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strUserEliminado", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strUserEliminado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHashLinha", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHashLinha", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strHash", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strHash", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltDescontoPercGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltDescontoPercGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltIvaPercGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltIvaPercGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@fltTotalGosimac", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 16, 8, "fltTotalGosimac", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strObs", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strObs", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@strCodUnidade", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodUnidade", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strCodEmp", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strCodEmp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strTipoDoc", Global.System.Data.SqlDbType.NVarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strTipoDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_strAno", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "strAno", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intNumero", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intNumero", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_intSubLinha", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "intSubLinha", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
            Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_updateStamp", Global.System.Data.SqlDbType.Timestamp, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "updateStamp", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT intId, strCodEmp, strTipoDoc, strAno, intNumero, intLinha, intSubLinha, fl"& _ 
                "tQtdGosimac, fltQtdPendente, fltQtdAnulada, fltQtdEntregue, fltPrecoUnitario, dt"& _ 
                "mDataGosimac, intEstado, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUs"& _ 
                "erAlteracao, bitEliminado, dtmDataEliminado, strUserEliminado, strHashLinha, str"& _ 
                "Hash, fltDescontoPercGosimac, fltIvaPercGosimac, fltTotalGosimac, updateStamp, s"& _ 
                "trObs, strCodUnidade FROM dbo.Mov_EncomendasCliente_SubLin"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_SubLinDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.Mov_EncomendasCliente_SubLinDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.Mov_EncomendasCliente_SubLinDataTable = New DataSetEncomendas.Mov_EncomendasCliente_SubLinDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataTable As DataSetEncomendas.Mov_EncomendasCliente_SubLinDataTable) As Integer
            Return Me.Adapter.Update(dataTable)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataSet As DataSetEncomendas) As Integer
            Return Me.Adapter.Update(dataSet, "Mov_EncomendasCliente_SubLin")
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
        Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
            Return Me.Adapter.Update(dataRows)
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)>  _
        Public Overloads Overridable Function Delete(ByVal Original_strCodEmp As String, ByVal Original_strTipoDoc As String, ByVal Original_strAno As String, ByVal Original_intNumero As Integer, ByVal Original_intLinha As Integer, ByVal Original_intSubLinha As Integer, ByVal Original_updateStamp() As Byte) As Integer
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.DeleteCommand.Parameters(1).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.DeleteCommand.Parameters(3).Value = CType(Original_intNumero,Integer)
            Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_intLinha,Integer)
            Me.Adapter.DeleteCommand.Parameters(5).Value = CType(Original_intSubLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
            If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.DeleteCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.DeleteCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)>  _
        Public Overloads Overridable Function Insert( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal intSubLinha As Integer,  _
                    ByVal fltQtdGosimac As Decimal,  _
                    ByVal fltQtdPendente As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltQtdEntregue As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal dtmDataGosimac As Global.System.Nullable(Of Date),  _
                    ByVal intEstado As Global.System.Nullable(Of Integer),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strHashLinha As String,  _
                    ByVal strHash As String,  _
                    ByVal fltDescontoPercGosimac As Decimal,  _
                    ByVal fltIvaPercGosimac As Decimal,  _
                    ByVal fltTotalGosimac As Decimal,  _
                    ByVal strObs As String,  _
                    ByVal strCodUnidade As String) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.InsertCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.InsertCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.InsertCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.InsertCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.InsertCommand.Parameters(4).Value = CType(intLinha,Integer)
            Me.Adapter.InsertCommand.Parameters(5).Value = CType(intSubLinha,Integer)
            Me.Adapter.InsertCommand.Parameters(6).Value = CType(fltQtdGosimac,Decimal)
            Me.Adapter.InsertCommand.Parameters(7).Value = CType(fltQtdPendente,Decimal)
            Me.Adapter.InsertCommand.Parameters(8).Value = CType(fltQtdAnulada,Decimal)
            Me.Adapter.InsertCommand.Parameters(9).Value = CType(fltQtdEntregue,Decimal)
            Me.Adapter.InsertCommand.Parameters(10).Value = CType(fltPrecoUnitario,Decimal)
            If (dtmDataGosimac.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(11).Value = CType(dtmDataGosimac.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(11).Value = Global.System.DBNull.Value
            End If
            If (intEstado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(12).Value = CType(intEstado.Value,Integer)
            Else
                Me.Adapter.InsertCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(13).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(14).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(15).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(16).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.InsertCommand.Parameters(17).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.InsertCommand.Parameters(18).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(19).Value = CType(strUserEliminado,String)
            End If
            If (strHashLinha Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(20).Value = CType(strHashLinha,String)
            End If
            If (strHash Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(21).Value = CType(strHash,String)
            End If
            Me.Adapter.InsertCommand.Parameters(22).Value = CType(fltDescontoPercGosimac,Decimal)
            Me.Adapter.InsertCommand.Parameters(23).Value = CType(fltIvaPercGosimac,Decimal)
            Me.Adapter.InsertCommand.Parameters(24).Value = CType(fltTotalGosimac,Decimal)
            If (strObs Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(25).Value = CType(strObs,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.InsertCommand.Parameters(26).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.InsertCommand.Parameters(26).Value = CType(strCodUnidade,String)
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
            If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.InsertCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.InsertCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal strCodEmp As String,  _
                    ByVal strTipoDoc As String,  _
                    ByVal strAno As String,  _
                    ByVal intNumero As Integer,  _
                    ByVal intLinha As Integer,  _
                    ByVal intSubLinha As Integer,  _
                    ByVal fltQtdGosimac As Decimal,  _
                    ByVal fltQtdPendente As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltQtdEntregue As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal dtmDataGosimac As Global.System.Nullable(Of Date),  _
                    ByVal intEstado As Global.System.Nullable(Of Integer),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strHashLinha As String,  _
                    ByVal strHash As String,  _
                    ByVal fltDescontoPercGosimac As Decimal,  _
                    ByVal fltIvaPercGosimac As Decimal,  _
                    ByVal fltTotalGosimac As Decimal,  _
                    ByVal strObs As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_intSubLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            If (strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(0).Value = CType(strCodEmp,String)
            End If
            If (strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(1).Value = CType(strTipoDoc,String)
            End If
            If (strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(2).Value = CType(strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(3).Value = CType(intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(4).Value = CType(intLinha,Integer)
            Me.Adapter.UpdateCommand.Parameters(5).Value = CType(intSubLinha,Integer)
            Me.Adapter.UpdateCommand.Parameters(6).Value = CType(fltQtdGosimac,Decimal)
            Me.Adapter.UpdateCommand.Parameters(7).Value = CType(fltQtdPendente,Decimal)
            Me.Adapter.UpdateCommand.Parameters(8).Value = CType(fltQtdAnulada,Decimal)
            Me.Adapter.UpdateCommand.Parameters(9).Value = CType(fltQtdEntregue,Decimal)
            Me.Adapter.UpdateCommand.Parameters(10).Value = CType(fltPrecoUnitario,Decimal)
            If (dtmDataGosimac.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(11).Value = CType(dtmDataGosimac.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(11).Value = Global.System.DBNull.Value
            End If
            If (intEstado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(12).Value = CType(intEstado.Value,Integer)
            Else
                Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
            End If
            If (dtmDataRegisto.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(13).Value = CType(dtmDataRegisto.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
            End If
            If (strUserRegisto Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(14).Value = CType(strUserRegisto,String)
            End If
            If (dtmDataAlteracao.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(15).Value = CType(dtmDataAlteracao.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
            End If
            If (strUserAlteracao Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(16).Value = CType(strUserAlteracao,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(17).Value = CType(bitEliminado,Boolean)
            If (dtmDataEliminado.HasValue = true) Then
                Me.Adapter.UpdateCommand.Parameters(18).Value = CType(dtmDataEliminado.Value,Date)
            Else
                Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
            End If
            If (strUserEliminado Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(19).Value = CType(strUserEliminado,String)
            End If
            If (strHashLinha Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(20).Value = CType(strHashLinha,String)
            End If
            If (strHash Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(21).Value = CType(strHash,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(22).Value = CType(fltDescontoPercGosimac,Decimal)
            Me.Adapter.UpdateCommand.Parameters(23).Value = CType(fltIvaPercGosimac,Decimal)
            Me.Adapter.UpdateCommand.Parameters(24).Value = CType(fltTotalGosimac,Decimal)
            If (strObs Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(25).Value = CType(strObs,String)
            End If
            If (strCodUnidade Is Nothing) Then
                Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
            Else
                Me.Adapter.UpdateCommand.Parameters(26).Value = CType(strCodUnidade,String)
            End If
            If (Original_strCodEmp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strCodEmp")
            Else
                Me.Adapter.UpdateCommand.Parameters(27).Value = CType(Original_strCodEmp,String)
            End If
            If (Original_strTipoDoc Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strTipoDoc")
            Else
                Me.Adapter.UpdateCommand.Parameters(28).Value = CType(Original_strTipoDoc,String)
            End If
            If (Original_strAno Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_strAno")
            Else
                Me.Adapter.UpdateCommand.Parameters(29).Value = CType(Original_strAno,String)
            End If
            Me.Adapter.UpdateCommand.Parameters(30).Value = CType(Original_intNumero,Integer)
            Me.Adapter.UpdateCommand.Parameters(31).Value = CType(Original_intLinha,Integer)
            Me.Adapter.UpdateCommand.Parameters(32).Value = CType(Original_intSubLinha,Integer)
            If (Original_updateStamp Is Nothing) Then
                Throw New Global.System.ArgumentNullException("Original_updateStamp")
            Else
                Me.Adapter.UpdateCommand.Parameters(33).Value = CType(Original_updateStamp,Byte())
            End If
            Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
            If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open)  _
                        <> Global.System.Data.ConnectionState.Open) Then
                Me.Adapter.UpdateCommand.Connection.Open
            End If
            Try 
                Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
                Return returnValue
            Finally
                If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
                    Me.Adapter.UpdateCommand.Connection.Close
                End If
            End Try
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)>  _
        Public Overloads Overridable Function Update( _
                    ByVal fltQtdGosimac As Decimal,  _
                    ByVal fltQtdPendente As Decimal,  _
                    ByVal fltQtdAnulada As Decimal,  _
                    ByVal fltQtdEntregue As Decimal,  _
                    ByVal fltPrecoUnitario As Decimal,  _
                    ByVal dtmDataGosimac As Global.System.Nullable(Of Date),  _
                    ByVal intEstado As Global.System.Nullable(Of Integer),  _
                    ByVal dtmDataRegisto As Global.System.Nullable(Of Date),  _
                    ByVal strUserRegisto As String,  _
                    ByVal dtmDataAlteracao As Global.System.Nullable(Of Date),  _
                    ByVal strUserAlteracao As String,  _
                    ByVal bitEliminado As Boolean,  _
                    ByVal dtmDataEliminado As Global.System.Nullable(Of Date),  _
                    ByVal strUserEliminado As String,  _
                    ByVal strHashLinha As String,  _
                    ByVal strHash As String,  _
                    ByVal fltDescontoPercGosimac As Decimal,  _
                    ByVal fltIvaPercGosimac As Decimal,  _
                    ByVal fltTotalGosimac As Decimal,  _
                    ByVal strObs As String,  _
                    ByVal strCodUnidade As String,  _
                    ByVal Original_strCodEmp As String,  _
                    ByVal Original_strTipoDoc As String,  _
                    ByVal Original_strAno As String,  _
                    ByVal Original_intNumero As Integer,  _
                    ByVal Original_intLinha As Integer,  _
                    ByVal Original_intSubLinha As Integer,  _
                    ByVal Original_updateStamp() As Byte) As Integer
            Return Me.Update(Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, Original_intSubLinha, fltQtdGosimac, fltQtdPendente, fltQtdAnulada, fltQtdEntregue, fltPrecoUnitario, dtmDataGosimac, intEstado, dtmDataRegisto, strUserRegisto, dtmDataAlteracao, strUserAlteracao, bitEliminado, dtmDataEliminado, strUserEliminado, strHashLinha, strHash, fltDescontoPercGosimac, fltIvaPercGosimac, fltTotalGosimac, strObs, strCodUnidade, Original_strCodEmp, Original_strTipoDoc, Original_strAno, Original_intNumero, Original_intLinha, Original_intSubLinha, Original_updateStamp)
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class USR_RST3_VIEW_ERP_ClientesTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "USR_RST3_VIEW_ERP_Clientes"
            tableMapping.ColumnMappings.Add("Cliente", "Cliente")
            tableMapping.ColumnMappings.Add("Nome", "Nome")
            tableMapping.ColumnMappings.Add("Fac_Mor", "Fac_Mor")
            tableMapping.ColumnMappings.Add("Fac_Local", "Fac_Local")
            tableMapping.ColumnMappings.Add("Fac_Cp", "Fac_Cp")
            tableMapping.ColumnMappings.Add("Fac_Cploc", "Fac_Cploc")
            tableMapping.ColumnMappings.Add("Fac_Tel", "Fac_Tel")
            tableMapping.ColumnMappings.Add("Fac_Fax", "Fac_Fax")
            tableMapping.ColumnMappings.Add("NumContrib", "NumContrib")
            tableMapping.ColumnMappings.Add("Pais", "Pais")
            tableMapping.ColumnMappings.Add("ModoPag", "ModoPag")
            tableMapping.ColumnMappings.Add("CondPag", "CondPag")
            tableMapping.ColumnMappings.Add("Moeda", "Moeda")
            tableMapping.ColumnMappings.Add("ClienteAnulado", "ClienteAnulado")
            tableMapping.ColumnMappings.Add("Distrito", "Distrito")
            Me._adapter.TableMappings.Add(tableMapping)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT Cliente, Nome, Fac_Mor, Fac_Local, Fac_Cp, Fac_Cploc, Fac_Tel, Fac_Fax, Nu"& _ 
                "mContrib, Pais, ModoPag, CondPag, Moeda, ClienteAnulado, Distrito FROM dbo.USR_R"& _ 
                "ST3_VIEW_ERP_Clientes"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.USR_RST3_VIEW_ERP_ClientesDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.USR_RST3_VIEW_ERP_ClientesDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.USR_RST3_VIEW_ERP_ClientesDataTable = New DataSetEncomendas.USR_RST3_VIEW_ERP_ClientesDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
    End Class
    
    '''<summary>
    '''Represents the connection and commands used to retrieve and save data.
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DataObjectAttribute(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _ 
        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")>  _
    Partial Public Class USR_RST3_VIEW_ERP_FornecedoresTableAdapter
        Inherits Global.System.ComponentModel.Component
        
        Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
        
        Private _connection As Global.System.Data.SqlClient.SqlConnection
        
        Private _transaction As Global.System.Data.SqlClient.SqlTransaction
        
        Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
        
        Private _clearBeforeFill As Boolean
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Sub New()
            MyBase.New
            Me.ClearBeforeFill = true
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
            Get
                If (Me._adapter Is Nothing) Then
                    Me.InitAdapter
                End If
                Return Me._adapter
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
            Get
                If (Me._connection Is Nothing) Then
                    Me.InitConnection
                End If
                Return Me._connection
            End Get
            Set
                Me._connection = value
                If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
                    Me.Adapter.InsertCommand.Connection = value
                End If
                If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
                    Me.Adapter.DeleteCommand.Connection = value
                End If
                If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
                    Me.Adapter.UpdateCommand.Connection = value
                End If
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    If (Not (Me.CommandCollection(i)) Is Nothing) Then
                        CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
                    End If
                    i = (i + 1)
                Loop
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
            Get
                Return Me._transaction
            End Get
            Set
                Me._transaction = value
                Dim i As Integer = 0
                Do While (i < Me.CommandCollection.Length)
                    Me.CommandCollection(i).Transaction = Me._transaction
                    i = (i + 1)
                Loop
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
                    Me.Adapter.DeleteCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
                    Me.Adapter.InsertCommand.Transaction = Me._transaction
                End If
                If ((Not (Me.Adapter) Is Nothing)  _
                            AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
                    Me.Adapter.UpdateCommand.Transaction = Me._transaction
                End If
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
            Get
                If (Me._commandCollection Is Nothing) Then
                    Me.InitCommandCollection
                End If
                Return Me._commandCollection
            End Get
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property ClearBeforeFill() As Boolean
            Get
                Return Me._clearBeforeFill
            End Get
            Set
                Me._clearBeforeFill = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitAdapter()
            Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
            Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
            tableMapping.SourceTable = "Table"
            tableMapping.DataSetTable = "USR_RST3_VIEW_ERP_Fornecedores"
            tableMapping.ColumnMappings.Add("Fornecedor", "Fornecedor")
            tableMapping.ColumnMappings.Add("Nome", "Nome")
            tableMapping.ColumnMappings.Add("Morada", "Morada")
            tableMapping.ColumnMappings.Add("Local", "Local")
            tableMapping.ColumnMappings.Add("Cp", "Cp")
            tableMapping.ColumnMappings.Add("CpLoc", "CpLoc")
            tableMapping.ColumnMappings.Add("Tel", "Tel")
            tableMapping.ColumnMappings.Add("Fax", "Fax")
            tableMapping.ColumnMappings.Add("NumContrib", "NumContrib")
            tableMapping.ColumnMappings.Add("Pais", "Pais")
            tableMapping.ColumnMappings.Add("CondPag", "CondPag")
            tableMapping.ColumnMappings.Add("ModoPag", "ModoPag")
            tableMapping.ColumnMappings.Add("Moeda", "Moeda")
            Me._adapter.TableMappings.Add(tableMapping)
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitConnection()
            Me._connection = New Global.System.Data.SqlClient.SqlConnection()
            Me._connection.ConnectionString = Global.BeTrace.My.MySettings.Default.BeProd_GosimacConnectionString
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Sub InitCommandCollection()
            Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
            Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
            Me._commandCollection(0).Connection = Me.Connection
            Me._commandCollection(0).CommandText = "SELECT Fornecedor, Nome, Morada, Local, Cp, CpLoc, Tel, Fax, NumContrib, Pais, Co"& _ 
                "ndPag, ModoPag, Moeda FROM USR_RST3_VIEW_ERP_Fornecedores"
            Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)>  _
        Public Overloads Overridable Function Fill(ByVal dataTable As DataSetEncomendas.USR_RST3_VIEW_ERP_FornecedoresDataTable) As Integer
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            If (Me.ClearBeforeFill = true) Then
                dataTable.Clear
            End If
            Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
            Return returnValue
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"),  _
         Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)>  _
        Public Overloads Overridable Function GetData() As DataSetEncomendas.USR_RST3_VIEW_ERP_FornecedoresDataTable
            Me.Adapter.SelectCommand = Me.CommandCollection(0)
            Dim dataTable As DataSetEncomendas.USR_RST3_VIEW_ERP_FornecedoresDataTable = New DataSetEncomendas.USR_RST3_VIEW_ERP_FornecedoresDataTable()
            Me.Adapter.Fill(dataTable)
            Return dataTable
        End Function
    End Class
    
    '''<summary>
    '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
    '''</summary>
    <Global.System.ComponentModel.DesignerCategoryAttribute("code"),  _
     Global.System.ComponentModel.ToolboxItem(true),  _
     Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD"& _ 
        "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"),  _
     Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")>  _
    Partial Public Class TableAdapterManager
        Inherits Global.System.ComponentModel.Component
        
        Private _updateOrder As UpdateOrderOption
        
        Private _mov_EncomendasCliente_CabTableAdapter As Mov_EncomendasCliente_CabTableAdapter
        
        Private _mov_EncomendasCliente_LinTableAdapter As Mov_EncomendasCliente_LinTableAdapter
        
        Private _mov_EncomendasFornecedor_CabTableAdapter As Mov_EncomendasFornecedor_CabTableAdapter
        
        Private _mov_EncomendasFornecedor_LinTableAdapter As Mov_EncomendasFornecedor_LinTableAdapter
        
        Private _mov_EncomendasCliente_SubLinTableAdapter As Mov_EncomendasCliente_SubLinTableAdapter
        
        Private _backupDataSetBeforeUpdate As Boolean
        
        Private _connection As Global.System.Data.IDbConnection
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property UpdateOrder() As UpdateOrderOption
            Get
                Return Me._updateOrder
            End Get
            Set
                Me._updateOrder = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _ 
            "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _ 
            "a", "System.Drawing.Design.UITypeEditor")>  _
        Public Property Mov_EncomendasCliente_CabTableAdapter() As Mov_EncomendasCliente_CabTableAdapter
            Get
                Return Me._mov_EncomendasCliente_CabTableAdapter
            End Get
            Set
                Me._mov_EncomendasCliente_CabTableAdapter = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _ 
            "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _ 
            "a", "System.Drawing.Design.UITypeEditor")>  _
        Public Property Mov_EncomendasCliente_LinTableAdapter() As Mov_EncomendasCliente_LinTableAdapter
            Get
                Return Me._mov_EncomendasCliente_LinTableAdapter
            End Get
            Set
                Me._mov_EncomendasCliente_LinTableAdapter = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _ 
            "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _ 
            "a", "System.Drawing.Design.UITypeEditor")>  _
        Public Property Mov_EncomendasFornecedor_CabTableAdapter() As Mov_EncomendasFornecedor_CabTableAdapter
            Get
                Return Me._mov_EncomendasFornecedor_CabTableAdapter
            End Get
            Set
                Me._mov_EncomendasFornecedor_CabTableAdapter = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _ 
            "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _ 
            "a", "System.Drawing.Design.UITypeEditor")>  _
        Public Property Mov_EncomendasFornecedor_LinTableAdapter() As Mov_EncomendasFornecedor_LinTableAdapter
            Get
                Return Me._mov_EncomendasFornecedor_LinTableAdapter
            End Get
            Set
                Me._mov_EncomendasFornecedor_LinTableAdapter = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _ 
            "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _ 
            "a", "System.Drawing.Design.UITypeEditor")>  _
        Public Property Mov_EncomendasCliente_SubLinTableAdapter() As Mov_EncomendasCliente_SubLinTableAdapter
            Get
                Return Me._mov_EncomendasCliente_SubLinTableAdapter
            End Get
            Set
                Me._mov_EncomendasCliente_SubLinTableAdapter = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Property BackupDataSetBeforeUpdate() As Boolean
            Get
                Return Me._backupDataSetBeforeUpdate
            End Get
            Set
                Me._backupDataSetBeforeUpdate = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public Property Connection() As Global.System.Data.IDbConnection
            Get
                If (Not (Me._connection) Is Nothing) Then
                    Return Me._connection
                End If
                If ((Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing)  _
                            AndAlso (Not (Me._mov_EncomendasCliente_CabTableAdapter.Connection) Is Nothing)) Then
                    Return Me._mov_EncomendasCliente_CabTableAdapter.Connection
                End If
                If ((Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing)  _
                            AndAlso (Not (Me._mov_EncomendasCliente_LinTableAdapter.Connection) Is Nothing)) Then
                    Return Me._mov_EncomendasCliente_LinTableAdapter.Connection
                End If
                If ((Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing)  _
                            AndAlso (Not (Me._mov_EncomendasFornecedor_CabTableAdapter.Connection) Is Nothing)) Then
                    Return Me._mov_EncomendasFornecedor_CabTableAdapter.Connection
                End If
                If ((Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing)  _
                            AndAlso (Not (Me._mov_EncomendasFornecedor_LinTableAdapter.Connection) Is Nothing)) Then
                    Return Me._mov_EncomendasFornecedor_LinTableAdapter.Connection
                End If
                If ((Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing)  _
                            AndAlso (Not (Me._mov_EncomendasCliente_SubLinTableAdapter.Connection) Is Nothing)) Then
                    Return Me._mov_EncomendasCliente_SubLinTableAdapter.Connection
                End If
                Return Nothing
            End Get
            Set
                Me._connection = value
            End Set
        End Property
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"),  _
         Global.System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property TableAdapterInstanceCount() As Integer
            Get
                Dim count As Integer = 0
                If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                    count = (count + 1)
                End If
                If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                    count = (count + 1)
                End If
                If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                    count = (count + 1)
                End If
                If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                    count = (count + 1)
                End If
                If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                    count = (count + 1)
                End If
                Return count
            End Get
        End Property
        
        '''<summary>
        '''Update rows in top-down order.
        '''</summary>
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Function UpdateUpdatedRows(ByVal dataSet As DataSetEncomendas, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow), ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
            Dim result As Integer = 0
            If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                Dim updatedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
                updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
                If ((Not (updatedRows) Is Nothing)  _
                            AndAlso (0 < updatedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_CabTableAdapter.Update(updatedRows))
                    allChangedRows.AddRange(updatedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                Dim updatedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
                updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
                If ((Not (updatedRows) Is Nothing)  _
                            AndAlso (0 < updatedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_LinTableAdapter.Update(updatedRows))
                    allChangedRows.AddRange(updatedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                Dim updatedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
                updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
                If ((Not (updatedRows) Is Nothing)  _
                            AndAlso (0 < updatedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_CabTableAdapter.Update(updatedRows))
                    allChangedRows.AddRange(updatedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                Dim updatedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
                updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
                If ((Not (updatedRows) Is Nothing)  _
                            AndAlso (0 < updatedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_LinTableAdapter.Update(updatedRows))
                    allChangedRows.AddRange(updatedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                Dim updatedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_SubLin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
                updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
                If ((Not (updatedRows) Is Nothing)  _
                            AndAlso (0 < updatedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_SubLinTableAdapter.Update(updatedRows))
                    allChangedRows.AddRange(updatedRows)
                End If
            End If
            Return result
        End Function
        
        '''<summary>
        '''Insert rows in top-down order.
        '''</summary>
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Function UpdateInsertedRows(ByVal dataSet As DataSetEncomendas, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
            Dim result As Integer = 0
            If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                Dim addedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
                If ((Not (addedRows) Is Nothing)  _
                            AndAlso (0 < addedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_CabTableAdapter.Update(addedRows))
                    allAddedRows.AddRange(addedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                Dim addedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
                If ((Not (addedRows) Is Nothing)  _
                            AndAlso (0 < addedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_LinTableAdapter.Update(addedRows))
                    allAddedRows.AddRange(addedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                Dim addedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
                If ((Not (addedRows) Is Nothing)  _
                            AndAlso (0 < addedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_CabTableAdapter.Update(addedRows))
                    allAddedRows.AddRange(addedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                Dim addedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
                If ((Not (addedRows) Is Nothing)  _
                            AndAlso (0 < addedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_LinTableAdapter.Update(addedRows))
                    allAddedRows.AddRange(addedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                Dim addedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_SubLin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
                If ((Not (addedRows) Is Nothing)  _
                            AndAlso (0 < addedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_SubLinTableAdapter.Update(addedRows))
                    allAddedRows.AddRange(addedRows)
                End If
            End If
            Return result
        End Function
        
        '''<summary>
        '''Delete rows in bottom-up order.
        '''</summary>
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Function UpdateDeletedRows(ByVal dataSet As DataSetEncomendas, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
            Dim result As Integer = 0
            If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                Dim deletedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_SubLin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
                If ((Not (deletedRows) Is Nothing)  _
                            AndAlso (0 < deletedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_SubLinTableAdapter.Update(deletedRows))
                    allChangedRows.AddRange(deletedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                Dim deletedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
                If ((Not (deletedRows) Is Nothing)  _
                            AndAlso (0 < deletedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_LinTableAdapter.Update(deletedRows))
                    allChangedRows.AddRange(deletedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                Dim deletedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasFornecedor_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
                If ((Not (deletedRows) Is Nothing)  _
                            AndAlso (0 < deletedRows.Length)) Then
                    result = (result + Me._mov_EncomendasFornecedor_CabTableAdapter.Update(deletedRows))
                    allChangedRows.AddRange(deletedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                Dim deletedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Lin.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
                If ((Not (deletedRows) Is Nothing)  _
                            AndAlso (0 < deletedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_LinTableAdapter.Update(deletedRows))
                    allChangedRows.AddRange(deletedRows)
                End If
            End If
            If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                Dim deletedRows() As Global.System.Data.DataRow = dataSet.Mov_EncomendasCliente_Cab.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
                If ((Not (deletedRows) Is Nothing)  _
                            AndAlso (0 < deletedRows.Length)) Then
                    result = (result + Me._mov_EncomendasCliente_CabTableAdapter.Update(deletedRows))
                    allChangedRows.AddRange(deletedRows)
                End If
            End If
            Return result
        End Function
        
        '''<summary>
        '''Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
        '''</summary>
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Function GetRealUpdatedRows(ByVal updatedRows() As Global.System.Data.DataRow, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Global.System.Data.DataRow()
            If ((updatedRows Is Nothing)  _
                        OrElse (updatedRows.Length < 1)) Then
                Return updatedRows
            End If
            If ((allAddedRows Is Nothing)  _
                        OrElse (allAddedRows.Count < 1)) Then
                Return updatedRows
            End If
            Dim realUpdatedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
            Dim i As Integer = 0
            Do While (i < updatedRows.Length)
                Dim row As Global.System.Data.DataRow = updatedRows(i)
                If (allAddedRows.Contains(row) = false) Then
                    realUpdatedRows.Add(row)
                End If
                i = (i + 1)
            Loop
            Return realUpdatedRows.ToArray
        End Function
        
        '''<summary>
        '''Update all changes to the dataset.
        '''</summary>
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Overridable Function UpdateAll(ByVal dataSet As DataSetEncomendas) As Integer
            If (dataSet Is Nothing) Then
                Throw New Global.System.ArgumentNullException("dataSet")
            End If
            If (dataSet.HasChanges = false) Then
                Return 0
            End If
            If ((Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing)  _
                        AndAlso (Me.MatchTableAdapterConnection(Me._mov_EncomendasCliente_CabTableAdapter.Connection) = false)) Then
                Throw New Global.System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s"& _ 
                        "tring.")
            End If
            If ((Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing)  _
                        AndAlso (Me.MatchTableAdapterConnection(Me._mov_EncomendasCliente_LinTableAdapter.Connection) = false)) Then
                Throw New Global.System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s"& _ 
                        "tring.")
            End If
            If ((Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing)  _
                        AndAlso (Me.MatchTableAdapterConnection(Me._mov_EncomendasFornecedor_CabTableAdapter.Connection) = false)) Then
                Throw New Global.System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s"& _ 
                        "tring.")
            End If
            If ((Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing)  _
                        AndAlso (Me.MatchTableAdapterConnection(Me._mov_EncomendasFornecedor_LinTableAdapter.Connection) = false)) Then
                Throw New Global.System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s"& _ 
                        "tring.")
            End If
            If ((Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing)  _
                        AndAlso (Me.MatchTableAdapterConnection(Me._mov_EncomendasCliente_SubLinTableAdapter.Connection) = false)) Then
                Throw New Global.System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s"& _ 
                        "tring.")
            End If
            Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
            If (workConnection Is Nothing) Then
                Throw New Global.System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana"& _ 
                        "ger TableAdapter property to a valid TableAdapter instance.")
            End If
            Dim workConnOpened As Boolean = false
            If ((workConnection.State And Global.System.Data.ConnectionState.Broken)  _
                        = Global.System.Data.ConnectionState.Broken) Then
                workConnection.Close
            End If
            If (workConnection.State = Global.System.Data.ConnectionState.Closed) Then
                workConnection.Open
                workConnOpened = true
            End If
            Dim workTransaction As Global.System.Data.IDbTransaction = workConnection.BeginTransaction
            If (workTransaction Is Nothing) Then
                Throw New Global.System.ApplicationException("The transaction cannot begin. The current data connection does not support transa"& _ 
                        "ctions or the current state is not allowing the transaction to begin.")
            End If
            Dim allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
            Dim allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
            Dim adaptersWithAcceptChangesDuringUpdate As Global.System.Collections.Generic.List(Of Global.System.Data.Common.DataAdapter) = New Global.System.Collections.Generic.List(Of Global.System.Data.Common.DataAdapter)()
            Dim revertConnections As Global.System.Collections.Generic.Dictionary(Of Object, Global.System.Data.IDbConnection) = New Global.System.Collections.Generic.Dictionary(Of Object, Global.System.Data.IDbConnection)()
            Dim result As Integer = 0
            Dim backupDataSet As Global.System.Data.DataSet = Nothing
            If Me.BackupDataSetBeforeUpdate Then
                backupDataSet = New Global.System.Data.DataSet()
                backupDataSet.Merge(dataSet)
            End If
            Try 
                '---- Prepare for update -----------
                '
                If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                    revertConnections.Add(Me._mov_EncomendasCliente_CabTableAdapter, Me._mov_EncomendasCliente_CabTableAdapter.Connection)
                    Me._mov_EncomendasCliente_CabTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_CabTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
                    If Me._mov_EncomendasCliente_CabTableAdapter.Adapter.AcceptChangesDuringUpdate Then
                        Me._mov_EncomendasCliente_CabTableAdapter.Adapter.AcceptChangesDuringUpdate = false
                        adaptersWithAcceptChangesDuringUpdate.Add(Me._mov_EncomendasCliente_CabTableAdapter.Adapter)
                    End If
                End If
                If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                    revertConnections.Add(Me._mov_EncomendasCliente_LinTableAdapter, Me._mov_EncomendasCliente_LinTableAdapter.Connection)
                    Me._mov_EncomendasCliente_LinTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_LinTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
                    If Me._mov_EncomendasCliente_LinTableAdapter.Adapter.AcceptChangesDuringUpdate Then
                        Me._mov_EncomendasCliente_LinTableAdapter.Adapter.AcceptChangesDuringUpdate = false
                        adaptersWithAcceptChangesDuringUpdate.Add(Me._mov_EncomendasCliente_LinTableAdapter.Adapter)
                    End If
                End If
                If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                    revertConnections.Add(Me._mov_EncomendasFornecedor_CabTableAdapter, Me._mov_EncomendasFornecedor_CabTableAdapter.Connection)
                    Me._mov_EncomendasFornecedor_CabTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasFornecedor_CabTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
                    If Me._mov_EncomendasFornecedor_CabTableAdapter.Adapter.AcceptChangesDuringUpdate Then
                        Me._mov_EncomendasFornecedor_CabTableAdapter.Adapter.AcceptChangesDuringUpdate = false
                        adaptersWithAcceptChangesDuringUpdate.Add(Me._mov_EncomendasFornecedor_CabTableAdapter.Adapter)
                    End If
                End If
                If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                    revertConnections.Add(Me._mov_EncomendasFornecedor_LinTableAdapter, Me._mov_EncomendasFornecedor_LinTableAdapter.Connection)
                    Me._mov_EncomendasFornecedor_LinTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasFornecedor_LinTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
                    If Me._mov_EncomendasFornecedor_LinTableAdapter.Adapter.AcceptChangesDuringUpdate Then
                        Me._mov_EncomendasFornecedor_LinTableAdapter.Adapter.AcceptChangesDuringUpdate = false
                        adaptersWithAcceptChangesDuringUpdate.Add(Me._mov_EncomendasFornecedor_LinTableAdapter.Adapter)
                    End If
                End If
                If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                    revertConnections.Add(Me._mov_EncomendasCliente_SubLinTableAdapter, Me._mov_EncomendasCliente_SubLinTableAdapter.Connection)
                    Me._mov_EncomendasCliente_SubLinTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_SubLinTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
                    If Me._mov_EncomendasCliente_SubLinTableAdapter.Adapter.AcceptChangesDuringUpdate Then
                        Me._mov_EncomendasCliente_SubLinTableAdapter.Adapter.AcceptChangesDuringUpdate = false
                        adaptersWithAcceptChangesDuringUpdate.Add(Me._mov_EncomendasCliente_SubLinTableAdapter.Adapter)
                    End If
                End If
                '
                '---- Perform updates -----------
                '
                If (Me.UpdateOrder = UpdateOrderOption.UpdateInsertDelete) Then
                    result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
                    result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
                Else
                    result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
                    result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
                End If
                result = (result + Me.UpdateDeletedRows(dataSet, allChangedRows))
                '
                '---- Commit updates -----------
                '
                workTransaction.Commit
                If (0 < allAddedRows.Count) Then
                    Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
                    allAddedRows.CopyTo(rows)
                    Dim i As Integer = 0
                    Do While (i < rows.Length)
                        Dim row As Global.System.Data.DataRow = rows(i)
                        row.AcceptChanges
                        i = (i + 1)
                    Loop
                End If
                If (0 < allChangedRows.Count) Then
                    Dim rows((allChangedRows.Count) - 1) As Global.System.Data.DataRow
                    allChangedRows.CopyTo(rows)
                    Dim i As Integer = 0
                    Do While (i < rows.Length)
                        Dim row As Global.System.Data.DataRow = rows(i)
                        row.AcceptChanges
                        i = (i + 1)
                    Loop
                End If
            Catch ex As Global.System.Exception
                workTransaction.Rollback
                '---- Restore the dataset -----------
                If Me.BackupDataSetBeforeUpdate Then
                    Global.System.Diagnostics.Debug.Assert((Not (backupDataSet) Is Nothing))
                    dataSet.Clear
                    dataSet.Merge(backupDataSet)
                Else
                    If (0 < allAddedRows.Count) Then
                        Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
                        allAddedRows.CopyTo(rows)
                        Dim i As Integer = 0
                        Do While (i < rows.Length)
                            Dim row As Global.System.Data.DataRow = rows(i)
                            row.AcceptChanges
                            row.SetAdded
                            i = (i + 1)
                        Loop
                    End If
                End If
                Throw ex
            Finally
                If workConnOpened Then
                    workConnection.Close
                End If
                If (Not (Me._mov_EncomendasCliente_CabTableAdapter) Is Nothing) Then
                    Me._mov_EncomendasCliente_CabTableAdapter.Connection = CType(revertConnections(Me._mov_EncomendasCliente_CabTableAdapter),Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_CabTableAdapter.Transaction = Nothing
                End If
                If (Not (Me._mov_EncomendasCliente_LinTableAdapter) Is Nothing) Then
                    Me._mov_EncomendasCliente_LinTableAdapter.Connection = CType(revertConnections(Me._mov_EncomendasCliente_LinTableAdapter),Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_LinTableAdapter.Transaction = Nothing
                End If
                If (Not (Me._mov_EncomendasFornecedor_CabTableAdapter) Is Nothing) Then
                    Me._mov_EncomendasFornecedor_CabTableAdapter.Connection = CType(revertConnections(Me._mov_EncomendasFornecedor_CabTableAdapter),Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasFornecedor_CabTableAdapter.Transaction = Nothing
                End If
                If (Not (Me._mov_EncomendasFornecedor_LinTableAdapter) Is Nothing) Then
                    Me._mov_EncomendasFornecedor_LinTableAdapter.Connection = CType(revertConnections(Me._mov_EncomendasFornecedor_LinTableAdapter),Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasFornecedor_LinTableAdapter.Transaction = Nothing
                End If
                If (Not (Me._mov_EncomendasCliente_SubLinTableAdapter) Is Nothing) Then
                    Me._mov_EncomendasCliente_SubLinTableAdapter.Connection = CType(revertConnections(Me._mov_EncomendasCliente_SubLinTableAdapter),Global.System.Data.SqlClient.SqlConnection)
                    Me._mov_EncomendasCliente_SubLinTableAdapter.Transaction = Nothing
                End If
                If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
                    Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
                    adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
                    Dim i As Integer = 0
                    Do While (i < adapters.Length)
                        Dim adapter As Global.System.Data.Common.DataAdapter = adapters(i)
                        adapter.AcceptChangesDuringUpdate = true
                        i = (i + 1)
                    Loop
                End If
            End Try
            Return result
        End Function
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overridable Sub SortSelfReferenceRows(ByVal rows() As Global.System.Data.DataRow, ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
            Global.System.Array.Sort(Of Global.System.Data.DataRow)(rows, New SelfReferenceComparer(relation, childFirst))
        End Sub
        
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
         Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Protected Overridable Function MatchTableAdapterConnection(ByVal inputConnection As Global.System.Data.IDbConnection) As Boolean
            If (Not (Me._connection) Is Nothing) Then
                Return true
            End If
            If ((Me.Connection Is Nothing)  _
                        OrElse (inputConnection Is Nothing)) Then
                Return true
            End If
            If String.Equals(Me.Connection.ConnectionString, inputConnection.ConnectionString, Global.System.StringComparison.Ordinal) Then
                Return true
            End If
            Return false
        End Function
        
        '''<summary>
        '''Update Order Option
        '''</summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Public Enum UpdateOrderOption
            
            InsertUpdateDelete = 0
            
            UpdateInsertDelete = 1
        End Enum
        
        '''<summary>
        '''Used to sort self-referenced table's rows
        '''</summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
        Private Class SelfReferenceComparer
            Inherits Object
            Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow)
            
            Private _relation As Global.System.Data.DataRelation
            
            Private _childFirst As Integer
            
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
            Friend Sub New(ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
                MyBase.New
                Me._relation = relation
                If childFirst Then
                    Me._childFirst = -1
                Else
                    Me._childFirst = 1
                End If
            End Sub
            
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
            Private Function GetRoot(ByVal row As Global.System.Data.DataRow, ByRef distance As Integer) As Global.System.Data.DataRow
                Global.System.Diagnostics.Debug.Assert((Not (row) Is Nothing))
                Dim root As Global.System.Data.DataRow = row
                distance = 0

                Dim traversedRows As Global.System.Collections.Generic.IDictionary(Of Global.System.Data.DataRow, Global.System.Data.DataRow) = New Global.System.Collections.Generic.Dictionary(Of Global.System.Data.DataRow, Global.System.Data.DataRow)()
                traversedRows(row) = row

                Dim parent As Global.System.Data.DataRow = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])

                Do While ((Not (parent) Is Nothing)  _
                            AndAlso (traversedRows.ContainsKey(parent) = false))
                    distance = (distance + 1)
                    root = parent
                    traversedRows(parent) = parent
                    parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])

                Loop

                If (distance = 0) Then
                    traversedRows.Clear
                    traversedRows(row) = row
                    parent = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)

                    Do While ((Not (parent) Is Nothing)  _
                                AndAlso (traversedRows.ContainsKey(parent) = false))
                        distance = (distance + 1)
                        root = parent
                        traversedRows(parent) = parent
                        parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)

                    Loop
                End If

                Return root
            End Function
            
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
             Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
            Public Function Compare(ByVal row1 As Global.System.Data.DataRow, ByVal row2 As Global.System.Data.DataRow) As Integer Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow).Compare
                If Object.ReferenceEquals(row1, row2) Then
                    Return 0
                End If
                If (row1 Is Nothing) Then
                    Return -1
                End If
                If (row2 Is Nothing) Then
                    Return 1
                End If

                Dim distance1 As Integer = 0
                Dim root1 As Global.System.Data.DataRow = Me.GetRoot(row1, distance1)

                Dim distance2 As Integer = 0
                Dim root2 As Global.System.Data.DataRow = Me.GetRoot(row2, distance2)

                If Object.ReferenceEquals(root1, root2) Then
                    Return (Me._childFirst * distance1.CompareTo(distance2))
                Else
                    Global.System.Diagnostics.Debug.Assert(((Not (root1.Table) Is Nothing)  _
                                    AndAlso (Not (root2.Table) Is Nothing)))
                    If (root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2)) Then
                        Return -1
                    Else
                        Return 1
                    End If
                End If
            End Function
        End Class
    End Class
End Namespace
