|
@@ -97,8 +97,13 @@
|
|
|
<option value="undisplayModele4">undisplayModele4</option>
|
|
<option value="undisplayModele4">undisplayModele4</option>
|
|
|
<option value="pack2">pack2</option>
|
|
<option value="pack2">pack2</option>
|
|
|
<option value="pack3">pack3</option>
|
|
<option value="pack3">pack3</option>
|
|
|
|
|
+ <option value="undisplayToPack">undisplayToPack</option>
|
|
|
<option value="mes_gratuiteOk">mes_gratuiteOk</option>
|
|
<option value="mes_gratuiteOk">mes_gratuiteOk</option>
|
|
|
|
|
+ <option value="mes_gratuite1">mes_gratuite1</option>
|
|
|
|
|
+ <option value="precisions1">precisions1</option>
|
|
|
|
|
+ <option value="questionnaire1">questionnaire1</option>
|
|
|
<option value="infosOk">infosOk</option>
|
|
<option value="infosOk">infosOk</option>
|
|
|
|
|
+ <option value="modeleOk">modeleOk</option>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -112,6 +117,7 @@
|
|
|
|
|
|
|
|
<!-- MODELES -->
|
|
<!-- MODELES -->
|
|
|
<div id="modelesManager" class="machine">
|
|
<div id="modelesManager" class="machine">
|
|
|
|
|
+ <div id="attenteModele" class="etat">attenteModele</div>
|
|
|
<div id="modele1" class="etat">modele1</div>
|
|
<div id="modele1" class="etat">modele1</div>
|
|
|
<div id="modele2" class="etat">modele2</div>
|
|
<div id="modele2" class="etat">modele2</div>
|
|
|
<div id="modele3" class="etat">modele3</div>
|
|
<div id="modele3" class="etat">modele3</div>
|
|
@@ -121,6 +127,7 @@
|
|
|
|
|
|
|
|
<!-- PACKS -->
|
|
<!-- PACKS -->
|
|
|
<div id="packManager" class="machine">
|
|
<div id="packManager" class="machine">
|
|
|
|
|
+ <div id="attentePack" class="etat">attentePack</div>
|
|
|
<div id="packs" class="etat">packs</div>
|
|
<div id="packs" class="etat">packs</div>
|
|
|
<div id="pack2Etat" class="etat">pack2</div>
|
|
<div id="pack2Etat" class="etat">pack2</div>
|
|
|
<div id="pack3Etat" class="etat">pack3</div>
|
|
<div id="pack3Etat" class="etat">pack3</div>
|
|
@@ -129,10 +136,11 @@
|
|
|
|
|
|
|
|
<!-- INFOS -->
|
|
<!-- INFOS -->
|
|
|
<div id="infosManager" class="machine">
|
|
<div id="infosManager" class="machine">
|
|
|
|
|
+ <div id="attenteInfos" class="etat">attenteInfos</div>
|
|
|
<div id="infos" class="etat">infos</div>
|
|
<div id="infos" class="etat">infos</div>
|
|
|
<div id="questionnaire" class="etat">questionnaire</div>
|
|
<div id="questionnaire" class="etat">questionnaire</div>
|
|
|
<div id="precisions" class="etat">precisions</div>
|
|
<div id="precisions" class="etat">precisions</div>
|
|
|
- <div id="infosSortie" class="etat">infosSortie</div>
|
|
|
|
|
|
|
+ <div id="sortieInfos" class="etat">sortieInfos</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="transitionText" class="transition">
|
|
<div id="transitionText" class="transition">
|
|
@@ -144,7 +152,7 @@
|
|
|
<div id="display_modele2" class="etat hidden">modele2</div>
|
|
<div id="display_modele2" class="etat hidden">modele2</div>
|
|
|
<div id="display_modele3" class="etat hidden">modele3</div>
|
|
<div id="display_modele3" class="etat hidden">modele3</div>
|
|
|
<div id="display_modele4" class="etat hidden">modele4</div>
|
|
<div id="display_modele4" class="etat hidden">modele4</div>
|
|
|
- <div id="display_pack2Etat" class="etat hidden">pack2</div>
|
|
|
|
|
|
|
+ <div id="display_pack2" class="etat hidden">pack2</div>
|
|
|
<div id="display_pack3" class="etat hidden">pack3</div>
|
|
<div id="display_pack3" class="etat hidden">pack3</div>
|
|
|
<div id="display_questionnaire" class="etat hidden">questionnaire</div>
|
|
<div id="display_questionnaire" class="etat hidden">questionnaire</div>
|
|
|
<div id="display_precisions" class="etat hidden">precisions</div>
|
|
<div id="display_precisions" class="etat hidden">precisions</div>
|
|
@@ -161,14 +169,13 @@
|
|
|
const modelesManager = "#modelesManager";
|
|
const modelesManager = "#modelesManager";
|
|
|
const packManager = "#packManager";
|
|
const packManager = "#packManager";
|
|
|
const infosManager = "#infosManager";
|
|
const infosManager = "#infosManager";
|
|
|
- // === Helper Visuel ===
|
|
|
|
|
- /*function highlightState(fsm, machineId) {
|
|
|
|
|
- $(".etat").removeClass("actif");
|
|
|
|
|
- $("#" + fsm.currentState).addClass("actif");
|
|
|
|
|
- }*/
|
|
|
|
|
|
|
|
|
|
// === MODELES MANAGER ===
|
|
// === MODELES MANAGER ===
|
|
|
var modelesManagerDef = {
|
|
var modelesManagerDef = {
|
|
|
|
|
+ attenteModele: {
|
|
|
|
|
+ choixCategorie: { next_state: "modele1" },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
modele1: {
|
|
modele1: {
|
|
|
templateCategorie: {
|
|
templateCategorie: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
@@ -191,7 +198,7 @@
|
|
|
|
|
|
|
|
ajoutOk: {
|
|
ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $(globalManager).trigger("ajoutOkDisplayManager");
|
|
|
|
|
|
|
+ $(globalManager).trigger("ajoutOk_ModeleManager");
|
|
|
this.trigger("undisplay", "modele1");
|
|
this.trigger("undisplay", "modele1");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -330,16 +337,31 @@
|
|
|
|
|
|
|
|
ajoutOk: {
|
|
ajoutOk: {
|
|
|
pushpop_state: "PopState",
|
|
pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- undisplayModele1: "ajoutOk",
|
|
|
|
|
- undisplayModele2: "ajoutOk",
|
|
|
|
|
- undisplayModele3: "ajoutOk",
|
|
|
|
|
- undisplayModele4: "ajoutOk",
|
|
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
DefaultState: {
|
|
DefaultState: {
|
|
|
- start: { next_state: "modele1" },
|
|
|
|
|
|
|
+ start: { next_state: "attenteModele" },
|
|
|
// enterState: {
|
|
// enterState: {
|
|
|
// init_function: function () {
|
|
// init_function: function () {
|
|
|
// highlightState(this, "modelesManager");
|
|
// highlightState(this, "modelesManager");
|
|
@@ -392,12 +414,17 @@
|
|
|
|
|
|
|
|
// === PACK MANAGER ===
|
|
// === PACK MANAGER ===
|
|
|
var packManagerDef = {
|
|
var packManagerDef = {
|
|
|
|
|
+ attentePack: {
|
|
|
|
|
+ modelesOk: { next_state: "packs" },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
packs: {
|
|
packs: {
|
|
|
pack2: {
|
|
pack2: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
this.trigger("display", "pack2");
|
|
this.trigger("display", "pack2");
|
|
|
},
|
|
},
|
|
|
next_state: "pack2Etat",
|
|
next_state: "pack2Etat",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
pack3: {
|
|
pack3: {
|
|
@@ -405,9 +432,13 @@
|
|
|
this.trigger("display", "pack3");
|
|
this.trigger("display", "pack3");
|
|
|
},
|
|
},
|
|
|
next_state: "pack3Etat",
|
|
next_state: "pack3Etat",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- templateProduit: { next_state: "sortiePacks" },
|
|
|
|
|
|
|
+ templateProduit: {
|
|
|
|
|
+ next_state: "sortiePacks",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
ajoutOk: {
|
|
ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
@@ -442,10 +473,43 @@
|
|
|
|
|
|
|
|
pack2Etat: {
|
|
pack2Etat: {
|
|
|
ajoutOk: {
|
|
ajoutOk: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack2");
|
|
|
|
|
+ },
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack2");
|
|
|
|
|
+ },
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack2");
|
|
|
|
|
+ },
|
|
|
pushpop_state: "PopState",
|
|
pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack2");
|
|
|
|
|
+ },
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- this.trigger("undisplay", "");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "pack2");
|
|
|
},
|
|
},
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
templateProduit: {
|
|
templateProduit: {
|
|
@@ -455,24 +519,44 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
pack3Etat: {
|
|
pack3Etat: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "pack3");
|
|
|
},
|
|
},
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+ undisplayModele1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "pack3");
|
|
|
|
|
+ },
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack3");
|
|
|
},
|
|
},
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- ajoutOk: {
|
|
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "pack3");
|
|
|
|
|
+ },
|
|
|
pushpop_state: "PopState",
|
|
pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#transitionText").text("packManager : ajoutOk → infosManager");
|
|
|
|
|
- $(infosManager).trigger("ajoutOk");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "pack3");
|
|
|
},
|
|
},
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
templateProduit: {
|
|
templateProduit: {
|
|
@@ -482,30 +566,51 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
sortiePacks: {
|
|
sortiePacks: {
|
|
|
- display: {
|
|
|
|
|
- init_function: function () {
|
|
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ ajoutOk: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayToPack",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ mes_gratuiteOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ $(globalManager).trigger("mes_gratuiteOk");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- enterState: {
|
|
|
|
|
- // init_function: function () {
|
|
|
|
|
- // $(infosManager).trigger("mes_gratuiteOk");
|
|
|
|
|
- // $("#transitionText").text(
|
|
|
|
|
- // "packManager : arrivée sur sortiePacks → infosManager"
|
|
|
|
|
- // );
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ mes_gratuite1: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("mes_gratuite1");
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
DefaultState: {
|
|
DefaultState: {
|
|
|
- start: { next_state: "packs" },
|
|
|
|
|
|
|
+ start: { next_state: "attentePack" },
|
|
|
|
|
|
|
|
enterState: {
|
|
enterState: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
@@ -545,68 +650,223 @@
|
|
|
|
|
|
|
|
// === INFOS MANAGER ===
|
|
// === INFOS MANAGER ===
|
|
|
var infosManagerDef = {
|
|
var infosManagerDef = {
|
|
|
|
|
+ attenteInfos: {
|
|
|
|
|
+ mes_gratuiteOk: { next_state: "infos" },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
infos: {
|
|
infos: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ precisions1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("display", "precisions");
|
|
|
},
|
|
},
|
|
|
|
|
+ next_state: "precisions",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ questionnaire1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("display", "questionnaire");
|
|
|
|
|
+ },
|
|
|
|
|
+ next_state: "questionnaire",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ infosOk: {
|
|
|
|
|
+ propagate_event: "infosOk",
|
|
|
|
|
+ next_state: "sortieInfos",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("ajoutOk_InfosManager");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- mes_gratuiteOk: { next_state: "questionnaire" },
|
|
|
|
|
- infosOk: { next_state: "infosSortie" },
|
|
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("undisplayModele1_InfosManager");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("undisplayModele2_InfosManager");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("undisplayModele3_InfosManager");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("undisplayModele4_InfosManager");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("undisplayToPack_InfosManager");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
questionnaire: {
|
|
questionnaire: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ infosOk: {
|
|
|
|
|
+ next_state: "sortieInfos",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
|
|
+ propagate_event: "infosOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- precisions: { next_state: "precisions" },
|
|
|
|
|
- infosOk: { next_state: "infosSortie" },
|
|
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "questionnaire");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayToPack",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
precisions: {
|
|
precisions: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ infosOk: {
|
|
|
|
|
+ next_state: "sortieInfos",
|
|
|
|
|
+ pushpop_state: "PushState",
|
|
|
|
|
+ propagate_event: "infosOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- infosOk: { next_state: "infosSortie" },
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
- infosSortie: {
|
|
|
|
|
- display: {
|
|
|
|
|
|
|
+ undisplayModele3: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
},
|
|
},
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "precisions");
|
|
|
|
|
+ },
|
|
|
|
|
+ propagate_event: "undisplayToPack",
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ sortieInfos: {
|
|
|
|
|
+ infosOk: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(globalManager).trigger("infosOk");
|
|
|
|
|
+ this.trigger("display", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ pushpop_state: "PopState",
|
|
|
|
|
+ propagate_event: "undisplayToPack",
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
DefaultState: {
|
|
DefaultState: {
|
|
|
- start: { next_state: "infos" },
|
|
|
|
|
|
|
+ start: { next_state: "attenteInfos" },
|
|
|
|
|
|
|
|
enterState: {
|
|
enterState: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
@@ -655,50 +915,109 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
votreDevis: {
|
|
votreDevis: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ ajoutOk: {
|
|
|
|
|
+ next_state: "nbButton",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ mes: {
|
|
|
|
|
+ ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("ajoutOk");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("undisplayModele1");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- ajoutOk: {
|
|
|
|
|
- pushpop_state: "PopState",
|
|
|
|
|
|
|
+ undisplayModele2: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#transitionText").text(
|
|
|
|
|
- "globalManager : ajoutOk → infosManager"
|
|
|
|
|
- );
|
|
|
|
|
- $(infosManager).trigger("ajoutOk");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("undisplayModele2");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
- mes: {
|
|
|
|
|
- display: {
|
|
|
|
|
|
|
+ undisplayModele3: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("undisplayModele3");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("undisplayModele4");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("undisplay", "mes");
|
|
|
|
|
+ $(packManager).trigger("undisplayToPack");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ mes_gratuiteOk: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("mes_gratuiteOk");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
nbButton: {
|
|
nbButton: {
|
|
|
- display: {
|
|
|
|
|
|
|
+ ajouter: {
|
|
|
|
|
+ next_state: "votreDevis",
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).addClass("actif");
|
|
|
|
|
|
|
+ this.trigger("display", "votreDevis");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- undisplay: {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|
|
|
- $("#" + this.currentState).removeClass("actif");
|
|
|
|
|
|
|
+ $(infosManager).trigger("ajoutOk");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("undisplayModele1");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("undisplayModele2");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("undisplayModele3");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("undisplayModele4");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("undisplayToPack");
|
|
|
|
|
+ this.trigger("undisplay", "nbButton");
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -719,7 +1038,52 @@
|
|
|
DefaultState: {
|
|
DefaultState: {
|
|
|
start: { next_state: "displayManager" },
|
|
start: { next_state: "displayManager" },
|
|
|
|
|
|
|
|
- ajoutOkDisplayManager: { next_state: "displayManager" },
|
|
|
|
|
|
|
+ infosOk: { next_state: "nbButton" },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk_ModeleManager: { next_state: "displayManager" },
|
|
|
|
|
+
|
|
|
|
|
+ ajoutOk_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "ajoutOk",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele1_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "undisplayModele1",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele2_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "undisplayModele2",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele3_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "undisplayModele3",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayModele4_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "undisplayModele4",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ undisplayToPack_InfosManager: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ propagate_event: "undisplayToPack",
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ mes_gratuite1: {
|
|
|
|
|
+ next_state: "mes",
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ this.trigger("display", "mes");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ mes_gratuiteOk: {
|
|
|
|
|
+ init_function: function () {
|
|
|
|
|
+ $(infosManager).trigger("mes_gratuiteOk");
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
enterState: {
|
|
enterState: {
|
|
|
init_function: function () {
|
|
init_function: function () {
|