Exemplo n.º 1
0
        private void BereiteSchuelerListenEintraegeAuf(List <List <String> > UrListe)
        {
            int    EPos   = -1;
            String JGKZ   = "n.n.";
            String Klasse = "n.n.BB";

            foreach (List <String> Eintrag in UrListe)
            {
                if (Eintrag.Count > 2 & Eintrag[0].Length > 0)
                {
                    for (int i = 0; i < Eintrag.Count; i++)
                    {
                        if (Eintrag[i].Trim().Length < 1)
                        {
                            Eintrag[i] = "n.n.";
                        }
                    }

                    EPos = AlleKlassen.IndexOf(Eintrag[0]);
                    if (EPos > -1)
                    {
                        JGKZ = AlleJGKZ[EPos];
                        Eintrag.Insert(0, JGKZ);
                    }
                    else
                    {
                        EPos = AlleJGKZ.IndexOf(Eintrag[0]);
                        if (EPos > -1)
                        {
                            Klasse = AlleKlassen[EPos];
                            Eintrag.Insert(1, Klasse);
                        }
                        else
                        {
                            JGKZ = "n.n";
                            Eintrag.Insert(0, JGKZ);
                        }
                    }

                    SchuelerListe.Add(Eintrag);
                }
            }
        }