Pokaż
Ignoruj:
Data:
2008-12-29 12:04:44 (17 years ago)
Autor:
dorota
Opis:

dodawanie wplat przy wystawianiu faktury

Pliki:
1 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs

    r84 r91  
    9898        private global::System.Data.DataRelation relationFAKTURY_FAKTURA_DETAILS; 
    9999         
     100        private global::System.Data.DataRelation relationFAKTURY_Wplaty; 
     101         
    100102        private global::System.Data.DataRelation relationREKLAMA_REKLAMA_STRONA; 
    101103         
     
    973975            this.relationFAKTURY_UKAZE_SIE_W_NR = this.Relations["FAKTURY_UKAZE_SIE_W_NR"]; 
    974976            this.relationFAKTURY_FAKTURA_DETAILS = this.Relations["FAKTURY_FAKTURA_DETAILS"]; 
     977            this.relationFAKTURY_Wplaty = this.Relations["FAKTURY_Wplaty"]; 
    975978            this.relationREKLAMA_REKLAMA_STRONA = this.Relations["REKLAMA_REKLAMA_STRONA"]; 
    976979            this.relationKLIENCI_KLIENCI_OSOBY_DO_KONTAKTU = this.Relations["KLIENCI_KLIENCI_OSOBY_DO_KONTAKTU"]; 
     
    10781081            fkc.DeleteRule = global::System.Data.Rule.None; 
    10791082            fkc.UpdateRule = global::System.Data.Rule.Cascade; 
     1083            fkc = new global::System.Data.ForeignKeyConstraint("FAKTURY_Wplaty", new global::System.Data.DataColumn[] { 
     1084                        this.tableFAKTURY.ID_FAKTURYColumn}, new global::System.Data.DataColumn[] { 
     1085                        this.tableWplaty.idFakturyColumn}); 
     1086            this.tableWplaty.Constraints.Add(fkc); 
     1087            fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; 
     1088            fkc.DeleteRule = global::System.Data.Rule.None; 
     1089            fkc.UpdateRule = global::System.Data.Rule.Cascade; 
    10801090            this.relationFAKTURY_UKAZE_SIE_W_NR = new global::System.Data.DataRelation("FAKTURY_UKAZE_SIE_W_NR", new global::System.Data.DataColumn[] { 
    10811091                        this.tableFAKTURY.ID_FAKTURYColumn}, new global::System.Data.DataColumn[] { 
     
    10861096                        this.tableFAKTURA_DETAILS.ID_FAKTURYColumn}, false); 
    10871097            this.Relations.Add(this.relationFAKTURY_FAKTURA_DETAILS); 
     1098            this.relationFAKTURY_Wplaty = new global::System.Data.DataRelation("FAKTURY_Wplaty", new global::System.Data.DataColumn[] { 
     1099                        this.tableFAKTURY.ID_FAKTURYColumn}, new global::System.Data.DataColumn[] { 
     1100                        this.tableWplaty.idFakturyColumn}, false); 
     1101            this.Relations.Add(this.relationFAKTURY_Wplaty); 
    10881102            this.relationREKLAMA_REKLAMA_STRONA = new global::System.Data.DataRelation("REKLAMA_REKLAMA_STRONA", new global::System.Data.DataColumn[] { 
    10891103                        this.tableREKLAMA.ReklamaIDColumn}, new global::System.Data.DataColumn[] { 
     
    57585772                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 
    57595773                                this.columnID_FAKTURY}, true)); 
     5774                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] { 
     5775                                this.columnID_FAKTURY, 
     5776                                this.columnidZamowienia}, false)); 
    57605777                this.columnID_FAKTURY.AutoIncrement = true; 
    57615778                this.columnID_FAKTURY.AllowDBNull = false; 
     
    1709717114            private global::System.Data.DataColumn columnbrutto; 
    1709817115             
     17116            private global::System.Data.DataColumn columnwaluta_brutto; 
     17117             
     17118            private global::System.Data.DataColumn columnwaluta_miano; 
     17119             
    1709917120            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    1710017121            public WplatyDataTable() { 
     
    1717717198             
    1717817199            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     17200            public global::System.Data.DataColumn waluta_bruttoColumn { 
     17201                get { 
     17202                    return this.columnwaluta_brutto; 
     17203                } 
     17204            } 
     17205             
     17206            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     17207            public global::System.Data.DataColumn waluta_mianoColumn { 
     17208                get { 
     17209                    return this.columnwaluta_miano; 
     17210                } 
     17211            } 
     17212             
     17213            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    1717917214            [global::System.ComponentModel.Browsable(false)] 
    1718017215            public int Count { 
     
    1720517240             
    1720617241            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    17207             public WplatyRow AddWplatyRow(int idFaktury, int idZamowienia, System.DateTime dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, double brutto) { 
     17242            public WplatyRow AddWplatyRow(FAKTURYRow parentFAKTURYRowByFAKTURY_Wplaty, int idZamowienia, System.DateTime dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, decimal brutto, decimal waluta_brutto, string waluta_miano) { 
    1720817243                WplatyRow rowWplatyRow = ((WplatyRow)(this.NewRow())); 
    1720917244                object[] columnValuesArray = new object[] { 
    1721017245                        null, 
    17211                         idFaktury, 
     17246                        null, 
    1721217247                        idZamowienia, 
    1721317248                        dataWplaty, 
    1721417249                        rodzajPotwierdzenia, 
    1721517250                        symbolPotwierdzenia, 
    17216                         brutto}; 
     17251                        brutto, 
     17252                        waluta_brutto, 
     17253                        waluta_miano}; 
     17254                if ((parentFAKTURYRowByFAKTURY_Wplaty != null)) { 
     17255                    columnValuesArray[1] = parentFAKTURYRowByFAKTURY_Wplaty[0]; 
     17256                } 
    1721717257                rowWplatyRow.ItemArray = columnValuesArray; 
    1721817258                this.Rows.Add(rowWplatyRow); 
     
    1725217292                this.columnsymbolPotwierdzenia = base.Columns["symbolPotwierdzenia"]; 
    1725317293                this.columnbrutto = base.Columns["brutto"]; 
     17294                this.columnwaluta_brutto = base.Columns["waluta_brutto"]; 
     17295                this.columnwaluta_miano = base.Columns["waluta_miano"]; 
    1725417296            } 
    1725517297             
     
    1726817310                this.columnsymbolPotwierdzenia = new global::System.Data.DataColumn("symbolPotwierdzenia", typeof(string), null, global::System.Data.MappingType.Element); 
    1726917311                base.Columns.Add(this.columnsymbolPotwierdzenia); 
    17270                 this.columnbrutto = new global::System.Data.DataColumn("brutto", typeof(double), null, global::System.Data.MappingType.Element); 
     17312                this.columnbrutto = new global::System.Data.DataColumn("brutto", typeof(decimal), null, global::System.Data.MappingType.Element); 
    1727117313                base.Columns.Add(this.columnbrutto); 
     17314                this.columnwaluta_brutto = new global::System.Data.DataColumn("waluta_brutto", typeof(decimal), null, global::System.Data.MappingType.Element); 
     17315                base.Columns.Add(this.columnwaluta_brutto); 
     17316                this.columnwaluta_miano = new global::System.Data.DataColumn("waluta_miano", typeof(string), null, global::System.Data.MappingType.Element); 
     17317                base.Columns.Add(this.columnwaluta_miano); 
    1727217318                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 
    1727317319                                this.columnidWplaty}, true)); 
     
    1728017326                this.columnrodzajPotwierdzenia.MaxLength = 5; 
    1728117327                this.columnsymbolPotwierdzenia.MaxLength = 25; 
     17328                this.columnwaluta_miano.MaxLength = 4; 
    1728217329            } 
    1728317330             
     
    2326923316             
    2327023317            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     23318            public WplatyRow[] GetWplatyRows() { 
     23319                if ((this.Table.ChildRelations["FAKTURY_Wplaty"] == null)) { 
     23320                    return new WplatyRow[0]; 
     23321                } 
     23322                else { 
     23323                    return ((WplatyRow[])(base.GetChildRows(this.Table.ChildRelations["FAKTURY_Wplaty"]))); 
     23324                } 
     23325            } 
     23326             
     23327            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    2327123328            public FAKTURA_DETAILSRow[] GetFAKTURA_DETAILSRows() { 
    2327223329                if ((this.Table.ChildRelations["FAKTURY_FAKTURA_DETAILS"] == null)) { 
     
    3218032237             
    3218132238            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    32182             public double brutto { 
    32183                 get { 
    32184                     try { 
    32185                         return ((double)(this[this.tableWplaty.bruttoColumn])); 
     32239            public decimal brutto { 
     32240                get { 
     32241                    try { 
     32242                        return ((decimal)(this[this.tableWplaty.bruttoColumn])); 
    3218632243                    } 
    3218732244                    catch (global::System.InvalidCastException e) { 
     
    3219132248                set { 
    3219232249                    this[this.tableWplaty.bruttoColumn] = value; 
     32250                } 
     32251            } 
     32252             
     32253            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32254            public decimal waluta_brutto { 
     32255                get { 
     32256                    try { 
     32257                        return ((decimal)(this[this.tableWplaty.waluta_bruttoColumn])); 
     32258                    } 
     32259                    catch (global::System.InvalidCastException e) { 
     32260                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_brutto\' in table \'Wplaty\' is DBNull.", e); 
     32261                    } 
     32262                } 
     32263                set { 
     32264                    this[this.tableWplaty.waluta_bruttoColumn] = value; 
     32265                } 
     32266            } 
     32267             
     32268            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32269            public string waluta_miano { 
     32270                get { 
     32271                    try { 
     32272                        return ((string)(this[this.tableWplaty.waluta_mianoColumn])); 
     32273                    } 
     32274                    catch (global::System.InvalidCastException e) { 
     32275                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_miano\' in table \'Wplaty\' is DBNull.", e); 
     32276                    } 
     32277                } 
     32278                set { 
     32279                    this[this.tableWplaty.waluta_mianoColumn] = value; 
     32280                } 
     32281            } 
     32282             
     32283            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32284            public FAKTURYRow FAKTURYRow { 
     32285                get { 
     32286                    return ((FAKTURYRow)(this.GetParentRow(this.Table.ParentRelations["FAKTURY_Wplaty"]))); 
     32287                } 
     32288                set { 
     32289                    this.SetParentRow(value, this.Table.ParentRelations["FAKTURY_Wplaty"]); 
    3219332290                } 
    3219432291            } 
     
    3223232329            public void SetbruttoNull() { 
    3223332330                this[this.tableWplaty.bruttoColumn] = global::System.Convert.DBNull; 
     32331            } 
     32332             
     32333            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32334            public bool Iswaluta_bruttoNull() { 
     32335                return this.IsNull(this.tableWplaty.waluta_bruttoColumn); 
     32336            } 
     32337             
     32338            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32339            public void Setwaluta_bruttoNull() { 
     32340                this[this.tableWplaty.waluta_bruttoColumn] = global::System.Convert.DBNull; 
     32341            } 
     32342             
     32343            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32344            public bool Iswaluta_mianoNull() { 
     32345                return this.IsNull(this.tableWplaty.waluta_mianoColumn); 
     32346            } 
     32347             
     32348            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
     32349            public void Setwaluta_mianoNull() { 
     32350                this[this.tableWplaty.waluta_mianoColumn] = global::System.Convert.DBNull; 
    3223432351            } 
    3223532352        } 
     
    4831848435            tableMapping.ColumnMappings.Add("symbolPotwierdzenia", "symbolPotwierdzenia"); 
    4831948436            tableMapping.ColumnMappings.Add("brutto", "brutto"); 
     48437            tableMapping.ColumnMappings.Add("waluta_brutto", "waluta_brutto"); 
     48438            tableMapping.ColumnMappings.Add("waluta_miano", "waluta_miano"); 
    4832048439            this._adapter.TableMappings.Add(tableMapping); 
    4832148440            this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 
    4832248441            this._adapter.DeleteCommand.Connection = this.Connection; 
    48323             this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Wplaty] WHERE (([idWplaty] = @Original_idWplaty) AND ([idFaktury] = @Original_idFaktury) AND ([idZamowienia] = @Original_idZamowienia) AND ((@IsNull_dataWplaty = 1 AND [dataWplaty] IS NULL) OR ([dataWplaty] = @Original_dataWplaty)) AND ((@IsNull_rodzajPotwierdzenia = 1 AND [rodzajPotwierdzenia] IS NULL) OR ([rodzajPotwierdzenia] = @Original_rodzajPotwierdzenia)) AND ((@IsNull_symbolPotwierdzenia = 1 AND [symbolPotwierdzenia] IS NULL) OR ([symbolPotwierdzenia] = @Original_symbolPotwierdzenia)) AND ((@IsNull_brutto = 1 AND [brutto] IS NULL) OR ([brutto] = @Original_brutto)))"; 
     48442            this._adapter.DeleteCommand.CommandText = "DELETE FROM Wplaty\r\nWHERE     (idFaktury = @idFaktury)"; 
    4832448443            this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; 
    48325             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idWplaty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idWplaty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48326             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idFaktury", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFaktury", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48327             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idZamowienia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idZamowienia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48328             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dataWplaty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataWplaty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48329             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataWplaty", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataWplaty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48330             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rodzajPotwierdzenia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48331             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rodzajPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48332             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_symbolPotwierdzenia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48333             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_symbolPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48334             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, "", "", "")); 
    48335             this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
     48444            this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFaktury", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idFaktury", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    4833648445            this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 
    4833748446            this._adapter.InsertCommand.Connection = this.Connection; 
    48338             this._adapter.InsertCommand.CommandText = @"INSERT INTO [Wplaty] ([idFaktury], [idZamowienia], [dataWplaty], [rodzajPotwierdzenia], [symbolPotwierdzenia], [brutto]) VALUES (@idFaktury, @idZamowienia, @dataWplaty, @rodzajPotwierdzenia, @symbolPotwierdzenia, @brutto); 
    48339 SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, brutto FROM Wplaty WHERE (idWplaty = SCOPE_IDENTITY())"; 
     48447            this._adapter.InsertCommand.CommandText = @"INSERT INTO [Wplaty] ([idFaktury], [idZamowienia], [dataWplaty], [rodzajPotwierdzenia], [symbolPotwierdzenia], [waluta_brutto], [waluta_miano]) VALUES (@idFaktury, @idZamowienia, @dataWplaty, @rodzajPotwierdzenia, @symbolPotwierdzenia, @waluta_brutto, @waluta_miano); 
     48448SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idWplaty = SCOPE_IDENTITY())"; 
    4834048449            this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 
    4834148450            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFaktury", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFaktury", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     
    4834448453            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rodzajPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    4834548454            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@symbolPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    48346             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     48455            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     48456            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, "", "", "")); 
    4834748457            this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 
    4834848458            this._adapter.UpdateCommand.Connection = this.Connection; 
    48349             this._adapter.UpdateCommand.CommandText = @"UPDATE [Wplaty] SET [idFaktury] = @idFaktury, [idZamowienia] = @idZamowienia, [dataWplaty] = @dataWplaty, [rodzajPotwierdzenia] = @rodzajPotwierdzenia, [symbolPotwierdzenia] = @symbolPotwierdzenia, [brutto] = @brutto WHERE (([idWplaty] = @Original_idWplaty) AND ([idFaktury] = @Original_idFaktury) AND ([idZamowienia] = @Original_idZamowienia) AND ((@IsNull_dataWplaty = 1 AND [dataWplaty] IS NULL) OR ([dataWplaty] = @Original_dataWplaty)) AND ((@IsNull_rodzajPotwierdzenia = 1 AND [rodzajPotwierdzenia] IS NULL) OR ([rodzajPotwierdzenia] = @Original_rodzajPotwierdzenia)) AND ((@IsNull_symbolPotwierdzenia = 1 AND [symbolPotwierdzenia] IS NULL) OR ([symbolPotwierdzenia] = @Original_symbolPotwierdzenia)) AND ((@IsNull_brutto = 1 AND [brutto] IS NULL) OR ([brutto] = @Original_brutto))); 
    48350 SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, brutto FROM Wplaty WHERE (idWplaty = @idWplaty)"; 
     48459            this._adapter.UpdateCommand.CommandText = @"UPDATE [Wplaty] SET [idFaktury] = @idFaktury, [idZamowienia] = @idZamowienia, [dataWplaty] = @dataWplaty, [rodzajPotwierdzenia] = @rodzajPotwierdzenia, [symbolPotwierdzenia] = @symbolPotwierdzenia, [waluta_brutto] = @waluta_brutto, [waluta_miano] = @waluta_miano WHERE (([idWplaty] = @Original_idWplaty)); 
     48460SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idWplaty = @idWplaty)"; 
    4835148461            this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 
    4835248462            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFaktury", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFaktury", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     
    4835548465            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rodzajPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    4835648466            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@symbolPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    48357             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     48467            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@waluta_brutto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "waluta_brutto", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     48468            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, "", "", "")); 
    4835848469            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idWplaty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idWplaty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48359             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idFaktury", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFaktury", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48360             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idZamowienia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idZamowienia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48361             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dataWplaty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataWplaty", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48362             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dataWplaty", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dataWplaty", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48363             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rodzajPotwierdzenia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48364             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rodzajPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rodzajPotwierdzenia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48365             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_symbolPotwierdzenia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); 
    48366             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_symbolPotwierdzenia", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "symbolPotwierdzenia", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    48367             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, "", "", "")); 
    48368             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_brutto", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "brutto", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); 
    4836948470            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idWplaty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idWplaty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    4837048471        } 
     
    4838148482            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 
    4838248483            this._commandCollection[0].Connection = this.Connection; 
    48383             this._commandCollection[0].CommandText = "SELECT     idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, sy" + 
    48384                 "mbolPotwierdzenia, brutto\r\nFROM        Wplaty"; 
     48484            this._commandCollection[0].CommandText = "SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbol" + 
     48485                "Potwierdzenia, waluta_brutto, waluta_miano FROM Wplaty"; 
    4838548486            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 
    4838648487            this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 
    4838748488            this._commandCollection[1].Connection = this.Connection; 
    48388             this._commandCollection[1].CommandText = "SELECT     idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, sy" + 
    48389                 "mbolPotwierdzenia, brutto\r\nFROM         Wplaty\r\nwhere idFaktury=@idFaktury "; 
     48489            this._commandCollection[1].CommandText = "SELECT dataWplaty, idFaktury, idWplaty, idZamowienia, rodzajPotwierdzenia, symbol" + 
     48490                "Potwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idFaktury = @idFak" + 
     48491                "tury)"; 
    4839048492            this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 
    4839148493            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, "idFaktury", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
    4839248494            this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); 
    4839348495            this._commandCollection[2].Connection = this.Connection; 
    48394             this._commandCollection[2].CommandText = "SELECT     idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, sy" + 
    48395                 "mbolPotwierdzenia, brutto\r\nFROM         Wplaty\r\nwhere idWplaty=@idWplaty"; 
     48496            this._commandCollection[2].CommandText = "SELECT dataWplaty, idFaktury, idWplaty, idZamowienia, rodzajPotwierdzenia, symbol" + 
     48497                "Potwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idWplaty = @idWpla" + 
     48498                "ty)"; 
    4839648499            this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; 
    4839748500            this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idWplaty", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idWplaty", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); 
     
    4849648599        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 
    4849748600        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] 
    48498         public virtual int Delete(int Original_idWplaty, int Original_idFaktury, int Original_idZamowienia, global::System.Nullable<global::System.DateTime> Original_dataWplaty, string Original_rodzajPotwierdzenia, string Original_symbolPotwierdzenia, global::System.Nullable<double> Original_brutto) { 
    48499             this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idWplaty)); 
    48500             this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_idFaktury)); 
    48501             this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idZamowienia)); 
    48502             if ((Original_dataWplaty.HasValue == true)) { 
    48503                 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); 
    48504                 this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_dataWplaty.Value)); 
    48505             } 
    48506             else { 
    48507                 this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); 
    48508                 this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; 
    48509             } 
    48510             if ((Original_rodzajPotwierdzenia == null)) { 
    48511                 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); 
    48512                 this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; 
    48513             } 
    48514             else { 
    48515                 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); 
    48516                 this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_rodzajPotwierdzenia)); 
    48517             } 
    48518             if ((Original_symbolPotwierdzenia == null)) { 
    48519                 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); 
    48520                 this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; 
    48521             } 
    48522             else { 
    48523                 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); 
    48524                 this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_symbolPotwierdzenia)); 
    48525             } 
    48526             if ((Original_brutto.HasValue == true)) { 
    48527                 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); 
    48528                 this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_brutto.Value)); 
    48529             } 
    48530             else { 
    48531                 this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); 
    48532                 this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; 
    48533             } 
     48601        public virtual int Delete(int idFaktury) { 
     48602            this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(idFaktury)); 
    4853448603            global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 
    4853548604            if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)  
     
    4855148620        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 
    4855248621        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] 
    48553         public virtual int Insert(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<double> brutto) { 
     48622        public virtual int Insert(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<decimal> waluta_brutto, string waluta_miano) { 
    4855448623            this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idFaktury)); 
    4855548624            this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idZamowienia)); 
     
    4857248641                this.Adapter.InsertCommand.Parameters[4].Value = ((string)(symbolPotwierdzenia)); 
    4857348642            } 
    48574             if ((brutto.HasValue == true)) { 
    48575                 this.Adapter.InsertCommand.Parameters[5].Value = ((double)(brutto.Value)); 
     48643            if ((waluta_brutto.HasValue == true)) { 
     48644                this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(waluta_brutto.Value)); 
    4857648645            } 
    4857748646            else { 
    4857848647                this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; 
     48648            } 
     48649            if ((waluta_miano == null)) { 
     48650                this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; 
     48651            } 
     48652            else { 
     48653                this.Adapter.InsertCommand.Parameters[6].Value = ((string)(waluta_miano)); 
    4857948654            } 
    4858048655            global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; 
     
    4859748672        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 
    4859848673        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 
    48599         public virtual int Update(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<double> brutto, int Original_idWplaty, int Original_idFaktury, int Original_idZamowienia, global::System.Nullable<global::System.DateTime> Original_dataWplaty, string Original_rodzajPotwierdzenia, string Original_symbolPotwierdzenia, global::System.Nullable<double> Original_brutto, int idWplaty) { 
     48674        public virtual int Update(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<decimal> waluta_brutto, string waluta_miano, int Original_idWplaty, int idWplaty) { 
    4860048675            this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idFaktury)); 
    4860148676            this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idZamowienia)); 
     
    4861848693                this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(symbolPotwierdzenia)); 
    4861948694            } 
    48620             if ((brutto.HasValue == true)) { 
    48621                 this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(brutto.Value)); 
     48695            if ((waluta_brutto.HasValue == true)) { 
     48696                this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(waluta_brutto.Value)); 
    4862248697            } 
    4862348698            else { 
    4862448699                this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; 
    4862548700            } 
    48626             this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idWplaty)); 
    48627             this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idFaktury)); 
    48628             this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idZamowienia)); 
    48629             if ((Original_dataWplaty.HasValue == true)) { 
    48630                 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0)); 
    48631                 this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_dataWplaty.Value)); 
    48632             } 
    48633             else { 
    48634                 this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1)); 
    48635                 this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; 
    48636             } 
    48637             if ((Original_rodzajPotwierdzenia == null)) { 
    48638                 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1)); 
    48639                 this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; 
    48640             } 
    48641             else { 
    48642                 this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0)); 
    48643                 this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_rodzajPotwierdzenia)); 
    48644             } 
    48645             if ((Original_symbolPotwierdzenia == null)) { 
    48646                 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1)); 
    48647                 this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; 
    48648             } 
    48649             else { 
    48650                 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0)); 
    48651                 this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_symbolPotwierdzenia)); 
    48652             } 
    48653             if ((Original_brutto.HasValue == true)) { 
    48654                 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0)); 
    48655                 this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_brutto.Value)); 
    48656             } 
    48657             else { 
    48658                 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1)); 
    48659                 this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; 
    48660             } 
    48661             this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(idWplaty)); 
     48701            if ((waluta_miano == null)) { 
     48702                this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; 
     48703            } 
     48704            else { 
     48705                this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(waluta_miano)); 
     48706            } 
     48707            this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idWplaty)); 
     48708            this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(idWplaty)); 
    4866248709            global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 
    4866348710            if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)  
     
    4867948726        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 
    4868048727        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] 
    48681         public virtual int Update(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<double> brutto, int Original_idWplaty, int Original_idFaktury, int Original_idZamowienia, global::System.Nullable<global::System.DateTime> Original_dataWplaty, string Original_rodzajPotwierdzenia, string Original_symbolPotwierdzenia, global::System.Nullable<double> Original_brutto) { 
    48682             return this.Update(idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, brutto, Original_idWplaty, Original_idFaktury, Original_idZamowienia, Original_dataWplaty, Original_rodzajPotwierdzenia, Original_symbolPotwierdzenia, Original_brutto, Original_idWplaty); 
     48728        public virtual int Update(int idFaktury, int idZamowienia, global::System.Nullable<global::System.DateTime> dataWplaty, string rodzajPotwierdzenia, string symbolPotwierdzenia, global::System.Nullable<decimal> waluta_brutto, string waluta_miano, int Original_idWplaty) { 
     48729            return this.Update(idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, waluta_brutto, waluta_miano, Original_idWplaty, Original_idWplaty); 
    4868348730        } 
    4868448731    }