Zbiór zmian 91 dla Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs
- Data:
- 2008-12-29 12:04:44 (17 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs (zmodyfikowane) (25 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs
r84 r91 98 98 private global::System.Data.DataRelation relationFAKTURY_FAKTURA_DETAILS; 99 99 100 private global::System.Data.DataRelation relationFAKTURY_Wplaty; 101 100 102 private global::System.Data.DataRelation relationREKLAMA_REKLAMA_STRONA; 101 103 … … 973 975 this.relationFAKTURY_UKAZE_SIE_W_NR = this.Relations["FAKTURY_UKAZE_SIE_W_NR"]; 974 976 this.relationFAKTURY_FAKTURA_DETAILS = this.Relations["FAKTURY_FAKTURA_DETAILS"]; 977 this.relationFAKTURY_Wplaty = this.Relations["FAKTURY_Wplaty"]; 975 978 this.relationREKLAMA_REKLAMA_STRONA = this.Relations["REKLAMA_REKLAMA_STRONA"]; 976 979 this.relationKLIENCI_KLIENCI_OSOBY_DO_KONTAKTU = this.Relations["KLIENCI_KLIENCI_OSOBY_DO_KONTAKTU"]; … … 1078 1081 fkc.DeleteRule = global::System.Data.Rule.None; 1079 1082 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; 1080 1090 this.relationFAKTURY_UKAZE_SIE_W_NR = new global::System.Data.DataRelation("FAKTURY_UKAZE_SIE_W_NR", new global::System.Data.DataColumn[] { 1081 1091 this.tableFAKTURY.ID_FAKTURYColumn}, new global::System.Data.DataColumn[] { … … 1086 1096 this.tableFAKTURA_DETAILS.ID_FAKTURYColumn}, false); 1087 1097 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); 1088 1102 this.relationREKLAMA_REKLAMA_STRONA = new global::System.Data.DataRelation("REKLAMA_REKLAMA_STRONA", new global::System.Data.DataColumn[] { 1089 1103 this.tableREKLAMA.ReklamaIDColumn}, new global::System.Data.DataColumn[] { … … 5758 5772 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 5759 5773 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)); 5760 5777 this.columnID_FAKTURY.AutoIncrement = true; 5761 5778 this.columnID_FAKTURY.AllowDBNull = false; … … 17097 17114 private global::System.Data.DataColumn columnbrutto; 17098 17115 17116 private global::System.Data.DataColumn columnwaluta_brutto; 17117 17118 private global::System.Data.DataColumn columnwaluta_miano; 17119 17099 17120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 17100 17121 public WplatyDataTable() { … … 17177 17198 17178 17199 [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()] 17179 17214 [global::System.ComponentModel.Browsable(false)] 17180 17215 public int Count { … … 17205 17240 17206 17241 [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) { 17208 17243 WplatyRow rowWplatyRow = ((WplatyRow)(this.NewRow())); 17209 17244 object[] columnValuesArray = new object[] { 17210 17245 null, 17211 idFaktury,17246 null, 17212 17247 idZamowienia, 17213 17248 dataWplaty, 17214 17249 rodzajPotwierdzenia, 17215 17250 symbolPotwierdzenia, 17216 brutto}; 17251 brutto, 17252 waluta_brutto, 17253 waluta_miano}; 17254 if ((parentFAKTURYRowByFAKTURY_Wplaty != null)) { 17255 columnValuesArray[1] = parentFAKTURYRowByFAKTURY_Wplaty[0]; 17256 } 17217 17257 rowWplatyRow.ItemArray = columnValuesArray; 17218 17258 this.Rows.Add(rowWplatyRow); … … 17252 17292 this.columnsymbolPotwierdzenia = base.Columns["symbolPotwierdzenia"]; 17253 17293 this.columnbrutto = base.Columns["brutto"]; 17294 this.columnwaluta_brutto = base.Columns["waluta_brutto"]; 17295 this.columnwaluta_miano = base.Columns["waluta_miano"]; 17254 17296 } 17255 17297 … … 17268 17310 this.columnsymbolPotwierdzenia = new global::System.Data.DataColumn("symbolPotwierdzenia", typeof(string), null, global::System.Data.MappingType.Element); 17269 17311 base.Columns.Add(this.columnsymbolPotwierdzenia); 17270 this.columnbrutto = new global::System.Data.DataColumn("brutto", typeof(d ouble), null, global::System.Data.MappingType.Element);17312 this.columnbrutto = new global::System.Data.DataColumn("brutto", typeof(decimal), null, global::System.Data.MappingType.Element); 17271 17313 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); 17272 17318 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { 17273 17319 this.columnidWplaty}, true)); … … 17280 17326 this.columnrodzajPotwierdzenia.MaxLength = 5; 17281 17327 this.columnsymbolPotwierdzenia.MaxLength = 25; 17328 this.columnwaluta_miano.MaxLength = 4; 17282 17329 } 17283 17330 … … 23269 23316 23270 23317 [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()] 23271 23328 public FAKTURA_DETAILSRow[] GetFAKTURA_DETAILSRows() { 23272 23329 if ((this.Table.ChildRelations["FAKTURY_FAKTURA_DETAILS"] == null)) { … … 32180 32237 32181 32238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 32182 public d oublebrutto {32183 get { 32184 try { 32185 return ((d ouble)(this[this.tableWplaty.bruttoColumn]));32239 public decimal brutto { 32240 get { 32241 try { 32242 return ((decimal)(this[this.tableWplaty.bruttoColumn])); 32186 32243 } 32187 32244 catch (global::System.InvalidCastException e) { … … 32191 32248 set { 32192 32249 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"]); 32193 32290 } 32194 32291 } … … 32232 32329 public void SetbruttoNull() { 32233 32330 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; 32234 32351 } 32235 32352 } … … 48318 48435 tableMapping.ColumnMappings.Add("symbolPotwierdzenia", "symbolPotwierdzenia"); 48319 48436 tableMapping.ColumnMappings.Add("brutto", "brutto"); 48437 tableMapping.ColumnMappings.Add("waluta_brutto", "waluta_brutto"); 48438 tableMapping.ColumnMappings.Add("waluta_miano", "waluta_miano"); 48320 48439 this._adapter.TableMappings.Add(tableMapping); 48321 48440 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); 48322 48441 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)"; 48324 48443 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, "", "", "")); 48336 48445 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); 48337 48446 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); 48448 SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idWplaty = SCOPE_IDENTITY())"; 48340 48449 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; 48341 48450 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, "", "", "")); … … 48344 48453 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, "", "", "")); 48345 48454 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, "", "", "")); 48347 48457 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); 48348 48458 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)); 48460 SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbolPotwierdzenia, waluta_brutto, waluta_miano FROM Wplaty WHERE (idWplaty = @idWplaty)"; 48351 48461 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; 48352 48462 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, "", "", "")); … … 48355 48465 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, "", "", "")); 48356 48466 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, "", "", "")); 48358 48469 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, "", "", ""));48369 48470 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, "", "", "")); 48370 48471 } … … 48381 48482 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); 48382 48483 this._commandCollection[0].Connection = this.Connection; 48383 this._commandCollection[0].CommandText = "SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, sy" +48384 " mbolPotwierdzenia, brutto\r\nFROMWplaty";48484 this._commandCollection[0].CommandText = "SELECT idWplaty, idFaktury, idZamowienia, dataWplaty, rodzajPotwierdzenia, symbol" + 48485 "Potwierdzenia, waluta_brutto, waluta_miano FROM Wplaty"; 48385 48486 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; 48386 48487 this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); 48387 48488 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)"; 48390 48492 this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; 48391 48493 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, "", "", "")); 48392 48494 this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); 48393 48495 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)"; 48396 48499 this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; 48397 48500 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, "", "", "")); … … 48496 48599 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 48497 48600 [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)); 48534 48603 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; 48535 48604 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) … … 48551 48620 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 48552 48621 [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<d ouble> 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) { 48554 48623 this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idFaktury)); 48555 48624 this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idZamowienia)); … … 48572 48641 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(symbolPotwierdzenia)); 48573 48642 } 48574 if (( brutto.HasValue == true)) {48575 this.Adapter.InsertCommand.Parameters[5].Value = ((d ouble)(brutto.Value));48643 if ((waluta_brutto.HasValue == true)) { 48644 this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(waluta_brutto.Value)); 48576 48645 } 48577 48646 else { 48578 48647 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)); 48579 48654 } 48580 48655 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; … … 48597 48672 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 48598 48673 [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<d ouble> 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) { 48600 48675 this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idFaktury)); 48601 48676 this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idZamowienia)); … … 48618 48693 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(symbolPotwierdzenia)); 48619 48694 } 48620 if (( brutto.HasValue == true)) {48621 this.Adapter.UpdateCommand.Parameters[5].Value = ((d ouble)(brutto.Value));48695 if ((waluta_brutto.HasValue == true)) { 48696 this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(waluta_brutto.Value)); 48622 48697 } 48623 48698 else { 48624 48699 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; 48625 48700 } 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)); 48662 48709 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; 48663 48710 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) … … 48679 48726 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] 48680 48727 [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<d ouble> 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); 48683 48730 } 48684 48731 }
