Zbiór zmian 646 dla branches/ReklamaReorganizacja
- Data:
- 2009-05-19 15:23:04 (17 years ago)
- Lokalizacja:
- branches/ReklamaReorganizacja/BazaReklam
- Pliki:
-
- 6 zmodyfikowane
-
ClientsForm.cs (zmodyfikowane) (3 diffs)
-
OrderDetails.Designer.cs (zmodyfikowane) (6 diffs)
-
OrderDetails.cs (zmodyfikowane) (34 diffs)
-
OrderDetails.resx (zmodyfikowane) (1 diff)
-
ProjectForm.Designer.cs (zmodyfikowane) (16 diffs)
-
ZamowieniaForm.cs (zmodyfikowane) (1 diff)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/ReklamaReorganizacja/BazaReklam/ClientsForm.cs
r645 r646 286 286 { 287 287 if (rEKLAMABindingSource.Current == null) return; 288 289 DataRowView row = (DataRowView) rEKLAMABindingSource.Current; 290 int idRek = Int32.Parse(row["reklamaId"].ToString()); 291 int custId = Int32.Parse(row["customerId"].ToString()); 292 293 OrderDetails.getOrderDetails().PokazSzczegolyZamowienia(idRek); 294 295 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 296 { 297 rEKLAMADataSet.REKLAMA.Clear(); 298 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, custId); 288 289 try 290 { 291 Cursor = Cursors.WaitCursor; 292 DataRowView row = (DataRowView) rEKLAMABindingSource.Current; 293 int idRek = Int32.Parse(row["reklamaId"].ToString()); 294 int custId = Int32.Parse(row["customerId"].ToString()); 295 296 OrderDetails.getOrderDetails().PokazSzczegolyZamowienia(idRek); 297 298 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 299 { 300 rEKLAMADataSet.REKLAMA.Clear(); 301 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, custId); 302 } 303 } 304 finally 305 { 306 Cursor = Cursors.Default; 299 307 } 300 308 } … … 303 311 { 304 312 if (kLIENCIBindingSource.Current == null) return; 305 306 DataRowView row = (DataRowView) kLIENCIBindingSource.Current; 307 REKLAMADataSet.KLIENCIRow klient = (REKLAMADataSet.KLIENCIRow) row.Row; 308 309 if (klient.IskodKlientaNull()) 310 { 311 MessageBox.Show("Proszê uzupe³niæ kod klienta"); 312 return; 313 } 314 315 OrderDetails.getOrderDetails().DodajNoweZamowienie(klient.CustomerID, klient.kodKlienta); 316 317 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 318 { 319 rEKLAMADataSet.REKLAMA.Clear(); 320 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, klient.CustomerID); 313 314 try 315 { 316 Cursor = Cursors.WaitCursor; 317 318 DataRowView row = (DataRowView) kLIENCIBindingSource.Current; 319 REKLAMADataSet.KLIENCIRow klient = (REKLAMADataSet.KLIENCIRow) row.Row; 320 321 if (klient.IskodKlientaNull()) 322 { 323 MessageBox.Show("Proszê uzupe³niæ kod klienta"); 324 return; 325 } 326 327 OrderDetails.getOrderDetails().DodajNoweZamowienie(klient.CustomerID, klient.kodKlienta); 328 329 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 330 { 331 rEKLAMADataSet.REKLAMA.Clear(); 332 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, klient.CustomerID); 333 } 334 } 335 finally 336 { 337 Cursor = Cursors.Default; 321 338 } 322 339 } … … 385 402 { 386 403 if (rEKLAMABindingSource.Current == null) return; 387 388 DataRowView row = (DataRowView) rEKLAMABindingSource.Current; 389 int idRek = Int32.Parse(row["reklamaId"].ToString()); 390 int custId = Int32.Parse(row["customerId"].ToString()); 391 392 OrderDetails.getOrderDetails().WznowZamowienie(idRek); 393 394 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 395 { 396 rEKLAMADataSet.REKLAMA.Clear(); 397 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, custId); 404 405 try 406 { 407 Cursor = Cursors.WaitCursor; 408 409 DataRowView row = (DataRowView) rEKLAMABindingSource.Current; 410 int idRek = Int32.Parse(row["reklamaId"].ToString()); 411 int custId = Int32.Parse(row["customerId"].ToString()); 412 413 OrderDetails.getOrderDetails().WznowZamowienie(idRek); 414 415 if (OrderDetails.getOrderDetails().ShowDialog() == DialogResult.OK) 416 { 417 rEKLAMADataSet.REKLAMA.Clear(); 418 rEKLAMATableAdapter.FillByCustomerId(rEKLAMADataSet.REKLAMA, custId); 419 } 420 } 421 finally 422 { 423 Cursor = Cursors.Default; 398 424 } 399 425 } -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.Designer.cs
r645 r646 187 187 this.editItem = new System.Windows.Forms.ToolStripMenuItem(); 188 188 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 189 this.btnSaveClose = new System.Windows.Forms.Button(); 189 190 sYMBOL_AKWIZYTORALabel = new System.Windows.Forms.Label(); 190 191 tYTULLabel = new System.Windows.Forms.Label(); … … 1383 1384 // 1384 1385 this.dodajButton.Image = ((System.Drawing.Image)(resources.GetObject("dodajButton.Image"))); 1385 this.dodajButton.Location = new System.Drawing.Point( 817, 607);1386 this.dodajButton.Location = new System.Drawing.Point(743, 607); 1386 1387 this.dodajButton.Name = "dodajButton"; 1387 1388 this.dodajButton.Size = new System.Drawing.Size(76, 36); … … 1395 1396 // 1396 1397 this.anulujButton.Image = ((System.Drawing.Image)(resources.GetObject("anulujButton.Image"))); 1397 this.anulujButton.Location = new System.Drawing.Point( 730, 607);1398 this.anulujButton.Location = new System.Drawing.Point(652, 607); 1398 1399 this.anulujButton.Name = "anulujButton"; 1399 1400 this.anulujButton.Size = new System.Drawing.Size(74, 36); … … 1806 1807 this.errorProvider.ContainerControl = this; 1807 1808 // 1809 // btnSaveClose 1810 // 1811 this.btnSaveClose.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveClose.Image"))); 1812 this.btnSaveClose.Location = new System.Drawing.Point(832, 607); 1813 this.btnSaveClose.Name = "btnSaveClose"; 1814 this.btnSaveClose.Size = new System.Drawing.Size(76, 36); 1815 this.btnSaveClose.TabIndex = 80; 1816 this.btnSaveClose.Text = "Zapisz i zamknij"; 1817 this.btnSaveClose.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 1818 this.btnSaveClose.UseVisualStyleBackColor = true; 1819 this.btnSaveClose.Click += new System.EventHandler(this.btnSaveClose_Click); 1820 // 1808 1821 // OrderDetails 1809 1822 // … … 1812 1825 this.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange; 1813 1826 this.ClientSize = new System.Drawing.Size(920, 669); 1827 this.Controls.Add(this.btnSaveClose); 1814 1828 this.Controls.Add(this.button3); 1815 1829 this.Controls.Add(this.EmailButton); … … 2002 2016 private System.Windows.Forms.GroupBox moduleInfo; 2003 2017 private System.Windows.Forms.Label lblModuleDescription; 2018 private System.Windows.Forms.Button btnSaveClose; 2004 2019 2005 2020 -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.cs
r645 r646 4 4 using System.ComponentModel; 5 5 using System.Data; 6 using System.Diagnostics; 6 7 using System.Drawing; 7 8 using System.Text; … … 113 114 private OrderDetails() 114 115 { 116 Debug.WriteLine(string.Format("Event: {0}", "Constructor")); 117 115 118 InitializeComponent(); 116 119 … … 179 182 private void OrderDetails_Load(object sender, EventArgs e) 180 183 { 184 Debug.WriteLine(string.Format("Event: {0}", "Form_Load")); 181 185 wyroznienie_exportedCheckBox.Enabled = User.Instance().St_produkcja; 182 186 } … … 187 191 private void tYTULComboBox_SelectedIndexChanged(object sender, EventArgs e) 188 192 { 189 if (obslugaZdarzen) 190 { 191 if (SelectedTitle != null) 192 { 193 ComboBoxHelper.Bind(SelectedTitle.Sections, grzbietComboBox); 194 if (SelectedTitle.Sections.Count > 1) 195 { 196 grzbietComboBox.Items.Insert(0, new Section(0, null, "--proszê wybraæ--")); 197 if (SelectedTitle.Sections.Count != 0) 198 grzbietComboBox.SelectedIndex = 0; 199 } 200 else if (SelectedTitle.Sections.Count == 1) 201 { 193 if (!obslugaZdarzen) return; 194 195 Debug.WriteLine(string.Format("Event: {0}", "tYTULComboBox_SelectedIndexChanged")); 196 197 if (SelectedTitle != null) 198 { 199 ComboBoxHelper.Bind(SelectedTitle.Sections, grzbietComboBox); 200 if (SelectedTitle.Sections.Count > 1) 201 { 202 grzbietComboBox.Items.Insert(0, new Section(0, null, "--proszê wybraæ--")); 203 if (SelectedTitle.Sections.Count != 0) 202 204 grzbietComboBox.SelectedIndex = 0; 203 ComboBoxHelper.Bind(SelectedSection.Modules, mOD_TYPComboBox); 204 205 if (SelectedSection.Modules.Count > 1) 206 mOD_TYPComboBox.Items.Insert(0, new Module(0, "--proszê wybraæ--")); 207 if (SelectedSection.Modules.Count != 0) 208 mOD_TYPComboBox.SelectedIndex = 0; 209 } 210 211 iD_REKLAMYTextBox.Text = (nowyRekord) ? numeryReklam[SelectedTitle.ShortName] : iD_REKLAMYTextBox.Text; 212 } 205 } 206 else if (SelectedTitle.Sections.Count == 1) 207 { 208 grzbietComboBox.SelectedIndex = 0; 209 ComboBoxHelper.Bind(SelectedSection.Modules, mOD_TYPComboBox); 210 211 if (SelectedSection.Modules.Count > 1) 212 mOD_TYPComboBox.Items.Insert(0, new Module(0, "--proszê wybraæ--")); 213 if (SelectedSection.Modules.Count != 0) 214 mOD_TYPComboBox.SelectedIndex = 0; 215 } 216 217 iD_REKLAMYTextBox.Text = (nowyRekord) ? numeryReklam[SelectedTitle.ShortName] : iD_REKLAMYTextBox.Text; 213 218 } 214 219 } … … 216 221 private void grzbietComboBox_SelectedIndexChanged(object sender, EventArgs e) 217 222 { 218 if ( obslugaZdarzen)219 { 220 if (SelectedSection == null) return;221 222 ComboBoxHelper.Bind(SelectedSection.Modules, mOD_TYPComboBox);223 if (SelectedSection.Modules.Count > 1) 224 mOD_TYPComboBox.Items.Insert(0, new Module(0, "--proszê wybraæ--"));225 if (SelectedSection.Modules.Count != 0)226 mOD_TYPComboBox.SelectedIndex = 0;227 228 iD_REKLAMYTextBox.Text = (nowyRekord) ? numeryReklam[SelectedTitle.ShortName] : iD_REKLAMYTextBox.Text;229 230 }223 if (!obslugaZdarzen) return; 224 225 Debug.WriteLine(string.Format("Event: {0}", "grzbietComboBox_SelectedIndexChanged")); 226 227 if (SelectedSection == null) return; 228 229 ComboBoxHelper.Bind(SelectedSection.Modules, mOD_TYPComboBox); 230 if (SelectedSection.Modules.Count > 1) 231 mOD_TYPComboBox.Items.Insert(0, new Module(0, "--proszê wybraæ--")); 232 if (SelectedSection.Modules.Count != 0) 233 mOD_TYPComboBox.SelectedIndex = 0; 234 235 iD_REKLAMYTextBox.Text = (nowyRekord) ? numeryReklam[SelectedTitle.ShortName] : iD_REKLAMYTextBox.Text; 231 236 } 232 237 … … 260 265 private void ResetComboBoxes() 261 266 { 267 Debug.WriteLine(string.Format("Event: {0}", "ResetComboBoxes")); 268 262 269 tYTULComboBox.SelectedIndex = -1; 263 270 cbLocation.SelectedIndex = 0; … … 283 290 Cursor = Cursors.WaitCursor; 284 291 292 SaveChanges(); 293 294 MessageBox.Show("Zmiany zapisane"); 295 Cursor = Cursors.Default; 296 } 297 298 private void btnSaveClose_Click(object sender, EventArgs e) 299 { 300 if (!ValidateChildren()) 301 { 302 MessageBox.Show("Proszê uzupe³niæ wymagane pola."); 303 return; 304 } 305 306 Cursor = Cursors.WaitCursor; 307 308 SaveChanges(); 309 310 MessageBox.Show("Zmiany zapisane"); 311 Cursor = Cursors.Default; 312 Close(); 313 } 314 315 private void SaveChanges() 316 { 285 317 Reklama.MOD_TYP = SelectedModule.Name; 286 318 Reklama.TYTU£ = SelectedTitle.ShortName; … … 345 377 346 378 ukazeSieDataGridView.Sort(ukazeSieDataGridView.Columns[0], ListSortDirection.Ascending); 347 348 MessageBox.Show("Zmiany zapisane");349 Cursor = Cursors.Default;350 379 } 351 380 … … 362 391 private void promocjaComboBox_TextChanged(object sender, EventArgs e) 363 392 { 364 if (!obslugaZdarzen || promocjaComboBox.Text != "" || rEKLAMABindingSource.Current == null)393 if (!obslugaZdarzen || !string.IsNullOrEmpty(promocjaComboBox.Text) || rEKLAMABindingSource.Current == null) 365 394 return; 366 395 … … 377 406 (REKLAMADataSet.REKLAMARow) ((DataRowView) rEKLAMABindingSource.Current).Row; 378 407 379 sprawdzBledy();408 SprawdzBledy(); 380 409 381 410 if (!User.Instance().St_kierownik && reklama.IsPROMOCJANull()) … … 428 457 obslugaZdarzen = true; 429 458 430 blokowanieZrealizowanychEmisji();459 BlokowanieZrealizowanychEmisji(); 431 460 432 461 Zmiany(); … … 441 470 rEKLAMAUKAZESIEWNRBindingSource.RemoveCurrent(); 442 471 } 443 blokowanieZrealizowanychEmisji();472 BlokowanieZrealizowanychEmisji(); 444 473 } 445 474 … … 459 488 /// Blokuje emisje,które ju¿ siê ukaza³y. 460 489 /// </summary> 461 private void blokowanieZrealizowanychEmisji()490 private void BlokowanieZrealizowanychEmisji() 462 491 { 463 492 // ukazeSieDataGridView.Enabled = true; … … 487 516 488 517 489 public void zablokujGroupBoxa(GroupBox g)518 public void ZablokujGroupBoxa(GroupBox g) 490 519 { 491 520 foreach (Control c in g.Controls) … … 503 532 } 504 533 505 public void odblokujGroupBoxa(GroupBox g)534 public void OdblokujGroupBoxa(GroupBox g) 506 535 { 507 536 foreach (Control c in g.Controls) … … 522 551 /// Blokuje kontrolki zwi¹zane z danymi zamówienia 523 552 /// </summary> 524 private void zablokujGroupBoxy()525 { 526 zablokujGroupBoxa(groupBox1);553 private void ZablokujGroupBoxy() 554 { 555 ZablokujGroupBoxa(groupBox1); 527 556 528 557 if (!(User.Instance().St_produkcja | User.Instance().St_kierownik)) 529 558 { 530 zablokujGroupBoxa(groupBox2);531 } 532 zablokujGroupBoxa(groupBox3);533 zablokujGroupBoxa(groupBox4);559 ZablokujGroupBoxa(groupBox2); 560 } 561 ZablokujGroupBoxa(groupBox3); 562 ZablokujGroupBoxa(groupBox4); 534 563 535 564 //lokalizacje mo¿na zmieniaæ … … 541 570 /// Odblokuje kontrolki zwi¹zane z danymi zamówienia 542 571 /// </summary> 543 private void odblokujGroupBoxy()544 { 545 odblokujGroupBoxa(groupBox1);546 odblokujGroupBoxa(groupBox2);547 odblokujGroupBoxa(groupBox3);548 odblokujGroupBoxa(groupBox4);572 private void OdblokujGroupBoxy() 573 { 574 OdblokujGroupBoxa(groupBox1); 575 OdblokujGroupBoxa(groupBox2); 576 OdblokujGroupBoxa(groupBox3); 577 OdblokujGroupBoxa(groupBox4); 549 578 } 550 579 … … 576 605 /// Sprawdza poprawnoæ zamówienia... pewnie niekompletnie 577 606 /// </summary> 578 private void sprawdzBledy()607 private void SprawdzBledy() 579 608 { 580 609 if (ogl_dzialComboBox.SelectedValue == null) … … 617 646 /// Przelicza wartoæ zamówienia. 618 647 /// </summary> 619 private void przelicz()648 private void Przelicz() 620 649 { 621 650 DataRowView row = (DataRowView)rEKLAMABindingSource.Current; … … 912 941 public void WznowZamowienie(int rekId) 913 942 { 943 Debug.WriteLine(string.Format("Event: {0}", "WznowZamowienie")); 944 914 945 nowyRekord = true; 915 946 bylyZmiany = false; … … 937 968 newRow["WYS"] = oldRow["WYS"]; 938 969 newRow["MOD_TYP"] = oldRow["MOD_TYP"]; 939 newRow["KROTNOÆ"] = oldRow["KROTNOÆ"];970 newRow["KROTNOÆ"] = 0; 940 971 newRow["ODSTÊP"] = oldRow["ODSTÊP"]; 941 972 newRow["KOLOR"] = oldRow["KOLOR"]; … … 990 1021 cbLocation.SelectedIndex = GetAdLocationIndex(Convert.ToInt32(newRow["AdLocationId"])); 991 1022 992 if (Reklama.ogl_dzial > 0) 993 { 994 ogl_dzialComboBox.SelectedIndex = GetNavigationColumnIndex(Reklama.ogl_dzial); 995 if (Reklama.ogl_rozdzial > 0) 996 ogl_rozdzialComboBox.SelectedIndex = GetNavigationSubColumnIndex(Reklama.ogl_rozdzial); 997 } 1023 if (EnableModuleCount(SelectedModule)) 1024 { 1025 ModuleCount moduleCount = GetModuleCount(SelectedModule, Reklama); 1026 txtHorizontal.Text = moduleCount.Horizontal.ToString(); 1027 txtVertical.Text = moduleCount.Vertical.ToString(); 1028 } 1029 1030 sZERTextBox.Text = Reklama.SZER.ToString(); 1031 wYSTextBox.Text = Reklama.WYS.ToString(); 998 1032 999 1033 obslugaZdarzen = false; … … 1024 1058 private void OrderDetails_FormClosing(object sender, FormClosingEventArgs e) 1025 1059 { 1060 Debug.WriteLine(string.Format("Event: {0}", "FormClosing")); 1061 1026 1062 if (nowyRekord) 1027 1063 { … … 1080 1116 if (wystawionoFakture) 1081 1117 { 1082 zablokujGroupBoxy();1118 ZablokujGroupBoxy(); 1083 1119 } 1084 1120 else 1085 1121 { 1086 odblokujGroupBoxy();1087 } 1088 } 1089 1090 blokowanieZrealizowanychEmisji();1122 OdblokujGroupBoxy(); 1123 } 1124 } 1125 1126 BlokowanieZrealizowanychEmisji(); 1091 1127 } 1092 1128 … … 1330 1366 private void ukazeSieDataGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) 1331 1367 { 1332 blokowanieZrealizowanychEmisji();1368 BlokowanieZrealizowanychEmisji(); 1333 1369 } 1334 1370 … … 1385 1421 1386 1422 rEKLAMABindingSource.EndEdit(); 1387 przelicz();1423 Przelicz(); 1388 1424 } 1389 1425 else … … 1457 1493 private void Init() 1458 1494 { 1495 Debug.WriteLine(string.Format("Event: {0}", "Init")); 1496 1459 1497 if (rEKLAMABindingSource.Current == null) return; 1460 1498 … … 1565 1603 private void mOD_TYPComboBox_SelectedIndexChanged(object sender, EventArgs e) 1566 1604 { 1605 if (!obslugaZdarzen) return; 1606 1607 Debug.WriteLine(string.Format("Event: {0}", "mOD_TYPComboBox_SelectedIndexChanged")); 1608 1609 1567 1610 if (SelectedModule == null || SelectedModule.Id == 0) 1568 1611 { … … 1594 1637 txtVertical.BackColor = readOnly ? SystemColors.InactiveCaptionText : Color.White; 1595 1638 1596 txtHorizontal.Text = 1.ToString(); 1597 txtVertical.Text = 1.ToString(); 1598 1639 if (readOnly) 1640 { 1641 txtHorizontal.Text = 1.ToString(); 1642 txtVertical.Text = 1.ToString(); 1643 } 1599 1644 1600 1645 //Enable/Disable dzial rozdzial combos... … … 1711 1756 private void txtHorizontal_TextChanged(object sender, EventArgs e) 1712 1757 { 1758 Debug.WriteLine(string.Format("Event: {0}", "txtHorizontal_TextChanged")); 1759 1713 1760 if (Validate()) 1714 1761 { … … 1727 1774 private void txtVertical_TextChanged(object sender, EventArgs e) 1728 1775 { 1776 Debug.WriteLine(string.Format("Event: {0}", "txtVertical_TextChanged")); 1777 1729 1778 if (Validate()) 1730 1779 { … … 1817 1866 private void txtHorizontal_Validating(object sender, CancelEventArgs e) 1818 1867 { 1868 Debug.WriteLine(string.Format("Event: {0}", "txtHorizontal_Validating")); 1869 1819 1870 string errorMessage = "Proszê podaæ wartoæ z przedzia³u 1-8."; 1820 1871 string regex = "^[1-8]{1}$"; … … 1846 1897 private void txtVertical_Validating(object sender, CancelEventArgs e) 1847 1898 { 1899 Debug.WriteLine(string.Format("Event: {0}", "txtVertical_Validating")); 1900 1901 1848 1902 string errorMessage = "Proszê podaæ wartoæ z przedzia³u 1-8."; 1849 1903 string regex = "^[1-8]{1}$"; … … 1889 1943 private void ogl_dzialComboBox_SelectedIndexChanged(object sender, EventArgs e) 1890 1944 { 1891 if (obslugaZdarzen) 1892 { 1893 if ((SelectedNavigationColumn != null) && (SelectedTitle != null)) 1894 { 1895 NavigationColumnRepository navigationColumnRepository = 1896 new NavigationColumnRepository(ConnString.getConnString().Value); 1897 navigationColumnRepository.FindActiveNavigationSubColumnsByNavigationColumn(SelectedNavigationColumn); 1898 ComboBoxHelper.Bind(navigationColumnRepository.FindActiveNavigationSubColumnsByNavigationColumn(SelectedNavigationColumn), 1899 ogl_rozdzialComboBox); 1900 1901 ogl_rozdzialComboBox.DisplayMember = "Name"; 1902 ogl_rozdzialComboBox.ValueMember = "Id"; 1903 } 1945 if (!obslugaZdarzen) return; 1946 1947 Debug.WriteLine(string.Format("Event: {0}", "txtVertical_Validating")); 1948 1949 if ((SelectedNavigationColumn != null) && (SelectedTitle != null)) 1950 { 1951 NavigationColumnRepository navigationColumnRepository = 1952 new NavigationColumnRepository(ConnString.getConnString().Value); 1953 navigationColumnRepository.FindActiveNavigationSubColumnsByNavigationColumn(SelectedNavigationColumn); 1954 ComboBoxHelper.Bind( 1955 navigationColumnRepository.FindActiveNavigationSubColumnsByNavigationColumn(SelectedNavigationColumn), 1956 ogl_rozdzialComboBox); 1957 1958 ogl_rozdzialComboBox.DisplayMember = "Name"; 1959 ogl_rozdzialComboBox.ValueMember = "Id"; 1904 1960 } 1905 1961 } -
branches/ReklamaReorganizacja/BazaReklam/OrderDetails.resx
r645 r646 388 388 <value>155</value> 389 389 </metadata> 390 <data name="btnSaveClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 391 <value> 392 iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 393 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7wAA 394 Cu8BfXaKSAAAA0RJREFUSEvVlXlI02EYx58d3rJ0m85j5hE6t2mmzDLvmRdp5pVRlh1kBwRGiWJGf0RG 395 ogR2eSEdioTH5uY000qCIIj+UVOCwD/rLyGbRX+UT8+7C5coeBT0gy/bb3vfz/f7PO/vfX8A/9nFobxM 396 m3y1Qg7chllohI9QC6eJvoXE2xyXJ5Dr1AY/6qcr8fzbYvRsd/wFxVBJcJ+Nm3RCtkMLfG98X4O5oypU 397 aj1RZfBBTjVnhuDZJMH6q+iGTB7BG6arMXcs1gSPHPDGGIME+Ve5nwl8iSRdn0EXpHGbYaGBJSe4gsE1 398 Xhill6CwxWURdkE3gWtIgTaDbe88gqQ6QaawAjzpR/6Kzo9AzWkGY/1UNeY9j0O5xgMjGHzQAk+HHpp7 399 n1RAEgIgcEP1gqbkUdnPg+NqFHW4TPGzQEV/ui575LohEe6C8eZkFea/iMdwgiu1Xrid4CKWPAN6aU4L 400 6TApwBQ0pENw7cSrTGyYrsDS13GYORqGDk28GYgENQ1wt5l0QQLB5+smK01wGYP3izFC52WGZ0GfBV5q 401 aY25CyE9grmmD1WYNCLBPaOBmD4WjLuHpQj1MAnhkEJD3OAhxMEd+MLgReNJGNYnQAXBI63wbBv8iB2c 402 Gfh3us+Wv0k3wdUjgZj8dCum0ufOQT+EOjIpg1O0ieauT1wkeIoJLie4UudtTr4X+gnTSjpKCiI52K2f 403 Wy0nR/jYeT5jLMQEThgOoAoCMH7IH6MHJCh5IMAbE1VYQusTyuAaMcoHxGZ4DmhWhVuc3OEQnHRu531V 404 PwsisNSUXqX3xRidBAtfJmGiQWZKHt4nQgWDtxJ8H2hpfpslefCy5EvK4NJ3ERyAcpcWvjFh2B9jDX4Y 405 rfPBKK03KjQiaokIw5ms8DwbvIzmrgq3+jATMRTBGed7PGPskC/uoF3Jnm/WbxlJrhWZk+eDjsa2k46x 406 Z2S15HZrQTdmk0I469zEX2C7Ukmpw3qFKLPCC2zw42uF21eyH8453eJ9U1JL5DoxittcF6k6vSX5uuH2 407 JqlQTsfVBP8K9xOk2XaoFe74Z/lrvTe3CyCVdIF0mVRiWdANw5dWwo4KduSyU1FEWvkQXGsJS8b/pffs 408 BhL906m/AVuDSMCQycqGAAAAAElFTkSuQmCC 409 </value> 410 </data> 390 411 </root> -
branches/ReklamaReorganizacja/BazaReklam/ProjectForm.Designer.cs
r569 r646 181 181 // 182 182 path_to_materialLabel.AutoSize = true; 183 path_to_materialLabel.Location = new System.Drawing.Point(28, 4 28);183 path_to_materialLabel.Location = new System.Drawing.Point(28, 454); 184 184 path_to_materialLabel.Name = "path_to_materialLabel"; 185 185 path_to_materialLabel.Size = new System.Drawing.Size(115, 13); … … 190 190 // 191 191 uwagiLabel.AutoSize = true; 192 uwagiLabel.Location = new System.Drawing.Point(28, 4 67);192 uwagiLabel.Location = new System.Drawing.Point(28, 493); 193 193 uwagiLabel.Name = "uwagiLabel"; 194 194 uwagiLabel.Size = new System.Drawing.Size(40, 13); … … 315 315 this.lokalizacjaTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 316 316 this.lokalizacjaTextBox.Location = new System.Drawing.Point(28, 398); 317 this.lokalizacjaTextBox.MaxLength = 25; 317 this.lokalizacjaTextBox.MaxLength = 100; 318 this.lokalizacjaTextBox.Multiline = true; 318 319 this.lokalizacjaTextBox.Name = "lokalizacjaTextBox"; 319 this.lokalizacjaTextBox.Size = new System.Drawing.Size(446, 21); 320 this.lokalizacjaTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 321 this.lokalizacjaTextBox.Size = new System.Drawing.Size(446, 53); 320 322 this.lokalizacjaTextBox.TabIndex = 16; 321 323 // … … 325 327 this.path_to_materialTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUKCJABindingSource, "path_to_material", true)); 326 328 this.path_to_materialTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 327 this.path_to_materialTextBox.Location = new System.Drawing.Point(28, 4 44);329 this.path_to_materialTextBox.Location = new System.Drawing.Point(28, 470); 328 330 this.path_to_materialTextBox.MaxLength = 100; 329 331 this.path_to_materialTextBox.Name = "path_to_materialTextBox"; … … 336 338 this.uwagiTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUKCJABindingSource, "uwagi", true)); 337 339 this.uwagiTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 338 this.uwagiTextBox.Location = new System.Drawing.Point(26, 486);340 this.uwagiTextBox.Location = new System.Drawing.Point(26, 512); 339 341 this.uwagiTextBox.MaxLength = 200; 340 342 this.uwagiTextBox.Multiline = true; … … 374 376 this.dodajButton.DialogResult = System.Windows.Forms.DialogResult.OK; 375 377 this.dodajButton.Image = ((System.Drawing.Image)(resources.GetObject("dodajButton.Image"))); 376 this.dodajButton.Location = new System.Drawing.Point(439, 5 15);378 this.dodajButton.Location = new System.Drawing.Point(439, 541); 377 379 this.dodajButton.Name = "dodajButton"; 378 380 this.dodajButton.Size = new System.Drawing.Size(50, 43); … … 399 401 this.bindingNavigatorMoveLastItem, 400 402 this.bindingNavigatorSeparator2}); 401 this.bindingNavigator1.Location = new System.Drawing.Point(0, 578);403 this.bindingNavigator1.Location = new System.Drawing.Point(0, 618); 402 404 this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; 403 405 this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem; … … 481 483 this.anulujButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 482 484 this.anulujButton.Image = ((System.Drawing.Image)(resources.GetObject("anulujButton.Image"))); 483 this.anulujButton.Location = new System.Drawing.Point(381, 5 15);485 this.anulujButton.Location = new System.Drawing.Point(381, 541); 484 486 this.anulujButton.Name = "anulujButton"; 485 487 this.anulujButton.Size = new System.Drawing.Size(52, 43); … … 492 494 // 493 495 this.sTANLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.pRODUKCJABindingSource, "STAN", true)); 494 this.sTANLabel1.Location = new System.Drawing.Point(27, 5 35);496 this.sTANLabel1.Location = new System.Drawing.Point(27, 571); 495 497 this.sTANLabel1.Name = "sTANLabel1"; 496 498 this.sTANLabel1.Size = new System.Drawing.Size(100, 23); … … 500 502 // 501 503 this.drukujProjektButton.Image = ((System.Drawing.Image)(resources.GetObject("drukujProjektButton.Image"))); 502 this.drukujProjektButton.Location = new System.Drawing.Point(296, 5 15);504 this.drukujProjektButton.Location = new System.Drawing.Point(296, 541); 503 505 this.drukujProjektButton.Name = "drukujProjektButton"; 504 506 this.drukujProjektButton.Size = new System.Drawing.Size(50, 43); … … 514 516 // 515 517 this.dodajNowyButton.Image = ((System.Drawing.Image)(resources.GetObject("dodajNowyButton.Image"))); 516 this.dodajNowyButton.Location = new System.Drawing.Point(394, 4 70);518 this.dodajNowyButton.Location = new System.Drawing.Point(394, 496); 517 519 this.dodajNowyButton.Name = "dodajNowyButton"; 518 520 this.dodajNowyButton.Size = new System.Drawing.Size(95, 32); … … 541 543 // 542 544 this.usunButton.Enabled = false; 543 this.usunButton.Location = new System.Drawing.Point(296, 4 70);545 this.usunButton.Location = new System.Drawing.Point(296, 496); 544 546 this.usunButton.Name = "usunButton"; 545 547 this.usunButton.Size = new System.Drawing.Size(91, 31); … … 593 595 "francuski", 594 596 "hiszpañski"}); 595 this.jezykComboBox.Location = new System.Drawing.Point(160, 5 50);597 this.jezykComboBox.Location = new System.Drawing.Point(160, 576); 596 598 this.jezykComboBox.Name = "jezykComboBox"; 597 599 this.jezykComboBox.Size = new System.Drawing.Size(114, 21); … … 601 603 // 602 604 this.label1.AutoSize = true; 603 this.label1.Location = new System.Drawing.Point(157, 5 35);605 this.label1.Location = new System.Drawing.Point(157, 561); 604 606 this.label1.Name = "label1"; 605 607 this.label1.Size = new System.Drawing.Size(37, 13); … … 610 612 // 611 613 this.btnOpenFolder.Image = global::Baza_Reklam.Properties.Resources.folder; 612 this.btnOpenFolder.Location = new System.Drawing.Point(439, 4 44);614 this.btnOpenFolder.Location = new System.Drawing.Point(439, 470); 613 615 this.btnOpenFolder.Name = "btnOpenFolder"; 614 616 this.btnOpenFolder.Size = new System.Drawing.Size(35, 23); … … 621 623 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 622 624 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 623 this.ClientSize = new System.Drawing.Size(509, 6 03);625 this.ClientSize = new System.Drawing.Size(509, 643); 624 626 this.Controls.Add(this.btnOpenFolder); 625 627 this.Controls.Add(this.label1); -
branches/ReklamaReorganizacja/BazaReklam/ZamowieniaForm.cs
r645 r646 739 739 errorMessage += zamowienie.IsidKontaNull() ? "Nie wybrano konta. \n" : ""; 740 740 errorMessage += zamowienie.IssposobZaplatyNull() ? "Nie wybrano sposobu zap³aty. \n" : ""; 741 errorMessage += string.IsNullOrEmpty(klientRow.Country) ? "Brak pañstwa klienta. \n" : "";742 errorMessage += string.IsNullOrEmpty(klientRow.Adres_Fkatura) ? "Brak adresu faktury klienta. \n" : "";743 errorMessage += string.IsNullOrEmpty(klientRow.Nip) ? "Brak nipu klienta. \n" : "";744 745 if ( klientRow.Country != "Polska")746 errorMessage += string.IsNullOrEmpty(klientRow.nipKraj) ? "Brak symbolu kraju w nipie klienta. \n" : "";741 errorMessage += klientRow.IsCountryNull() || string.IsNullOrEmpty(klientRow.Country) ? "Brak pañstwa klienta. \n" : ""; 742 errorMessage += klientRow.IsAdres_FkaturaNull() || string.IsNullOrEmpty(klientRow.Adres_Fkatura) ? "Brak adresu faktury klienta. \n" : ""; 743 errorMessage += klientRow.IsNipNull() || string.IsNullOrEmpty(klientRow.Nip) ? "Brak nipu klienta. \n" : ""; 744 745 if (!klientRow.IsCountryNull() && klientRow.Country != "Polska") 746 errorMessage += klientRow.IsnipKrajNull() || string.IsNullOrEmpty(klientRow.nipKraj) ? "Brak symbolu kraju w nipie klienta. \n" : ""; 747 747 748 748 if (rEKLAMADataSet.REKLAMA.Rows.Count <= 0)
