SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
Programmation évènementielle : WINDEV
L’objet Table
Mémoire
Application
L’objectif de cette Application est de manipuler les fonctions relatives à l’objet table
mémoire.
Soit l’interface suivante
Travail demandé :
Ecrire la procédure évènementielle relative à chaque bouton de commande sachant que :
 Le bouton autre consiste à initialiser tous les objets a l’exception de :
 La table mémoire
 Les zones du texte :
 Nombre facture
 Total espèce
 Total Cheque
 Total
 Le bouton valider consiste à ajouter les données saisies dans une ligne de la table
mémoire sachant que le numéro de règlement ne doit pas être dupliqué
 Le bouton chercher consiste à faire la recherche d’un régalement déjà ajouté dans la
table mémoire par son numéro de règlement
 Après la recherche :
 Le bouton Modifier consiste à modifier le règlement cherché
 Le bouton supprimer consiste à supprimer le règlement en cours (cherché)
 Le bouton fermer consiste à arrêter l’exécution
Déclaration globale de fenêtre
r est un entier
mr est une chaîne
Clic sur Autre
sai_nr=""
sai_nf=""
sai_dr=""
sai_mtr=""
RepriseSaisie(sai_nr)
Clic sur Valider
//---vérification de l'existence de numéro règlement-----------
r=TableCherche(NRegelemt,sai_nr)
SI r>-1 ALORS
Erreur("Ce numéro est déja saisi")
RETOUR //---------le reste du programme ne sera pas exécuté----
FIN
//------------------------------------------------------------
SI sel_R..Valeur=1 ALORS
mr="Espece"
SINON
mr="Cheque"
FIN
TableAjoute(Table1,sai_nr+TAB+sai_nf+TAB+Combo..ValeurAffichée+TAB+mr+TAB+
sai_dr+TAB+sai_mtr)
//--calcul de total et total facture espèce et cheque----------
ligne est entier
totalht est un réel
tesp est un réel
tch est un réel
POUR ligne=1 A TableOccurrence(Table1)
TableSelectPlus(Table1,ligne)
totalht=totalht+Table1.Monatant_Reglement//-cumul des montants ht
//---------------calcul de total facture espèce et chèque ---------//
SI Table1.Mode_Reglement="Espece" ALORS
tesp=tesp+Table1.Monatant_Reglement
SINON
tch=tch+Table1.Monatant_Reglement
FIN
FIN
sai_t=totalht
sai_Tch=tesp
sai_tesp=tch
sai_nbf=TableOccurrence(Table1)
Clic sur Rechercher
nr est chaîne
Saisie("veuillez saisir le numéro de règlement a éditer",nr)
r=TableCherche(NRegelemt,nr)
SI r=-1 ALORS
Info("Ce numéro de reglement n'existe pas")
SINON
TableSelectPlus(Table1,r)
sai_nr=Table1.NRegelemt
sai_nf=Table1.Nfacture
SI Table1.Operation="Vente" ALORS
Combo..Valeur=1
SINON
Combo..Valeur=2
FIN
SI Table1.Mode_Reglement="Espece" ALORS
sel_R..Valeur=1
SINON
sel_R..Valeur=2
FIN
sai_dr=Table1.Date_Reglement
sai_mtr=Table1.Monatant_Reglement
FIN
Clic sur Modifier
SI OuiNon(Non, «Voulez-vous modifiez cet enregistrement?")=Oui ALORS
SI sel_R..Valeur=1 ALORS
mr="Espèce"
SINON
mr="Cheque"
FIN
TableModifie(Table1,sai_nr+TAB+sai_nf+TAB+Combo..ValeurAffichée+TAB+mr+TAB+sai_dr+TAB+
sai_mtr)
ExécuteTraitement (Autre1,trtClic)
FIN
Clic sur Fermer
SI OuiNon (Non, «Voulez-vous quitter?»)=Oui ALORS
FinProgramme()
FIN
Clic sur Supprimer
SI OuiNon(Non, «voulez-vous supprimer ce règlement?")=Oui ALORS
TableSupprime(Table1,r)
//---------recalcule des montant-------------
ligne est entier
totalht est un réel
tesp est un réel
tch est un réel
POUR ligne=1 A TableOccurrence(Table1)
TableSelectPlus(Table1,ligne)
totalht=totalht+Table1.Monatant_Reglement//-cumul des montants ht
//-------------calcul de total facture espèce--------------//
SI Table1.Mode_Reglement="Espece" ALORS
tesp=tesp+Table1.Monatant_Reglement
SINON
tch=tch+Table1.Monatant_Reglement
FIN
FIN
sai_t=totalht
sai_Tch=tesp
sai_tesp=tch
sai_nbf=TableOccurrence(Table1)
//----------Exécuter le traitement clic de bouton autre-----------
ExécuteTraitement(Autre1,trtClic)
FIN
Bouton gauche double clic
sai_nr=Table1.NRegelemt
sai_nf=Table1.Nfacture
SI Table1.Operation="Vente" ALORS
Combo..Valeur=1
SINON
Combo..Valeur=2
FIN
SI Table1.Mode_Reglement="Espece" ALORS
sel_R..Valeur=1
SINON
sel_R..Valeur=2
FIN
sai_dr=Table1.Date_Reglement
sai_mtr=Table1.Monatant_Reglement
Attention : Il faut tout d’abord ajouter cet évènement en cliquant ici

Contenu connexe

Dernier

Presentation de la plateforme Moodle - avril 2024
Presentation de la plateforme Moodle - avril 2024Presentation de la plateforme Moodle - avril 2024
Presentation de la plateforme Moodle - avril 2024Gilles Le Page
 
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdfSciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdfSKennel
 
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdfSciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdfSKennel
 
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETCours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETMedBechir
 
Saint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxSaint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxMartin M Flynn
 
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .Txaruka
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptxTxaruka
 
Présentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxPrésentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxrababouerdighi
 
SciencesPo_Aix_InnovationPédagogique_Bilan.pdf
SciencesPo_Aix_InnovationPédagogique_Bilan.pdfSciencesPo_Aix_InnovationPédagogique_Bilan.pdf
SciencesPo_Aix_InnovationPédagogique_Bilan.pdfSKennel
 
le present des verbes reguliers -er.pptx
le present des verbes reguliers -er.pptxle present des verbes reguliers -er.pptx
le present des verbes reguliers -er.pptxmmatar2
 
Zotero avancé - support de formation doctorants SHS 2024
Zotero avancé - support de formation doctorants SHS 2024Zotero avancé - support de formation doctorants SHS 2024
Zotero avancé - support de formation doctorants SHS 2024Alain Marois
 
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...Faga1939
 
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIE
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIEBONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIE
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIEgharebikram98
 
Le Lean sur une ligne de production : Formation et mise en application directe
Le Lean sur une ligne de production : Formation et mise en application directeLe Lean sur une ligne de production : Formation et mise en application directe
Le Lean sur une ligne de production : Formation et mise en application directeXL Groupe
 
Principe de fonctionnement d'un moteur 4 temps
Principe de fonctionnement d'un moteur 4 tempsPrincipe de fonctionnement d'un moteur 4 temps
Principe de fonctionnement d'un moteur 4 tempsRajiAbdelghani
 
Evaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxEvaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxAsmaa105193
 
Cours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETCours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETMedBechir
 
systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertChristianMbip
 

Dernier (20)

Presentation de la plateforme Moodle - avril 2024
Presentation de la plateforme Moodle - avril 2024Presentation de la plateforme Moodle - avril 2024
Presentation de la plateforme Moodle - avril 2024
 
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdfSciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_IA.pdf
 
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdfSciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdf
SciencesPo_Aix_InnovationPédagogique_Atelier_FormationRecherche.pdf
 
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETCours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
 
Saint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxSaint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptx
 
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptx
 
Présentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxPrésentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptx
 
DO PALÁCIO À ASSEMBLEIA .
DO PALÁCIO À ASSEMBLEIA                 .DO PALÁCIO À ASSEMBLEIA                 .
DO PALÁCIO À ASSEMBLEIA .
 
SciencesPo_Aix_InnovationPédagogique_Bilan.pdf
SciencesPo_Aix_InnovationPédagogique_Bilan.pdfSciencesPo_Aix_InnovationPédagogique_Bilan.pdf
SciencesPo_Aix_InnovationPédagogique_Bilan.pdf
 
le present des verbes reguliers -er.pptx
le present des verbes reguliers -er.pptxle present des verbes reguliers -er.pptx
le present des verbes reguliers -er.pptx
 
Zotero avancé - support de formation doctorants SHS 2024
Zotero avancé - support de formation doctorants SHS 2024Zotero avancé - support de formation doctorants SHS 2024
Zotero avancé - support de formation doctorants SHS 2024
 
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
LA MONTÉE DE L'ÉDUCATION DANS LE MONDE DE LA PRÉHISTOIRE À L'ÈRE CONTEMPORAIN...
 
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIE
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIEBONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIE
BONNES PRATIQUES DE FABRICATION RESUME SIMPLIFIE
 
Le Lean sur une ligne de production : Formation et mise en application directe
Le Lean sur une ligne de production : Formation et mise en application directeLe Lean sur une ligne de production : Formation et mise en application directe
Le Lean sur une ligne de production : Formation et mise en application directe
 
Principe de fonctionnement d'un moteur 4 temps
Principe de fonctionnement d'un moteur 4 tempsPrincipe de fonctionnement d'un moteur 4 temps
Principe de fonctionnement d'un moteur 4 temps
 
Pâques de Sainte Marie-Euphrasie Pelletier
Pâques de Sainte Marie-Euphrasie PelletierPâques de Sainte Marie-Euphrasie Pelletier
Pâques de Sainte Marie-Euphrasie Pelletier
 
Evaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxEvaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. Marocpptx
 
Cours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETCours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSET
 
systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expert
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Correction exercice table mémoire

  • 1. Programmation évènementielle : WINDEV L’objet Table Mémoire
  • 2. Application L’objectif de cette Application est de manipuler les fonctions relatives à l’objet table mémoire. Soit l’interface suivante Travail demandé : Ecrire la procédure évènementielle relative à chaque bouton de commande sachant que :  Le bouton autre consiste à initialiser tous les objets a l’exception de :  La table mémoire  Les zones du texte :  Nombre facture  Total espèce  Total Cheque  Total  Le bouton valider consiste à ajouter les données saisies dans une ligne de la table mémoire sachant que le numéro de règlement ne doit pas être dupliqué  Le bouton chercher consiste à faire la recherche d’un régalement déjà ajouté dans la table mémoire par son numéro de règlement  Après la recherche :  Le bouton Modifier consiste à modifier le règlement cherché  Le bouton supprimer consiste à supprimer le règlement en cours (cherché)  Le bouton fermer consiste à arrêter l’exécution
  • 3. Déclaration globale de fenêtre r est un entier mr est une chaîne Clic sur Autre sai_nr="" sai_nf="" sai_dr="" sai_mtr="" RepriseSaisie(sai_nr) Clic sur Valider //---vérification de l'existence de numéro règlement----------- r=TableCherche(NRegelemt,sai_nr) SI r>-1 ALORS Erreur("Ce numéro est déja saisi") RETOUR //---------le reste du programme ne sera pas exécuté---- FIN //------------------------------------------------------------ SI sel_R..Valeur=1 ALORS mr="Espece" SINON mr="Cheque" FIN TableAjoute(Table1,sai_nr+TAB+sai_nf+TAB+Combo..ValeurAffichée+TAB+mr+TAB+ sai_dr+TAB+sai_mtr) //--calcul de total et total facture espèce et cheque---------- ligne est entier totalht est un réel tesp est un réel tch est un réel POUR ligne=1 A TableOccurrence(Table1) TableSelectPlus(Table1,ligne) totalht=totalht+Table1.Monatant_Reglement//-cumul des montants ht //---------------calcul de total facture espèce et chèque ---------// SI Table1.Mode_Reglement="Espece" ALORS tesp=tesp+Table1.Monatant_Reglement SINON tch=tch+Table1.Monatant_Reglement FIN FIN sai_t=totalht sai_Tch=tesp sai_tesp=tch sai_nbf=TableOccurrence(Table1)
  • 4. Clic sur Rechercher nr est chaîne Saisie("veuillez saisir le numéro de règlement a éditer",nr) r=TableCherche(NRegelemt,nr) SI r=-1 ALORS Info("Ce numéro de reglement n'existe pas") SINON TableSelectPlus(Table1,r) sai_nr=Table1.NRegelemt sai_nf=Table1.Nfacture SI Table1.Operation="Vente" ALORS Combo..Valeur=1 SINON Combo..Valeur=2 FIN SI Table1.Mode_Reglement="Espece" ALORS sel_R..Valeur=1 SINON sel_R..Valeur=2 FIN sai_dr=Table1.Date_Reglement sai_mtr=Table1.Monatant_Reglement FIN Clic sur Modifier SI OuiNon(Non, «Voulez-vous modifiez cet enregistrement?")=Oui ALORS SI sel_R..Valeur=1 ALORS mr="Espèce" SINON mr="Cheque" FIN TableModifie(Table1,sai_nr+TAB+sai_nf+TAB+Combo..ValeurAffichée+TAB+mr+TAB+sai_dr+TAB+ sai_mtr) ExécuteTraitement (Autre1,trtClic) FIN
  • 5. Clic sur Fermer SI OuiNon (Non, «Voulez-vous quitter?»)=Oui ALORS FinProgramme() FIN Clic sur Supprimer SI OuiNon(Non, «voulez-vous supprimer ce règlement?")=Oui ALORS TableSupprime(Table1,r) //---------recalcule des montant------------- ligne est entier totalht est un réel tesp est un réel tch est un réel POUR ligne=1 A TableOccurrence(Table1) TableSelectPlus(Table1,ligne) totalht=totalht+Table1.Monatant_Reglement//-cumul des montants ht //-------------calcul de total facture espèce--------------// SI Table1.Mode_Reglement="Espece" ALORS tesp=tesp+Table1.Monatant_Reglement SINON tch=tch+Table1.Monatant_Reglement FIN FIN sai_t=totalht sai_Tch=tesp sai_tesp=tch sai_nbf=TableOccurrence(Table1) //----------Exécuter le traitement clic de bouton autre----------- ExécuteTraitement(Autre1,trtClic) FIN
  • 6. Bouton gauche double clic sai_nr=Table1.NRegelemt sai_nf=Table1.Nfacture SI Table1.Operation="Vente" ALORS Combo..Valeur=1 SINON Combo..Valeur=2 FIN SI Table1.Mode_Reglement="Espece" ALORS sel_R..Valeur=1 SINON sel_R..Valeur=2 FIN sai_dr=Table1.Date_Reglement sai_mtr=Table1.Monatant_Reglement Attention : Il faut tout d’abord ajouter cet évènement en cliquant ici