Pokaż
Ignoruj:
Pliki:
1 zmodyfikowane

Legenda:

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

    r28 r12  
    11591159 
    11601160                    int idFaktury = Convert.ToInt32(row["id_faktury"]); 
    1161  
    1162                     FactureViewer fv = new FactureViewer(idFaktury, true, 0); 
    1163                     fv.ShowDialog(); 
    1164  
    1165                     this.Cursor = Cursors.Default;      
     1161                    if (User.getUser().IdAgencji == 6) 
     1162                    { 
     1163                        FactureViewer fv = new FactureViewer(idFaktury); 
     1164                        fv.ShowDialog(); 
     1165                    } 
     1166                    else 
     1167                    { 
     1168                        FactureViewer fv = new FactureViewer(idFaktury, true); 
     1169                        fv.ShowDialog(); 
     1170                    } 
     1171 
     1172                    this.Cursor = Cursors.Default; 
    11661173                } 
    11671174                else { 
     
    14671474                if (row["id_faktury"] != DBNull.Value) 
    14681475                { 
    1469                     this.Cursor = Cursors.WaitCursor; 
    1470  
    14711476                    int idFaktury = Convert.ToInt32(row["id_faktury"]); 
    14721477 
    1473                     FactureViewer fv = new FactureViewer(idFaktury, true, 0); 
    1474                     fv.ShowDialog(); 
    1475  
    1476                     this.Cursor = Cursors.Default;      
     1478                    if (User.getUser().IdAgencji == 6) 
     1479                    { 
     1480                        FactureViewer fv = new FactureViewer(idFaktury); 
     1481                        fv.ShowDialog(); 
     1482                    } 
     1483                    else 
     1484                    { 
     1485                        FactureViewer fv = new FactureViewer(idFaktury, true); 
     1486                        fv.ShowDialog(); 
     1487                    } 
    14771488                } 
    14781489            }