Exemplo n.º 1
0
        private IInscription GetAgent(IDataReader rd)
        {
            IInscription ins = new Inscription();

            i = i + 1;

            ins.Num = i;

            ins.NomComplet = rd["Noms"].ToString();

            ins.Contact = rd["Contact"].ToString();
            return(ins);
        }
Exemplo n.º 2
0
        private IInscription GetAllDetailsInscription(IDataReader rd)
        {
            IInscription ins = new Inscription();

            i = i + 1;

            ins.Num         = i;
            ins.Id          = Convert.ToInt32(rd["Id"].ToString());
            ins.DateInscrit = Convert.ToDateTime(rd["Date_Inscription"].ToString());
            ins.RefMembre   = Convert.ToInt32(rd["IdMembre"].ToString());
            ins.Matricule   = rd["Matricule"].ToString();
            ins.NomComplet  = rd["Nom_Complet"].ToString();
            ins.Nom         = rd["Nom"].ToString();
            ins.Postnom     = rd["Postnom"].ToString();
            ins.Prenom      = rd["Prenom"].ToString();
            ins.Sexe        = rd["Sexe"].ToString().Equals("M") ? Sexe.Masculin : Sexe.Féminin;
            ins.RefRound    = Convert.ToInt32(rd["IdRound"].ToString());
            ins.Designation = rd["Designation"].ToString();
            ins.Contact     = rd["Contact"].ToString();
            return(ins);
        }