Es werden nun mehrere Sanierungen hinzugefügt
This commit is contained in:
@@ -34,6 +34,18 @@ namespace SanSystem
|
||||
Inspektionsobjekt tmp = (Inspektionsobjekt)dgvw.DataBoundItem;
|
||||
if (tmp == null) continue;
|
||||
dgvw.DefaultCellStyle.BackColor = Color.White;
|
||||
|
||||
int anzahlSan = tmp.Sanierung.Count;
|
||||
int anzahlfertig = 0;
|
||||
int counter = 0;
|
||||
foreach(Sanierung san in tmp.Sanierung)
|
||||
{
|
||||
Sanieren _san = (san as Sanieren);
|
||||
if (_san.Fertig) anzahlfertig++;
|
||||
counter++;
|
||||
}
|
||||
if (counter != 0 && (anzahlfertig == anzahlSan))
|
||||
dgvw.DefaultCellStyle.BackColor = Color.Green;
|
||||
if (
|
||||
(tmp.BisPunkt== null || tmp.BisPunkt.Equals(""))
|
||||
|| (tmp.VonPunkt == null || tmp.VonPunkt.Equals(""))
|
||||
|
||||
Reference in New Issue
Block a user