Pokaż
Ignoruj:
Pliki:
1 zmodyfikowane

Legenda:

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

    r28 r2  
    585585            { 
    586586                DataRowView row = (DataRowView)zestawienieFakturBindingSource.Current; 
    587                   
     587 
    588588                if (row["id_faktury"] != DBNull.Value) 
    589589                { 
     
    591591 
    592592                    int idFaktury = Convert.ToInt32(row["id_faktury"]); 
    593                 
    594                     FactureViewer fv = new FactureViewer(idFaktury, true, 0); 
    595                     fv.ShowDialog(); 
    596                 
     593 
     594                    if (User.getUser().IdAgencji == 6) 
     595                    { 
     596                        FactureViewer fv = new FactureViewer(idFaktury); 
     597                        fv.ShowDialog(); 
     598                    } 
     599                    else 
     600                    { 
     601                        FactureViewer fv = new FactureViewer(idFaktury, true); 
     602                        fv.ShowDialog(); 
     603                    } 
    597604                    this.Cursor = Cursors.Default;                     
    598605                }