Example #1
0
        //Transforme un groupe sous la forme Element, dElement
        public override Element Déconstruire()
        {
            Element     e = new Element();
            dElement    d;
            TypeElement type = Acces.type_MODELEDOC;

            e.ID           = ID;
            e.Element_Type = type.ID;
            e.Code         = Code;
            e.Libelle      = Libelle;
            e.Type_Element = (int)Type_Modele;
            e.Actif        = Actif;

            string CodeAttribut = "";

            {
                CodeAttribut = "PARENT_ID";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Parent_ID.ToString());
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "FICHIERBASE";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, FichierBase);
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "ORDRE";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Ordre.ToString());
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "CONDITION";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Condition);
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "CONTENU";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Contenu);
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "TAILLE";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Taille.ToString());
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "ALIGNEMENT";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, ((int)Alignement).ToString());
                e.Liste.Add(d);
            }
            {
                CodeAttribut = "BORDURE";
                d            = new dElement(ID, Acces.Trouver_Attribut(type, CodeAttribut).ID, CodeAttribut, Bordure);
                e.Liste.Add(d);
            }
            return(e);
        }
Example #2
0
 public override string ToString()
 {
     return(Ordre.ToString("D3") + " : " + Titre /*+ nbShots.ToString() + " " + durée*/);
 }