<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=Proc%C3%A9dure_d%27initialisation_de_paquet_%28MM%29</id>
		<title>Procédure d'initialisation de paquet (MM) - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=Proc%C3%A9dure_d%27initialisation_de_paquet_%28MM%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Proc%C3%A9dure_d%27initialisation_de_paquet_(MM)&amp;action=history"/>
		<updated>2026-06-17T20:03:10Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Proc%C3%A9dure_d%27initialisation_de_paquet_(MM)&amp;diff=11488&amp;oldid=prev</id>
		<title>Syfre le 14 avril 2017 à 07:07</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Proc%C3%A9dure_d%27initialisation_de_paquet_(MM)&amp;diff=11488&amp;oldid=prev"/>
				<updated>2017-04-14T07:07:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 14 avril 2017 à 07:07&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Après chargement du modèle de l'application le framework exécute une procédure d'initialisation &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Après chargement du modèle de l'application&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;le framework exécute une procédure d'initialisation &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pour chaque paquet métier une procédure d'initialisation :&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure TRegister&amp;lt;Nom_du_paquet&amp;gt;.Initialize;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure TRegister&amp;lt;Nom_du_paquet&amp;gt;.Initialize;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;pour chaque paquet.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tip|Le code de ces procédures doit être exécutable plusieurs fois, si vous créez des objets assurez vous avant qu'ils n'existent pas déjà.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{tip|Le code de ces procédures doit être exécutable plusieurs fois, si vous créez des objets assurez vous avant qu'ils n'existent pas déjà.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 38 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 36 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Footer|ModelManager_(code)}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Footer|ModelManager_(code)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:ModelManager]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:ModelManager]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[category:Initialisation d'une base de données]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=Proc%C3%A9dure_d%27initialisation_de_paquet_(MM)&amp;diff=2663&amp;oldid=prev</id>
		<title>Syfre : Nouvelle page : Après chargement du modèle de l'application le framework exécute une procédure d'initialisation   &lt;source lang='delphi'&gt;procedure TRegister&lt;Nom_du_paquet&gt;.Initialize;&lt;/source&gt;  p...</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=Proc%C3%A9dure_d%27initialisation_de_paquet_(MM)&amp;diff=2663&amp;oldid=prev"/>
				<updated>2009-11-26T13:53:55Z</updated>
		
		<summary type="html">&lt;p&gt;Nouvelle page : Après chargement du modèle de l&amp;#039;application le framework exécute une procédure d&amp;#039;initialisation   &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;procedure TRegister&amp;lt;Nom_du_paquet&amp;gt;.Initialize;&amp;lt;/source&amp;gt;  p...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Après chargement du modèle de l'application le framework exécute une procédure d'initialisation &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;procedure TRegister&amp;lt;Nom_du_paquet&amp;gt;.Initialize;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
pour chaque paquet.&lt;br /&gt;
&lt;br /&gt;
{{tip|Le code de ces procédures doit être exécutable plusieurs fois, si vous créez des objets assurez vous avant qu'ils n'existent pas déjà.}}&lt;br /&gt;
&lt;br /&gt;
Exemple&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
procedure TRegisterMyPackage.Initialize; &lt;br /&gt;
begin&lt;br /&gt;
var&lt;br /&gt;
  vContexte   :  TContextePoids;&lt;br /&gt;
begin&lt;br /&gt;
  ClassManager.BeginTran;&lt;br /&gt;
  try&lt;br /&gt;
    vContexte := ClassManager.FindSingleton('TContextePoids');&lt;br /&gt;
    if not Assigned(vContexte) then&lt;br /&gt;
    begin&lt;br /&gt;
      vContexte := ClassManager.CreateInstance('TContextePoids');&lt;br /&gt;
      vContexte.Caption := 'ContextePoids';&lt;br /&gt;
    end;&lt;br /&gt;
&lt;br /&gt;
    ....&lt;br /&gt;
 &lt;br /&gt;
    ClassManager.Commit;&lt;br /&gt;
  except&lt;br /&gt;
    ClassManager.RollBack;&lt;br /&gt;
  end;&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi :&lt;br /&gt;
&lt;br /&gt;
* [[Procédure de synchronisation de paquet (MM)|Procédure de synchronisation de paquet]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|ModelManager_(code)}}&lt;br /&gt;
[[category:ModelManager]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>