Zbiór zmian 101 dla Baza Reklam 2 - Faktury
- Data:
- 2008-12-30 23:06:38 (17 years ago)
- Lokalizacja:
- Baza Reklam 2 - Faktury
- Pliki:
-
- 5 zmodyfikowane
-
Baza Reklam.suo (zmodyfikowane) (poprzedni)
-
ZamowieniaForm.Designer.cs (zmodyfikowane) (4 diffs)
-
ZamowieniaForm.cs (zmodyfikowane) (5 diffs)
-
ZamowieniaForm.resx (zmodyfikowane) (2 diffs)
-
app.config (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
Baza Reklam 2 - Faktury/ZamowieniaForm.Designer.cs
r88 r101 92 92 this.label1 = new System.Windows.Forms.Label(); 93 93 this.groupBox2 = new System.Windows.Forms.GroupBox(); 94 this.proformaButton = new System.Windows.Forms.Button(); 94 95 this.dtpZmianaDaty = new System.Windows.Forms.DateTimePicker(); 95 96 this.groupBox3 = new System.Windows.Forms.GroupBox(); … … 100 101 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 101 102 this.KlientLabel = new System.Windows.Forms.Label(); 102 this.proformaButton = new System.Windows.Forms.Button();103 103 ((System.ComponentModel.ISupportInitialize)(this.zamowieniaDataGridView)).BeginInit(); 104 104 ((System.ComponentModel.ISupportInitialize)(this.zamowieniaBindingSource)).BeginInit(); … … 680 680 this.groupBox2.Text = "Zamówienia"; 681 681 // 682 // proformaButton 683 // 684 this.proformaButton.Location = new System.Drawing.Point(180, 292); 685 this.proformaButton.Name = "proformaButton"; 686 this.proformaButton.Size = new System.Drawing.Size(36, 37); 687 this.proformaButton.TabIndex = 13; 688 this.proformaButton.Text = "P"; 689 this.proformaButton.UseVisualStyleBackColor = true; 690 this.proformaButton.Click += new System.EventHandler(this.proformaButton_Click); 691 // 682 692 // dtpZmianaDaty 683 693 // … … 757 767 this.KlientLabel.TabIndex = 15; 758 768 this.KlientLabel.Text = "----"; 759 //760 // proformaButton761 //762 this.proformaButton.Location = new System.Drawing.Point(180, 292);763 this.proformaButton.Name = "proformaButton";764 this.proformaButton.Size = new System.Drawing.Size(36, 37);765 this.proformaButton.TabIndex = 13;766 this.proformaButton.Text = "P";767 this.proformaButton.UseVisualStyleBackColor = true;768 this.proformaButton.Click += new System.EventHandler(this.proformaButton_Click);769 769 // 770 770 // ZamowieniaForm -
Baza Reklam 2 - Faktury/ZamowieniaForm.cs
r97 r101 121 121 if (klient != null) 122 122 { 123 this.KlientLabel.Text = "KOD KLIENTA: " + klient.kodKlienta; 123 if (klient.IskodKlientaNull()) 124 { 125 this.KlientLabel.Text = "BRAK KODU KLIENTA"; 126 } 127 else 128 { 129 this.KlientLabel.Text = "KOD KLIENTA: " + klient.kodKlienta; 130 } 124 131 } 125 132 } … … 217 224 REKLAMADataSet.REKLAMARow row, string s) 218 225 { 219 if (zamowienie.zafakturowanoWszystko )220 { 221 s += "Zamówienie jest ju¿ w ca³ocizafakturowane.";226 if (zamowienie.zafakturowanoWszystko || zamowienie.zafakturowano) 227 { 228 s += "Zamówienie jest ju¿ zafakturowane."; 222 229 } 223 230 … … 308 315 309 316 wystawFakture(zamowienie, klient); 317 318 this.zamowieniaBindingSource.ResetBindings(false); 310 319 311 320 this.Cursor = Cursors.Default; … … 1115 1124 DataRowView z = (DataRowView)zamowieniaBindingSource.Current; 1116 1125 REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row; 1126 1117 1127 rEKLAMATableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.REKLAMA, zamowienie.idZamowienia); 1118 1128 fAKTURYTableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.FAKTURY, zamowienie.idZamowienia); … … 1120 1130 dodajDoZamButton.Enabled = !zamowienie.zafakturowanoWszystko; 1121 1131 usunZZamButton.Enabled = !zamowienie.zafakturowanoWszystko; 1132 fakturujButton.Enabled = !zamowienie.zafakturowanoWszystko; 1133 1134 if (!zamowienie.IsdataOstatniejZafakturowanejEmisjiNull()) 1135 { 1136 DateTime data = zamowienie.dataOstatniejZafakturowanejEmisji; 1137 DateTime dzis = DateTime.Today; 1138 1139 if ((dzis.Year > data.Year) || 1140 (dzis.Year == data.Year & dzis.Month > data.Month)) 1141 { 1142 fakturujButton.Enabled = true; 1143 } 1144 else 1145 { 1146 fakturujButton.Enabled = false; 1147 } 1148 } 1122 1149 } 1123 1150 } -
Baza Reklam 2 - Faktury/ZamowieniaForm.resx
r82 r101 352 352 </metadata> 353 353 <metadata name="rEKLAMATableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 354 <value> 727, 17</value>354 <value>543, 17</value> 355 355 </metadata> 356 356 <metadata name="fAKTURYTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> … … 540 540 </data> 541 541 <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 542 <value> 38</value>542 <value>183</value> 543 543 </metadata> 544 544 </root> -
Baza Reklam 2 - Faktury/app.config
r71 r101 8 8 <connectionStrings> 9 9 <clear /> 10 <add name="Baza_Reklam.Properties.Settings.testowe" connectionString="Data Source=WSIEDZIK\SQL2005DEV;Initial Catalog=BAZA_REKLAM_TEST;Integrated Security=True" 11 providerName="System.Data.SqlClient" /> 12 <add name="CT" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 10 <add name="CT" connectionString="Data Source=10.0.0.21;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 13 11 providerName="System.Data.SqlClient" /> 14 12 <add name="Baza_Reklam.Properties.Settings.BAZA_REKLAMConnectionString1" … … 19 17 <add name="Baza_Reklam.Properties.Settings.BAZA_REKLAM_PROMO" 20 18 connectionString="Data Source=DOROTA-PC\SQL2005MSDN;Initial Catalog=BAZA_REKLAM;Integrated Security=True" /> 19 <add name="Baza_Reklam.Properties.Settings.testowe" connectionString="Data Source=10.0.0.21;Initial Catalog=BAZA_REKLAM_TEST;User ID=sa" 20 providerName="System.Data.SqlClient" /> 21 <add name="Baza_Reklam.Properties.Settings.BAZA_REKLAM_TESTConnectionString" 22 connectionString="Data Source=WSIEDZIK\SQL2005DEV;Initial Catalog=BAZA_REKLAM_TEST;Integrated Security=True" 23 providerName="System.Data.SqlClient" /> 21 24 </connectionStrings> 22 25 <applicationSettings>
