Zbiór zmian 101 dla Baza Reklam 2 - Faktury

Pokaż
Ignoruj:
Data:
2008-12-30 23:06:38 (17 years ago)
Autor:
dorota
Opis:
 
Lokalizacja:
Baza Reklam 2 - Faktury
Pliki:
5 zmodyfikowane

Legenda:

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

    r88 r101  
    9292            this.label1 = new System.Windows.Forms.Label(); 
    9393            this.groupBox2 = new System.Windows.Forms.GroupBox(); 
     94            this.proformaButton = new System.Windows.Forms.Button(); 
    9495            this.dtpZmianaDaty = new System.Windows.Forms.DateTimePicker(); 
    9596            this.groupBox3 = new System.Windows.Forms.GroupBox(); 
     
    100101            this.toolTip = new System.Windows.Forms.ToolTip(this.components); 
    101102            this.KlientLabel = new System.Windows.Forms.Label(); 
    102             this.proformaButton = new System.Windows.Forms.Button(); 
    103103            ((System.ComponentModel.ISupportInitialize)(this.zamowieniaDataGridView)).BeginInit(); 
    104104            ((System.ComponentModel.ISupportInitialize)(this.zamowieniaBindingSource)).BeginInit(); 
     
    680680            this.groupBox2.Text = "Zamówienia"; 
    681681            //  
     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            //  
    682692            // dtpZmianaDaty 
    683693            //  
     
    757767            this.KlientLabel.TabIndex = 15; 
    758768            this.KlientLabel.Text = "----"; 
    759             //  
    760             // proformaButton 
    761             //  
    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); 
    769769            //  
    770770            // ZamowieniaForm 
  • Baza Reklam 2 - Faktury/ZamowieniaForm.cs

    r97 r101  
    121121            if (klient != null) 
    122122            { 
    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                } 
    124131            } 
    125132        } 
     
    217224            REKLAMADataSet.REKLAMARow row, string s) 
    218225        { 
    219             if (zamowienie.zafakturowanoWszystko) 
    220             { 
    221                 s += "Zamówienie jest ju¿ w ca³oœci zafakturowane."; 
     226            if (zamowienie.zafakturowanoWszystko || zamowienie.zafakturowano) 
     227            { 
     228                s += "Zamówienie jest ju¿ zafakturowane."; 
    222229            } 
    223230 
     
    308315 
    309316                wystawFakture(zamowienie, klient); 
     317 
     318                this.zamowieniaBindingSource.ResetBindings(false); 
    310319 
    311320                this.Cursor = Cursors.Default; 
     
    11151124                DataRowView z = (DataRowView)zamowieniaBindingSource.Current; 
    11161125                REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row; 
     1126                 
    11171127                rEKLAMATableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.REKLAMA, zamowienie.idZamowienia); 
    11181128                fAKTURYTableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.FAKTURY, zamowienie.idZamowienia); 
     
    11201130                dodajDoZamButton.Enabled = !zamowienie.zafakturowanoWszystko; 
    11211131                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                } 
    11221149            } 
    11231150        } 
  • Baza Reklam 2 - Faktury/ZamowieniaForm.resx

    r82 r101  
    352352  </metadata> 
    353353  <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> 
    355355  </metadata> 
    356356  <metadata name="fAKTURYTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     
    540540  </data> 
    541541  <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> 
    543543  </metadata> 
    544544</root> 
  • Baza Reklam 2 - Faktury/app.config

    r71 r101  
    88       <connectionStrings> 
    99              <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" 
    1311                     providerName="System.Data.SqlClient" /> 
    1412              <add name="Baza_Reklam.Properties.Settings.BAZA_REKLAMConnectionString1" 
     
    1917              <add name="Baza_Reklam.Properties.Settings.BAZA_REKLAM_PROMO" 
    2018                     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" /> 
    2124       </connectionStrings> 
    2225       <applicationSettings>