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

#pragma warning disable 1591

namespace ExportFaktur {
    
    
    /// <summary>
    ///Represents a strongly typed in-memory cache of data.
    ///</summary>
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [global::System.Serializable()]
    [global::System.ComponentModel.DesignerCategoryAttribute("code")]
    [global::System.ComponentModel.ToolboxItem(true)]
    [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
    [global::System.Xml.Serialization.XmlRootAttribute("EXPODataSet")]
    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
    public partial class EXPODataSet : global::System.Data.DataSet {
        
        private FAKTURYDataTable tableFAKTURY;
        
        private FAKTURA_DETAILSDataTable tableFAKTURA_DETAILS;
        
        private KLIENCIDataTable tableKLIENCI;
        
        private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public EXPODataSet() {
            this.BeginInit();
            this.InitClass();
            global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            base.Relations.CollectionChanged += schemaChangedHandler;
            this.EndInit();
            this.InitExpressions();
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected EXPODataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
                base(info, context, false) {
            if ((this.IsBinarySerialized(info, context) == true)) {
                this.InitVars(false);
                global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
                this.Tables.CollectionChanged += schemaChangedHandler1;
                this.Relations.CollectionChanged += schemaChangedHandler1;
                if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.ExcludeSchema)) {
                    this.InitExpressions();
                }
                return;
            }
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
                global::System.Data.DataSet ds = new global::System.Data.DataSet();
                ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
                if ((ds.Tables["FAKTURY"] != null)) {
                    base.Tables.Add(new FAKTURYDataTable(ds.Tables["FAKTURY"]));
                }
                if ((ds.Tables["FAKTURA_DETAILS"] != null)) {
                    base.Tables.Add(new FAKTURA_DETAILSDataTable(ds.Tables["FAKTURA_DETAILS"]));
                }
                if ((ds.Tables["KLIENCI"] != null)) {
                    base.Tables.Add(new KLIENCIDataTable(ds.Tables["KLIENCI"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
                this.InitExpressions();
            }
            this.GetSerializationData(info, context);
            global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            base.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Browsable(false)]
        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
        public FAKTURYDataTable FAKTURY {
            get {
                return this.tableFAKTURY;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Browsable(false)]
        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
        public FAKTURA_DETAILSDataTable FAKTURA_DETAILS {
            get {
                return this.tableFAKTURA_DETAILS;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Browsable(false)]
        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
        public KLIENCIDataTable KLIENCI {
            get {
                return this.tableKLIENCI;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.BrowsableAttribute(true)]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
        public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
            get {
                return this._schemaSerializationMode;
            }
            set {
                this._schemaSerializationMode = value;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new global::System.Data.DataTableCollection Tables {
            get {
                return base.Tables;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
        public new global::System.Data.DataRelationCollection Relations {
            get {
                return base.Relations;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override void InitializeDerivedDataSet() {
            this.BeginInit();
            this.InitClass();
            this.EndInit();
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public override global::System.Data.DataSet Clone() {
            EXPODataSet cln = ((EXPODataSet)(base.Clone()));
            cln.InitVars();
            cln.InitExpressions();
            cln.SchemaSerializationMode = this.SchemaSerializationMode;
            return cln;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
            if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
                this.Reset();
                global::System.Data.DataSet ds = new global::System.Data.DataSet();
                ds.ReadXml(reader);
                if ((ds.Tables["FAKTURY"] != null)) {
                    base.Tables.Add(new FAKTURYDataTable(ds.Tables["FAKTURY"]));
                }
                if ((ds.Tables["FAKTURA_DETAILS"] != null)) {
                    base.Tables.Add(new FAKTURA_DETAILSDataTable(ds.Tables["FAKTURA_DETAILS"]));
                }
                if ((ds.Tables["KLIENCI"] != null)) {
                    base.Tables.Add(new KLIENCIDataTable(ds.Tables["KLIENCI"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.ReadXml(reader);
                this.InitVars();
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
            this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
            stream.Position = 0;
            return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal void InitVars() {
            this.InitVars(true);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal void InitVars(bool initTable) {
            this.tableFAKTURY = ((FAKTURYDataTable)(base.Tables["FAKTURY"]));
            if ((initTable == true)) {
                if ((this.tableFAKTURY != null)) {
                    this.tableFAKTURY.InitVars();
                }
            }
            this.tableFAKTURA_DETAILS = ((FAKTURA_DETAILSDataTable)(base.Tables["FAKTURA_DETAILS"]));
            if ((initTable == true)) {
                if ((this.tableFAKTURA_DETAILS != null)) {
                    this.tableFAKTURA_DETAILS.InitVars();
                }
            }
            this.tableKLIENCI = ((KLIENCIDataTable)(base.Tables["KLIENCI"]));
            if ((initTable == true)) {
                if ((this.tableKLIENCI != null)) {
                    this.tableKLIENCI.InitVars();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitClass() {
            this.DataSetName = "EXPODataSet";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/EXPODataSet.xsd";
            this.EnforceConstraints = true;
            this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
            this.tableFAKTURY = new FAKTURYDataTable(false);
            base.Tables.Add(this.tableFAKTURY);
            this.tableFAKTURA_DETAILS = new FAKTURA_DETAILSDataTable();
            base.Tables.Add(this.tableFAKTURA_DETAILS);
            this.tableKLIENCI = new KLIENCIDataTable();
            base.Tables.Add(this.tableKLIENCI);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeFAKTURY() {
            return false;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeFAKTURA_DETAILS() {
            return false;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeKLIENCI() {
            return false;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
            EXPODataSet ds = new EXPODataSet();
            global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
            global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
            global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
            if (xs.Contains(dsSchema.TargetNamespace)) {
                global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                try {
                    global::System.Xml.Schema.XmlSchema schema = null;
                    dsSchema.Write(s1);
                    for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                        schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                        s2.SetLength(0);
                        schema.Write(s2);
                        if ((s1.Length == s2.Length)) {
                            s1.Position = 0;
                            s2.Position = 0;
                            for (; ((s1.Position != s1.Length) 
                                        && (s1.ReadByte() == s2.ReadByte())); ) {
                                ;
                            }
                            if ((s1.Position == s1.Length)) {
                                return type;
                            }
                        }
                    }
                }
                finally {
                    if ((s1 != null)) {
                        s1.Close();
                    }
                    if ((s2 != null)) {
                        s2.Close();
                    }
                }
            }
            xs.Add(dsSchema);
            return type;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitExpressions() {
            this.FAKTURY.Pelny_numerColumn.Expression = "NUMER + \'/\' + NUMER_ROZ + \'/\' + NUMER_ROK";
        }
        
        public delegate void FAKTURYRowChangeEventHandler(object sender, FAKTURYRowChangeEvent e);
        
        public delegate void FAKTURA_DETAILSRowChangeEventHandler(object sender, FAKTURA_DETAILSRowChangeEvent e);
        
        public delegate void KLIENCIRowChangeEventHandler(object sender, KLIENCIRowChangeEvent e);
        
        /// <summary>
        ///Represents the strongly named DataTable class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [global::System.Serializable()]
        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class FAKTURYDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
            
            private global::System.Data.DataColumn columnID_FAKTURY;
            
            private global::System.Data.DataColumn columnNUMER;
            
            private global::System.Data.DataColumn columnNUMER_ROZ;
            
            private global::System.Data.DataColumn columnNUMER_ROK;
            
            private global::System.Data.DataColumn columnDATA_WYSTAWIENIA;
            
            private global::System.Data.DataColumn columnMIEJSCOWOSC_WYSTAWIENIA;
            
            private global::System.Data.DataColumn columnID_SPRZEDAWCY;
            
            private global::System.Data.DataColumn columnID_NABYWCY;
            
            private global::System.Data.DataColumn columnDATA_SPRZEDAZY;
            
            private global::System.Data.DataColumn columnPODPIS_WYSTAWIL;
            
            private global::System.Data.DataColumn columnPODPIS_ODEBRAL;
            
            private global::System.Data.DataColumn columnopis;
            
            private global::System.Data.DataColumn columnSPOSOB_ZAPLATY;
            
            private global::System.Data.DataColumn columnTERMIN_ZAPLATY;
            
            private global::System.Data.DataColumn columnZAPLACONO;
            
            private global::System.Data.DataColumn columnBYL_WYDRUK;
            
            private global::System.Data.DataColumn columnNABYWCA_ADRES;
            
            private global::System.Data.DataColumn columnSPRZEDAWCA_ADRES;
            
            private global::System.Data.DataColumn columnSPRZEDAWCA_NIP;
            
            private global::System.Data.DataColumn columnNABYWCA_NIP;
            
            private global::System.Data.DataColumn columnFAKTURA_TYP;
            
            private global::System.Data.DataColumn columnFAKTURA_PODTYP;
            
            private global::System.Data.DataColumn columnID_KONTA;
            
            private global::System.Data.DataColumn columnEKSPORT;
            
            private global::System.Data.DataColumn columnEXPORTED;
            
            private global::System.Data.DataColumn columnID_TYTUL;
            
            private global::System.Data.DataColumn columnEXPORTED_DATA;
            
            private global::System.Data.DataColumn columnsuma_zaplat;
            
            private global::System.Data.DataColumn columnID_FK_KOR;
            
            private global::System.Data.DataColumn columnKOREKTA;
            
            private global::System.Data.DataColumn columnzaplata_data;
            
            private global::System.Data.DataColumn columnzaplata_opis;
            
            private global::System.Data.DataColumn columnZaliczka_Brutto;
            
            private global::System.Data.DataColumn columnZaliczka_Data;
            
            private global::System.Data.DataColumn columnwaluta_brutto;
            
            private global::System.Data.DataColumn columnwaluta_miano;
            
            private global::System.Data.DataColumn columnwaluta_kurs;
            
            private global::System.Data.DataColumn columnwaluta_przelicznik;
            
            private global::System.Data.DataColumn columnwaluta_kurs_z_dnia;
            
            private global::System.Data.DataColumn columnwaluta_tabela_nr;
            
            private global::System.Data.DataColumn columnPelny_numer;
            
            private global::System.Data.DataColumn columnExportuj;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYDataTable() : 
                    this(false) {
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYDataTable(bool initExpressions) {
                this.TableName = "FAKTURY";
                this.BeginInit();
                this.InitClass();
                if ((initExpressions == true)) {
                    this.InitExpressions();
                }
                this.EndInit();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal FAKTURYDataTable(global::System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected FAKTURYDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_FAKTURYColumn {
                get {
                    return this.columnID_FAKTURY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NUMERColumn {
                get {
                    return this.columnNUMER;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NUMER_ROZColumn {
                get {
                    return this.columnNUMER_ROZ;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NUMER_ROKColumn {
                get {
                    return this.columnNUMER_ROK;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn DATA_WYSTAWIENIAColumn {
                get {
                    return this.columnDATA_WYSTAWIENIA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn MIEJSCOWOSC_WYSTAWIENIAColumn {
                get {
                    return this.columnMIEJSCOWOSC_WYSTAWIENIA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_SPRZEDAWCYColumn {
                get {
                    return this.columnID_SPRZEDAWCY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_NABYWCYColumn {
                get {
                    return this.columnID_NABYWCY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn DATA_SPRZEDAZYColumn {
                get {
                    return this.columnDATA_SPRZEDAZY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn PODPIS_WYSTAWILColumn {
                get {
                    return this.columnPODPIS_WYSTAWIL;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn PODPIS_ODEBRALColumn {
                get {
                    return this.columnPODPIS_ODEBRAL;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn opisColumn {
                get {
                    return this.columnopis;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn SPOSOB_ZAPLATYColumn {
                get {
                    return this.columnSPOSOB_ZAPLATY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn TERMIN_ZAPLATYColumn {
                get {
                    return this.columnTERMIN_ZAPLATY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ZAPLACONOColumn {
                get {
                    return this.columnZAPLACONO;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn BYL_WYDRUKColumn {
                get {
                    return this.columnBYL_WYDRUK;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NABYWCA_ADRESColumn {
                get {
                    return this.columnNABYWCA_ADRES;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn SPRZEDAWCA_ADRESColumn {
                get {
                    return this.columnSPRZEDAWCA_ADRES;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn SPRZEDAWCA_NIPColumn {
                get {
                    return this.columnSPRZEDAWCA_NIP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NABYWCA_NIPColumn {
                get {
                    return this.columnNABYWCA_NIP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn FAKTURA_TYPColumn {
                get {
                    return this.columnFAKTURA_TYP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn FAKTURA_PODTYPColumn {
                get {
                    return this.columnFAKTURA_PODTYP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_KONTAColumn {
                get {
                    return this.columnID_KONTA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn EKSPORTColumn {
                get {
                    return this.columnEKSPORT;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn EXPORTEDColumn {
                get {
                    return this.columnEXPORTED;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_TYTULColumn {
                get {
                    return this.columnID_TYTUL;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn EXPORTED_DATAColumn {
                get {
                    return this.columnEXPORTED_DATA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn suma_zaplatColumn {
                get {
                    return this.columnsuma_zaplat;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_FK_KORColumn {
                get {
                    return this.columnID_FK_KOR;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn KOREKTAColumn {
                get {
                    return this.columnKOREKTA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn zaplata_dataColumn {
                get {
                    return this.columnzaplata_data;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn zaplata_opisColumn {
                get {
                    return this.columnzaplata_opis;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Zaliczka_BruttoColumn {
                get {
                    return this.columnZaliczka_Brutto;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Zaliczka_DataColumn {
                get {
                    return this.columnZaliczka_Data;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_bruttoColumn {
                get {
                    return this.columnwaluta_brutto;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_mianoColumn {
                get {
                    return this.columnwaluta_miano;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_kursColumn {
                get {
                    return this.columnwaluta_kurs;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_przelicznikColumn {
                get {
                    return this.columnwaluta_przelicznik;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_kurs_z_dniaColumn {
                get {
                    return this.columnwaluta_kurs_z_dnia;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn waluta_tabela_nrColumn {
                get {
                    return this.columnwaluta_tabela_nr;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Pelny_numerColumn {
                get {
                    return this.columnPelny_numer;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ExportujColumn {
                get {
                    return this.columnExportuj;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow this[int index] {
                get {
                    return ((FAKTURYRow)(this.Rows[index]));
                }
            }
            
            public event FAKTURYRowChangeEventHandler FAKTURYRowChanging;
            
            public event FAKTURYRowChangeEventHandler FAKTURYRowChanged;
            
            public event FAKTURYRowChangeEventHandler FAKTURYRowDeleting;
            
            public event FAKTURYRowChangeEventHandler FAKTURYRowDeleted;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddFAKTURYRow(FAKTURYRow row) {
                this.Rows.Add(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow AddFAKTURYRow(
                        int NUMER, 
                        string NUMER_ROZ, 
                        int NUMER_ROK, 
                        System.DateTime DATA_WYSTAWIENIA, 
                        string MIEJSCOWOSC_WYSTAWIENIA, 
                        int ID_SPRZEDAWCY, 
                        int ID_NABYWCY, 
                        System.DateTime DATA_SPRZEDAZY, 
                        string PODPIS_WYSTAWIL, 
                        string PODPIS_ODEBRAL, 
                        string opis, 
                        string SPOSOB_ZAPLATY, 
                        System.DateTime TERMIN_ZAPLATY, 
                        bool ZAPLACONO, 
                        bool BYL_WYDRUK, 
                        string NABYWCA_ADRES, 
                        string SPRZEDAWCA_ADRES, 
                        string SPRZEDAWCA_NIP, 
                        string NABYWCA_NIP, 
                        short FAKTURA_TYP, 
                        short FAKTURA_PODTYP, 
                        short ID_KONTA, 
                        bool EKSPORT, 
                        bool EXPORTED, 
                        short ID_TYTUL, 
                        System.DateTime EXPORTED_DATA, 
                        decimal suma_zaplat, 
                        int ID_FK_KOR, 
                        byte KOREKTA, 
                        System.DateTime zaplata_data, 
                        string zaplata_opis, 
                        decimal Zaliczka_Brutto, 
                        System.DateTime Zaliczka_Data, 
                        double waluta_brutto, 
                        string waluta_miano, 
                        double waluta_kurs, 
                        int waluta_przelicznik, 
                        System.DateTime waluta_kurs_z_dnia, 
                        string waluta_tabela_nr, 
                        string Pelny_numer, 
                        bool Exportuj) {
                FAKTURYRow rowFAKTURYRow = ((FAKTURYRow)(this.NewRow()));
                object[] columnValuesArray = new object[] {
                        null,
                        NUMER,
                        NUMER_ROZ,
                        NUMER_ROK,
                        DATA_WYSTAWIENIA,
                        MIEJSCOWOSC_WYSTAWIENIA,
                        ID_SPRZEDAWCY,
                        ID_NABYWCY,
                        DATA_SPRZEDAZY,
                        PODPIS_WYSTAWIL,
                        PODPIS_ODEBRAL,
                        opis,
                        SPOSOB_ZAPLATY,
                        TERMIN_ZAPLATY,
                        ZAPLACONO,
                        BYL_WYDRUK,
                        NABYWCA_ADRES,
                        SPRZEDAWCA_ADRES,
                        SPRZEDAWCA_NIP,
                        NABYWCA_NIP,
                        FAKTURA_TYP,
                        FAKTURA_PODTYP,
                        ID_KONTA,
                        EKSPORT,
                        EXPORTED,
                        ID_TYTUL,
                        EXPORTED_DATA,
                        suma_zaplat,
                        ID_FK_KOR,
                        KOREKTA,
                        zaplata_data,
                        zaplata_opis,
                        Zaliczka_Brutto,
                        Zaliczka_Data,
                        waluta_brutto,
                        waluta_miano,
                        waluta_kurs,
                        waluta_przelicznik,
                        waluta_kurs_z_dnia,
                        waluta_tabela_nr,
                        Pelny_numer,
                        Exportuj};
                rowFAKTURYRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowFAKTURYRow);
                return rowFAKTURYRow;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow AddFAKTURYRow(
                        int NUMER, 
                        string NUMER_ROZ, 
                        int NUMER_ROK, 
                        System.DateTime DATA_WYSTAWIENIA, 
                        string MIEJSCOWOSC_WYSTAWIENIA, 
                        int ID_SPRZEDAWCY, 
                        int ID_NABYWCY, 
                        System.DateTime DATA_SPRZEDAZY, 
                        string PODPIS_WYSTAWIL, 
                        string PODPIS_ODEBRAL, 
                        string opis, 
                        string SPOSOB_ZAPLATY, 
                        System.DateTime TERMIN_ZAPLATY, 
                        bool ZAPLACONO, 
                        bool BYL_WYDRUK, 
                        string NABYWCA_ADRES, 
                        string SPRZEDAWCA_ADRES, 
                        string SPRZEDAWCA_NIP, 
                        string NABYWCA_NIP, 
                        short FAKTURA_TYP, 
                        short FAKTURA_PODTYP, 
                        short ID_KONTA, 
                        bool EKSPORT, 
                        bool EXPORTED, 
                        short ID_TYTUL, 
                        System.DateTime EXPORTED_DATA, 
                        decimal suma_zaplat, 
                        int ID_FK_KOR, 
                        byte KOREKTA, 
                        System.DateTime zaplata_data, 
                        string zaplata_opis, 
                        decimal Zaliczka_Brutto, 
                        System.DateTime Zaliczka_Data, 
                        double waluta_brutto, 
                        string waluta_miano, 
                        double waluta_kurs, 
                        int waluta_przelicznik, 
                        System.DateTime waluta_kurs_z_dnia, 
                        string waluta_tabela_nr, 
                        bool Exportuj) {
                FAKTURYRow rowFAKTURYRow = ((FAKTURYRow)(this.NewRow()));
                object[] columnValuesArray = new object[] {
                        null,
                        NUMER,
                        NUMER_ROZ,
                        NUMER_ROK,
                        DATA_WYSTAWIENIA,
                        MIEJSCOWOSC_WYSTAWIENIA,
                        ID_SPRZEDAWCY,
                        ID_NABYWCY,
                        DATA_SPRZEDAZY,
                        PODPIS_WYSTAWIL,
                        PODPIS_ODEBRAL,
                        opis,
                        SPOSOB_ZAPLATY,
                        TERMIN_ZAPLATY,
                        ZAPLACONO,
                        BYL_WYDRUK,
                        NABYWCA_ADRES,
                        SPRZEDAWCA_ADRES,
                        SPRZEDAWCA_NIP,
                        NABYWCA_NIP,
                        FAKTURA_TYP,
                        FAKTURA_PODTYP,
                        ID_KONTA,
                        EKSPORT,
                        EXPORTED,
                        ID_TYTUL,
                        EXPORTED_DATA,
                        suma_zaplat,
                        ID_FK_KOR,
                        KOREKTA,
                        zaplata_data,
                        zaplata_opis,
                        Zaliczka_Brutto,
                        Zaliczka_Data,
                        waluta_brutto,
                        waluta_miano,
                        waluta_kurs,
                        waluta_przelicznik,
                        waluta_kurs_z_dnia,
                        waluta_tabela_nr,
                        null,
                        Exportuj};
                rowFAKTURYRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowFAKTURYRow);
                return rowFAKTURYRow;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow FindByID_FAKTURY(int ID_FAKTURY) {
                return ((FAKTURYRow)(this.Rows.Find(new object[] {
                            ID_FAKTURY})));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual global::System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override global::System.Data.DataTable Clone() {
                FAKTURYDataTable cln = ((FAKTURYDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataTable CreateInstance() {
                return new FAKTURYDataTable();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnID_FAKTURY = base.Columns["ID_FAKTURY"];
                this.columnNUMER = base.Columns["NUMER"];
                this.columnNUMER_ROZ = base.Columns["NUMER_ROZ"];
                this.columnNUMER_ROK = base.Columns["NUMER_ROK"];
                this.columnDATA_WYSTAWIENIA = base.Columns["DATA_WYSTAWIENIA"];
                this.columnMIEJSCOWOSC_WYSTAWIENIA = base.Columns["MIEJSCOWOSC_WYSTAWIENIA"];
                this.columnID_SPRZEDAWCY = base.Columns["ID_SPRZEDAWCY"];
                this.columnID_NABYWCY = base.Columns["ID_NABYWCY"];
                this.columnDATA_SPRZEDAZY = base.Columns["DATA_SPRZEDAZY"];
                this.columnPODPIS_WYSTAWIL = base.Columns["PODPIS_WYSTAWIL"];
                this.columnPODPIS_ODEBRAL = base.Columns["PODPIS_ODEBRAL"];
                this.columnopis = base.Columns["opis"];
                this.columnSPOSOB_ZAPLATY = base.Columns["SPOSOB_ZAPLATY"];
                this.columnTERMIN_ZAPLATY = base.Columns["TERMIN_ZAPLATY"];
                this.columnZAPLACONO = base.Columns["ZAPLACONO"];
                this.columnBYL_WYDRUK = base.Columns["BYL_WYDRUK"];
                this.columnNABYWCA_ADRES = base.Columns["NABYWCA_ADRES"];
                this.columnSPRZEDAWCA_ADRES = base.Columns["SPRZEDAWCA_ADRES"];
                this.columnSPRZEDAWCA_NIP = base.Columns["SPRZEDAWCA_NIP"];
                this.columnNABYWCA_NIP = base.Columns["NABYWCA_NIP"];
                this.columnFAKTURA_TYP = base.Columns["FAKTURA_TYP"];
                this.columnFAKTURA_PODTYP = base.Columns["FAKTURA_PODTYP"];
                this.columnID_KONTA = base.Columns["ID_KONTA"];
                this.columnEKSPORT = base.Columns["EKSPORT"];
                this.columnEXPORTED = base.Columns["EXPORTED"];
                this.columnID_TYTUL = base.Columns["ID_TYTUL"];
                this.columnEXPORTED_DATA = base.Columns["EXPORTED_DATA"];
                this.columnsuma_zaplat = base.Columns["suma_zaplat"];
                this.columnID_FK_KOR = base.Columns["ID_FK_KOR"];
                this.columnKOREKTA = base.Columns["KOREKTA"];
                this.columnzaplata_data = base.Columns["zaplata_data"];
                this.columnzaplata_opis = base.Columns["zaplata_opis"];
                this.columnZaliczka_Brutto = base.Columns["Zaliczka_Brutto"];
                this.columnZaliczka_Data = base.Columns["Zaliczka_Data"];
                this.columnwaluta_brutto = base.Columns["waluta_brutto"];
                this.columnwaluta_miano = base.Columns["waluta_miano"];
                this.columnwaluta_kurs = base.Columns["waluta_kurs"];
                this.columnwaluta_przelicznik = base.Columns["waluta_przelicznik"];
                this.columnwaluta_kurs_z_dnia = base.Columns["waluta_kurs_z_dnia"];
                this.columnwaluta_tabela_nr = base.Columns["waluta_tabela_nr"];
                this.columnPelny_numer = base.Columns["Pelny_numer"];
                this.columnExportuj = base.Columns["Exportuj"];
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnID_FAKTURY = new global::System.Data.DataColumn("ID_FAKTURY", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_FAKTURY);
                this.columnNUMER = new global::System.Data.DataColumn("NUMER", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNUMER);
                this.columnNUMER_ROZ = new global::System.Data.DataColumn("NUMER_ROZ", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNUMER_ROZ);
                this.columnNUMER_ROK = new global::System.Data.DataColumn("NUMER_ROK", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNUMER_ROK);
                this.columnDATA_WYSTAWIENIA = new global::System.Data.DataColumn("DATA_WYSTAWIENIA", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnDATA_WYSTAWIENIA);
                this.columnMIEJSCOWOSC_WYSTAWIENIA = new global::System.Data.DataColumn("MIEJSCOWOSC_WYSTAWIENIA", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnMIEJSCOWOSC_WYSTAWIENIA);
                this.columnID_SPRZEDAWCY = new global::System.Data.DataColumn("ID_SPRZEDAWCY", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_SPRZEDAWCY);
                this.columnID_NABYWCY = new global::System.Data.DataColumn("ID_NABYWCY", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_NABYWCY);
                this.columnDATA_SPRZEDAZY = new global::System.Data.DataColumn("DATA_SPRZEDAZY", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnDATA_SPRZEDAZY);
                this.columnPODPIS_WYSTAWIL = new global::System.Data.DataColumn("PODPIS_WYSTAWIL", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPODPIS_WYSTAWIL);
                this.columnPODPIS_ODEBRAL = new global::System.Data.DataColumn("PODPIS_ODEBRAL", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPODPIS_ODEBRAL);
                this.columnopis = new global::System.Data.DataColumn("opis", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnopis);
                this.columnSPOSOB_ZAPLATY = new global::System.Data.DataColumn("SPOSOB_ZAPLATY", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnSPOSOB_ZAPLATY);
                this.columnTERMIN_ZAPLATY = new global::System.Data.DataColumn("TERMIN_ZAPLATY", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnTERMIN_ZAPLATY);
                this.columnZAPLACONO = new global::System.Data.DataColumn("ZAPLACONO", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnZAPLACONO);
                this.columnBYL_WYDRUK = new global::System.Data.DataColumn("BYL_WYDRUK", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnBYL_WYDRUK);
                this.columnNABYWCA_ADRES = new global::System.Data.DataColumn("NABYWCA_ADRES", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNABYWCA_ADRES);
                this.columnSPRZEDAWCA_ADRES = new global::System.Data.DataColumn("SPRZEDAWCA_ADRES", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnSPRZEDAWCA_ADRES);
                this.columnSPRZEDAWCA_NIP = new global::System.Data.DataColumn("SPRZEDAWCA_NIP", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnSPRZEDAWCA_NIP);
                this.columnNABYWCA_NIP = new global::System.Data.DataColumn("NABYWCA_NIP", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNABYWCA_NIP);
                this.columnFAKTURA_TYP = new global::System.Data.DataColumn("FAKTURA_TYP", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnFAKTURA_TYP);
                this.columnFAKTURA_PODTYP = new global::System.Data.DataColumn("FAKTURA_PODTYP", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnFAKTURA_PODTYP);
                this.columnID_KONTA = new global::System.Data.DataColumn("ID_KONTA", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_KONTA);
                this.columnEKSPORT = new global::System.Data.DataColumn("EKSPORT", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnEKSPORT);
                this.columnEXPORTED = new global::System.Data.DataColumn("EXPORTED", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnEXPORTED);
                this.columnID_TYTUL = new global::System.Data.DataColumn("ID_TYTUL", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_TYTUL);
                this.columnEXPORTED_DATA = new global::System.Data.DataColumn("EXPORTED_DATA", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnEXPORTED_DATA);
                this.columnsuma_zaplat = new global::System.Data.DataColumn("suma_zaplat", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnsuma_zaplat);
                this.columnID_FK_KOR = new global::System.Data.DataColumn("ID_FK_KOR", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_FK_KOR);
                this.columnKOREKTA = new global::System.Data.DataColumn("KOREKTA", typeof(byte), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnKOREKTA);
                this.columnzaplata_data = new global::System.Data.DataColumn("zaplata_data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnzaplata_data);
                this.columnzaplata_opis = new global::System.Data.DataColumn("zaplata_opis", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnzaplata_opis);
                this.columnZaliczka_Brutto = new global::System.Data.DataColumn("Zaliczka_Brutto", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnZaliczka_Brutto);
                this.columnZaliczka_Data = new global::System.Data.DataColumn("Zaliczka_Data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnZaliczka_Data);
                this.columnwaluta_brutto = new global::System.Data.DataColumn("waluta_brutto", typeof(double), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_brutto);
                this.columnwaluta_miano = new global::System.Data.DataColumn("waluta_miano", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_miano);
                this.columnwaluta_kurs = new global::System.Data.DataColumn("waluta_kurs", typeof(double), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_kurs);
                this.columnwaluta_przelicznik = new global::System.Data.DataColumn("waluta_przelicznik", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_przelicznik);
                this.columnwaluta_kurs_z_dnia = new global::System.Data.DataColumn("waluta_kurs_z_dnia", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_kurs_z_dnia);
                this.columnwaluta_tabela_nr = new global::System.Data.DataColumn("waluta_tabela_nr", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnwaluta_tabela_nr);
                this.columnPelny_numer = new global::System.Data.DataColumn("Pelny_numer", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPelny_numer);
                this.columnExportuj = new global::System.Data.DataColumn("Exportuj", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnExportuj);
                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
                                this.columnID_FAKTURY}, true));
                this.columnID_FAKTURY.AutoIncrement = true;
                this.columnID_FAKTURY.AllowDBNull = false;
                this.columnID_FAKTURY.ReadOnly = true;
                this.columnID_FAKTURY.Unique = true;
                this.columnNUMER_ROZ.MaxLength = 8;
                this.columnMIEJSCOWOSC_WYSTAWIENIA.MaxLength = 30;
                this.columnPODPIS_WYSTAWIL.MaxLength = 30;
                this.columnPODPIS_ODEBRAL.MaxLength = 30;
                this.columnopis.MaxLength = 1073741823;
                this.columnSPOSOB_ZAPLATY.MaxLength = 20;
                this.columnNABYWCA_ADRES.MaxLength = 1073741823;
                this.columnSPRZEDAWCA_ADRES.MaxLength = 1073741823;
                this.columnSPRZEDAWCA_NIP.MaxLength = 50;
                this.columnNABYWCA_NIP.MaxLength = 50;
                this.columnEKSPORT.AllowDBNull = false;
                this.columnEXPORTED.AllowDBNull = false;
                this.columnKOREKTA.AllowDBNull = false;
                this.columnzaplata_opis.MaxLength = 50;
                this.columnwaluta_miano.MaxLength = 4;
                this.columnwaluta_tabela_nr.MaxLength = 15;
                this.columnPelny_numer.ReadOnly = true;
                this.columnExportuj.AllowDBNull = false;
                this.columnExportuj.DefaultValue = ((bool)(true));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow NewFAKTURYRow() {
                return ((FAKTURYRow)(this.NewRow()));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
                return new FAKTURYRow(builder);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Type GetRowType() {
                return typeof(FAKTURYRow);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitExpressions() {
                this.Pelny_numerColumn.Expression = "NUMER + \'/\' + NUMER_ROZ + \'/\' + NUMER_ROK";
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.FAKTURYRowChanged != null)) {
                    this.FAKTURYRowChanged(this, new FAKTURYRowChangeEvent(((FAKTURYRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.FAKTURYRowChanging != null)) {
                    this.FAKTURYRowChanging(this, new FAKTURYRowChangeEvent(((FAKTURYRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.FAKTURYRowDeleted != null)) {
                    this.FAKTURYRowDeleted(this, new FAKTURYRowChangeEvent(((FAKTURYRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.FAKTURYRowDeleting != null)) {
                    this.FAKTURYRowDeleting(this, new FAKTURYRowChangeEvent(((FAKTURYRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveFAKTURYRow(FAKTURYRow row) {
                this.Rows.Remove(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
                EXPODataSet ds = new EXPODataSet();
                global::System.Xml.Schema.XmlSchemaAny any1 = 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);
                global::System.Xml.Schema.XmlSchemaAny any2 = 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);
                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "FAKTURYDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
                if (xs.Contains(dsSchema.TargetNamespace)) {
                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                    try {
                        global::System.Xml.Schema.XmlSchema schema = null;
                        dsSchema.Write(s1);
                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                            s2.SetLength(0);
                            schema.Write(s2);
                            if ((s1.Length == s2.Length)) {
                                s1.Position = 0;
                                s2.Position = 0;
                                for (; ((s1.Position != s1.Length) 
                                            && (s1.ReadByte() == s2.ReadByte())); ) {
                                    ;
                                }
                                if ((s1.Position == s1.Length)) {
                                    return type;
                                }
                            }
                        }
                    }
                    finally {
                        if ((s1 != null)) {
                            s1.Close();
                        }
                        if ((s2 != null)) {
                            s2.Close();
                        }
                    }
                }
                xs.Add(dsSchema);
                return type;
            }
        }
        
        /// <summary>
        ///Represents the strongly named DataTable class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [global::System.Serializable()]
        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class FAKTURA_DETAILSDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
            
            private global::System.Data.DataColumn columnID_FAKTURA_DETAILS;
            
            private global::System.Data.DataColumn columnID_FAKTURY;
            
            private global::System.Data.DataColumn columnROK;
            
            private global::System.Data.DataColumn columnMIESIAC;
            
            private global::System.Data.DataColumn columnNAZWA_USLUGI;
            
            private global::System.Data.DataColumn columnSYMBOL_SWW;
            
            private global::System.Data.DataColumn columnJM;
            
            private global::System.Data.DataColumn columnILOSC;
            
            private global::System.Data.DataColumn columnCENA_JEDN;
            
            private global::System.Data.DataColumn columnUPUST_PR;
            
            private global::System.Data.DataColumn columnUPUST_NETTO;
            
            private global::System.Data.DataColumn columnNETTO;
            
            private global::System.Data.DataColumn columnS_VAT;
            
            private global::System.Data.DataColumn columnVAT;
            
            private global::System.Data.DataColumn columnBRUTTO;
            
            private global::System.Data.DataColumn columnTYTUL;
            
            private global::System.Data.DataColumn columnNR_WYDANIA;
            
            private global::System.Data.DataColumn columnTYP;
            
            private global::System.Data.DataColumn columnPODTYP;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSDataTable() {
                this.TableName = "FAKTURA_DETAILS";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal FAKTURA_DETAILSDataTable(global::System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected FAKTURA_DETAILSDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_FAKTURA_DETAILSColumn {
                get {
                    return this.columnID_FAKTURA_DETAILS;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ID_FAKTURYColumn {
                get {
                    return this.columnID_FAKTURY;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ROKColumn {
                get {
                    return this.columnROK;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn MIESIACColumn {
                get {
                    return this.columnMIESIAC;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NAZWA_USLUGIColumn {
                get {
                    return this.columnNAZWA_USLUGI;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn SYMBOL_SWWColumn {
                get {
                    return this.columnSYMBOL_SWW;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn JMColumn {
                get {
                    return this.columnJM;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ILOSCColumn {
                get {
                    return this.columnILOSC;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn CENA_JEDNColumn {
                get {
                    return this.columnCENA_JEDN;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn UPUST_PRColumn {
                get {
                    return this.columnUPUST_PR;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn UPUST_NETTOColumn {
                get {
                    return this.columnUPUST_NETTO;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NETTOColumn {
                get {
                    return this.columnNETTO;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn S_VATColumn {
                get {
                    return this.columnS_VAT;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn VATColumn {
                get {
                    return this.columnVAT;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn BRUTTOColumn {
                get {
                    return this.columnBRUTTO;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn TYTULColumn {
                get {
                    return this.columnTYTUL;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NR_WYDANIAColumn {
                get {
                    return this.columnNR_WYDANIA;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn TYPColumn {
                get {
                    return this.columnTYP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn PODTYPColumn {
                get {
                    return this.columnPODTYP;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRow this[int index] {
                get {
                    return ((FAKTURA_DETAILSRow)(this.Rows[index]));
                }
            }
            
            public event FAKTURA_DETAILSRowChangeEventHandler FAKTURA_DETAILSRowChanging;
            
            public event FAKTURA_DETAILSRowChangeEventHandler FAKTURA_DETAILSRowChanged;
            
            public event FAKTURA_DETAILSRowChangeEventHandler FAKTURA_DETAILSRowDeleting;
            
            public event FAKTURA_DETAILSRowChangeEventHandler FAKTURA_DETAILSRowDeleted;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddFAKTURA_DETAILSRow(FAKTURA_DETAILSRow row) {
                this.Rows.Add(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRow AddFAKTURA_DETAILSRow(
                        int ID_FAKTURY, 
                        int ROK, 
                        short MIESIAC, 
                        string NAZWA_USLUGI, 
                        string SYMBOL_SWW, 
                        string JM, 
                        int ILOSC, 
                        decimal CENA_JEDN, 
                        double UPUST_PR, 
                        decimal UPUST_NETTO, 
                        decimal NETTO, 
                        double S_VAT, 
                        decimal VAT, 
                        decimal BRUTTO, 
                        short TYTUL, 
                        short NR_WYDANIA, 
                        short TYP, 
                        short PODTYP) {
                FAKTURA_DETAILSRow rowFAKTURA_DETAILSRow = ((FAKTURA_DETAILSRow)(this.NewRow()));
                object[] columnValuesArray = new object[] {
                        null,
                        ID_FAKTURY,
                        ROK,
                        MIESIAC,
                        NAZWA_USLUGI,
                        SYMBOL_SWW,
                        JM,
                        ILOSC,
                        CENA_JEDN,
                        UPUST_PR,
                        UPUST_NETTO,
                        NETTO,
                        S_VAT,
                        VAT,
                        BRUTTO,
                        TYTUL,
                        NR_WYDANIA,
                        TYP,
                        PODTYP};
                rowFAKTURA_DETAILSRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowFAKTURA_DETAILSRow);
                return rowFAKTURA_DETAILSRow;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRow FindByID_FAKTURA_DETAILS(int ID_FAKTURA_DETAILS) {
                return ((FAKTURA_DETAILSRow)(this.Rows.Find(new object[] {
                            ID_FAKTURA_DETAILS})));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual global::System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override global::System.Data.DataTable Clone() {
                FAKTURA_DETAILSDataTable cln = ((FAKTURA_DETAILSDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataTable CreateInstance() {
                return new FAKTURA_DETAILSDataTable();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnID_FAKTURA_DETAILS = base.Columns["ID_FAKTURA_DETAILS"];
                this.columnID_FAKTURY = base.Columns["ID_FAKTURY"];
                this.columnROK = base.Columns["ROK"];
                this.columnMIESIAC = base.Columns["MIESIAC"];
                this.columnNAZWA_USLUGI = base.Columns["NAZWA_USLUGI"];
                this.columnSYMBOL_SWW = base.Columns["SYMBOL_SWW"];
                this.columnJM = base.Columns["JM"];
                this.columnILOSC = base.Columns["ILOSC"];
                this.columnCENA_JEDN = base.Columns["CENA_JEDN"];
                this.columnUPUST_PR = base.Columns["UPUST_PR"];
                this.columnUPUST_NETTO = base.Columns["UPUST_NETTO"];
                this.columnNETTO = base.Columns["NETTO"];
                this.columnS_VAT = base.Columns["S_VAT"];
                this.columnVAT = base.Columns["VAT"];
                this.columnBRUTTO = base.Columns["BRUTTO"];
                this.columnTYTUL = base.Columns["TYTUL"];
                this.columnNR_WYDANIA = base.Columns["NR_WYDANIA"];
                this.columnTYP = base.Columns["TYP"];
                this.columnPODTYP = base.Columns["PODTYP"];
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnID_FAKTURA_DETAILS = new global::System.Data.DataColumn("ID_FAKTURA_DETAILS", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_FAKTURA_DETAILS);
                this.columnID_FAKTURY = new global::System.Data.DataColumn("ID_FAKTURY", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnID_FAKTURY);
                this.columnROK = new global::System.Data.DataColumn("ROK", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnROK);
                this.columnMIESIAC = new global::System.Data.DataColumn("MIESIAC", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnMIESIAC);
                this.columnNAZWA_USLUGI = new global::System.Data.DataColumn("NAZWA_USLUGI", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNAZWA_USLUGI);
                this.columnSYMBOL_SWW = new global::System.Data.DataColumn("SYMBOL_SWW", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnSYMBOL_SWW);
                this.columnJM = new global::System.Data.DataColumn("JM", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnJM);
                this.columnILOSC = new global::System.Data.DataColumn("ILOSC", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnILOSC);
                this.columnCENA_JEDN = new global::System.Data.DataColumn("CENA_JEDN", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnCENA_JEDN);
                this.columnUPUST_PR = new global::System.Data.DataColumn("UPUST_PR", typeof(double), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnUPUST_PR);
                this.columnUPUST_NETTO = new global::System.Data.DataColumn("UPUST_NETTO", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnUPUST_NETTO);
                this.columnNETTO = new global::System.Data.DataColumn("NETTO", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNETTO);
                this.columnS_VAT = new global::System.Data.DataColumn("S_VAT", typeof(double), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnS_VAT);
                this.columnVAT = new global::System.Data.DataColumn("VAT", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnVAT);
                this.columnBRUTTO = new global::System.Data.DataColumn("BRUTTO", typeof(decimal), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnBRUTTO);
                this.columnTYTUL = new global::System.Data.DataColumn("TYTUL", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnTYTUL);
                this.columnNR_WYDANIA = new global::System.Data.DataColumn("NR_WYDANIA", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNR_WYDANIA);
                this.columnTYP = new global::System.Data.DataColumn("TYP", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnTYP);
                this.columnPODTYP = new global::System.Data.DataColumn("PODTYP", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPODTYP);
                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
                                this.columnID_FAKTURA_DETAILS}, true));
                this.columnID_FAKTURA_DETAILS.AutoIncrement = true;
                this.columnID_FAKTURA_DETAILS.AllowDBNull = false;
                this.columnID_FAKTURA_DETAILS.ReadOnly = true;
                this.columnID_FAKTURA_DETAILS.Unique = true;
                this.columnNAZWA_USLUGI.MaxLength = 100;
                this.columnSYMBOL_SWW.MaxLength = 30;
                this.columnJM.MaxLength = 5;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRow NewFAKTURA_DETAILSRow() {
                return ((FAKTURA_DETAILSRow)(this.NewRow()));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
                return new FAKTURA_DETAILSRow(builder);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Type GetRowType() {
                return typeof(FAKTURA_DETAILSRow);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.FAKTURA_DETAILSRowChanged != null)) {
                    this.FAKTURA_DETAILSRowChanged(this, new FAKTURA_DETAILSRowChangeEvent(((FAKTURA_DETAILSRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.FAKTURA_DETAILSRowChanging != null)) {
                    this.FAKTURA_DETAILSRowChanging(this, new FAKTURA_DETAILSRowChangeEvent(((FAKTURA_DETAILSRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.FAKTURA_DETAILSRowDeleted != null)) {
                    this.FAKTURA_DETAILSRowDeleted(this, new FAKTURA_DETAILSRowChangeEvent(((FAKTURA_DETAILSRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.FAKTURA_DETAILSRowDeleting != null)) {
                    this.FAKTURA_DETAILSRowDeleting(this, new FAKTURA_DETAILSRowChangeEvent(((FAKTURA_DETAILSRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveFAKTURA_DETAILSRow(FAKTURA_DETAILSRow row) {
                this.Rows.Remove(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
                EXPODataSet ds = new EXPODataSet();
                global::System.Xml.Schema.XmlSchemaAny any1 = 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);
                global::System.Xml.Schema.XmlSchemaAny any2 = 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);
                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "FAKTURA_DETAILSDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
                if (xs.Contains(dsSchema.TargetNamespace)) {
                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                    try {
                        global::System.Xml.Schema.XmlSchema schema = null;
                        dsSchema.Write(s1);
                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                            s2.SetLength(0);
                            schema.Write(s2);
                            if ((s1.Length == s2.Length)) {
                                s1.Position = 0;
                                s2.Position = 0;
                                for (; ((s1.Position != s1.Length) 
                                            && (s1.ReadByte() == s2.ReadByte())); ) {
                                    ;
                                }
                                if ((s1.Position == s1.Length)) {
                                    return type;
                                }
                            }
                        }
                    }
                    finally {
                        if ((s1 != null)) {
                            s1.Close();
                        }
                        if ((s2 != null)) {
                            s2.Close();
                        }
                    }
                }
                xs.Add(dsSchema);
                return type;
            }
        }
        
        /// <summary>
        ///Represents the strongly named DataTable class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [global::System.Serializable()]
        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class KLIENCIDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
            
            private global::System.Data.DataColumn columnCustomerID;
            
            private global::System.Data.DataColumn columnFirstName;
            
            private global::System.Data.DataColumn columnLastName;
            
            private global::System.Data.DataColumn columnOrganizationName;
            
            private global::System.Data.DataColumn columnAddress;
            
            private global::System.Data.DataColumn columnCity;
            
            private global::System.Data.DataColumn columnState;
            
            private global::System.Data.DataColumn columnPostalCode;
            
            private global::System.Data.DataColumn columnCountry;
            
            private global::System.Data.DataColumn columnNip;
            
            private global::System.Data.DataColumn columnContactName;
            
            private global::System.Data.DataColumn columnPhoneNumber;
            
            private global::System.Data.DataColumn columnFaxNumber;
            
            private global::System.Data.DataColumn columnNote;
            
            private global::System.Data.DataColumn columndata;
            
            private global::System.Data.DataColumn columnosw_nr;
            
            private global::System.Data.DataColumn columnosw_wazne_do;
            
            private global::System.Data.DataColumn columnAdres_Fkatura;
            
            private global::System.Data.DataColumn columnOld_ID;
            
            private global::System.Data.DataColumn columnAdres_Kor;
            
            private global::System.Data.DataColumn columnPlatnik_VAT;
            
            private global::System.Data.DataColumn columnAktywny;
            
            private global::System.Data.DataColumn columnEmail;
            
            private global::System.Data.DataColumn columnUserName;
            
            private global::System.Data.DataColumn columnLast_Modify;
            
            private global::System.Data.DataColumn columnModify_User;
            
            private global::System.Data.DataColumn columnhttp;
            
            private global::System.Data.DataColumn columnVIES;
            
            private global::System.Data.DataColumn columnregon;
            
            private global::System.Data.DataColumn columnkrs;
            
            private global::System.Data.DataColumn columnnipKraj;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIDataTable() {
                this.TableName = "KLIENCI";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal KLIENCIDataTable(global::System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected KLIENCIDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn CustomerIDColumn {
                get {
                    return this.columnCustomerID;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn FirstNameColumn {
                get {
                    return this.columnFirstName;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn LastNameColumn {
                get {
                    return this.columnLastName;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn OrganizationNameColumn {
                get {
                    return this.columnOrganizationName;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn AddressColumn {
                get {
                    return this.columnAddress;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn CityColumn {
                get {
                    return this.columnCity;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn StateColumn {
                get {
                    return this.columnState;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn PostalCodeColumn {
                get {
                    return this.columnPostalCode;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn CountryColumn {
                get {
                    return this.columnCountry;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NipColumn {
                get {
                    return this.columnNip;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn ContactNameColumn {
                get {
                    return this.columnContactName;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn PhoneNumberColumn {
                get {
                    return this.columnPhoneNumber;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn FaxNumberColumn {
                get {
                    return this.columnFaxNumber;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn NoteColumn {
                get {
                    return this.columnNote;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn dataColumn {
                get {
                    return this.columndata;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn osw_nrColumn {
                get {
                    return this.columnosw_nr;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn osw_wazne_doColumn {
                get {
                    return this.columnosw_wazne_do;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Adres_FkaturaColumn {
                get {
                    return this.columnAdres_Fkatura;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Old_IDColumn {
                get {
                    return this.columnOld_ID;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Adres_KorColumn {
                get {
                    return this.columnAdres_Kor;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Platnik_VATColumn {
                get {
                    return this.columnPlatnik_VAT;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn AktywnyColumn {
                get {
                    return this.columnAktywny;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn EmailColumn {
                get {
                    return this.columnEmail;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn UserNameColumn {
                get {
                    return this.columnUserName;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Last_ModifyColumn {
                get {
                    return this.columnLast_Modify;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn Modify_UserColumn {
                get {
                    return this.columnModify_User;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn httpColumn {
                get {
                    return this.columnhttp;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn VIESColumn {
                get {
                    return this.columnVIES;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn regonColumn {
                get {
                    return this.columnregon;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn krsColumn {
                get {
                    return this.columnkrs;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataColumn nipKrajColumn {
                get {
                    return this.columnnipKraj;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRow this[int index] {
                get {
                    return ((KLIENCIRow)(this.Rows[index]));
                }
            }
            
            public event KLIENCIRowChangeEventHandler KLIENCIRowChanging;
            
            public event KLIENCIRowChangeEventHandler KLIENCIRowChanged;
            
            public event KLIENCIRowChangeEventHandler KLIENCIRowDeleting;
            
            public event KLIENCIRowChangeEventHandler KLIENCIRowDeleted;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddKLIENCIRow(KLIENCIRow row) {
                this.Rows.Add(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRow AddKLIENCIRow(
                        string FirstName, 
                        string LastName, 
                        string OrganizationName, 
                        string Address, 
                        string City, 
                        string State, 
                        string PostalCode, 
                        string Country, 
                        string Nip, 
                        string ContactName, 
                        string PhoneNumber, 
                        string FaxNumber, 
                        string Note, 
                        System.DateTime data, 
                        string osw_nr, 
                        System.DateTime osw_wazne_do, 
                        string Adres_Fkatura, 
                        int Old_ID, 
                        string Adres_Kor, 
                        bool Platnik_VAT, 
                        bool Aktywny, 
                        string Email, 
                        string UserName, 
                        System.DateTime Last_Modify, 
                        string Modify_User, 
                        string http, 
                        short VIES, 
                        string regon, 
                        string krs, 
                        string nipKraj) {
                KLIENCIRow rowKLIENCIRow = ((KLIENCIRow)(this.NewRow()));
                object[] columnValuesArray = new object[] {
                        null,
                        FirstName,
                        LastName,
                        OrganizationName,
                        Address,
                        City,
                        State,
                        PostalCode,
                        Country,
                        Nip,
                        ContactName,
                        PhoneNumber,
                        FaxNumber,
                        Note,
                        data,
                        osw_nr,
                        osw_wazne_do,
                        Adres_Fkatura,
                        Old_ID,
                        Adres_Kor,
                        Platnik_VAT,
                        Aktywny,
                        Email,
                        UserName,
                        Last_Modify,
                        Modify_User,
                        http,
                        VIES,
                        regon,
                        krs,
                        nipKraj};
                rowKLIENCIRow.ItemArray = columnValuesArray;
                this.Rows.Add(rowKLIENCIRow);
                return rowKLIENCIRow;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRow FindByCustomerID(int CustomerID) {
                return ((KLIENCIRow)(this.Rows.Find(new object[] {
                            CustomerID})));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual global::System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override global::System.Data.DataTable Clone() {
                KLIENCIDataTable cln = ((KLIENCIDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataTable CreateInstance() {
                return new KLIENCIDataTable();
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnCustomerID = base.Columns["CustomerID"];
                this.columnFirstName = base.Columns["FirstName"];
                this.columnLastName = base.Columns["LastName"];
                this.columnOrganizationName = base.Columns["OrganizationName"];
                this.columnAddress = base.Columns["Address"];
                this.columnCity = base.Columns["City"];
                this.columnState = base.Columns["State"];
                this.columnPostalCode = base.Columns["PostalCode"];
                this.columnCountry = base.Columns["Country"];
                this.columnNip = base.Columns["Nip"];
                this.columnContactName = base.Columns["ContactName"];
                this.columnPhoneNumber = base.Columns["PhoneNumber"];
                this.columnFaxNumber = base.Columns["FaxNumber"];
                this.columnNote = base.Columns["Note"];
                this.columndata = base.Columns["data"];
                this.columnosw_nr = base.Columns["osw_nr"];
                this.columnosw_wazne_do = base.Columns["osw_wazne_do"];
                this.columnAdres_Fkatura = base.Columns["Adres_Fkatura"];
                this.columnOld_ID = base.Columns["Old_ID"];
                this.columnAdres_Kor = base.Columns["Adres_Kor"];
                this.columnPlatnik_VAT = base.Columns["Platnik_VAT"];
                this.columnAktywny = base.Columns["Aktywny"];
                this.columnEmail = base.Columns["Email"];
                this.columnUserName = base.Columns["UserName"];
                this.columnLast_Modify = base.Columns["Last_Modify"];
                this.columnModify_User = base.Columns["Modify_User"];
                this.columnhttp = base.Columns["http"];
                this.columnVIES = base.Columns["VIES"];
                this.columnregon = base.Columns["regon"];
                this.columnkrs = base.Columns["krs"];
                this.columnnipKraj = base.Columns["nipKraj"];
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnCustomerID = new global::System.Data.DataColumn("CustomerID", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnCustomerID);
                this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnFirstName);
                this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnLastName);
                this.columnOrganizationName = new global::System.Data.DataColumn("OrganizationName", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnOrganizationName);
                this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnAddress);
                this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnCity);
                this.columnState = new global::System.Data.DataColumn("State", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnState);
                this.columnPostalCode = new global::System.Data.DataColumn("PostalCode", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPostalCode);
                this.columnCountry = new global::System.Data.DataColumn("Country", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnCountry);
                this.columnNip = new global::System.Data.DataColumn("Nip", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNip);
                this.columnContactName = new global::System.Data.DataColumn("ContactName", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnContactName);
                this.columnPhoneNumber = new global::System.Data.DataColumn("PhoneNumber", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPhoneNumber);
                this.columnFaxNumber = new global::System.Data.DataColumn("FaxNumber", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnFaxNumber);
                this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnNote);
                this.columndata = new global::System.Data.DataColumn("data", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columndata);
                this.columnosw_nr = new global::System.Data.DataColumn("osw_nr", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnosw_nr);
                this.columnosw_wazne_do = new global::System.Data.DataColumn("osw_wazne_do", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnosw_wazne_do);
                this.columnAdres_Fkatura = new global::System.Data.DataColumn("Adres_Fkatura", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnAdres_Fkatura);
                this.columnOld_ID = new global::System.Data.DataColumn("Old_ID", typeof(int), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnOld_ID);
                this.columnAdres_Kor = new global::System.Data.DataColumn("Adres_Kor", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnAdres_Kor);
                this.columnPlatnik_VAT = new global::System.Data.DataColumn("Platnik_VAT", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnPlatnik_VAT);
                this.columnAktywny = new global::System.Data.DataColumn("Aktywny", typeof(bool), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnAktywny);
                this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnEmail);
                this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnUserName);
                this.columnLast_Modify = new global::System.Data.DataColumn("Last_Modify", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnLast_Modify);
                this.columnModify_User = new global::System.Data.DataColumn("Modify_User", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnModify_User);
                this.columnhttp = new global::System.Data.DataColumn("http", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnhttp);
                this.columnVIES = new global::System.Data.DataColumn("VIES", typeof(short), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnVIES);
                this.columnregon = new global::System.Data.DataColumn("regon", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnregon);
                this.columnkrs = new global::System.Data.DataColumn("krs", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnkrs);
                this.columnnipKraj = new global::System.Data.DataColumn("nipKraj", typeof(string), null, global::System.Data.MappingType.Element);
                base.Columns.Add(this.columnnipKraj);
                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
                                this.columnCustomerID}, true));
                this.columnCustomerID.AutoIncrement = true;
                this.columnCustomerID.AllowDBNull = false;
                this.columnCustomerID.ReadOnly = true;
                this.columnCustomerID.Unique = true;
                this.columnFirstName.MaxLength = 50;
                this.columnLastName.MaxLength = 50;
                this.columnOrganizationName.MaxLength = 50;
                this.columnAddress.MaxLength = 50;
                this.columnCity.MaxLength = 50;
                this.columnState.MaxLength = 50;
                this.columnPostalCode.MaxLength = 20;
                this.columnCountry.MaxLength = 50;
                this.columnNip.MaxLength = 50;
                this.columnContactName.MaxLength = 50;
                this.columnPhoneNumber.MaxLength = 30;
                this.columnFaxNumber.MaxLength = 30;
                this.columnNote.MaxLength = 200;
                this.columnosw_nr.MaxLength = 8;
                this.columnAdres_Fkatura.MaxLength = 200;
                this.columnAdres_Kor.MaxLength = 200;
                this.columnPlatnik_VAT.AllowDBNull = false;
                this.columnAktywny.AllowDBNull = false;
                this.columnEmail.MaxLength = 50;
                this.columnUserName.MaxLength = 25;
                this.columnModify_User.MaxLength = 25;
                this.columnhttp.MaxLength = 60;
                this.columnregon.MaxLength = 50;
                this.columnkrs.MaxLength = 50;
                this.columnnipKraj.MaxLength = 3;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRow NewKLIENCIRow() {
                return ((KLIENCIRow)(this.NewRow()));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
                return new KLIENCIRow(builder);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override global::System.Type GetRowType() {
                return typeof(KLIENCIRow);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.KLIENCIRowChanged != null)) {
                    this.KLIENCIRowChanged(this, new KLIENCIRowChangeEvent(((KLIENCIRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.KLIENCIRowChanging != null)) {
                    this.KLIENCIRowChanging(this, new KLIENCIRowChangeEvent(((KLIENCIRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.KLIENCIRowDeleted != null)) {
                    this.KLIENCIRowDeleted(this, new KLIENCIRowChangeEvent(((KLIENCIRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.KLIENCIRowDeleting != null)) {
                    this.KLIENCIRowDeleting(this, new KLIENCIRowChangeEvent(((KLIENCIRow)(e.Row)), e.Action));
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveKLIENCIRow(KLIENCIRow row) {
                this.Rows.Remove(row);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
                EXPODataSet ds = new EXPODataSet();
                global::System.Xml.Schema.XmlSchemaAny any1 = 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);
                global::System.Xml.Schema.XmlSchemaAny any2 = 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);
                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "KLIENCIDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
                if (xs.Contains(dsSchema.TargetNamespace)) {
                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
                    try {
                        global::System.Xml.Schema.XmlSchema schema = null;
                        dsSchema.Write(s1);
                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
                            s2.SetLength(0);
                            schema.Write(s2);
                            if ((s1.Length == s2.Length)) {
                                s1.Position = 0;
                                s2.Position = 0;
                                for (; ((s1.Position != s1.Length) 
                                            && (s1.ReadByte() == s2.ReadByte())); ) {
                                    ;
                                }
                                if ((s1.Position == s1.Length)) {
                                    return type;
                                }
                            }
                        }
                    }
                    finally {
                        if ((s1 != null)) {
                            s1.Close();
                        }
                        if ((s2 != null)) {
                            s2.Close();
                        }
                    }
                }
                xs.Add(dsSchema);
                return type;
            }
        }
        
        /// <summary>
        ///Represents strongly named DataRow class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class FAKTURYRow : global::System.Data.DataRow {
            
            private FAKTURYDataTable tableFAKTURY;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal FAKTURYRow(global::System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableFAKTURY = ((FAKTURYDataTable)(this.Table));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_FAKTURY {
                get {
                    return ((int)(this[this.tableFAKTURY.ID_FAKTURYColumn]));
                }
                set {
                    this[this.tableFAKTURY.ID_FAKTURYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int NUMER {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.NUMERColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NUMER\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.NUMERColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string NUMER_ROZ {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.NUMER_ROZColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NUMER_ROZ\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.NUMER_ROZColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int NUMER_ROK {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.NUMER_ROKColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NUMER_ROK\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.NUMER_ROKColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime DATA_WYSTAWIENIA {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.DATA_WYSTAWIENIAColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'DATA_WYSTAWIENIA\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.DATA_WYSTAWIENIAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string MIEJSCOWOSC_WYSTAWIENIA {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.MIEJSCOWOSC_WYSTAWIENIAColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'MIEJSCOWOSC_WYSTAWIENIA\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.MIEJSCOWOSC_WYSTAWIENIAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_SPRZEDAWCY {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.ID_SPRZEDAWCYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_SPRZEDAWCY\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ID_SPRZEDAWCYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_NABYWCY {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.ID_NABYWCYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_NABYWCY\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ID_NABYWCYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime DATA_SPRZEDAZY {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.DATA_SPRZEDAZYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'DATA_SPRZEDAZY\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.DATA_SPRZEDAZYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string PODPIS_WYSTAWIL {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.PODPIS_WYSTAWILColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'PODPIS_WYSTAWIL\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.PODPIS_WYSTAWILColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string PODPIS_ODEBRAL {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.PODPIS_ODEBRALColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'PODPIS_ODEBRAL\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.PODPIS_ODEBRALColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string opis {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.opisColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'opis\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.opisColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string SPOSOB_ZAPLATY {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.SPOSOB_ZAPLATYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'SPOSOB_ZAPLATY\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.SPOSOB_ZAPLATYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime TERMIN_ZAPLATY {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.TERMIN_ZAPLATYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'TERMIN_ZAPLATY\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.TERMIN_ZAPLATYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool ZAPLACONO {
                get {
                    try {
                        return ((bool)(this[this.tableFAKTURY.ZAPLACONOColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ZAPLACONO\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ZAPLACONOColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool BYL_WYDRUK {
                get {
                    try {
                        return ((bool)(this[this.tableFAKTURY.BYL_WYDRUKColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'BYL_WYDRUK\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.BYL_WYDRUKColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string NABYWCA_ADRES {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.NABYWCA_ADRESColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NABYWCA_ADRES\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.NABYWCA_ADRESColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string SPRZEDAWCA_ADRES {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.SPRZEDAWCA_ADRESColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'SPRZEDAWCA_ADRES\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.SPRZEDAWCA_ADRESColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string SPRZEDAWCA_NIP {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.SPRZEDAWCA_NIPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'SPRZEDAWCA_NIP\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.SPRZEDAWCA_NIPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string NABYWCA_NIP {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.NABYWCA_NIPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NABYWCA_NIP\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.NABYWCA_NIPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short FAKTURA_TYP {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURY.FAKTURA_TYPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'FAKTURA_TYP\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.FAKTURA_TYPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short FAKTURA_PODTYP {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURY.FAKTURA_PODTYPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'FAKTURA_PODTYP\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.FAKTURA_PODTYPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short ID_KONTA {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURY.ID_KONTAColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_KONTA\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ID_KONTAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool EKSPORT {
                get {
                    return ((bool)(this[this.tableFAKTURY.EKSPORTColumn]));
                }
                set {
                    this[this.tableFAKTURY.EKSPORTColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool EXPORTED {
                get {
                    return ((bool)(this[this.tableFAKTURY.EXPORTEDColumn]));
                }
                set {
                    this[this.tableFAKTURY.EXPORTEDColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short ID_TYTUL {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURY.ID_TYTULColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_TYTUL\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ID_TYTULColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime EXPORTED_DATA {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.EXPORTED_DATAColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'EXPORTED_DATA\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.EXPORTED_DATAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal suma_zaplat {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURY.suma_zaplatColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'suma_zaplat\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.suma_zaplatColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_FK_KOR {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.ID_FK_KORColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_FK_KOR\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.ID_FK_KORColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public byte KOREKTA {
                get {
                    return ((byte)(this[this.tableFAKTURY.KOREKTAColumn]));
                }
                set {
                    this[this.tableFAKTURY.KOREKTAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime zaplata_data {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.zaplata_dataColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'zaplata_data\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.zaplata_dataColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string zaplata_opis {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.zaplata_opisColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'zaplata_opis\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.zaplata_opisColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal Zaliczka_Brutto {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURY.Zaliczka_BruttoColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Zaliczka_Brutto\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.Zaliczka_BruttoColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime Zaliczka_Data {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.Zaliczka_DataColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Zaliczka_Data\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.Zaliczka_DataColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public double waluta_brutto {
                get {
                    try {
                        return ((double)(this[this.tableFAKTURY.waluta_bruttoColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_brutto\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_bruttoColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string waluta_miano {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.waluta_mianoColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_miano\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_mianoColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public double waluta_kurs {
                get {
                    try {
                        return ((double)(this[this.tableFAKTURY.waluta_kursColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_kurs\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_kursColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int waluta_przelicznik {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURY.waluta_przelicznikColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_przelicznik\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_przelicznikColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime waluta_kurs_z_dnia {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableFAKTURY.waluta_kurs_z_dniaColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_kurs_z_dnia\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_kurs_z_dniaColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string waluta_tabela_nr {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.waluta_tabela_nrColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_tabela_nr\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.waluta_tabela_nrColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Pelny_numer {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURY.Pelny_numerColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Pelny_numer\' in table \'FAKTURY\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURY.Pelny_numerColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Exportuj {
                get {
                    return ((bool)(this[this.tableFAKTURY.ExportujColumn]));
                }
                set {
                    this[this.tableFAKTURY.ExportujColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNUMERNull() {
                return this.IsNull(this.tableFAKTURY.NUMERColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNUMERNull() {
                this[this.tableFAKTURY.NUMERColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNUMER_ROZNull() {
                return this.IsNull(this.tableFAKTURY.NUMER_ROZColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNUMER_ROZNull() {
                this[this.tableFAKTURY.NUMER_ROZColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNUMER_ROKNull() {
                return this.IsNull(this.tableFAKTURY.NUMER_ROKColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNUMER_ROKNull() {
                this[this.tableFAKTURY.NUMER_ROKColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsDATA_WYSTAWIENIANull() {
                return this.IsNull(this.tableFAKTURY.DATA_WYSTAWIENIAColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetDATA_WYSTAWIENIANull() {
                this[this.tableFAKTURY.DATA_WYSTAWIENIAColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsMIEJSCOWOSC_WYSTAWIENIANull() {
                return this.IsNull(this.tableFAKTURY.MIEJSCOWOSC_WYSTAWIENIAColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetMIEJSCOWOSC_WYSTAWIENIANull() {
                this[this.tableFAKTURY.MIEJSCOWOSC_WYSTAWIENIAColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_SPRZEDAWCYNull() {
                return this.IsNull(this.tableFAKTURY.ID_SPRZEDAWCYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_SPRZEDAWCYNull() {
                this[this.tableFAKTURY.ID_SPRZEDAWCYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_NABYWCYNull() {
                return this.IsNull(this.tableFAKTURY.ID_NABYWCYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_NABYWCYNull() {
                this[this.tableFAKTURY.ID_NABYWCYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsDATA_SPRZEDAZYNull() {
                return this.IsNull(this.tableFAKTURY.DATA_SPRZEDAZYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetDATA_SPRZEDAZYNull() {
                this[this.tableFAKTURY.DATA_SPRZEDAZYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPODPIS_WYSTAWILNull() {
                return this.IsNull(this.tableFAKTURY.PODPIS_WYSTAWILColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPODPIS_WYSTAWILNull() {
                this[this.tableFAKTURY.PODPIS_WYSTAWILColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPODPIS_ODEBRALNull() {
                return this.IsNull(this.tableFAKTURY.PODPIS_ODEBRALColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPODPIS_ODEBRALNull() {
                this[this.tableFAKTURY.PODPIS_ODEBRALColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsopisNull() {
                return this.IsNull(this.tableFAKTURY.opisColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetopisNull() {
                this[this.tableFAKTURY.opisColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsSPOSOB_ZAPLATYNull() {
                return this.IsNull(this.tableFAKTURY.SPOSOB_ZAPLATYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetSPOSOB_ZAPLATYNull() {
                this[this.tableFAKTURY.SPOSOB_ZAPLATYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsTERMIN_ZAPLATYNull() {
                return this.IsNull(this.tableFAKTURY.TERMIN_ZAPLATYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetTERMIN_ZAPLATYNull() {
                this[this.tableFAKTURY.TERMIN_ZAPLATYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsZAPLACONONull() {
                return this.IsNull(this.tableFAKTURY.ZAPLACONOColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetZAPLACONONull() {
                this[this.tableFAKTURY.ZAPLACONOColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsBYL_WYDRUKNull() {
                return this.IsNull(this.tableFAKTURY.BYL_WYDRUKColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetBYL_WYDRUKNull() {
                this[this.tableFAKTURY.BYL_WYDRUKColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNABYWCA_ADRESNull() {
                return this.IsNull(this.tableFAKTURY.NABYWCA_ADRESColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNABYWCA_ADRESNull() {
                this[this.tableFAKTURY.NABYWCA_ADRESColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsSPRZEDAWCA_ADRESNull() {
                return this.IsNull(this.tableFAKTURY.SPRZEDAWCA_ADRESColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetSPRZEDAWCA_ADRESNull() {
                this[this.tableFAKTURY.SPRZEDAWCA_ADRESColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsSPRZEDAWCA_NIPNull() {
                return this.IsNull(this.tableFAKTURY.SPRZEDAWCA_NIPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetSPRZEDAWCA_NIPNull() {
                this[this.tableFAKTURY.SPRZEDAWCA_NIPColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNABYWCA_NIPNull() {
                return this.IsNull(this.tableFAKTURY.NABYWCA_NIPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNABYWCA_NIPNull() {
                this[this.tableFAKTURY.NABYWCA_NIPColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFAKTURA_TYPNull() {
                return this.IsNull(this.tableFAKTURY.FAKTURA_TYPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFAKTURA_TYPNull() {
                this[this.tableFAKTURY.FAKTURA_TYPColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFAKTURA_PODTYPNull() {
                return this.IsNull(this.tableFAKTURY.FAKTURA_PODTYPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFAKTURA_PODTYPNull() {
                this[this.tableFAKTURY.FAKTURA_PODTYPColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_KONTANull() {
                return this.IsNull(this.tableFAKTURY.ID_KONTAColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_KONTANull() {
                this[this.tableFAKTURY.ID_KONTAColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_TYTULNull() {
                return this.IsNull(this.tableFAKTURY.ID_TYTULColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_TYTULNull() {
                this[this.tableFAKTURY.ID_TYTULColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsEXPORTED_DATANull() {
                return this.IsNull(this.tableFAKTURY.EXPORTED_DATAColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetEXPORTED_DATANull() {
                this[this.tableFAKTURY.EXPORTED_DATAColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Issuma_zaplatNull() {
                return this.IsNull(this.tableFAKTURY.suma_zaplatColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setsuma_zaplatNull() {
                this[this.tableFAKTURY.suma_zaplatColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_FK_KORNull() {
                return this.IsNull(this.tableFAKTURY.ID_FK_KORColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_FK_KORNull() {
                this[this.tableFAKTURY.ID_FK_KORColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iszaplata_dataNull() {
                return this.IsNull(this.tableFAKTURY.zaplata_dataColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setzaplata_dataNull() {
                this[this.tableFAKTURY.zaplata_dataColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iszaplata_opisNull() {
                return this.IsNull(this.tableFAKTURY.zaplata_opisColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setzaplata_opisNull() {
                this[this.tableFAKTURY.zaplata_opisColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsZaliczka_BruttoNull() {
                return this.IsNull(this.tableFAKTURY.Zaliczka_BruttoColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetZaliczka_BruttoNull() {
                this[this.tableFAKTURY.Zaliczka_BruttoColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsZaliczka_DataNull() {
                return this.IsNull(this.tableFAKTURY.Zaliczka_DataColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetZaliczka_DataNull() {
                this[this.tableFAKTURY.Zaliczka_DataColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_bruttoNull() {
                return this.IsNull(this.tableFAKTURY.waluta_bruttoColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_bruttoNull() {
                this[this.tableFAKTURY.waluta_bruttoColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_mianoNull() {
                return this.IsNull(this.tableFAKTURY.waluta_mianoColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_mianoNull() {
                this[this.tableFAKTURY.waluta_mianoColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_kursNull() {
                return this.IsNull(this.tableFAKTURY.waluta_kursColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_kursNull() {
                this[this.tableFAKTURY.waluta_kursColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_przelicznikNull() {
                return this.IsNull(this.tableFAKTURY.waluta_przelicznikColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_przelicznikNull() {
                this[this.tableFAKTURY.waluta_przelicznikColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_kurs_z_dniaNull() {
                return this.IsNull(this.tableFAKTURY.waluta_kurs_z_dniaColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_kurs_z_dniaNull() {
                this[this.tableFAKTURY.waluta_kurs_z_dniaColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Iswaluta_tabela_nrNull() {
                return this.IsNull(this.tableFAKTURY.waluta_tabela_nrColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setwaluta_tabela_nrNull() {
                this[this.tableFAKTURY.waluta_tabela_nrColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPelny_numerNull() {
                return this.IsNull(this.tableFAKTURY.Pelny_numerColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPelny_numerNull() {
                this[this.tableFAKTURY.Pelny_numerColumn] = global::System.Convert.DBNull;
            }
        }
        
        /// <summary>
        ///Represents strongly named DataRow class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class FAKTURA_DETAILSRow : global::System.Data.DataRow {
            
            private FAKTURA_DETAILSDataTable tableFAKTURA_DETAILS;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal FAKTURA_DETAILSRow(global::System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableFAKTURA_DETAILS = ((FAKTURA_DETAILSDataTable)(this.Table));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_FAKTURA_DETAILS {
                get {
                    return ((int)(this[this.tableFAKTURA_DETAILS.ID_FAKTURA_DETAILSColumn]));
                }
                set {
                    this[this.tableFAKTURA_DETAILS.ID_FAKTURA_DETAILSColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ID_FAKTURY {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURA_DETAILS.ID_FAKTURYColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ID_FAKTURY\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.ID_FAKTURYColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ROK {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURA_DETAILS.ROKColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ROK\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.ROKColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short MIESIAC {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURA_DETAILS.MIESIACColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'MIESIAC\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.MIESIACColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string NAZWA_USLUGI {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURA_DETAILS.NAZWA_USLUGIColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NAZWA_USLUGI\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.NAZWA_USLUGIColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string SYMBOL_SWW {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURA_DETAILS.SYMBOL_SWWColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'SYMBOL_SWW\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.SYMBOL_SWWColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string JM {
                get {
                    try {
                        return ((string)(this[this.tableFAKTURA_DETAILS.JMColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'JM\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.JMColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int ILOSC {
                get {
                    try {
                        return ((int)(this[this.tableFAKTURA_DETAILS.ILOSCColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ILOSC\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.ILOSCColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal CENA_JEDN {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURA_DETAILS.CENA_JEDNColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'CENA_JEDN\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.CENA_JEDNColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public double UPUST_PR {
                get {
                    try {
                        return ((double)(this[this.tableFAKTURA_DETAILS.UPUST_PRColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'UPUST_PR\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.UPUST_PRColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal UPUST_NETTO {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURA_DETAILS.UPUST_NETTOColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'UPUST_NETTO\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.UPUST_NETTOColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal NETTO {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURA_DETAILS.NETTOColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NETTO\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.NETTOColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public double S_VAT {
                get {
                    try {
                        return ((double)(this[this.tableFAKTURA_DETAILS.S_VATColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'S_VAT\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.S_VATColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal VAT {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURA_DETAILS.VATColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'VAT\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.VATColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public decimal BRUTTO {
                get {
                    try {
                        return ((decimal)(this[this.tableFAKTURA_DETAILS.BRUTTOColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'BRUTTO\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.BRUTTOColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short TYTUL {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURA_DETAILS.TYTULColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'TYTUL\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.TYTULColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short NR_WYDANIA {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURA_DETAILS.NR_WYDANIAColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'NR_WYDANIA\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.NR_WYDANIAColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short TYP {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURA_DETAILS.TYPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'TYP\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.TYPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short PODTYP {
                get {
                    try {
                        return ((short)(this[this.tableFAKTURA_DETAILS.PODTYPColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'PODTYP\' in table \'FAKTURA_DETAILS\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableFAKTURA_DETAILS.PODTYPColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsID_FAKTURYNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.ID_FAKTURYColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetID_FAKTURYNull() {
                this[this.tableFAKTURA_DETAILS.ID_FAKTURYColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsROKNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.ROKColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetROKNull() {
                this[this.tableFAKTURA_DETAILS.ROKColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsMIESIACNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.MIESIACColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetMIESIACNull() {
                this[this.tableFAKTURA_DETAILS.MIESIACColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNAZWA_USLUGINull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.NAZWA_USLUGIColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNAZWA_USLUGINull() {
                this[this.tableFAKTURA_DETAILS.NAZWA_USLUGIColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsSYMBOL_SWWNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.SYMBOL_SWWColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetSYMBOL_SWWNull() {
                this[this.tableFAKTURA_DETAILS.SYMBOL_SWWColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsJMNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.JMColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetJMNull() {
                this[this.tableFAKTURA_DETAILS.JMColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsILOSCNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.ILOSCColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetILOSCNull() {
                this[this.tableFAKTURA_DETAILS.ILOSCColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsCENA_JEDNNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.CENA_JEDNColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetCENA_JEDNNull() {
                this[this.tableFAKTURA_DETAILS.CENA_JEDNColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsUPUST_PRNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.UPUST_PRColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetUPUST_PRNull() {
                this[this.tableFAKTURA_DETAILS.UPUST_PRColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsUPUST_NETTONull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.UPUST_NETTOColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetUPUST_NETTONull() {
                this[this.tableFAKTURA_DETAILS.UPUST_NETTOColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNETTONull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.NETTOColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNETTONull() {
                this[this.tableFAKTURA_DETAILS.NETTOColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsS_VATNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.S_VATColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetS_VATNull() {
                this[this.tableFAKTURA_DETAILS.S_VATColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsVATNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.VATColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetVATNull() {
                this[this.tableFAKTURA_DETAILS.VATColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsBRUTTONull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.BRUTTOColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetBRUTTONull() {
                this[this.tableFAKTURA_DETAILS.BRUTTOColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsTYTULNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.TYTULColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetTYTULNull() {
                this[this.tableFAKTURA_DETAILS.TYTULColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNR_WYDANIANull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.NR_WYDANIAColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNR_WYDANIANull() {
                this[this.tableFAKTURA_DETAILS.NR_WYDANIAColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsTYPNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.TYPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetTYPNull() {
                this[this.tableFAKTURA_DETAILS.TYPColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPODTYPNull() {
                return this.IsNull(this.tableFAKTURA_DETAILS.PODTYPColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPODTYPNull() {
                this[this.tableFAKTURA_DETAILS.PODTYPColumn] = global::System.Convert.DBNull;
            }
        }
        
        /// <summary>
        ///Represents strongly named DataRow class.
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class KLIENCIRow : global::System.Data.DataRow {
            
            private KLIENCIDataTable tableKLIENCI;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal KLIENCIRow(global::System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableKLIENCI = ((KLIENCIDataTable)(this.Table));
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int CustomerID {
                get {
                    return ((int)(this[this.tableKLIENCI.CustomerIDColumn]));
                }
                set {
                    this[this.tableKLIENCI.CustomerIDColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string FirstName {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.FirstNameColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'FirstName\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.FirstNameColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string LastName {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.LastNameColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'LastName\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.LastNameColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string OrganizationName {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.OrganizationNameColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'OrganizationName\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.OrganizationNameColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Address {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.AddressColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Address\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.AddressColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string City {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.CityColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.CityColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string State {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.StateColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'State\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.StateColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string PostalCode {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.PostalCodeColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'PostalCode\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.PostalCodeColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Country {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.CountryColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Country\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.CountryColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Nip {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.NipColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Nip\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.NipColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string ContactName {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.ContactNameColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'ContactName\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.ContactNameColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string PhoneNumber {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.PhoneNumberColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'PhoneNumber\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.PhoneNumberColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string FaxNumber {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.FaxNumberColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'FaxNumber\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.FaxNumberColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Note {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.NoteColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.NoteColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime data {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableKLIENCI.dataColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'data\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.dataColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string osw_nr {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.osw_nrColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'osw_nr\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.osw_nrColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime osw_wazne_do {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableKLIENCI.osw_wazne_doColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'osw_wazne_do\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.osw_wazne_doColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Adres_Fkatura {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.Adres_FkaturaColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Adres_Fkatura\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.Adres_FkaturaColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public int Old_ID {
                get {
                    try {
                        return ((int)(this[this.tableKLIENCI.Old_IDColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Old_ID\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.Old_IDColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Adres_Kor {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.Adres_KorColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Adres_Kor\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.Adres_KorColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Platnik_VAT {
                get {
                    return ((bool)(this[this.tableKLIENCI.Platnik_VATColumn]));
                }
                set {
                    this[this.tableKLIENCI.Platnik_VATColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Aktywny {
                get {
                    return ((bool)(this[this.tableKLIENCI.AktywnyColumn]));
                }
                set {
                    this[this.tableKLIENCI.AktywnyColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Email {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.EmailColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.EmailColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string UserName {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.UserNameColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'UserName\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.UserNameColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.DateTime Last_Modify {
                get {
                    try {
                        return ((global::System.DateTime)(this[this.tableKLIENCI.Last_ModifyColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Last_Modify\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.Last_ModifyColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string Modify_User {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.Modify_UserColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'Modify_User\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.Modify_UserColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string http {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.httpColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'http\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.httpColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public short VIES {
                get {
                    try {
                        return ((short)(this[this.tableKLIENCI.VIESColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'VIES\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.VIESColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string regon {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.regonColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'regon\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.regonColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string krs {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.krsColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'krs\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.krsColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string nipKraj {
                get {
                    try {
                        return ((string)(this[this.tableKLIENCI.nipKrajColumn]));
                    }
                    catch (global::System.InvalidCastException e) {
                        throw new global::System.Data.StrongTypingException("The value for column \'nipKraj\' in table \'KLIENCI\' is DBNull.", e);
                    }
                }
                set {
                    this[this.tableKLIENCI.nipKrajColumn] = value;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFirstNameNull() {
                return this.IsNull(this.tableKLIENCI.FirstNameColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFirstNameNull() {
                this[this.tableKLIENCI.FirstNameColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsLastNameNull() {
                return this.IsNull(this.tableKLIENCI.LastNameColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetLastNameNull() {
                this[this.tableKLIENCI.LastNameColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsOrganizationNameNull() {
                return this.IsNull(this.tableKLIENCI.OrganizationNameColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetOrganizationNameNull() {
                this[this.tableKLIENCI.OrganizationNameColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsAddressNull() {
                return this.IsNull(this.tableKLIENCI.AddressColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetAddressNull() {
                this[this.tableKLIENCI.AddressColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsCityNull() {
                return this.IsNull(this.tableKLIENCI.CityColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetCityNull() {
                this[this.tableKLIENCI.CityColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsStateNull() {
                return this.IsNull(this.tableKLIENCI.StateColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetStateNull() {
                this[this.tableKLIENCI.StateColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPostalCodeNull() {
                return this.IsNull(this.tableKLIENCI.PostalCodeColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPostalCodeNull() {
                this[this.tableKLIENCI.PostalCodeColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsCountryNull() {
                return this.IsNull(this.tableKLIENCI.CountryColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetCountryNull() {
                this[this.tableKLIENCI.CountryColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNipNull() {
                return this.IsNull(this.tableKLIENCI.NipColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNipNull() {
                this[this.tableKLIENCI.NipColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsContactNameNull() {
                return this.IsNull(this.tableKLIENCI.ContactNameColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetContactNameNull() {
                this[this.tableKLIENCI.ContactNameColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsPhoneNumberNull() {
                return this.IsNull(this.tableKLIENCI.PhoneNumberColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetPhoneNumberNull() {
                this[this.tableKLIENCI.PhoneNumberColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsFaxNumberNull() {
                return this.IsNull(this.tableKLIENCI.FaxNumberColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetFaxNumberNull() {
                this[this.tableKLIENCI.FaxNumberColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsNoteNull() {
                return this.IsNull(this.tableKLIENCI.NoteColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetNoteNull() {
                this[this.tableKLIENCI.NoteColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsdataNull() {
                return this.IsNull(this.tableKLIENCI.dataColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetdataNull() {
                this[this.tableKLIENCI.dataColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Isosw_nrNull() {
                return this.IsNull(this.tableKLIENCI.osw_nrColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setosw_nrNull() {
                this[this.tableKLIENCI.osw_nrColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Isosw_wazne_doNull() {
                return this.IsNull(this.tableKLIENCI.osw_wazne_doColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Setosw_wazne_doNull() {
                this[this.tableKLIENCI.osw_wazne_doColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsAdres_FkaturaNull() {
                return this.IsNull(this.tableKLIENCI.Adres_FkaturaColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetAdres_FkaturaNull() {
                this[this.tableKLIENCI.Adres_FkaturaColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsOld_IDNull() {
                return this.IsNull(this.tableKLIENCI.Old_IDColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetOld_IDNull() {
                this[this.tableKLIENCI.Old_IDColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsAdres_KorNull() {
                return this.IsNull(this.tableKLIENCI.Adres_KorColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetAdres_KorNull() {
                this[this.tableKLIENCI.Adres_KorColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsEmailNull() {
                return this.IsNull(this.tableKLIENCI.EmailColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetEmailNull() {
                this[this.tableKLIENCI.EmailColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsUserNameNull() {
                return this.IsNull(this.tableKLIENCI.UserNameColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetUserNameNull() {
                this[this.tableKLIENCI.UserNameColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsLast_ModifyNull() {
                return this.IsNull(this.tableKLIENCI.Last_ModifyColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetLast_ModifyNull() {
                this[this.tableKLIENCI.Last_ModifyColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsModify_UserNull() {
                return this.IsNull(this.tableKLIENCI.Modify_UserColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetModify_UserNull() {
                this[this.tableKLIENCI.Modify_UserColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IshttpNull() {
                return this.IsNull(this.tableKLIENCI.httpColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SethttpNull() {
                this[this.tableKLIENCI.httpColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsVIESNull() {
                return this.IsNull(this.tableKLIENCI.VIESColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetVIESNull() {
                this[this.tableKLIENCI.VIESColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsregonNull() {
                return this.IsNull(this.tableKLIENCI.regonColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetregonNull() {
                this[this.tableKLIENCI.regonColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IskrsNull() {
                return this.IsNull(this.tableKLIENCI.krsColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetkrsNull() {
                this[this.tableKLIENCI.krsColumn] = global::System.Convert.DBNull;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool IsnipKrajNull() {
                return this.IsNull(this.tableKLIENCI.nipKrajColumn);
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void SetnipKrajNull() {
                this[this.tableKLIENCI.nipKrajColumn] = global::System.Convert.DBNull;
            }
        }
        
        /// <summary>
        ///Row event argument class
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class FAKTURYRowChangeEvent : global::System.EventArgs {
            
            private FAKTURYRow eventRow;
            
            private global::System.Data.DataRowAction eventAction;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRowChangeEvent(FAKTURYRow row, global::System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURYRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        /// <summary>
        ///Row event argument class
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class FAKTURA_DETAILSRowChangeEvent : global::System.EventArgs {
            
            private FAKTURA_DETAILSRow eventRow;
            
            private global::System.Data.DataRowAction eventAction;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRowChangeEvent(FAKTURA_DETAILSRow row, global::System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public FAKTURA_DETAILSRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        /// <summary>
        ///Row event argument class
        ///</summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class KLIENCIRowChangeEvent : global::System.EventArgs {
            
            private KLIENCIRow eventRow;
            
            private global::System.Data.DataRowAction eventAction;
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRowChangeEvent(KLIENCIRow row, global::System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public KLIENCIRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public global::System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
namespace ExportFaktur.EXPODataSetTableAdapters {
    
    
    /// <summary>
    ///Represents the connection and commands used to retrieve and save data.
    ///</summary>
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
    public partial class FAKTURYTableAdapter : global::System.ComponentModel.Component {
        
        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
        
        private global::System.Data.SqlClient.SqlConnection _connection;
        
        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
        
        private bool _clearBeforeFill;
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public FAKTURYTableAdapter() {
            this.ClearBeforeFill = true;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private global::System.Data.SqlClient.SqlDataAdapter Adapter {
            get {
                if ((this._adapter == null)) {
                    this.InitAdapter();
                }
                return this._adapter;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal global::System.Data.SqlClient.SqlConnection Connection {
            get {
                if ((this._connection == null)) {
                    this.InitConnection();
                }
                return this._connection;
            }
            set {
                this._connection = value;
                if ((this.Adapter.InsertCommand != null)) {
                    this.Adapter.InsertCommand.Connection = value;
                }
                if ((this.Adapter.DeleteCommand != null)) {
                    this.Adapter.DeleteCommand.Connection = value;
                }
                if ((this.Adapter.UpdateCommand != null)) {
                    this.Adapter.UpdateCommand.Connection = value;
                }
                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
                    if ((this.CommandCollection[i] != null)) {
                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
                    }
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
            get {
                if ((this._commandCollection == null)) {
                    this.InitCommandCollection();
                }
                return this._commandCollection;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public bool ClearBeforeFill {
            get {
                return this._clearBeforeFill;
            }
            set {
                this._clearBeforeFill = value;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "FAKTURY";
            tableMapping.ColumnMappings.Add("ID_FAKTURY", "ID_FAKTURY");
            tableMapping.ColumnMappings.Add("NUMER_ROZ", "NUMER_ROZ");
            tableMapping.ColumnMappings.Add("NUMER_ROK", "NUMER_ROK");
            tableMapping.ColumnMappings.Add("DATA_WYSTAWIENIA", "DATA_WYSTAWIENIA");
            tableMapping.ColumnMappings.Add("MIEJSCOWOSC_WYSTAWIENIA", "MIEJSCOWOSC_WYSTAWIENIA");
            tableMapping.ColumnMappings.Add("ID_SPRZEDAWCY", "ID_SPRZEDAWCY");
            tableMapping.ColumnMappings.Add("ID_NABYWCY", "ID_NABYWCY");
            tableMapping.ColumnMappings.Add("DATA_SPRZEDAZY", "DATA_SPRZEDAZY");
            tableMapping.ColumnMappings.Add("PODPIS_WYSTAWIL", "PODPIS_WYSTAWIL");
            tableMapping.ColumnMappings.Add("PODPIS_ODEBRAL", "PODPIS_ODEBRAL");
            tableMapping.ColumnMappings.Add("opis", "opis");
            tableMapping.ColumnMappings.Add("SPOSOB_ZAPLATY", "SPOSOB_ZAPLATY");
            tableMapping.ColumnMappings.Add("TERMIN_ZAPLATY", "TERMIN_ZAPLATY");
            tableMapping.ColumnMappings.Add("ZAPLACONO", "ZAPLACONO");
            tableMapping.ColumnMappings.Add("BYL_WYDRUK", "BYL_WYDRUK");
            tableMapping.ColumnMappings.Add("NABYWCA_ADRES", "NABYWCA_ADRES");
            tableMapping.ColumnMappings.Add("SPRZEDAWCA_ADRES", "SPRZEDAWCA_ADRES");
            tableMapping.ColumnMappings.Add("SPRZEDAWCA_NIP", "SPRZEDAWCA_NIP");
            tableMapping.ColumnMappings.Add("NABYWCA_NIP", "NABYWCA_NIP");
            tableMapping.ColumnMappings.Add("FAKTURA_TYP", "FAKTURA_TYP");
            tableMapping.ColumnMappings.Add("FAKTURA_PODTYP", "FAKTURA_PODTYP");
            tableMapping.ColumnMappings.Add("ID_KONTA", "ID_KONTA");
            tableMapping.ColumnMappings.Add("EKSPORT", "EKSPORT");
            tableMapping.ColumnMappings.Add("EXPORTED", "EXPORTED");
            tableMapping.ColumnMappings.Add("ID_TYTUL", "ID_TYTUL");
            tableMapping.ColumnMappings.Add("EXPORTED_DATA", "EXPORTED_DATA");
            tableMapping.ColumnMappings.Add("suma_zaplat", "suma_zaplat");
            tableMapping.ColumnMappings.Add("ID_FK_KOR", "ID_FK_KOR");
            tableMapping.ColumnMappings.Add("KOREKTA", "KOREKTA");
            tableMapping.ColumnMappings.Add("zaplata_data", "zaplata_data");
            tableMapping.ColumnMappings.Add("zaplata_opis", "zaplata_opis");
            tableMapping.ColumnMappings.Add("Zaliczka_Brutto", "Zaliczka_Brutto");
            tableMapping.ColumnMappings.Add("Zaliczka_Data", "Zaliczka_Data");
            tableMapping.ColumnMappings.Add("waluta_brutto", "waluta_brutto");
            tableMapping.ColumnMappings.Add("waluta_miano", "waluta_miano");
            tableMapping.ColumnMappings.Add("waluta_kurs", "waluta_kurs");
            tableMapping.ColumnMappings.Add("waluta_przelicznik", "waluta_przelicznik");
            tableMapping.ColumnMappings.Add("waluta_kurs_z_dnia", "waluta_kurs_z_dnia");
            tableMapping.ColumnMappings.Add("waluta_tabela_nr", "waluta_tabela_nr");
            tableMapping.ColumnMappings.Add("NUMER", "NUMER");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [FAKTURY] WHERE (([ID_FAKTURY] = @Original_ID_FAKTURY) AND ((@IsNull_" +
                "NUMER = 1 AND [NUMER] IS NULL) OR ([NUMER] = @Original_NUMER)) AND ((@IsNull_NUM" +
                "ER_ROZ = 1 AND [NUMER_ROZ] IS NULL) OR ([NUMER_ROZ] = @Original_NUMER_ROZ)) AND " +
                "((@IsNull_NUMER_ROK = 1 AND [NUMER_ROK] IS NULL) OR ([NUMER_ROK] = @Original_NUM" +
                "ER_ROK)) AND ((@IsNull_DATA_WYSTAWIENIA = 1 AND [DATA_WYSTAWIENIA] IS NULL) OR (" +
                "[DATA_WYSTAWIENIA] = @Original_DATA_WYSTAWIENIA)) AND ((@IsNull_MIEJSCOWOSC_WYST" +
                "AWIENIA = 1 AND [MIEJSCOWOSC_WYSTAWIENIA] IS NULL) OR ([MIEJSCOWOSC_WYSTAWIENIA]" +
                " = @Original_MIEJSCOWOSC_WYSTAWIENIA)) AND ((@IsNull_ID_SPRZEDAWCY = 1 AND [ID_S" +
                "PRZEDAWCY] IS NULL) OR ([ID_SPRZEDAWCY] = @Original_ID_SPRZEDAWCY)) AND ((@IsNul" +
                "l_ID_NABYWCY = 1 AND [ID_NABYWCY] IS NULL) OR ([ID_NABYWCY] = @Original_ID_NABYW" +
                "CY)) AND ((@IsNull_DATA_SPRZEDAZY = 1 AND [DATA_SPRZEDAZY] IS NULL) OR ([DATA_SP" +
                "RZEDAZY] = @Original_DATA_SPRZEDAZY)) AND ((@IsNull_PODPIS_WYSTAWIL = 1 AND [POD" +
                "PIS_WYSTAWIL] IS NULL) OR ([PODPIS_WYSTAWIL] = @Original_PODPIS_WYSTAWIL)) AND (" +
                "(@IsNull_PODPIS_ODEBRAL = 1 AND [PODPIS_ODEBRAL] IS NULL) OR ([PODPIS_ODEBRAL] =" +
                " @Original_PODPIS_ODEBRAL)) AND ((@IsNull_SPOSOB_ZAPLATY = 1 AND [SPOSOB_ZAPLATY" +
                "] IS NULL) OR ([SPOSOB_ZAPLATY] = @Original_SPOSOB_ZAPLATY)) AND ((@IsNull_TERMI" +
                "N_ZAPLATY = 1 AND [TERMIN_ZAPLATY] IS NULL) OR ([TERMIN_ZAPLATY] = @Original_TER" +
                "MIN_ZAPLATY)) AND ((@IsNull_ZAPLACONO = 1 AND [ZAPLACONO] IS NULL) OR ([ZAPLACON" +
                "O] = @Original_ZAPLACONO)) AND ((@IsNull_BYL_WYDRUK = 1 AND [BYL_WYDRUK] IS NULL" +
                ") OR ([BYL_WYDRUK] = @Original_BYL_WYDRUK)) AND ((@IsNull_SPRZEDAWCA_NIP = 1 AND" +
                " [SPRZEDAWCA_NIP] IS NULL) OR ([SPRZEDAWCA_NIP] = @Original_SPRZEDAWCA_NIP)) AND" +
                " ((@IsNull_NABYWCA_NIP = 1 AND [NABYWCA_NIP] IS NULL) OR ([NABYWCA_NIP] = @Origi" +
                "nal_NABYWCA_NIP)) AND ((@IsNull_FAKTURA_TYP = 1 AND [FAKTURA_TYP] IS NULL) OR ([" +
                "FAKTURA_TYP] = @Original_FAKTURA_TYP)) AND ((@IsNull_FAKTURA_PODTYP = 1 AND [FAK" +
                "TURA_PODTYP] IS NULL) OR ([FAKTURA_PODTYP] = @Original_FAKTURA_PODTYP)) AND ((@I" +
                "sNull_ID_KONTA = 1 AND [ID_KONTA] IS NULL) OR ([ID_KONTA] = @Original_ID_KONTA))" +
                " AND ([EKSPORT] = @Original_EKSPORT) AND ([EXPORTED] = @Original_EXPORTED) AND (" +
                "(@IsNull_ID_TYTUL = 1 AND [ID_TYTUL] IS NULL) OR ([ID_TYTUL] = @Original_ID_TYTU" +
                "L)) AND ((@IsNull_EXPORTED_DATA = 1 AND [EXPORTED_DATA] IS NULL) OR ([EXPORTED_D" +
                "ATA] = @Original_EXPORTED_DATA)) AND ((@IsNull_suma_zaplat = 1 AND [suma_zaplat]" +
                " IS NULL) OR ([suma_zaplat] = @Original_suma_zaplat)) AND ((@IsNull_ID_FK_KOR = " +
                "1 AND [ID_FK_KOR] IS NULL) OR ([ID_FK_KOR] = @Original_ID_FK_KOR)) AND ([KOREKTA" +
                "] = @Original_KOREKTA) AND ((@IsNull_zaplata_data = 1 AND [zaplata_data] IS NULL" +
                ") OR ([zaplata_data] = @Original_zaplata_data)) AND ((@IsNull_zaplata_opis = 1 A" +
                "ND [zaplata_opis] IS NULL) OR ([zaplata_opis] = @Original_zaplata_opis)) AND ((@" +
                "IsNull_Zaliczka_Brutto = 1 AND [Zaliczka_Brutto] IS NULL) OR ([Zaliczka_Brutto] " +
                "= @Original_Zaliczka_Brutto)) AND ((@IsNull_Zaliczka_Data = 1 AND [Zaliczka_Data" +
                "] IS NULL) OR ([Zaliczka_Data] = @Original_Zaliczka_Data)) AND ((@IsNull_waluta_" +
                "brutto = 1 AND [waluta_brutto] IS NULL) OR ([waluta_brutto] = @Original_waluta_b" +
                "rutto)) AND ((@IsNull_waluta_miano = 1 AND [waluta_miano] IS NULL) OR ([waluta_m" +
                "iano] = @Original_waluta_miano)) AND ((@IsNull_waluta_kurs = 1 AND [waluta_kurs]" +
                " IS NULL) OR ([waluta_kurs] = @Original_waluta_kurs)) AND ((@IsNull_waluta_przel" +
                "icznik = 1 AND [waluta_przelicznik] IS NULL) OR ([waluta_przelicznik] = @Origina" +
                "l_waluta_przelicznik)) AND ((@IsNull_waluta_kurs_z_dnia = 1 AND [waluta_kurs_z_d" +
                "nia] IS NULL) OR ([waluta_kurs_z_dnia] = @Original_waluta_kurs_z_dnia)) AND ((@I" +
                "sNull_waluta_tabela_nr = 1 AND [waluta_tabela_nr] IS NULL) OR ([waluta_tabela_nr" +
                "] = @Original_waluta_tabela_nr)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER_ROZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER_ROZ", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DATA_WYSTAWIENIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DATA_WYSTAWIENIA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DATA_SPRZEDAZY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DATA_SPRZEDAZY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODPIS_WYSTAWIL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODPIS_WYSTAWIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODPIS_ODEBRAL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODPIS_ODEBRAL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SPOSOB_ZAPLATY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SPOSOB_ZAPLATY", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TERMIN_ZAPLATY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TERMIN_ZAPLATY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ZAPLACONO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ZAPLACONO", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BYL_WYDRUK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BYL_WYDRUK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SPRZEDAWCA_NIP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SPRZEDAWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NABYWCA_NIP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NABYWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FAKTURA_TYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FAKTURA_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FAKTURA_PODTYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FAKTURA_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_KONTA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_KONTA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EKSPORT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EKSPORT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EXPORTED", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_TYTUL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EXPORTED_DATA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EXPORTED_DATA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_suma_zaplat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_suma_zaplat", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KOREKTA", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_zaplata_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_zaplata_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_zaplata_opis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_zaplata_opis", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Zaliczka_Brutto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Zaliczka_Brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Zaliczka_Data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Zaliczka_Data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_brutto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_miano", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_miano", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_kurs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_kurs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_kurs_z_dnia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_kurs_z_dnia", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_tabela_nr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_tabela_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = "INSERT INTO [FAKTURY] ([NUMER], [NUMER_ROZ], [NUMER_ROK], [DATA_WYSTAWIENIA], [MI" +
                "EJSCOWOSC_WYSTAWIENIA], [ID_SPRZEDAWCY], [ID_NABYWCY], [DATA_SPRZEDAZY], [PODPIS" +
                "_WYSTAWIL], [PODPIS_ODEBRAL], [opis], [SPOSOB_ZAPLATY], [TERMIN_ZAPLATY], [ZAPLA" +
                "CONO], [BYL_WYDRUK], [NABYWCA_ADRES], [SPRZEDAWCA_ADRES], [SPRZEDAWCA_NIP], [NAB" +
                "YWCA_NIP], [FAKTURA_TYP], [FAKTURA_PODTYP], [ID_KONTA], [EKSPORT], [EXPORTED], [" +
                "ID_TYTUL], [EXPORTED_DATA], [suma_zaplat], [ID_FK_KOR], [KOREKTA], [zaplata_data" +
                "], [zaplata_opis], [Zaliczka_Brutto], [Zaliczka_Data], [waluta_brutto], [waluta_" +
                "miano], [waluta_kurs], [waluta_przelicznik], [waluta_kurs_z_dnia], [waluta_tabel" +
                "a_nr]) VALUES (@NUMER, @NUMER_ROZ, @NUMER_ROK, @DATA_WYSTAWIENIA, @MIEJSCOWOSC_W" +
                "YSTAWIENIA, @ID_SPRZEDAWCY, @ID_NABYWCY, @DATA_SPRZEDAZY, @PODPIS_WYSTAWIL, @POD" +
                "PIS_ODEBRAL, @opis, @SPOSOB_ZAPLATY, @TERMIN_ZAPLATY, @ZAPLACONO, @BYL_WYDRUK, @" +
                "NABYWCA_ADRES, @SPRZEDAWCA_ADRES, @SPRZEDAWCA_NIP, @NABYWCA_NIP, @FAKTURA_TYP, @" +
                "FAKTURA_PODTYP, @ID_KONTA, @EKSPORT, @EXPORTED, @ID_TYTUL, @EXPORTED_DATA, @suma" +
                "_zaplat, @ID_FK_KOR, @KOREKTA, @zaplata_data, @zaplata_opis, @Zaliczka_Brutto, @" +
                "Zaliczka_Data, @waluta_brutto, @waluta_miano, @waluta_kurs, @waluta_przelicznik," +
                " @waluta_kurs_z_dnia, @waluta_tabela_nr);\r\nSELECT ID_FAKTURY, NUMER, NUMER_ROZ, " +
                "NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY," +
                " DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_Z" +
                "APLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, " +
                "NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL," +
                " EXPORTED_DATA, suma_zaplat, ID_FK_KOR, KOREKTA, zaplata_data, zaplata_opis, Zal" +
                "iczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_pr" +
                "zelicznik, waluta_kurs_z_dnia, waluta_tabela_nr FROM FAKTURY WHERE (ID_FAKTURY =" +
                " SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER_ROZ", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATA_WYSTAWIENIA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATA_SPRZEDAZY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODPIS_WYSTAWIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODPIS_ODEBRAL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@opis", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "opis", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPOSOB_ZAPLATY", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TERMIN_ZAPLATY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ZAPLACONO", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BYL_WYDRUK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NABYWCA_ADRES", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_ADRES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPRZEDAWCA_ADRES", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_ADRES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPRZEDAWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NABYWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FAKTURA_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FAKTURA_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_KONTA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EKSPORT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EKSPORT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXPORTED", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXPORTED_DATA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@suma_zaplat", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KOREKTA", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@zaplata_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@zaplata_opis", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Zaliczka_Brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Zaliczka_Data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_miano", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_kurs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_kurs_z_dnia", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_tabela_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [FAKTURY] SET [NUMER] = @NUMER, [NUMER_ROZ] = @NUMER_ROZ, [NUMER_ROK] = @N" +
                "UMER_ROK, [DATA_WYSTAWIENIA] = @DATA_WYSTAWIENIA, [MIEJSCOWOSC_WYSTAWIENIA] = @M" +
                "IEJSCOWOSC_WYSTAWIENIA, [ID_SPRZEDAWCY] = @ID_SPRZEDAWCY, [ID_NABYWCY] = @ID_NAB" +
                "YWCY, [DATA_SPRZEDAZY] = @DATA_SPRZEDAZY, [PODPIS_WYSTAWIL] = @PODPIS_WYSTAWIL, " +
                "[PODPIS_ODEBRAL] = @PODPIS_ODEBRAL, [opis] = @opis, [SPOSOB_ZAPLATY] = @SPOSOB_Z" +
                "APLATY, [TERMIN_ZAPLATY] = @TERMIN_ZAPLATY, [ZAPLACONO] = @ZAPLACONO, [BYL_WYDRU" +
                "K] = @BYL_WYDRUK, [NABYWCA_ADRES] = @NABYWCA_ADRES, [SPRZEDAWCA_ADRES] = @SPRZED" +
                "AWCA_ADRES, [SPRZEDAWCA_NIP] = @SPRZEDAWCA_NIP, [NABYWCA_NIP] = @NABYWCA_NIP, [F" +
                "AKTURA_TYP] = @FAKTURA_TYP, [FAKTURA_PODTYP] = @FAKTURA_PODTYP, [ID_KONTA] = @ID" +
                "_KONTA, [EKSPORT] = @EKSPORT, [EXPORTED] = @EXPORTED, [ID_TYTUL] = @ID_TYTUL, [E" +
                "XPORTED_DATA] = @EXPORTED_DATA, [suma_zaplat] = @suma_zaplat, [ID_FK_KOR] = @ID_" +
                "FK_KOR, [KOREKTA] = @KOREKTA, [zaplata_data] = @zaplata_data, [zaplata_opis] = @" +
                "zaplata_opis, [Zaliczka_Brutto] = @Zaliczka_Brutto, [Zaliczka_Data] = @Zaliczka_" +
                "Data, [waluta_brutto] = @waluta_brutto, [waluta_miano] = @waluta_miano, [waluta_" +
                "kurs] = @waluta_kurs, [waluta_przelicznik] = @waluta_przelicznik, [waluta_kurs_z" +
                "_dnia] = @waluta_kurs_z_dnia, [waluta_tabela_nr] = @waluta_tabela_nr WHERE (([ID" +
                "_FAKTURY] = @Original_ID_FAKTURY) AND ((@IsNull_NUMER = 1 AND [NUMER] IS NULL) O" +
                "R ([NUMER] = @Original_NUMER)) AND ((@IsNull_NUMER_ROZ = 1 AND [NUMER_ROZ] IS NU" +
                "LL) OR ([NUMER_ROZ] = @Original_NUMER_ROZ)) AND ((@IsNull_NUMER_ROK = 1 AND [NUM" +
                "ER_ROK] IS NULL) OR ([NUMER_ROK] = @Original_NUMER_ROK)) AND ((@IsNull_DATA_WYST" +
                "AWIENIA = 1 AND [DATA_WYSTAWIENIA] IS NULL) OR ([DATA_WYSTAWIENIA] = @Original_D" +
                "ATA_WYSTAWIENIA)) AND ((@IsNull_MIEJSCOWOSC_WYSTAWIENIA = 1 AND [MIEJSCOWOSC_WYS" +
                "TAWIENIA] IS NULL) OR ([MIEJSCOWOSC_WYSTAWIENIA] = @Original_MIEJSCOWOSC_WYSTAWI" +
                "ENIA)) AND ((@IsNull_ID_SPRZEDAWCY = 1 AND [ID_SPRZEDAWCY] IS NULL) OR ([ID_SPRZ" +
                "EDAWCY] = @Original_ID_SPRZEDAWCY)) AND ((@IsNull_ID_NABYWCY = 1 AND [ID_NABYWCY" +
                "] IS NULL) OR ([ID_NABYWCY] = @Original_ID_NABYWCY)) AND ((@IsNull_DATA_SPRZEDAZ" +
                "Y = 1 AND [DATA_SPRZEDAZY] IS NULL) OR ([DATA_SPRZEDAZY] = @Original_DATA_SPRZED" +
                "AZY)) AND ((@IsNull_PODPIS_WYSTAWIL = 1 AND [PODPIS_WYSTAWIL] IS NULL) OR ([PODP" +
                "IS_WYSTAWIL] = @Original_PODPIS_WYSTAWIL)) AND ((@IsNull_PODPIS_ODEBRAL = 1 AND " +
                "[PODPIS_ODEBRAL] IS NULL) OR ([PODPIS_ODEBRAL] = @Original_PODPIS_ODEBRAL)) AND " +
                "((@IsNull_SPOSOB_ZAPLATY = 1 AND [SPOSOB_ZAPLATY] IS NULL) OR ([SPOSOB_ZAPLATY] " +
                "= @Original_SPOSOB_ZAPLATY)) AND ((@IsNull_TERMIN_ZAPLATY = 1 AND [TERMIN_ZAPLAT" +
                "Y] IS NULL) OR ([TERMIN_ZAPLATY] = @Original_TERMIN_ZAPLATY)) AND ((@IsNull_ZAPL" +
                "ACONO = 1 AND [ZAPLACONO] IS NULL) OR ([ZAPLACONO] = @Original_ZAPLACONO)) AND (" +
                "(@IsNull_BYL_WYDRUK = 1 AND [BYL_WYDRUK] IS NULL) OR ([BYL_WYDRUK] = @Original_B" +
                "YL_WYDRUK)) AND ((@IsNull_SPRZEDAWCA_NIP = 1 AND [SPRZEDAWCA_NIP] IS NULL) OR ([" +
                "SPRZEDAWCA_NIP] = @Original_SPRZEDAWCA_NIP)) AND ((@IsNull_NABYWCA_NIP = 1 AND [" +
                "NABYWCA_NIP] IS NULL) OR ([NABYWCA_NIP] = @Original_NABYWCA_NIP)) AND ((@IsNull_" +
                "FAKTURA_TYP = 1 AND [FAKTURA_TYP] IS NULL) OR ([FAKTURA_TYP] = @Original_FAKTURA" +
                "_TYP)) AND ((@IsNull_FAKTURA_PODTYP = 1 AND [FAKTURA_PODTYP] IS NULL) OR ([FAKTU" +
                "RA_PODTYP] = @Original_FAKTURA_PODTYP)) AND ((@IsNull_ID_KONTA = 1 AND [ID_KONTA" +
                "] IS NULL) OR ([ID_KONTA] = @Original_ID_KONTA)) AND ([EKSPORT] = @Original_EKSP" +
                "ORT) AND ([EXPORTED] = @Original_EXPORTED) AND ((@IsNull_ID_TYTUL = 1 AND [ID_TY" +
                "TUL] IS NULL) OR ([ID_TYTUL] = @Original_ID_TYTUL)) AND ((@IsNull_EXPORTED_DATA " +
                "= 1 AND [EXPORTED_DATA] IS NULL) OR ([EXPORTED_DATA] = @Original_EXPORTED_DATA))" +
                " AND ((@IsNull_suma_zaplat = 1 AND [suma_zaplat] IS NULL) OR ([suma_zaplat] = @O" +
                "riginal_suma_zaplat)) AND ((@IsNull_ID_FK_KOR = 1 AND [ID_FK_KOR] IS NULL) OR ([" +
                "ID_FK_KOR] = @Original_ID_FK_KOR)) AND ([KOREKTA] = @Original_KOREKTA) AND ((@Is" +
                "Null_zaplata_data = 1 AND [zaplata_data] IS NULL) OR ([zaplata_data] = @Original" +
                "_zaplata_data)) AND ((@IsNull_zaplata_opis = 1 AND [zaplata_opis] IS NULL) OR ([" +
                "zaplata_opis] = @Original_zaplata_opis)) AND ((@IsNull_Zaliczka_Brutto = 1 AND [" +
                "Zaliczka_Brutto] IS NULL) OR ([Zaliczka_Brutto] = @Original_Zaliczka_Brutto)) AN" +
                "D ((@IsNull_Zaliczka_Data = 1 AND [Zaliczka_Data] IS NULL) OR ([Zaliczka_Data] =" +
                " @Original_Zaliczka_Data)) AND ((@IsNull_waluta_brutto = 1 AND [waluta_brutto] I" +
                "S NULL) OR ([waluta_brutto] = @Original_waluta_brutto)) AND ((@IsNull_waluta_mia" +
                "no = 1 AND [waluta_miano] IS NULL) OR ([waluta_miano] = @Original_waluta_miano))" +
                " AND ((@IsNull_waluta_kurs = 1 AND [waluta_kurs] IS NULL) OR ([waluta_kurs] = @O" +
                "riginal_waluta_kurs)) AND ((@IsNull_waluta_przelicznik = 1 AND [waluta_przeliczn" +
                "ik] IS NULL) OR ([waluta_przelicznik] = @Original_waluta_przelicznik)) AND ((@Is" +
                "Null_waluta_kurs_z_dnia = 1 AND [waluta_kurs_z_dnia] IS NULL) OR ([waluta_kurs_z" +
                "_dnia] = @Original_waluta_kurs_z_dnia)) AND ((@IsNull_waluta_tabela_nr = 1 AND [" +
                "waluta_tabela_nr] IS NULL) OR ([waluta_tabela_nr] = @Original_waluta_tabela_nr))" +
                ");\r\nSELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOS" +
                "C_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPI" +
                "S_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_" +
                "ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTY" +
                "P, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR," +
                " KOREKTA, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_bru" +
                "tto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_t" +
                "abela_nr FROM FAKTURY WHERE (ID_FAKTURY = @ID_FAKTURY)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER_ROZ", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATA_WYSTAWIENIA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DATA_SPRZEDAZY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODPIS_WYSTAWIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODPIS_ODEBRAL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@opis", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "opis", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPOSOB_ZAPLATY", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TERMIN_ZAPLATY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ZAPLACONO", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BYL_WYDRUK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NABYWCA_ADRES", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_ADRES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPRZEDAWCA_ADRES", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_ADRES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SPRZEDAWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NABYWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FAKTURA_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FAKTURA_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_KONTA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EKSPORT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EKSPORT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXPORTED", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EXPORTED_DATA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@suma_zaplat", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KOREKTA", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@zaplata_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@zaplata_opis", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Zaliczka_Brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Zaliczka_Data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_miano", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_kurs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_kurs_z_dnia", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_tabela_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER_ROZ", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER_ROZ", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NUMER_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DATA_WYSTAWIENIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DATA_WYSTAWIENIA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIEJSCOWOSC_WYSTAWIENIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_SPRZEDAWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_SPRZEDAWCY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_NABYWCY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DATA_SPRZEDAZY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DATA_SPRZEDAZY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DATA_SPRZEDAZY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODPIS_WYSTAWIL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODPIS_WYSTAWIL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_WYSTAWIL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODPIS_ODEBRAL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODPIS_ODEBRAL", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODPIS_ODEBRAL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SPOSOB_ZAPLATY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SPOSOB_ZAPLATY", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPOSOB_ZAPLATY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TERMIN_ZAPLATY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TERMIN_ZAPLATY", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TERMIN_ZAPLATY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ZAPLACONO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ZAPLACONO", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ZAPLACONO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BYL_WYDRUK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BYL_WYDRUK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BYL_WYDRUK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SPRZEDAWCA_NIP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SPRZEDAWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SPRZEDAWCA_NIP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NABYWCA_NIP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NABYWCA_NIP", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NABYWCA_NIP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FAKTURA_TYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FAKTURA_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_TYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FAKTURA_PODTYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FAKTURA_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FAKTURA_PODTYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_KONTA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_KONTA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_KONTA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EKSPORT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EKSPORT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EXPORTED", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_TYTUL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_TYTUL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EXPORTED_DATA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EXPORTED_DATA", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EXPORTED_DATA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_suma_zaplat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_suma_zaplat", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "suma_zaplat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FK_KOR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FK_KOR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KOREKTA", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_zaplata_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_zaplata_data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_zaplata_opis", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_zaplata_opis", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "zaplata_opis", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Zaliczka_Brutto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Zaliczka_Brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Zaliczka_Data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Zaliczka_Data", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Zaliczka_Data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_brutto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_miano", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_miano", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_miano", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_kurs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_kurs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_przelicznik", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_przelicznik", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_kurs_z_dnia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_kurs_z_dnia", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_kurs_z_dnia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_waluta_tabela_nr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_waluta_tabela_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_tabela_nr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FAKTURY", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitConnection() {
            this._connection = new global::System.Data.SqlClient.SqlConnection();
            this._connection.ConnectionString = global::ExportFaktur.Properties.Settings.Default.BAZA_REKLAMConnectionString;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitCommandCollection() {
            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[0].Connection = this.Connection;
            this._commandCollection[0].CommandText = @"SELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, KOREKTA, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr FROM FAKTURY WHERE (SystemKsiegowyId = 2)";
            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[1].Connection = this.Connection;
            this._commandCollection[1].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (NUMER_ROK >= 2008) AND (EXPORTED = 0) AND (SystemKsiegowyId = 2) AND KOREKTA=0 ORDER BY ID_NABYWCY";
            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
        public virtual int Fill(EXPODataSet.FAKTURYDataTable dataTable) {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
        public virtual EXPODataSet.FAKTURYDataTable GetData() {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            EXPODataSet.FAKTURYDataTable dataTable = new EXPODataSet.FAKTURYDataTable(true);
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
        public virtual int FillByNotExported(EXPODataSet.FAKTURYDataTable dataTable) {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
        public virtual EXPODataSet.FAKTURYDataTable GetDataByNotExported() {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            EXPODataSet.FAKTURYDataTable dataTable = new EXPODataSet.FAKTURYDataTable(true);
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet.FAKTURYDataTable dataTable) {
            return this.Adapter.Update(dataTable);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet dataSet) {
            return this.Adapter.Update(dataSet, "FAKTURY");
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow dataRow) {
            return this.Adapter.Update(new global::System.Data.DataRow[] {
                        dataRow});
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow[] dataRows) {
            return this.Adapter.Update(dataRows);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
        public virtual int Delete(
                    int Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_NUMER, 
                    string Original_NUMER_ROZ, 
                    global::System.Nullable<int> Original_NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_WYSTAWIENIA, 
                    string Original_MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> Original_ID_SPRZEDAWCY, 
                    global::System.Nullable<int> Original_ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_SPRZEDAZY, 
                    string Original_PODPIS_WYSTAWIL, 
                    string Original_PODPIS_ODEBRAL, 
                    string Original_SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> Original_TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> Original_ZAPLACONO, 
                    global::System.Nullable<bool> Original_BYL_WYDRUK, 
                    string Original_SPRZEDAWCA_NIP, 
                    string Original_NABYWCA_NIP, 
                    global::System.Nullable<short> Original_FAKTURA_TYP, 
                    global::System.Nullable<short> Original_FAKTURA_PODTYP, 
                    global::System.Nullable<short> Original_ID_KONTA, 
                    bool Original_EKSPORT, 
                    bool Original_EXPORTED, 
                    global::System.Nullable<short> Original_ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> Original_EXPORTED_DATA, 
                    global::System.Nullable<decimal> Original_suma_zaplat, 
                    global::System.Nullable<int> Original_ID_FK_KOR, 
                    byte Original_KOREKTA, 
                    global::System.Nullable<global::System.DateTime> Original_zaplata_data, 
                    string Original_zaplata_opis, 
                    global::System.Nullable<decimal> Original_Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Original_Zaliczka_Data, 
                    global::System.Nullable<double> Original_waluta_brutto, 
                    string Original_waluta_miano, 
                    global::System.Nullable<double> Original_waluta_kurs, 
                    global::System.Nullable<int> Original_waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> Original_waluta_kurs_z_dnia, 
                    string Original_waluta_tabela_nr) {
            this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_FAKTURY));
            if ((Original_NUMER.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_NUMER.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((Original_NUMER_ROZ == null)) {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_NUMER_ROZ));
            }
            if ((Original_NUMER_ROK.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_NUMER_ROK.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((Original_DATA_WYSTAWIENIA.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DATA_WYSTAWIENIA.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            if ((Original_MIEJSCOWOSC_WYSTAWIENIA == null)) {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_MIEJSCOWOSC_WYSTAWIENIA));
            }
            if ((Original_ID_SPRZEDAWCY.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_ID_SPRZEDAWCY.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_NABYWCY.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_ID_NABYWCY.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((Original_DATA_SPRZEDAZY.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[16].Value = ((System.DateTime)(Original_DATA_SPRZEDAZY.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            if ((Original_PODPIS_WYSTAWIL == null)) {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_PODPIS_WYSTAWIL));
            }
            if ((Original_PODPIS_ODEBRAL == null)) {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_PODPIS_ODEBRAL));
            }
            if ((Original_SPOSOB_ZAPLATY == null)) {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_SPOSOB_ZAPLATY));
            }
            if ((Original_TERMIN_ZAPLATY.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[24].Value = ((System.DateTime)(Original_TERMIN_ZAPLATY.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            if ((Original_ZAPLACONO.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[26].Value = ((bool)(Original_ZAPLACONO.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((Original_BYL_WYDRUK.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[28].Value = ((bool)(Original_BYL_WYDRUK.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            if ((Original_SPRZEDAWCA_NIP == null)) {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_SPRZEDAWCA_NIP));
            }
            if ((Original_NABYWCA_NIP == null)) {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_NABYWCA_NIP));
            }
            if ((Original_FAKTURA_TYP.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[34].Value = ((short)(Original_FAKTURA_TYP.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            if ((Original_FAKTURA_PODTYP.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[36].Value = ((short)(Original_FAKTURA_PODTYP.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_KONTA.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[38].Value = ((short)(Original_ID_KONTA.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            this.Adapter.DeleteCommand.Parameters[39].Value = ((bool)(Original_EKSPORT));
            this.Adapter.DeleteCommand.Parameters[40].Value = ((bool)(Original_EXPORTED));
            if ((Original_ID_TYTUL.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[42].Value = ((short)(Original_ID_TYTUL.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value;
            }
            if ((Original_EXPORTED_DATA.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[44].Value = ((System.DateTime)(Original_EXPORTED_DATA.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value;
            }
            if ((Original_suma_zaplat.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[46].Value = ((decimal)(Original_suma_zaplat.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_FK_KOR.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[48].Value = ((int)(Original_ID_FK_KOR.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value;
            }
            this.Adapter.DeleteCommand.Parameters[49].Value = ((byte)(Original_KOREKTA));
            if ((Original_zaplata_data.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[51].Value = ((System.DateTime)(Original_zaplata_data.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[51].Value = global::System.DBNull.Value;
            }
            if ((Original_zaplata_opis == null)) {
                this.Adapter.DeleteCommand.Parameters[52].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[53].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[52].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[53].Value = ((string)(Original_zaplata_opis));
            }
            if ((Original_Zaliczka_Brutto.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[55].Value = ((decimal)(Original_Zaliczka_Brutto.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[54].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[55].Value = global::System.DBNull.Value;
            }
            if ((Original_Zaliczka_Data.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[56].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[57].Value = ((System.DateTime)(Original_Zaliczka_Data.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[56].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[57].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_brutto.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[58].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[59].Value = ((double)(Original_waluta_brutto.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[58].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[59].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_miano == null)) {
                this.Adapter.DeleteCommand.Parameters[60].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[61].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[60].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[61].Value = ((string)(Original_waluta_miano));
            }
            if ((Original_waluta_kurs.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[62].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[63].Value = ((double)(Original_waluta_kurs.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[62].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[63].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_przelicznik.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[64].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[65].Value = ((int)(Original_waluta_przelicznik.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[64].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[65].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_kurs_z_dnia.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[66].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[67].Value = ((System.DateTime)(Original_waluta_kurs_z_dnia.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[66].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[67].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_tabela_nr == null)) {
                this.Adapter.DeleteCommand.Parameters[68].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[69].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[68].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[69].Value = ((string)(Original_waluta_tabela_nr));
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
            if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.DeleteCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.DeleteCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
        public virtual int Insert(
                    global::System.Nullable<int> NUMER, 
                    string NUMER_ROZ, 
                    global::System.Nullable<int> NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> DATA_WYSTAWIENIA, 
                    string MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> ID_SPRZEDAWCY, 
                    global::System.Nullable<int> ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> DATA_SPRZEDAZY, 
                    string PODPIS_WYSTAWIL, 
                    string PODPIS_ODEBRAL, 
                    string opis, 
                    string SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> ZAPLACONO, 
                    global::System.Nullable<bool> BYL_WYDRUK, 
                    string NABYWCA_ADRES, 
                    string SPRZEDAWCA_ADRES, 
                    string SPRZEDAWCA_NIP, 
                    string NABYWCA_NIP, 
                    global::System.Nullable<short> FAKTURA_TYP, 
                    global::System.Nullable<short> FAKTURA_PODTYP, 
                    global::System.Nullable<short> ID_KONTA, 
                    bool EKSPORT, 
                    bool EXPORTED, 
                    global::System.Nullable<short> ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> EXPORTED_DATA, 
                    global::System.Nullable<decimal> suma_zaplat, 
                    global::System.Nullable<int> ID_FK_KOR, 
                    byte KOREKTA, 
                    global::System.Nullable<global::System.DateTime> zaplata_data, 
                    string zaplata_opis, 
                    global::System.Nullable<decimal> Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Zaliczka_Data, 
                    global::System.Nullable<double> waluta_brutto, 
                    string waluta_miano, 
                    global::System.Nullable<double> waluta_kurs, 
                    global::System.Nullable<int> waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> waluta_kurs_z_dnia, 
                    string waluta_tabela_nr) {
            if ((NUMER.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[0].Value = ((int)(NUMER.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            if ((NUMER_ROZ == null)) {
                this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[1].Value = ((string)(NUMER_ROZ));
            }
            if ((NUMER_ROK.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[2].Value = ((int)(NUMER_ROK.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((DATA_WYSTAWIENIA.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DATA_WYSTAWIENIA.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            if ((MIEJSCOWOSC_WYSTAWIENIA == null)) {
                this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[4].Value = ((string)(MIEJSCOWOSC_WYSTAWIENIA));
            }
            if ((ID_SPRZEDAWCY.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ID_SPRZEDAWCY.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            if ((ID_NABYWCY.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ID_NABYWCY.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((DATA_SPRZEDAZY.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(DATA_SPRZEDAZY.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            if ((PODPIS_WYSTAWIL == null)) {
                this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PODPIS_WYSTAWIL));
            }
            if ((PODPIS_ODEBRAL == null)) {
                this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[9].Value = ((string)(PODPIS_ODEBRAL));
            }
            if ((opis == null)) {
                this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[10].Value = ((string)(opis));
            }
            if ((SPOSOB_ZAPLATY == null)) {
                this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[11].Value = ((string)(SPOSOB_ZAPLATY));
            }
            if ((TERMIN_ZAPLATY.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(TERMIN_ZAPLATY.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            if ((ZAPLACONO.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[13].Value = ((bool)(ZAPLACONO.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((BYL_WYDRUK.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[14].Value = ((bool)(BYL_WYDRUK.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((NABYWCA_ADRES == null)) {
                this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[15].Value = ((string)(NABYWCA_ADRES));
            }
            if ((SPRZEDAWCA_ADRES == null)) {
                this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[16].Value = ((string)(SPRZEDAWCA_ADRES));
            }
            if ((SPRZEDAWCA_NIP == null)) {
                this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[17].Value = ((string)(SPRZEDAWCA_NIP));
            }
            if ((NABYWCA_NIP == null)) {
                this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[18].Value = ((string)(NABYWCA_NIP));
            }
            if ((FAKTURA_TYP.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[19].Value = ((short)(FAKTURA_TYP.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
            }
            if ((FAKTURA_PODTYP.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[20].Value = ((short)(FAKTURA_PODTYP.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            if ((ID_KONTA.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[21].Value = ((short)(ID_KONTA.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value;
            }
            this.Adapter.InsertCommand.Parameters[22].Value = ((bool)(EKSPORT));
            this.Adapter.InsertCommand.Parameters[23].Value = ((bool)(EXPORTED));
            if ((ID_TYTUL.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[24].Value = ((short)(ID_TYTUL.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            if ((EXPORTED_DATA.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[25].Value = ((System.DateTime)(EXPORTED_DATA.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value;
            }
            if ((suma_zaplat.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[26].Value = ((decimal)(suma_zaplat.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((ID_FK_KOR.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[27].Value = ((int)(ID_FK_KOR.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value;
            }
            this.Adapter.InsertCommand.Parameters[28].Value = ((byte)(KOREKTA));
            if ((zaplata_data.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[29].Value = ((System.DateTime)(zaplata_data.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[29].Value = global::System.DBNull.Value;
            }
            if ((zaplata_opis == null)) {
                this.Adapter.InsertCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[30].Value = ((string)(zaplata_opis));
            }
            if ((Zaliczka_Brutto.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[31].Value = ((decimal)(Zaliczka_Brutto.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value;
            }
            if ((Zaliczka_Data.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[32].Value = ((System.DateTime)(Zaliczka_Data.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            if ((waluta_brutto.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[33].Value = ((double)(waluta_brutto.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[33].Value = global::System.DBNull.Value;
            }
            if ((waluta_miano == null)) {
                this.Adapter.InsertCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[34].Value = ((string)(waluta_miano));
            }
            if ((waluta_kurs.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[35].Value = ((double)(waluta_kurs.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[35].Value = global::System.DBNull.Value;
            }
            if ((waluta_przelicznik.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[36].Value = ((int)(waluta_przelicznik.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            if ((waluta_kurs_z_dnia.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[37].Value = ((System.DateTime)(waluta_kurs_z_dnia.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[37].Value = global::System.DBNull.Value;
            }
            if ((waluta_tabela_nr == null)) {
                this.Adapter.InsertCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[38].Value = ((string)(waluta_tabela_nr));
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
            if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.InsertCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.InsertCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    global::System.Nullable<int> NUMER, 
                    string NUMER_ROZ, 
                    global::System.Nullable<int> NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> DATA_WYSTAWIENIA, 
                    string MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> ID_SPRZEDAWCY, 
                    global::System.Nullable<int> ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> DATA_SPRZEDAZY, 
                    string PODPIS_WYSTAWIL, 
                    string PODPIS_ODEBRAL, 
                    string opis, 
                    string SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> ZAPLACONO, 
                    global::System.Nullable<bool> BYL_WYDRUK, 
                    string NABYWCA_ADRES, 
                    string SPRZEDAWCA_ADRES, 
                    string SPRZEDAWCA_NIP, 
                    string NABYWCA_NIP, 
                    global::System.Nullable<short> FAKTURA_TYP, 
                    global::System.Nullable<short> FAKTURA_PODTYP, 
                    global::System.Nullable<short> ID_KONTA, 
                    bool EKSPORT, 
                    bool EXPORTED, 
                    global::System.Nullable<short> ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> EXPORTED_DATA, 
                    global::System.Nullable<decimal> suma_zaplat, 
                    global::System.Nullable<int> ID_FK_KOR, 
                    byte KOREKTA, 
                    global::System.Nullable<global::System.DateTime> zaplata_data, 
                    string zaplata_opis, 
                    global::System.Nullable<decimal> Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Zaliczka_Data, 
                    global::System.Nullable<double> waluta_brutto, 
                    string waluta_miano, 
                    global::System.Nullable<double> waluta_kurs, 
                    global::System.Nullable<int> waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> waluta_kurs_z_dnia, 
                    string waluta_tabela_nr, 
                    int Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_NUMER, 
                    string Original_NUMER_ROZ, 
                    global::System.Nullable<int> Original_NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_WYSTAWIENIA, 
                    string Original_MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> Original_ID_SPRZEDAWCY, 
                    global::System.Nullable<int> Original_ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_SPRZEDAZY, 
                    string Original_PODPIS_WYSTAWIL, 
                    string Original_PODPIS_ODEBRAL, 
                    string Original_SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> Original_TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> Original_ZAPLACONO, 
                    global::System.Nullable<bool> Original_BYL_WYDRUK, 
                    string Original_SPRZEDAWCA_NIP, 
                    string Original_NABYWCA_NIP, 
                    global::System.Nullable<short> Original_FAKTURA_TYP, 
                    global::System.Nullable<short> Original_FAKTURA_PODTYP, 
                    global::System.Nullable<short> Original_ID_KONTA, 
                    bool Original_EKSPORT, 
                    bool Original_EXPORTED, 
                    global::System.Nullable<short> Original_ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> Original_EXPORTED_DATA, 
                    global::System.Nullable<decimal> Original_suma_zaplat, 
                    global::System.Nullable<int> Original_ID_FK_KOR, 
                    byte Original_KOREKTA, 
                    global::System.Nullable<global::System.DateTime> Original_zaplata_data, 
                    string Original_zaplata_opis, 
                    global::System.Nullable<decimal> Original_Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Original_Zaliczka_Data, 
                    global::System.Nullable<double> Original_waluta_brutto, 
                    string Original_waluta_miano, 
                    global::System.Nullable<double> Original_waluta_kurs, 
                    global::System.Nullable<int> Original_waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> Original_waluta_kurs_z_dnia, 
                    string Original_waluta_tabela_nr, 
                    int ID_FAKTURY) {
            if ((NUMER.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(NUMER.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            if ((NUMER_ROZ == null)) {
                this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(NUMER_ROZ));
            }
            if ((NUMER_ROK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(NUMER_ROK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((DATA_WYSTAWIENIA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DATA_WYSTAWIENIA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            if ((MIEJSCOWOSC_WYSTAWIENIA == null)) {
                this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(MIEJSCOWOSC_WYSTAWIENIA));
            }
            if ((ID_SPRZEDAWCY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID_SPRZEDAWCY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            if ((ID_NABYWCY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID_NABYWCY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((DATA_SPRZEDAZY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(DATA_SPRZEDAZY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            if ((PODPIS_WYSTAWIL == null)) {
                this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PODPIS_WYSTAWIL));
            }
            if ((PODPIS_ODEBRAL == null)) {
                this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(PODPIS_ODEBRAL));
            }
            if ((opis == null)) {
                this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(opis));
            }
            if ((SPOSOB_ZAPLATY == null)) {
                this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(SPOSOB_ZAPLATY));
            }
            if ((TERMIN_ZAPLATY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(TERMIN_ZAPLATY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            if ((ZAPLACONO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[13].Value = ((bool)(ZAPLACONO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((BYL_WYDRUK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[14].Value = ((bool)(BYL_WYDRUK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((NABYWCA_ADRES == null)) {
                this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(NABYWCA_ADRES));
            }
            if ((SPRZEDAWCA_ADRES == null)) {
                this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(SPRZEDAWCA_ADRES));
            }
            if ((SPRZEDAWCA_NIP == null)) {
                this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(SPRZEDAWCA_NIP));
            }
            if ((NABYWCA_NIP == null)) {
                this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(NABYWCA_NIP));
            }
            if ((FAKTURA_TYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[19].Value = ((short)(FAKTURA_TYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
            }
            if ((FAKTURA_PODTYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[20].Value = ((short)(FAKTURA_PODTYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            if ((ID_KONTA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[21].Value = ((short)(ID_KONTA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[22].Value = ((bool)(EKSPORT));
            this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(EXPORTED));
            if ((ID_TYTUL.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[24].Value = ((short)(ID_TYTUL.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            if ((EXPORTED_DATA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(EXPORTED_DATA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
            }
            if ((suma_zaplat.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[26].Value = ((decimal)(suma_zaplat.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((ID_FK_KOR.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(ID_FK_KOR.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[28].Value = ((byte)(KOREKTA));
            if ((zaplata_data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(zaplata_data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
            }
            if ((zaplata_opis == null)) {
                this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(zaplata_opis));
            }
            if ((Zaliczka_Brutto.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[31].Value = ((decimal)(Zaliczka_Brutto.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
            }
            if ((Zaliczka_Data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[32].Value = ((System.DateTime)(Zaliczka_Data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            if ((waluta_brutto.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[33].Value = ((double)(waluta_brutto.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
            }
            if ((waluta_miano == null)) {
                this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(waluta_miano));
            }
            if ((waluta_kurs.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[35].Value = ((double)(waluta_kurs.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
            }
            if ((waluta_przelicznik.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(waluta_przelicznik.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            if ((waluta_kurs_z_dnia.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(waluta_kurs_z_dnia.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
            }
            if ((waluta_tabela_nr == null)) {
                this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(waluta_tabela_nr));
            }
            this.Adapter.UpdateCommand.Parameters[39].Value = ((int)(Original_ID_FAKTURY));
            if ((Original_NUMER.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_NUMER.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
            }
            if ((Original_NUMER_ROZ == null)) {
                this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_NUMER_ROZ));
            }
            if ((Original_NUMER_ROK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[45].Value = ((int)(Original_NUMER_ROK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
            }
            if ((Original_DATA_WYSTAWIENIA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_DATA_WYSTAWIENIA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
            }
            if ((Original_MIEJSCOWOSC_WYSTAWIENIA == null)) {
                this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_MIEJSCOWOSC_WYSTAWIENIA));
            }
            if ((Original_ID_SPRZEDAWCY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[51].Value = ((int)(Original_ID_SPRZEDAWCY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_NABYWCY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[53].Value = ((int)(Original_ID_NABYWCY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value;
            }
            if ((Original_DATA_SPRZEDAZY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[55].Value = ((System.DateTime)(Original_DATA_SPRZEDAZY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value;
            }
            if ((Original_PODPIS_WYSTAWIL == null)) {
                this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_PODPIS_WYSTAWIL));
            }
            if ((Original_PODPIS_ODEBRAL == null)) {
                this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_PODPIS_ODEBRAL));
            }
            if ((Original_SPOSOB_ZAPLATY == null)) {
                this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_SPOSOB_ZAPLATY));
            }
            if ((Original_TERMIN_ZAPLATY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[63].Value = ((System.DateTime)(Original_TERMIN_ZAPLATY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
            }
            if ((Original_ZAPLACONO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[65].Value = ((bool)(Original_ZAPLACONO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value;
            }
            if ((Original_BYL_WYDRUK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[67].Value = ((bool)(Original_BYL_WYDRUK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value;
            }
            if ((Original_SPRZEDAWCA_NIP == null)) {
                this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[69].Value = ((string)(Original_SPRZEDAWCA_NIP));
            }
            if ((Original_NABYWCA_NIP == null)) {
                this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[71].Value = ((string)(Original_NABYWCA_NIP));
            }
            if ((Original_FAKTURA_TYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[73].Value = ((short)(Original_FAKTURA_TYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value;
            }
            if ((Original_FAKTURA_PODTYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[75].Value = ((short)(Original_FAKTURA_PODTYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[74].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[75].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_KONTA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[77].Value = ((short)(Original_ID_KONTA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[76].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[77].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[78].Value = ((bool)(Original_EKSPORT));
            this.Adapter.UpdateCommand.Parameters[79].Value = ((bool)(Original_EXPORTED));
            if ((Original_ID_TYTUL.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[81].Value = ((short)(Original_ID_TYTUL.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[80].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[81].Value = global::System.DBNull.Value;
            }
            if ((Original_EXPORTED_DATA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[83].Value = ((System.DateTime)(Original_EXPORTED_DATA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[82].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[83].Value = global::System.DBNull.Value;
            }
            if ((Original_suma_zaplat.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[85].Value = ((decimal)(Original_suma_zaplat.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[84].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[85].Value = global::System.DBNull.Value;
            }
            if ((Original_ID_FK_KOR.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[87].Value = ((int)(Original_ID_FK_KOR.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[86].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[87].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[88].Value = ((byte)(Original_KOREKTA));
            if ((Original_zaplata_data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[90].Value = ((System.DateTime)(Original_zaplata_data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value;
            }
            if ((Original_zaplata_opis == null)) {
                this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_zaplata_opis));
            }
            if ((Original_Zaliczka_Brutto.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[94].Value = ((decimal)(Original_Zaliczka_Brutto.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value;
            }
            if ((Original_Zaliczka_Data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[96].Value = ((System.DateTime)(Original_Zaliczka_Data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_brutto.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[98].Value = ((double)(Original_waluta_brutto.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_miano == null)) {
                this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_waluta_miano));
            }
            if ((Original_waluta_kurs.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[102].Value = ((double)(Original_waluta_kurs.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_przelicznik.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[104].Value = ((int)(Original_waluta_przelicznik.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_kurs_z_dnia.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[106].Value = ((System.DateTime)(Original_waluta_kurs_z_dnia.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value;
            }
            if ((Original_waluta_tabela_nr == null)) {
                this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_waluta_tabela_nr));
            }
            this.Adapter.UpdateCommand.Parameters[109].Value = ((int)(ID_FAKTURY));
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
            if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.UpdateCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.UpdateCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    global::System.Nullable<int> NUMER, 
                    string NUMER_ROZ, 
                    global::System.Nullable<int> NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> DATA_WYSTAWIENIA, 
                    string MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> ID_SPRZEDAWCY, 
                    global::System.Nullable<int> ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> DATA_SPRZEDAZY, 
                    string PODPIS_WYSTAWIL, 
                    string PODPIS_ODEBRAL, 
                    string opis, 
                    string SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> ZAPLACONO, 
                    global::System.Nullable<bool> BYL_WYDRUK, 
                    string NABYWCA_ADRES, 
                    string SPRZEDAWCA_ADRES, 
                    string SPRZEDAWCA_NIP, 
                    string NABYWCA_NIP, 
                    global::System.Nullable<short> FAKTURA_TYP, 
                    global::System.Nullable<short> FAKTURA_PODTYP, 
                    global::System.Nullable<short> ID_KONTA, 
                    bool EKSPORT, 
                    bool EXPORTED, 
                    global::System.Nullable<short> ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> EXPORTED_DATA, 
                    global::System.Nullable<decimal> suma_zaplat, 
                    global::System.Nullable<int> ID_FK_KOR, 
                    byte KOREKTA, 
                    global::System.Nullable<global::System.DateTime> zaplata_data, 
                    string zaplata_opis, 
                    global::System.Nullable<decimal> Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Zaliczka_Data, 
                    global::System.Nullable<double> waluta_brutto, 
                    string waluta_miano, 
                    global::System.Nullable<double> waluta_kurs, 
                    global::System.Nullable<int> waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> waluta_kurs_z_dnia, 
                    string waluta_tabela_nr, 
                    int Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_NUMER, 
                    string Original_NUMER_ROZ, 
                    global::System.Nullable<int> Original_NUMER_ROK, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_WYSTAWIENIA, 
                    string Original_MIEJSCOWOSC_WYSTAWIENIA, 
                    global::System.Nullable<int> Original_ID_SPRZEDAWCY, 
                    global::System.Nullable<int> Original_ID_NABYWCY, 
                    global::System.Nullable<global::System.DateTime> Original_DATA_SPRZEDAZY, 
                    string Original_PODPIS_WYSTAWIL, 
                    string Original_PODPIS_ODEBRAL, 
                    string Original_SPOSOB_ZAPLATY, 
                    global::System.Nullable<global::System.DateTime> Original_TERMIN_ZAPLATY, 
                    global::System.Nullable<bool> Original_ZAPLACONO, 
                    global::System.Nullable<bool> Original_BYL_WYDRUK, 
                    string Original_SPRZEDAWCA_NIP, 
                    string Original_NABYWCA_NIP, 
                    global::System.Nullable<short> Original_FAKTURA_TYP, 
                    global::System.Nullable<short> Original_FAKTURA_PODTYP, 
                    global::System.Nullable<short> Original_ID_KONTA, 
                    bool Original_EKSPORT, 
                    bool Original_EXPORTED, 
                    global::System.Nullable<short> Original_ID_TYTUL, 
                    global::System.Nullable<global::System.DateTime> Original_EXPORTED_DATA, 
                    global::System.Nullable<decimal> Original_suma_zaplat, 
                    global::System.Nullable<int> Original_ID_FK_KOR, 
                    byte Original_KOREKTA, 
                    global::System.Nullable<global::System.DateTime> Original_zaplata_data, 
                    string Original_zaplata_opis, 
                    global::System.Nullable<decimal> Original_Zaliczka_Brutto, 
                    global::System.Nullable<global::System.DateTime> Original_Zaliczka_Data, 
                    global::System.Nullable<double> Original_waluta_brutto, 
                    string Original_waluta_miano, 
                    global::System.Nullable<double> Original_waluta_kurs, 
                    global::System.Nullable<int> Original_waluta_przelicznik, 
                    global::System.Nullable<global::System.DateTime> Original_waluta_kurs_z_dnia, 
                    string Original_waluta_tabela_nr) {
            return this.Update(NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, KOREKTA, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, Original_ID_FAKTURY, Original_NUMER, Original_NUMER_ROZ, Original_NUMER_ROK, Original_DATA_WYSTAWIENIA, Original_MIEJSCOWOSC_WYSTAWIENIA, Original_ID_SPRZEDAWCY, Original_ID_NABYWCY, Original_DATA_SPRZEDAZY, Original_PODPIS_WYSTAWIL, Original_PODPIS_ODEBRAL, Original_SPOSOB_ZAPLATY, Original_TERMIN_ZAPLATY, Original_ZAPLACONO, Original_BYL_WYDRUK, Original_SPRZEDAWCA_NIP, Original_NABYWCA_NIP, Original_FAKTURA_TYP, Original_FAKTURA_PODTYP, Original_ID_KONTA, Original_EKSPORT, Original_EXPORTED, Original_ID_TYTUL, Original_EXPORTED_DATA, Original_suma_zaplat, Original_ID_FK_KOR, Original_KOREKTA, Original_zaplata_data, Original_zaplata_opis, Original_Zaliczka_Brutto, Original_Zaliczka_Data, Original_waluta_brutto, Original_waluta_miano, Original_waluta_kurs, Original_waluta_przelicznik, Original_waluta_kurs_z_dnia, Original_waluta_tabela_nr, Original_ID_FAKTURY);
        }
    }
    
    /// <summary>
    ///Represents the connection and commands used to retrieve and save data.
    ///</summary>
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
    public partial class FAKTURA_DETAILSTableAdapter : global::System.ComponentModel.Component {
        
        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
        
        private global::System.Data.SqlClient.SqlConnection _connection;
        
        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
        
        private bool _clearBeforeFill;
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public FAKTURA_DETAILSTableAdapter() {
            this.ClearBeforeFill = true;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private global::System.Data.SqlClient.SqlDataAdapter Adapter {
            get {
                if ((this._adapter == null)) {
                    this.InitAdapter();
                }
                return this._adapter;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal global::System.Data.SqlClient.SqlConnection Connection {
            get {
                if ((this._connection == null)) {
                    this.InitConnection();
                }
                return this._connection;
            }
            set {
                this._connection = value;
                if ((this.Adapter.InsertCommand != null)) {
                    this.Adapter.InsertCommand.Connection = value;
                }
                if ((this.Adapter.DeleteCommand != null)) {
                    this.Adapter.DeleteCommand.Connection = value;
                }
                if ((this.Adapter.UpdateCommand != null)) {
                    this.Adapter.UpdateCommand.Connection = value;
                }
                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
                    if ((this.CommandCollection[i] != null)) {
                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
                    }
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
            get {
                if ((this._commandCollection == null)) {
                    this.InitCommandCollection();
                }
                return this._commandCollection;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public bool ClearBeforeFill {
            get {
                return this._clearBeforeFill;
            }
            set {
                this._clearBeforeFill = value;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "FAKTURA_DETAILS";
            tableMapping.ColumnMappings.Add("ID_FAKTURA_DETAILS", "ID_FAKTURA_DETAILS");
            tableMapping.ColumnMappings.Add("ID_FAKTURY", "ID_FAKTURY");
            tableMapping.ColumnMappings.Add("ROK", "ROK");
            tableMapping.ColumnMappings.Add("MIESIAC", "MIESIAC");
            tableMapping.ColumnMappings.Add("NAZWA_USLUGI", "NAZWA_USLUGI");
            tableMapping.ColumnMappings.Add("SYMBOL_SWW", "SYMBOL_SWW");
            tableMapping.ColumnMappings.Add("JM", "JM");
            tableMapping.ColumnMappings.Add("ILOSC", "ILOSC");
            tableMapping.ColumnMappings.Add("CENA_JEDN", "CENA_JEDN");
            tableMapping.ColumnMappings.Add("UPUST_PR", "UPUST_PR");
            tableMapping.ColumnMappings.Add("UPUST_NETTO", "UPUST_NETTO");
            tableMapping.ColumnMappings.Add("NETTO", "NETTO");
            tableMapping.ColumnMappings.Add("S_VAT", "S_VAT");
            tableMapping.ColumnMappings.Add("VAT", "VAT");
            tableMapping.ColumnMappings.Add("BRUTTO", "BRUTTO");
            tableMapping.ColumnMappings.Add("TYTUL", "TYTUL");
            tableMapping.ColumnMappings.Add("NR_WYDANIA", "NR_WYDANIA");
            tableMapping.ColumnMappings.Add("TYP", "TYP");
            tableMapping.ColumnMappings.Add("PODTYP", "PODTYP");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FAKTURA_DETAILS] WHERE (([ID_FAKTURA_DETAILS] = @Original_ID_F" +
                "AKTURA_DETAILS) AND ((@IsNull_ID_FAKTURY = 1 AND [ID_FAKTURY] IS NULL) OR ([ID_F" +
                "AKTURY] = @Original_ID_FAKTURY)) AND ((@IsNull_ROK = 1 AND [ROK] IS NULL) OR ([R" +
                "OK] = @Original_ROK)) AND ((@IsNull_MIESIAC = 1 AND [MIESIAC] IS NULL) OR ([MIES" +
                "IAC] = @Original_MIESIAC)) AND ((@IsNull_NAZWA_USLUGI = 1 AND [NAZWA_USLUGI] IS " +
                "NULL) OR ([NAZWA_USLUGI] = @Original_NAZWA_USLUGI)) AND ((@IsNull_SYMBOL_SWW = 1" +
                " AND [SYMBOL_SWW] IS NULL) OR ([SYMBOL_SWW] = @Original_SYMBOL_SWW)) AND ((@IsNu" +
                "ll_JM = 1 AND [JM] IS NULL) OR ([JM] = @Original_JM)) AND ((@IsNull_ILOSC = 1 AN" +
                "D [ILOSC] IS NULL) OR ([ILOSC] = @Original_ILOSC)) AND ((@IsNull_CENA_JEDN = 1 A" +
                "ND [CENA_JEDN] IS NULL) OR ([CENA_JEDN] = @Original_CENA_JEDN)) AND ((@IsNull_UP" +
                "UST_PR = 1 AND [UPUST_PR] IS NULL) OR ([UPUST_PR] = @Original_UPUST_PR)) AND ((@" +
                "IsNull_UPUST_NETTO = 1 AND [UPUST_NETTO] IS NULL) OR ([UPUST_NETTO] = @Original_" +
                "UPUST_NETTO)) AND ((@IsNull_NETTO = 1 AND [NETTO] IS NULL) OR ([NETTO] = @Origin" +
                "al_NETTO)) AND ((@IsNull_S_VAT = 1 AND [S_VAT] IS NULL) OR ([S_VAT] = @Original_" +
                "S_VAT)) AND ((@IsNull_VAT = 1 AND [VAT] IS NULL) OR ([VAT] = @Original_VAT)) AND" +
                " ((@IsNull_BRUTTO = 1 AND [BRUTTO] IS NULL) OR ([BRUTTO] = @Original_BRUTTO)) AN" +
                "D ((@IsNull_TYTUL = 1 AND [TYTUL] IS NULL) OR ([TYTUL] = @Original_TYTUL)) AND (" +
                "(@IsNull_NR_WYDANIA = 1 AND [NR_WYDANIA] IS NULL) OR ([NR_WYDANIA] = @Original_N" +
                "R_WYDANIA)) AND ((@IsNull_TYP = 1 AND [TYP] IS NULL) OR ([TYP] = @Original_TYP))" +
                " AND ((@IsNull_PODTYP = 1 AND [PODTYP] IS NULL) OR ([PODTYP] = @Original_PODTYP)" +
                "))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURA_DETAILS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURA_DETAILS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MIESIAC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MIESIAC", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NAZWA_USLUGI", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NAZWA_USLUGI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SYMBOL_SWW", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SYMBOL_SWW", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_JM", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_JM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CENA_JEDN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CENA_JEDN", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UPUST_PR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UPUST_PR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UPUST_NETTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UPUST_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NETTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_S_VAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_S_VAT", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VAT", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BRUTTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BRUTTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TYTUL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NR_WYDANIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NR_WYDANIA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODTYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[FAKTURA_DETAILS] ([ID_FAKTURY], [ROK], [MIESIAC], [NAZWA_USLUGI], [SYMBOL_SWW], [JM], [ILOSC], [CENA_JEDN], [UPUST_PR], [UPUST_NETTO], [NETTO], [S_VAT], [VAT], [BRUTTO], [TYTUL], [NR_WYDANIA], [TYP], [PODTYP]) VALUES (@ID_FAKTURY, @ROK, @MIESIAC, @NAZWA_USLUGI, @SYMBOL_SWW, @JM, @ILOSC, @CENA_JEDN, @UPUST_PR, @UPUST_NETTO, @NETTO, @S_VAT, @VAT, @BRUTTO, @TYTUL, @NR_WYDANIA, @TYP, @PODTYP);
SELECT ID_FAKTURA_DETAILS, ID_FAKTURY, ROK, MIESIAC, NAZWA_USLUGI, SYMBOL_SWW, JM, ILOSC, CENA_JEDN, UPUST_PR, UPUST_NETTO, NETTO, S_VAT, VAT, BRUTTO, TYTUL, NR_WYDANIA, TYP, PODTYP FROM FAKTURA_DETAILS WHERE (ID_FAKTURA_DETAILS = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MIESIAC", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NAZWA_USLUGI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SYMBOL_SWW", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CENA_JEDN", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UPUST_PR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UPUST_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@S_VAT", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VAT", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BRUTTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NR_WYDANIA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[FAKTURA_DETAILS] SET [ID_FAKTURY] = @ID_FAKTURY, [ROK] = @ROK, [MIE" +
                "SIAC] = @MIESIAC, [NAZWA_USLUGI] = @NAZWA_USLUGI, [SYMBOL_SWW] = @SYMBOL_SWW, [J" +
                "M] = @JM, [ILOSC] = @ILOSC, [CENA_JEDN] = @CENA_JEDN, [UPUST_PR] = @UPUST_PR, [U" +
                "PUST_NETTO] = @UPUST_NETTO, [NETTO] = @NETTO, [S_VAT] = @S_VAT, [VAT] = @VAT, [B" +
                "RUTTO] = @BRUTTO, [TYTUL] = @TYTUL, [NR_WYDANIA] = @NR_WYDANIA, [TYP] = @TYP, [P" +
                "ODTYP] = @PODTYP WHERE (([ID_FAKTURA_DETAILS] = @Original_ID_FAKTURA_DETAILS) AN" +
                "D ((@IsNull_ID_FAKTURY = 1 AND [ID_FAKTURY] IS NULL) OR ([ID_FAKTURY] = @Origina" +
                "l_ID_FAKTURY)) AND ((@IsNull_ROK = 1 AND [ROK] IS NULL) OR ([ROK] = @Original_RO" +
                "K)) AND ((@IsNull_MIESIAC = 1 AND [MIESIAC] IS NULL) OR ([MIESIAC] = @Original_M" +
                "IESIAC)) AND ((@IsNull_NAZWA_USLUGI = 1 AND [NAZWA_USLUGI] IS NULL) OR ([NAZWA_U" +
                "SLUGI] = @Original_NAZWA_USLUGI)) AND ((@IsNull_SYMBOL_SWW = 1 AND [SYMBOL_SWW] " +
                "IS NULL) OR ([SYMBOL_SWW] = @Original_SYMBOL_SWW)) AND ((@IsNull_JM = 1 AND [JM]" +
                " IS NULL) OR ([JM] = @Original_JM)) AND ((@IsNull_ILOSC = 1 AND [ILOSC] IS NULL)" +
                " OR ([ILOSC] = @Original_ILOSC)) AND ((@IsNull_CENA_JEDN = 1 AND [CENA_JEDN] IS " +
                "NULL) OR ([CENA_JEDN] = @Original_CENA_JEDN)) AND ((@IsNull_UPUST_PR = 1 AND [UP" +
                "UST_PR] IS NULL) OR ([UPUST_PR] = @Original_UPUST_PR)) AND ((@IsNull_UPUST_NETTO" +
                " = 1 AND [UPUST_NETTO] IS NULL) OR ([UPUST_NETTO] = @Original_UPUST_NETTO)) AND " +
                "((@IsNull_NETTO = 1 AND [NETTO] IS NULL) OR ([NETTO] = @Original_NETTO)) AND ((@" +
                "IsNull_S_VAT = 1 AND [S_VAT] IS NULL) OR ([S_VAT] = @Original_S_VAT)) AND ((@IsN" +
                "ull_VAT = 1 AND [VAT] IS NULL) OR ([VAT] = @Original_VAT)) AND ((@IsNull_BRUTTO " +
                "= 1 AND [BRUTTO] IS NULL) OR ([BRUTTO] = @Original_BRUTTO)) AND ((@IsNull_TYTUL " +
                "= 1 AND [TYTUL] IS NULL) OR ([TYTUL] = @Original_TYTUL)) AND ((@IsNull_NR_WYDANI" +
                "A = 1 AND [NR_WYDANIA] IS NULL) OR ([NR_WYDANIA] = @Original_NR_WYDANIA)) AND ((" +
                "@IsNull_TYP = 1 AND [TYP] IS NULL) OR ([TYP] = @Original_TYP)) AND ((@IsNull_POD" +
                "TYP = 1 AND [PODTYP] IS NULL) OR ([PODTYP] = @Original_PODTYP)));\r\nSELECT ID_FAK" +
                "TURA_DETAILS, ID_FAKTURY, ROK, MIESIAC, NAZWA_USLUGI, SYMBOL_SWW, JM, ILOSC, CEN" +
                "A_JEDN, UPUST_PR, UPUST_NETTO, NETTO, S_VAT, VAT, BRUTTO, TYTUL, NR_WYDANIA, TYP" +
                ", PODTYP FROM FAKTURA_DETAILS WHERE (ID_FAKTURA_DETAILS = @ID_FAKTURA_DETAILS)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MIESIAC", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NAZWA_USLUGI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SYMBOL_SWW", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CENA_JEDN", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UPUST_PR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UPUST_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@S_VAT", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VAT", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BRUTTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NR_WYDANIA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURA_DETAILS", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURA_DETAILS", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ROK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ROK", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MIESIAC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MIESIAC", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MIESIAC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NAZWA_USLUGI", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NAZWA_USLUGI", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NAZWA_USLUGI", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SYMBOL_SWW", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SYMBOL_SWW", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SYMBOL_SWW", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_JM", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_JM", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JM", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ILOSC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ILOSC", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CENA_JEDN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CENA_JEDN", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CENA_JEDN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UPUST_PR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UPUST_PR", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_PR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UPUST_NETTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UPUST_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UPUST_NETTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NETTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NETTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NETTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_S_VAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_S_VAT", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "S_VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VAT", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BRUTTO", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BRUTTO", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BRUTTO", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TYTUL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TYTUL", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYTUL", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NR_WYDANIA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NR_WYDANIA", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NR_WYDANIA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PODTYP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PODTYP", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PODTYP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FAKTURA_DETAILS", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURA_DETAILS", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitConnection() {
            this._connection = new global::System.Data.SqlClient.SqlConnection();
            this._connection.ConnectionString = global::ExportFaktur.Properties.Settings.Default.BAZA_REKLAMConnectionString;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitCommandCollection() {
            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[0].Connection = this.Connection;
            this._commandCollection[0].CommandText = "SELECT ID_FAKTURA_DETAILS, ID_FAKTURY, ROK, MIESIAC, NAZWA_USLUGI, SYMBOL_SWW, JM" +
                ", ILOSC, CENA_JEDN, UPUST_PR, UPUST_NETTO, NETTO, S_VAT, VAT, BRUTTO, TYTUL, NR_" +
                "WYDANIA, TYP, PODTYP FROM dbo.FAKTURA_DETAILS";
            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[1].Connection = this.Connection;
            this._commandCollection[1].CommandText = "SELECT ID_FAKTURA_DETAILS, ID_FAKTURY, ROK, MIESIAC, NAZWA_USLUGI, SYMBOL_SWW, JM" +
                ", ILOSC, CENA_JEDN, UPUST_PR, UPUST_NETTO, NETTO, S_VAT, VAT, BRUTTO, TYTUL, NR_" +
                "WYDANIA, TYP, PODTYP FROM dbo.FAKTURA_DETAILS where Id_faktury = @idFaktury";
            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
            this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFaktury", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
        public virtual int Fill(EXPODataSet.FAKTURA_DETAILSDataTable dataTable) {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
        public virtual EXPODataSet.FAKTURA_DETAILSDataTable GetData() {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            EXPODataSet.FAKTURA_DETAILSDataTable dataTable = new EXPODataSet.FAKTURA_DETAILSDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
        public virtual int FillByIdFaktury(EXPODataSet.FAKTURA_DETAILSDataTable dataTable, global::System.Nullable<int> idFaktury) {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            if ((idFaktury.HasValue == true)) {
                this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idFaktury.Value));
            }
            else {
                this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
        public virtual EXPODataSet.FAKTURA_DETAILSDataTable GetDataByIdFaktury(global::System.Nullable<int> idFaktury) {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            if ((idFaktury.HasValue == true)) {
                this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idFaktury.Value));
            }
            else {
                this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            EXPODataSet.FAKTURA_DETAILSDataTable dataTable = new EXPODataSet.FAKTURA_DETAILSDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet.FAKTURA_DETAILSDataTable dataTable) {
            return this.Adapter.Update(dataTable);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet dataSet) {
            return this.Adapter.Update(dataSet, "FAKTURA_DETAILS");
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow dataRow) {
            return this.Adapter.Update(new global::System.Data.DataRow[] {
                        dataRow});
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow[] dataRows) {
            return this.Adapter.Update(dataRows);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
        public virtual int Delete(
                    int Original_ID_FAKTURA_DETAILS, 
                    global::System.Nullable<int> Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_ROK, 
                    global::System.Nullable<short> Original_MIESIAC, 
                    string Original_NAZWA_USLUGI, 
                    string Original_SYMBOL_SWW, 
                    string Original_JM, 
                    global::System.Nullable<int> Original_ILOSC, 
                    global::System.Nullable<decimal> Original_CENA_JEDN, 
                    global::System.Nullable<double> Original_UPUST_PR, 
                    global::System.Nullable<decimal> Original_UPUST_NETTO, 
                    global::System.Nullable<decimal> Original_NETTO, 
                    global::System.Nullable<double> Original_S_VAT, 
                    global::System.Nullable<decimal> Original_VAT, 
                    global::System.Nullable<decimal> Original_BRUTTO, 
                    global::System.Nullable<short> Original_TYTUL, 
                    global::System.Nullable<short> Original_NR_WYDANIA, 
                    global::System.Nullable<short> Original_TYP, 
                    global::System.Nullable<short> Original_PODTYP) {
            this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_FAKTURA_DETAILS));
            if ((Original_ID_FAKTURY.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_FAKTURY.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((Original_ROK.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ROK.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            if ((Original_MIESIAC.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[6].Value = ((short)(Original_MIESIAC.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((Original_NAZWA_USLUGI == null)) {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_NAZWA_USLUGI));
            }
            if ((Original_SYMBOL_SWW == null)) {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_SYMBOL_SWW));
            }
            if ((Original_JM == null)) {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_JM));
            }
            if ((Original_ILOSC.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_ILOSC.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((Original_CENA_JEDN.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[16].Value = ((decimal)(Original_CENA_JEDN.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            if ((Original_UPUST_PR.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[18].Value = ((double)(Original_UPUST_PR.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            if ((Original_UPUST_NETTO.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[20].Value = ((decimal)(Original_UPUST_NETTO.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            if ((Original_NETTO.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[22].Value = ((decimal)(Original_NETTO.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            if ((Original_S_VAT.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[24].Value = ((double)(Original_S_VAT.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            if ((Original_VAT.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[26].Value = ((decimal)(Original_VAT.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((Original_BRUTTO.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[28].Value = ((decimal)(Original_BRUTTO.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            if ((Original_TYTUL.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[30].Value = ((short)(Original_TYTUL.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            if ((Original_NR_WYDANIA.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[32].Value = ((short)(Original_NR_WYDANIA.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            if ((Original_TYP.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[34].Value = ((short)(Original_TYP.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            if ((Original_PODTYP.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[36].Value = ((short)(Original_PODTYP.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
            if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.DeleteCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.DeleteCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
        public virtual int Insert(
                    global::System.Nullable<int> ID_FAKTURY, 
                    global::System.Nullable<int> ROK, 
                    global::System.Nullable<short> MIESIAC, 
                    string NAZWA_USLUGI, 
                    string SYMBOL_SWW, 
                    string JM, 
                    global::System.Nullable<int> ILOSC, 
                    global::System.Nullable<decimal> CENA_JEDN, 
                    global::System.Nullable<double> UPUST_PR, 
                    global::System.Nullable<decimal> UPUST_NETTO, 
                    global::System.Nullable<decimal> NETTO, 
                    global::System.Nullable<double> S_VAT, 
                    global::System.Nullable<decimal> VAT, 
                    global::System.Nullable<decimal> BRUTTO, 
                    global::System.Nullable<short> TYTUL, 
                    global::System.Nullable<short> NR_WYDANIA, 
                    global::System.Nullable<short> TYP, 
                    global::System.Nullable<short> PODTYP) {
            if ((ID_FAKTURY.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_FAKTURY.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            if ((ROK.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ROK.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            if ((MIESIAC.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[2].Value = ((short)(MIESIAC.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((NAZWA_USLUGI == null)) {
                this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[3].Value = ((string)(NAZWA_USLUGI));
            }
            if ((SYMBOL_SWW == null)) {
                this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[4].Value = ((string)(SYMBOL_SWW));
            }
            if ((JM == null)) {
                this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[5].Value = ((string)(JM));
            }
            if ((ILOSC.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ILOSC.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((CENA_JEDN.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(CENA_JEDN.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            if ((UPUST_PR.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[8].Value = ((double)(UPUST_PR.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            if ((UPUST_NETTO.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[9].Value = ((decimal)(UPUST_NETTO.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            if ((NETTO.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[10].Value = ((decimal)(NETTO.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            if ((S_VAT.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[11].Value = ((double)(S_VAT.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            if ((VAT.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[12].Value = ((decimal)(VAT.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            if ((BRUTTO.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[13].Value = ((decimal)(BRUTTO.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((TYTUL.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[14].Value = ((short)(TYTUL.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((NR_WYDANIA.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[15].Value = ((short)(NR_WYDANIA.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            if ((TYP.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[16].Value = ((short)(TYP.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            if ((PODTYP.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[17].Value = ((short)(PODTYP.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
            if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.InsertCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.InsertCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    global::System.Nullable<int> ID_FAKTURY, 
                    global::System.Nullable<int> ROK, 
                    global::System.Nullable<short> MIESIAC, 
                    string NAZWA_USLUGI, 
                    string SYMBOL_SWW, 
                    string JM, 
                    global::System.Nullable<int> ILOSC, 
                    global::System.Nullable<decimal> CENA_JEDN, 
                    global::System.Nullable<double> UPUST_PR, 
                    global::System.Nullable<decimal> UPUST_NETTO, 
                    global::System.Nullable<decimal> NETTO, 
                    global::System.Nullable<double> S_VAT, 
                    global::System.Nullable<decimal> VAT, 
                    global::System.Nullable<decimal> BRUTTO, 
                    global::System.Nullable<short> TYTUL, 
                    global::System.Nullable<short> NR_WYDANIA, 
                    global::System.Nullable<short> TYP, 
                    global::System.Nullable<short> PODTYP, 
                    int Original_ID_FAKTURA_DETAILS, 
                    global::System.Nullable<int> Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_ROK, 
                    global::System.Nullable<short> Original_MIESIAC, 
                    string Original_NAZWA_USLUGI, 
                    string Original_SYMBOL_SWW, 
                    string Original_JM, 
                    global::System.Nullable<int> Original_ILOSC, 
                    global::System.Nullable<decimal> Original_CENA_JEDN, 
                    global::System.Nullable<double> Original_UPUST_PR, 
                    global::System.Nullable<decimal> Original_UPUST_NETTO, 
                    global::System.Nullable<decimal> Original_NETTO, 
                    global::System.Nullable<double> Original_S_VAT, 
                    global::System.Nullable<decimal> Original_VAT, 
                    global::System.Nullable<decimal> Original_BRUTTO, 
                    global::System.Nullable<short> Original_TYTUL, 
                    global::System.Nullable<short> Original_NR_WYDANIA, 
                    global::System.Nullable<short> Original_TYP, 
                    global::System.Nullable<short> Original_PODTYP, 
                    int ID_FAKTURA_DETAILS) {
            if ((ID_FAKTURY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_FAKTURY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            if ((ROK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ROK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            if ((MIESIAC.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[2].Value = ((short)(MIESIAC.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            if ((NAZWA_USLUGI == null)) {
                this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(NAZWA_USLUGI));
            }
            if ((SYMBOL_SWW == null)) {
                this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(SYMBOL_SWW));
            }
            if ((JM == null)) {
                this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(JM));
            }
            if ((ILOSC.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ILOSC.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            if ((CENA_JEDN.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(CENA_JEDN.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            if ((UPUST_PR.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(UPUST_PR.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            if ((UPUST_NETTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(UPUST_NETTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            if ((NETTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(NETTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            if ((S_VAT.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(S_VAT.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            if ((VAT.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(VAT.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            if ((BRUTTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(BRUTTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((TYTUL.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[14].Value = ((short)(TYTUL.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            if ((NR_WYDANIA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[15].Value = ((short)(NR_WYDANIA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            if ((TYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[16].Value = ((short)(TYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            if ((PODTYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[17].Value = ((short)(PODTYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_ID_FAKTURA_DETAILS));
            if ((Original_ID_FAKTURY.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_ID_FAKTURY.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            if ((Original_ROK.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_ROK.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            if ((Original_MIESIAC.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[24].Value = ((short)(Original_MIESIAC.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            if ((Original_NAZWA_USLUGI == null)) {
                this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_NAZWA_USLUGI));
            }
            if ((Original_SYMBOL_SWW == null)) {
                this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_SYMBOL_SWW));
            }
            if ((Original_JM == null)) {
                this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_JM));
            }
            if ((Original_ILOSC.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_ILOSC.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            if ((Original_CENA_JEDN.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[34].Value = ((decimal)(Original_CENA_JEDN.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            if ((Original_UPUST_PR.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[36].Value = ((double)(Original_UPUST_PR.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            if ((Original_UPUST_NETTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[38].Value = ((decimal)(Original_UPUST_NETTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            if ((Original_NETTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[40].Value = ((decimal)(Original_NETTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
            }
            if ((Original_S_VAT.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[42].Value = ((double)(Original_S_VAT.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
            }
            if ((Original_VAT.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[44].Value = ((decimal)(Original_VAT.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
            }
            if ((Original_BRUTTO.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[46].Value = ((decimal)(Original_BRUTTO.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
            }
            if ((Original_TYTUL.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[48].Value = ((short)(Original_TYTUL.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
            }
            if ((Original_NR_WYDANIA.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[50].Value = ((short)(Original_NR_WYDANIA.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
            }
            if ((Original_TYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[52].Value = ((short)(Original_TYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
            }
            if ((Original_PODTYP.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[54].Value = ((short)(Original_PODTYP.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
            }
            this.Adapter.UpdateCommand.Parameters[55].Value = ((int)(ID_FAKTURA_DETAILS));
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
            if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.UpdateCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.UpdateCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    global::System.Nullable<int> ID_FAKTURY, 
                    global::System.Nullable<int> ROK, 
                    global::System.Nullable<short> MIESIAC, 
                    string NAZWA_USLUGI, 
                    string SYMBOL_SWW, 
                    string JM, 
                    global::System.Nullable<int> ILOSC, 
                    global::System.Nullable<decimal> CENA_JEDN, 
                    global::System.Nullable<double> UPUST_PR, 
                    global::System.Nullable<decimal> UPUST_NETTO, 
                    global::System.Nullable<decimal> NETTO, 
                    global::System.Nullable<double> S_VAT, 
                    global::System.Nullable<decimal> VAT, 
                    global::System.Nullable<decimal> BRUTTO, 
                    global::System.Nullable<short> TYTUL, 
                    global::System.Nullable<short> NR_WYDANIA, 
                    global::System.Nullable<short> TYP, 
                    global::System.Nullable<short> PODTYP, 
                    int Original_ID_FAKTURA_DETAILS, 
                    global::System.Nullable<int> Original_ID_FAKTURY, 
                    global::System.Nullable<int> Original_ROK, 
                    global::System.Nullable<short> Original_MIESIAC, 
                    string Original_NAZWA_USLUGI, 
                    string Original_SYMBOL_SWW, 
                    string Original_JM, 
                    global::System.Nullable<int> Original_ILOSC, 
                    global::System.Nullable<decimal> Original_CENA_JEDN, 
                    global::System.Nullable<double> Original_UPUST_PR, 
                    global::System.Nullable<decimal> Original_UPUST_NETTO, 
                    global::System.Nullable<decimal> Original_NETTO, 
                    global::System.Nullable<double> Original_S_VAT, 
                    global::System.Nullable<decimal> Original_VAT, 
                    global::System.Nullable<decimal> Original_BRUTTO, 
                    global::System.Nullable<short> Original_TYTUL, 
                    global::System.Nullable<short> Original_NR_WYDANIA, 
                    global::System.Nullable<short> Original_TYP, 
                    global::System.Nullable<short> Original_PODTYP) {
            return this.Update(ID_FAKTURY, ROK, MIESIAC, NAZWA_USLUGI, SYMBOL_SWW, JM, ILOSC, CENA_JEDN, UPUST_PR, UPUST_NETTO, NETTO, S_VAT, VAT, BRUTTO, TYTUL, NR_WYDANIA, TYP, PODTYP, Original_ID_FAKTURA_DETAILS, Original_ID_FAKTURY, Original_ROK, Original_MIESIAC, Original_NAZWA_USLUGI, Original_SYMBOL_SWW, Original_JM, Original_ILOSC, Original_CENA_JEDN, Original_UPUST_PR, Original_UPUST_NETTO, Original_NETTO, Original_S_VAT, Original_VAT, Original_BRUTTO, Original_TYTUL, Original_NR_WYDANIA, Original_TYP, Original_PODTYP, Original_ID_FAKTURA_DETAILS);
        }
    }
    
    /// <summary>
    ///Represents the connection and commands used to retrieve and save data.
    ///</summary>
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
    [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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
    public partial class KLIENCITableAdapter : global::System.ComponentModel.Component {
        
        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
        
        private global::System.Data.SqlClient.SqlConnection _connection;
        
        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
        
        private bool _clearBeforeFill;
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public KLIENCITableAdapter() {
            this.ClearBeforeFill = true;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private global::System.Data.SqlClient.SqlDataAdapter Adapter {
            get {
                if ((this._adapter == null)) {
                    this.InitAdapter();
                }
                return this._adapter;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        internal global::System.Data.SqlClient.SqlConnection Connection {
            get {
                if ((this._connection == null)) {
                    this.InitConnection();
                }
                return this._connection;
            }
            set {
                this._connection = value;
                if ((this.Adapter.InsertCommand != null)) {
                    this.Adapter.InsertCommand.Connection = value;
                }
                if ((this.Adapter.DeleteCommand != null)) {
                    this.Adapter.DeleteCommand.Connection = value;
                }
                if ((this.Adapter.UpdateCommand != null)) {
                    this.Adapter.UpdateCommand.Connection = value;
                }
                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
                    if ((this.CommandCollection[i] != null)) {
                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
                    }
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
            get {
                if ((this._commandCollection == null)) {
                    this.InitCommandCollection();
                }
                return this._commandCollection;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public bool ClearBeforeFill {
            get {
                return this._clearBeforeFill;
            }
            set {
                this._clearBeforeFill = value;
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitAdapter() {
            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
            tableMapping.SourceTable = "Table";
            tableMapping.DataSetTable = "KLIENCI";
            tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
            tableMapping.ColumnMappings.Add("FirstName", "FirstName");
            tableMapping.ColumnMappings.Add("LastName", "LastName");
            tableMapping.ColumnMappings.Add("OrganizationName", "OrganizationName");
            tableMapping.ColumnMappings.Add("Address", "Address");
            tableMapping.ColumnMappings.Add("City", "City");
            tableMapping.ColumnMappings.Add("State", "State");
            tableMapping.ColumnMappings.Add("PostalCode", "PostalCode");
            tableMapping.ColumnMappings.Add("Country", "Country");
            tableMapping.ColumnMappings.Add("Nip", "Nip");
            tableMapping.ColumnMappings.Add("ContactName", "ContactName");
            tableMapping.ColumnMappings.Add("PhoneNumber", "PhoneNumber");
            tableMapping.ColumnMappings.Add("FaxNumber", "FaxNumber");
            tableMapping.ColumnMappings.Add("Note", "Note");
            tableMapping.ColumnMappings.Add("data", "data");
            tableMapping.ColumnMappings.Add("osw_nr", "osw_nr");
            tableMapping.ColumnMappings.Add("osw_wazne_do", "osw_wazne_do");
            tableMapping.ColumnMappings.Add("Adres_Fkatura", "Adres_Fkatura");
            tableMapping.ColumnMappings.Add("Old_ID", "Old_ID");
            tableMapping.ColumnMappings.Add("Adres_Kor", "Adres_Kor");
            tableMapping.ColumnMappings.Add("Platnik_VAT", "Platnik_VAT");
            tableMapping.ColumnMappings.Add("Aktywny", "Aktywny");
            tableMapping.ColumnMappings.Add("Email", "Email");
            tableMapping.ColumnMappings.Add("UserName", "UserName");
            tableMapping.ColumnMappings.Add("Last_Modify", "Last_Modify");
            tableMapping.ColumnMappings.Add("Modify_User", "Modify_User");
            tableMapping.ColumnMappings.Add("http", "http");
            tableMapping.ColumnMappings.Add("VIES", "VIES");
            tableMapping.ColumnMappings.Add("regon", "regon");
            tableMapping.ColumnMappings.Add("krs", "krs");
            tableMapping.ColumnMappings.Add("nipKraj", "nipKraj");
            this._adapter.TableMappings.Add(tableMapping);
            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.DeleteCommand.Connection = this.Connection;
            this._adapter.DeleteCommand.CommandText = "DELETE FROM [KLIENCI] WHERE (([CustomerID] = @Original_CustomerID) AND ((@IsNull_" +
                "FirstName = 1 AND [FirstName] IS NULL) OR ([FirstName] = @Original_FirstName)) A" +
                "ND ((@IsNull_LastName = 1 AND [LastName] IS NULL) OR ([LastName] = @Original_Las" +
                "tName)) AND ((@IsNull_OrganizationName = 1 AND [OrganizationName] IS NULL) OR ([" +
                "OrganizationName] = @Original_OrganizationName)) AND ((@IsNull_Address = 1 AND [" +
                "Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_City = 1 AND" +
                " [City] IS NULL) OR ([City] = @Original_City)) AND ((@IsNull_State = 1 AND [Stat" +
                "e] IS NULL) OR ([State] = @Original_State)) AND ((@IsNull_PostalCode = 1 AND [Po" +
                "stalCode] IS NULL) OR ([PostalCode] = @Original_PostalCode)) AND ((@IsNull_Count" +
                "ry = 1 AND [Country] IS NULL) OR ([Country] = @Original_Country)) AND ((@IsNull_" +
                "Nip = 1 AND [Nip] IS NULL) OR ([Nip] = @Original_Nip)) AND ((@IsNull_ContactName" +
                " = 1 AND [ContactName] IS NULL) OR ([ContactName] = @Original_ContactName)) AND " +
                "((@IsNull_PhoneNumber = 1 AND [PhoneNumber] IS NULL) OR ([PhoneNumber] = @Origin" +
                "al_PhoneNumber)) AND ((@IsNull_FaxNumber = 1 AND [FaxNumber] IS NULL) OR ([FaxNu" +
                "mber] = @Original_FaxNumber)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([No" +
                "te] = @Original_Note)) AND ((@IsNull_data = 1 AND [data] IS NULL) OR ([data] = @" +
                "Original_data)) AND ((@IsNull_osw_nr = 1 AND [osw_nr] IS NULL) OR ([osw_nr] = @O" +
                "riginal_osw_nr)) AND ((@IsNull_osw_wazne_do = 1 AND [osw_wazne_do] IS NULL) OR (" +
                "[osw_wazne_do] = @Original_osw_wazne_do)) AND ((@IsNull_Adres_Fkatura = 1 AND [A" +
                "dres_Fkatura] IS NULL) OR ([Adres_Fkatura] = @Original_Adres_Fkatura)) AND ((@Is" +
                "Null_Old_ID = 1 AND [Old_ID] IS NULL) OR ([Old_ID] = @Original_Old_ID)) AND ((@I" +
                "sNull_Adres_Kor = 1 AND [Adres_Kor] IS NULL) OR ([Adres_Kor] = @Original_Adres_K" +
                "or)) AND ([Platnik_VAT] = @Original_Platnik_VAT) AND ([Aktywny] = @Original_Akty" +
                "wny) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)" +
                ") AND ((@IsNull_UserName = 1 AND [UserName] IS NULL) OR ([UserName] = @Original_" +
                "UserName)) AND ((@IsNull_Last_Modify = 1 AND [Last_Modify] IS NULL) OR ([Last_Mo" +
                "dify] = @Original_Last_Modify)) AND ((@IsNull_Modify_User = 1 AND [Modify_User] " +
                "IS NULL) OR ([Modify_User] = @Original_Modify_User)) AND ((@IsNull_http = 1 AND " +
                "[http] IS NULL) OR ([http] = @Original_http)) AND ((@IsNull_VIES = 1 AND [VIES] " +
                "IS NULL) OR ([VIES] = @Original_VIES)) AND ((@IsNull_regon = 1 AND [regon] IS NU" +
                "LL) OR ([regon] = @Original_regon)) AND ((@IsNull_krs = 1 AND [krs] IS NULL) OR " +
                "([krs] = @Original_krs)) AND ((@IsNull_nipKraj = 1 AND [nipKraj] IS NULL) OR ([n" +
                "ipKraj] = @Original_nipKraj)))";
            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FirstName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrganizationName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_State", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_State", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostalCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Country", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Country", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nip", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FaxNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FaxNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_osw_nr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_osw_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_osw_wazne_do", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_osw_wazne_do", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Adres_Fkatura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Adres_Fkatura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Adres_Kor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Adres_Kor", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Platnik_VAT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Platnik_VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Aktywny", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Aktywny", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UserName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Last_Modify", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Last_Modify", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Modify_User", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Modify_User", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_http", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_http", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VIES", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VIES", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_regon", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_regon", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_krs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_krs", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nipKraj", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nipKraj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.InsertCommand.Connection = this.Connection;
            this._adapter.InsertCommand.CommandText = @"INSERT INTO [KLIENCI] ([FirstName], [LastName], [OrganizationName], [Address], [City], [State], [PostalCode], [Country], [Nip], [ContactName], [PhoneNumber], [FaxNumber], [Note], [data], [osw_nr], [osw_wazne_do], [Adres_Fkatura], [Old_ID], [Adres_Kor], [Platnik_VAT], [Aktywny], [Email], [UserName], [Last_Modify], [Modify_User], [http], [VIES], [regon], [krs], [nipKraj]) VALUES (@FirstName, @LastName, @OrganizationName, @Address, @City, @State, @PostalCode, @Country, @Nip, @ContactName, @PhoneNumber, @FaxNumber, @Note, @data, @osw_nr, @osw_wazne_do, @Adres_Fkatura, @Old_ID, @Adres_Kor, @Platnik_VAT, @Aktywny, @Email, @UserName, @Last_Modify, @Modify_User, @http, @VIES, @regon, @krs, @nipKraj);
SELECT CustomerID, FirstName, LastName, OrganizationName, Address, City, State, PostalCode, Country, Nip, ContactName, PhoneNumber, FaxNumber, Note, data, osw_nr, osw_wazne_do, Adres_Fkatura, Old_ID, Adres_Kor, Platnik_VAT, Aktywny, Email, UserName, Last_Modify, Modify_User, http, VIES, regon, krs, nipKraj FROM KLIENCI WHERE (CustomerID = SCOPE_IDENTITY())";
            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrganizationName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@State", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostalCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Country", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FaxNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@osw_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@osw_wazne_do", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Adres_Fkatura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Adres_Kor", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Platnik_VAT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Platnik_VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Aktywny", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Aktywny", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Last_Modify", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Modify_User", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@http", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VIES", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@regon", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@krs", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nipKraj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
            this._adapter.UpdateCommand.Connection = this.Connection;
            this._adapter.UpdateCommand.CommandText = "UPDATE [KLIENCI] SET [FirstName] = @FirstName, [LastName] = @LastName, [Organizat" +
                "ionName] = @OrganizationName, [Address] = @Address, [City] = @City, [State] = @S" +
                "tate, [PostalCode] = @PostalCode, [Country] = @Country, [Nip] = @Nip, [ContactNa" +
                "me] = @ContactName, [PhoneNumber] = @PhoneNumber, [FaxNumber] = @FaxNumber, [Not" +
                "e] = @Note, [data] = @data, [osw_nr] = @osw_nr, [osw_wazne_do] = @osw_wazne_do, " +
                "[Adres_Fkatura] = @Adres_Fkatura, [Old_ID] = @Old_ID, [Adres_Kor] = @Adres_Kor, " +
                "[Platnik_VAT] = @Platnik_VAT, [Aktywny] = @Aktywny, [Email] = @Email, [UserName]" +
                " = @UserName, [Last_Modify] = @Last_Modify, [Modify_User] = @Modify_User, [http]" +
                " = @http, [VIES] = @VIES, [regon] = @regon, [krs] = @krs, [nipKraj] = @nipKraj W" +
                "HERE (([CustomerID] = @Original_CustomerID) AND ((@IsNull_FirstName = 1 AND [Fir" +
                "stName] IS NULL) OR ([FirstName] = @Original_FirstName)) AND ((@IsNull_LastName " +
                "= 1 AND [LastName] IS NULL) OR ([LastName] = @Original_LastName)) AND ((@IsNull_" +
                "OrganizationName = 1 AND [OrganizationName] IS NULL) OR ([OrganizationName] = @O" +
                "riginal_OrganizationName)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR (" +
                "[Address] = @Original_Address)) AND ((@IsNull_City = 1 AND [City] IS NULL) OR ([" +
                "City] = @Original_City)) AND ((@IsNull_State = 1 AND [State] IS NULL) OR ([State" +
                "] = @Original_State)) AND ((@IsNull_PostalCode = 1 AND [PostalCode] IS NULL) OR " +
                "([PostalCode] = @Original_PostalCode)) AND ((@IsNull_Country = 1 AND [Country] I" +
                "S NULL) OR ([Country] = @Original_Country)) AND ((@IsNull_Nip = 1 AND [Nip] IS N" +
                "ULL) OR ([Nip] = @Original_Nip)) AND ((@IsNull_ContactName = 1 AND [ContactName]" +
                " IS NULL) OR ([ContactName] = @Original_ContactName)) AND ((@IsNull_PhoneNumber " +
                "= 1 AND [PhoneNumber] IS NULL) OR ([PhoneNumber] = @Original_PhoneNumber)) AND (" +
                "(@IsNull_FaxNumber = 1 AND [FaxNumber] IS NULL) OR ([FaxNumber] = @Original_FaxN" +
                "umber)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note))" +
                " AND ((@IsNull_data = 1 AND [data] IS NULL) OR ([data] = @Original_data)) AND ((" +
                "@IsNull_osw_nr = 1 AND [osw_nr] IS NULL) OR ([osw_nr] = @Original_osw_nr)) AND (" +
                "(@IsNull_osw_wazne_do = 1 AND [osw_wazne_do] IS NULL) OR ([osw_wazne_do] = @Orig" +
                "inal_osw_wazne_do)) AND ((@IsNull_Adres_Fkatura = 1 AND [Adres_Fkatura] IS NULL)" +
                " OR ([Adres_Fkatura] = @Original_Adres_Fkatura)) AND ((@IsNull_Old_ID = 1 AND [O" +
                "ld_ID] IS NULL) OR ([Old_ID] = @Original_Old_ID)) AND ((@IsNull_Adres_Kor = 1 AN" +
                "D [Adres_Kor] IS NULL) OR ([Adres_Kor] = @Original_Adres_Kor)) AND ([Platnik_VAT" +
                "] = @Original_Platnik_VAT) AND ([Aktywny] = @Original_Aktywny) AND ((@IsNull_Ema" +
                "il = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_UserNa" +
                "me = 1 AND [UserName] IS NULL) OR ([UserName] = @Original_UserName)) AND ((@IsNu" +
                "ll_Last_Modify = 1 AND [Last_Modify] IS NULL) OR ([Last_Modify] = @Original_Last" +
                "_Modify)) AND ((@IsNull_Modify_User = 1 AND [Modify_User] IS NULL) OR ([Modify_U" +
                "ser] = @Original_Modify_User)) AND ((@IsNull_http = 1 AND [http] IS NULL) OR ([h" +
                "ttp] = @Original_http)) AND ((@IsNull_VIES = 1 AND [VIES] IS NULL) OR ([VIES] = " +
                "@Original_VIES)) AND ((@IsNull_regon = 1 AND [regon] IS NULL) OR ([regon] = @Ori" +
                "ginal_regon)) AND ((@IsNull_krs = 1 AND [krs] IS NULL) OR ([krs] = @Original_krs" +
                ")) AND ((@IsNull_nipKraj = 1 AND [nipKraj] IS NULL) OR ([nipKraj] = @Original_ni" +
                "pKraj)));\r\nSELECT CustomerID, FirstName, LastName, OrganizationName, Address, Ci" +
                "ty, State, PostalCode, Country, Nip, ContactName, PhoneNumber, FaxNumber, Note, " +
                "data, osw_nr, osw_wazne_do, Adres_Fkatura, Old_ID, Adres_Kor, Platnik_VAT, Aktyw" +
                "ny, Email, UserName, Last_Modify, Modify_User, http, VIES, regon, krs, nipKraj F" +
                "ROM KLIENCI WHERE (CustomerID = @CustomerID)";
            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrganizationName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@State", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostalCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Country", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhoneNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FaxNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@data", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@osw_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@osw_wazne_do", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Adres_Fkatura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Adres_Kor", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Platnik_VAT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Platnik_VAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Aktywny", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Aktywny", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Last_Modify", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Modify_User", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@http", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VIES", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@regon", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@krs", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nipKraj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FirstName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrganizationName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrganizationName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrganizationName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_State", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_State", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "State", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostalCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostalCode", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostalCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Country", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Country", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Country", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Nip", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nip", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nip", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhoneNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhoneNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhoneNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_FaxNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FaxNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FaxNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_data", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_data", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "data", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_osw_nr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_osw_nr", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_nr", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_osw_wazne_do", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_osw_wazne_do", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "osw_wazne_do", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Adres_Fkatura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Adres_Fkatura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Fkatura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Old_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Old_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Adres_Kor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Adres_Kor", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Adres_Kor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Platnik_VAT", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Platnik_VAT", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Aktywny", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Aktywny", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UserName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Last_Modify", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Last_Modify", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Last_Modify", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Modify_User", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Modify_User", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Modify_User", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_http", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_http", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "http", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_VIES", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VIES", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VIES", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_regon", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_regon", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "regon", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_krs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_krs", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "krs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nipKraj", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nipKraj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nipKraj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitConnection() {
            this._connection = new global::System.Data.SqlClient.SqlConnection();
            this._connection.ConnectionString = global::ExportFaktur.Properties.Settings.Default.BAZA_REKLAMConnectionString;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitCommandCollection() {
            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[0].Connection = this.Connection;
            this._commandCollection[0].CommandText = @"SELECT        CustomerID, FirstName, LastName, OrganizationName, Address, City, State, PostalCode, Country, Nip, ContactName, PhoneNumber, FaxNumber, Note, data, 
                         osw_nr, osw_wazne_do, Adres_Fkatura, Old_ID, Adres_Kor, Platnik_VAT, Aktywny, Email, UserName, Last_Modify, Modify_User, http, VIES, regon, krs, 
                         nipKraj
FROM            KLIENCI";
            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[1].Connection = this.Connection;
            this._commandCollection[1].CommandText = @"SELECT Address, Adres_Fkatura, Adres_Kor, Aktywny, City, ContactName, Country, CustomerID, Email, FaxNumber, FirstName, LastName, Last_Modify, Modify_User, Nip, Note, Old_ID, OrganizationName, PhoneNumber, Platnik_VAT, PostalCode, State, UserName, VIES, data, http, krs, nipKraj, osw_nr, osw_wazne_do, regon FROM KLIENCI WHERE (CustomerID = @custId)";
            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
            this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@custId", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
            this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
            this._commandCollection[2].Connection = this.Connection;
            this._commandCollection[2].CommandText = @"SELECT TOP 10 Address, Adres_Fkatura, Adres_Kor, Aktywny, City, ContactName, Country, CustomerID, Email, FaxNumber, FirstName, LastName, Last_Modify, Modify_User, Nip, Note, Old_ID, OrganizationName, PhoneNumber, Platnik_VAT, PostalCode, State, UserName, VIES, data, http, krs, nipKraj, osw_nr, osw_wazne_do, regon FROM KLIENCI";
            this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
        public virtual int Fill(EXPODataSet.KLIENCIDataTable dataTable) {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
        public virtual EXPODataSet.KLIENCIDataTable GetData() {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            EXPODataSet.KLIENCIDataTable dataTable = new EXPODataSet.KLIENCIDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
        public virtual int FillByCustomerId(EXPODataSet.KLIENCIDataTable dataTable, int custId) {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            this.Adapter.SelectCommand.Parameters[0].Value = ((int)(custId));
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
        public virtual EXPODataSet.KLIENCIDataTable GetDataByCustomerId(int custId) {
            this.Adapter.SelectCommand = this.CommandCollection[1];
            this.Adapter.SelectCommand.Parameters[0].Value = ((int)(custId));
            EXPODataSet.KLIENCIDataTable dataTable = new EXPODataSet.KLIENCIDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
        public virtual int FillByTop10(EXPODataSet.KLIENCIDataTable dataTable) {
            this.Adapter.SelectCommand = this.CommandCollection[2];
            if ((this.ClearBeforeFill == true)) {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);
            return returnValue;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
        public virtual EXPODataSet.KLIENCIDataTable GetDataByTop10() {
            this.Adapter.SelectCommand = this.CommandCollection[2];
            EXPODataSet.KLIENCIDataTable dataTable = new EXPODataSet.KLIENCIDataTable();
            this.Adapter.Fill(dataTable);
            return dataTable;
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet.KLIENCIDataTable dataTable) {
            return this.Adapter.Update(dataTable);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(EXPODataSet dataSet) {
            return this.Adapter.Update(dataSet, "KLIENCI");
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow dataRow) {
            return this.Adapter.Update(new global::System.Data.DataRow[] {
                        dataRow});
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        public virtual int Update(global::System.Data.DataRow[] dataRows) {
            return this.Adapter.Update(dataRows);
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
        public virtual int Delete(
                    int Original_CustomerID, 
                    string Original_FirstName, 
                    string Original_LastName, 
                    string Original_OrganizationName, 
                    string Original_Address, 
                    string Original_City, 
                    string Original_State, 
                    string Original_PostalCode, 
                    string Original_Country, 
                    string Original_Nip, 
                    string Original_ContactName, 
                    string Original_PhoneNumber, 
                    string Original_FaxNumber, 
                    string Original_Note, 
                    global::System.Nullable<global::System.DateTime> Original_data, 
                    string Original_osw_nr, 
                    global::System.Nullable<global::System.DateTime> Original_osw_wazne_do, 
                    string Original_Adres_Fkatura, 
                    global::System.Nullable<int> Original_Old_ID, 
                    string Original_Adres_Kor, 
                    bool Original_Platnik_VAT, 
                    bool Original_Aktywny, 
                    string Original_Email, 
                    string Original_UserName, 
                    global::System.Nullable<global::System.DateTime> Original_Last_Modify, 
                    string Original_Modify_User, 
                    string Original_http, 
                    global::System.Nullable<short> Original_VIES, 
                    string Original_regon, 
                    string Original_krs, 
                    string Original_nipKraj) {
            this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_CustomerID));
            if ((Original_FirstName == null)) {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_FirstName));
            }
            if ((Original_LastName == null)) {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_LastName));
            }
            if ((Original_OrganizationName == null)) {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_OrganizationName));
            }
            if ((Original_Address == null)) {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Address));
            }
            if ((Original_City == null)) {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_City));
            }
            if ((Original_State == null)) {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_State));
            }
            if ((Original_PostalCode == null)) {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_PostalCode));
            }
            if ((Original_Country == null)) {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Country));
            }
            if ((Original_Nip == null)) {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_Nip));
            }
            if ((Original_ContactName == null)) {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_ContactName));
            }
            if ((Original_PhoneNumber == null)) {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_PhoneNumber));
            }
            if ((Original_FaxNumber == null)) {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_FaxNumber));
            }
            if ((Original_Note == null)) {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_Note));
            }
            if ((Original_data.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[28].Value = ((System.DateTime)(Original_data.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            if ((Original_osw_nr == null)) {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_osw_nr));
            }
            if ((Original_osw_wazne_do.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[32].Value = ((System.DateTime)(Original_osw_wazne_do.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            if ((Original_Adres_Fkatura == null)) {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[34].Value = ((string)(Original_Adres_Fkatura));
            }
            if ((Original_Old_ID.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[36].Value = ((int)(Original_Old_ID.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            if ((Original_Adres_Kor == null)) {
                this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[38].Value = ((string)(Original_Adres_Kor));
            }
            this.Adapter.DeleteCommand.Parameters[39].Value = ((bool)(Original_Platnik_VAT));
            this.Adapter.DeleteCommand.Parameters[40].Value = ((bool)(Original_Aktywny));
            if ((Original_Email == null)) {
                this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[42].Value = ((string)(Original_Email));
            }
            if ((Original_UserName == null)) {
                this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[44].Value = ((string)(Original_UserName));
            }
            if ((Original_Last_Modify.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[46].Value = ((System.DateTime)(Original_Last_Modify.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value;
            }
            if ((Original_Modify_User == null)) {
                this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[48].Value = ((string)(Original_Modify_User));
            }
            if ((Original_http == null)) {
                this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[50].Value = ((string)(Original_http));
            }
            if ((Original_VIES.HasValue == true)) {
                this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[52].Value = ((short)(Original_VIES.Value));
            }
            else {
                this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[52].Value = global::System.DBNull.Value;
            }
            if ((Original_regon == null)) {
                this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[54].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[54].Value = ((string)(Original_regon));
            }
            if ((Original_krs == null)) {
                this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[56].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[56].Value = ((string)(Original_krs));
            }
            if ((Original_nipKraj == null)) {
                this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(1));
                this.Adapter.DeleteCommand.Parameters[58].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(0));
                this.Adapter.DeleteCommand.Parameters[58].Value = ((string)(Original_nipKraj));
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
            if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.DeleteCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.DeleteCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
        public virtual int Insert(
                    string FirstName, 
                    string LastName, 
                    string OrganizationName, 
                    string Address, 
                    string City, 
                    string State, 
                    string PostalCode, 
                    string Country, 
                    string Nip, 
                    string ContactName, 
                    string PhoneNumber, 
                    string FaxNumber, 
                    string Note, 
                    global::System.Nullable<global::System.DateTime> data, 
                    string osw_nr, 
                    global::System.Nullable<global::System.DateTime> osw_wazne_do, 
                    string Adres_Fkatura, 
                    global::System.Nullable<int> Old_ID, 
                    string Adres_Kor, 
                    bool Platnik_VAT, 
                    bool Aktywny, 
                    string Email, 
                    string UserName, 
                    global::System.Nullable<global::System.DateTime> Last_Modify, 
                    string Modify_User, 
                    string http, 
                    global::System.Nullable<short> VIES, 
                    string regon, 
                    string krs, 
                    string nipKraj) {
            if ((FirstName == null)) {
                this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
            }
            if ((LastName == null)) {
                this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
            }
            if ((OrganizationName == null)) {
                this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[2].Value = ((string)(OrganizationName));
            }
            if ((Address == null)) {
                this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Address));
            }
            if ((City == null)) {
                this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[4].Value = ((string)(City));
            }
            if ((State == null)) {
                this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[5].Value = ((string)(State));
            }
            if ((PostalCode == null)) {
                this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[6].Value = ((string)(PostalCode));
            }
            if ((Country == null)) {
                this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Country));
            }
            if ((Nip == null)) {
                this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Nip));
            }
            if ((ContactName == null)) {
                this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ContactName));
            }
            if ((PhoneNumber == null)) {
                this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[10].Value = ((string)(PhoneNumber));
            }
            if ((FaxNumber == null)) {
                this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[11].Value = ((string)(FaxNumber));
            }
            if ((Note == null)) {
                this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Note));
            }
            if ((data.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(data.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((osw_nr == null)) {
                this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[14].Value = ((string)(osw_nr));
            }
            if ((osw_wazne_do.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[15].Value = ((System.DateTime)(osw_wazne_do.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            if ((Adres_Fkatura == null)) {
                this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[16].Value = ((string)(Adres_Fkatura));
            }
            if ((Old_ID.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[17].Value = ((int)(Old_ID.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            if ((Adres_Kor == null)) {
                this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[18].Value = ((string)(Adres_Kor));
            }
            this.Adapter.InsertCommand.Parameters[19].Value = ((bool)(Platnik_VAT));
            this.Adapter.InsertCommand.Parameters[20].Value = ((bool)(Aktywny));
            if ((Email == null)) {
                this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[21].Value = ((string)(Email));
            }
            if ((UserName == null)) {
                this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[22].Value = ((string)(UserName));
            }
            if ((Last_Modify.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[23].Value = ((System.DateTime)(Last_Modify.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value;
            }
            if ((Modify_User == null)) {
                this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[24].Value = ((string)(Modify_User));
            }
            if ((http == null)) {
                this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[25].Value = ((string)(http));
            }
            if ((VIES.HasValue == true)) {
                this.Adapter.InsertCommand.Parameters[26].Value = ((short)(VIES.Value));
            }
            else {
                this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((regon == null)) {
                this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[27].Value = ((string)(regon));
            }
            if ((krs == null)) {
                this.Adapter.InsertCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[28].Value = ((string)(krs));
            }
            if ((nipKraj == null)) {
                this.Adapter.InsertCommand.Parameters[29].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.InsertCommand.Parameters[29].Value = ((string)(nipKraj));
            }
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
            if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.InsertCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.InsertCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    string FirstName, 
                    string LastName, 
                    string OrganizationName, 
                    string Address, 
                    string City, 
                    string State, 
                    string PostalCode, 
                    string Country, 
                    string Nip, 
                    string ContactName, 
                    string PhoneNumber, 
                    string FaxNumber, 
                    string Note, 
                    global::System.Nullable<global::System.DateTime> data, 
                    string osw_nr, 
                    global::System.Nullable<global::System.DateTime> osw_wazne_do, 
                    string Adres_Fkatura, 
                    global::System.Nullable<int> Old_ID, 
                    string Adres_Kor, 
                    bool Platnik_VAT, 
                    bool Aktywny, 
                    string Email, 
                    string UserName, 
                    global::System.Nullable<global::System.DateTime> Last_Modify, 
                    string Modify_User, 
                    string http, 
                    global::System.Nullable<short> VIES, 
                    string regon, 
                    string krs, 
                    string nipKraj, 
                    int Original_CustomerID, 
                    string Original_FirstName, 
                    string Original_LastName, 
                    string Original_OrganizationName, 
                    string Original_Address, 
                    string Original_City, 
                    string Original_State, 
                    string Original_PostalCode, 
                    string Original_Country, 
                    string Original_Nip, 
                    string Original_ContactName, 
                    string Original_PhoneNumber, 
                    string Original_FaxNumber, 
                    string Original_Note, 
                    global::System.Nullable<global::System.DateTime> Original_data, 
                    string Original_osw_nr, 
                    global::System.Nullable<global::System.DateTime> Original_osw_wazne_do, 
                    string Original_Adres_Fkatura, 
                    global::System.Nullable<int> Original_Old_ID, 
                    string Original_Adres_Kor, 
                    bool Original_Platnik_VAT, 
                    bool Original_Aktywny, 
                    string Original_Email, 
                    string Original_UserName, 
                    global::System.Nullable<global::System.DateTime> Original_Last_Modify, 
                    string Original_Modify_User, 
                    string Original_http, 
                    global::System.Nullable<short> Original_VIES, 
                    string Original_regon, 
                    string Original_krs, 
                    string Original_nipKraj, 
                    int CustomerID) {
            if ((FirstName == null)) {
                this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
            }
            if ((LastName == null)) {
                this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
            }
            if ((OrganizationName == null)) {
                this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(OrganizationName));
            }
            if ((Address == null)) {
                this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Address));
            }
            if ((City == null)) {
                this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(City));
            }
            if ((State == null)) {
                this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(State));
            }
            if ((PostalCode == null)) {
                this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(PostalCode));
            }
            if ((Country == null)) {
                this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Country));
            }
            if ((Nip == null)) {
                this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Nip));
            }
            if ((ContactName == null)) {
                this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ContactName));
            }
            if ((PhoneNumber == null)) {
                this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(PhoneNumber));
            }
            if ((FaxNumber == null)) {
                this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(FaxNumber));
            }
            if ((Note == null)) {
                this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Note));
            }
            if ((data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
            }
            if ((osw_nr == null)) {
                this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(osw_nr));
            }
            if ((osw_wazne_do.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(osw_wazne_do.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
            }
            if ((Adres_Fkatura == null)) {
                this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Adres_Fkatura));
            }
            if ((Old_ID.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Old_ID.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
            }
            if ((Adres_Kor == null)) {
                this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Adres_Kor));
            }
            this.Adapter.UpdateCommand.Parameters[19].Value = ((bool)(Platnik_VAT));
            this.Adapter.UpdateCommand.Parameters[20].Value = ((bool)(Aktywny));
            if ((Email == null)) {
                this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Email));
            }
            if ((UserName == null)) {
                this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(UserName));
            }
            if ((Last_Modify.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Last_Modify.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
            }
            if ((Modify_User == null)) {
                this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Modify_User));
            }
            if ((http == null)) {
                this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(http));
            }
            if ((VIES.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[26].Value = ((short)(VIES.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
            }
            if ((regon == null)) {
                this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(regon));
            }
            if ((krs == null)) {
                this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(krs));
            }
            if ((nipKraj == null)) {
                this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(nipKraj));
            }
            this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_CustomerID));
            if ((Original_FirstName == null)) {
                this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_FirstName));
            }
            if ((Original_LastName == null)) {
                this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_LastName));
            }
            if ((Original_OrganizationName == null)) {
                this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_OrganizationName));
            }
            if ((Original_Address == null)) {
                this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_Address));
            }
            if ((Original_City == null)) {
                this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_City));
            }
            if ((Original_State == null)) {
                this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_State));
            }
            if ((Original_PostalCode == null)) {
                this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_PostalCode));
            }
            if ((Original_Country == null)) {
                this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_Country));
            }
            if ((Original_Nip == null)) {
                this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_Nip));
            }
            if ((Original_ContactName == null)) {
                this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_ContactName));
            }
            if ((Original_PhoneNumber == null)) {
                this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_PhoneNumber));
            }
            if ((Original_FaxNumber == null)) {
                this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_FaxNumber));
            }
            if ((Original_Note == null)) {
                this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_Note));
            }
            if ((Original_data.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[58].Value = ((System.DateTime)(Original_data.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
            }
            if ((Original_osw_nr == null)) {
                this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_osw_nr));
            }
            if ((Original_osw_wazne_do.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[62].Value = ((System.DateTime)(Original_osw_wazne_do.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
            }
            if ((Original_Adres_Fkatura == null)) {
                this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_Adres_Fkatura));
            }
            if ((Original_Old_ID.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[66].Value = ((int)(Original_Old_ID.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
            }
            if ((Original_Adres_Kor == null)) {
                this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_Adres_Kor));
            }
            this.Adapter.UpdateCommand.Parameters[69].Value = ((bool)(Original_Platnik_VAT));
            this.Adapter.UpdateCommand.Parameters[70].Value = ((bool)(Original_Aktywny));
            if ((Original_Email == null)) {
                this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[72].Value = ((string)(Original_Email));
            }
            if ((Original_UserName == null)) {
                this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_UserName));
            }
            if ((Original_Last_Modify.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[76].Value = ((System.DateTime)(Original_Last_Modify.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value;
            }
            if ((Original_Modify_User == null)) {
                this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_Modify_User));
            }
            if ((Original_http == null)) {
                this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[80].Value = ((string)(Original_http));
            }
            if ((Original_VIES.HasValue == true)) {
                this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[82].Value = ((short)(Original_VIES.Value));
            }
            else {
                this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value;
            }
            if ((Original_regon == null)) {
                this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_regon));
            }
            if ((Original_krs == null)) {
                this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_krs));
            }
            if ((Original_nipKraj == null)) {
                this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1));
                this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value;
            }
            else {
                this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
                this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_nipKraj));
            }
            this.Adapter.UpdateCommand.Parameters[89].Value = ((int)(CustomerID));
            global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
            if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                this.Adapter.UpdateCommand.Connection.Open();
            }
            try {
                int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
                return returnValue;
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    this.Adapter.UpdateCommand.Connection.Close();
                }
            }
        }
        
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
        public virtual int Update(
                    string FirstName, 
                    string LastName, 
                    string OrganizationName, 
                    string Address, 
                    string City, 
                    string State, 
                    string PostalCode, 
                    string Country, 
                    string Nip, 
                    string ContactName, 
                    string PhoneNumber, 
                    string FaxNumber, 
                    string Note, 
                    global::System.Nullable<global::System.DateTime> data, 
                    string osw_nr, 
                    global::System.Nullable<global::System.DateTime> osw_wazne_do, 
                    string Adres_Fkatura, 
                    global::System.Nullable<int> Old_ID, 
                    string Adres_Kor, 
                    bool Platnik_VAT, 
                    bool Aktywny, 
                    string Email, 
                    string UserName, 
                    global::System.Nullable<global::System.DateTime> Last_Modify, 
                    string Modify_User, 
                    string http, 
                    global::System.Nullable<short> VIES, 
                    string regon, 
                    string krs, 
                    string nipKraj, 
                    int Original_CustomerID, 
                    string Original_FirstName, 
                    string Original_LastName, 
                    string Original_OrganizationName, 
                    string Original_Address, 
                    string Original_City, 
                    string Original_State, 
                    string Original_PostalCode, 
                    string Original_Country, 
                    string Original_Nip, 
                    string Original_ContactName, 
                    string Original_PhoneNumber, 
                    string Original_FaxNumber, 
                    string Original_Note, 
                    global::System.Nullable<global::System.DateTime> Original_data, 
                    string Original_osw_nr, 
                    global::System.Nullable<global::System.DateTime> Original_osw_wazne_do, 
                    string Original_Adres_Fkatura, 
                    global::System.Nullable<int> Original_Old_ID, 
                    string Original_Adres_Kor, 
                    bool Original_Platnik_VAT, 
                    bool Original_Aktywny, 
                    string Original_Email, 
                    string Original_UserName, 
                    global::System.Nullable<global::System.DateTime> Original_Last_Modify, 
                    string Original_Modify_User, 
                    string Original_http, 
                    global::System.Nullable<short> Original_VIES, 
                    string Original_regon, 
                    string Original_krs, 
                    string Original_nipKraj) {
            return this.Update(FirstName, LastName, OrganizationName, Address, City, State, PostalCode, Country, Nip, ContactName, PhoneNumber, FaxNumber, Note, data, osw_nr, osw_wazne_do, Adres_Fkatura, Old_ID, Adres_Kor, Platnik_VAT, Aktywny, Email, UserName, Last_Modify, Modify_User, http, VIES, regon, krs, nipKraj, Original_CustomerID, Original_FirstName, Original_LastName, Original_OrganizationName, Original_Address, Original_City, Original_State, Original_PostalCode, Original_Country, Original_Nip, Original_ContactName, Original_PhoneNumber, Original_FaxNumber, Original_Note, Original_data, Original_osw_nr, Original_osw_wazne_do, Original_Adres_Fkatura, Original_Old_ID, Original_Adres_Kor, Original_Platnik_VAT, Original_Aktywny, Original_Email, Original_UserName, Original_Last_Modify, Original_Modify_User, Original_http, Original_VIES, Original_regon, Original_krs, Original_nipKraj, Original_CustomerID);
        }
    }
}

#pragma warning restore 1591