Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * -----
- * Active les touches nécessaires au retrait rapide
- * -----
- ActiverTchesEscAF10.
- Move 1 TO On-off.
- Move 0 To debut.
- Move 11 To NbreTouches.
- CALL X"AF" USING Param-1 Param-2.
- * -----
- * Modifié pour ajouter les options de dépot et retrait rapide
- * -----
- TraiterChoix.
- Move 0 TO Fin.
- Perform Until Fin = 1
- Perform ActiverTchesEscAF7
- DISPLAY G-EMENUOP
- Display "Bienvenue "AT 2113, nom
- Accept Bidon with no-echo
- On Escape
- if F1
- Perform EffectuerRetrait
- else if F2
- Perform EffectuerRetraitRapide
- else if F3
- Perform MAJLivret
- else if F4
- Perform RembourserCredit
- else if F5
- Perform EffectuerDepot
- else if F6
- Perform EffectuerVirements
- else if F7
- Perform VoirSoldeCompte
- else if ESC
- Move 1 TO Fin
- End-if
- End-Accept
- End-Perform.
- EffectuerDepot.
- Move 0 To Correct Recommencer.
- Perform ChoisirCompte.
- if Correct = 0
- DISPLAY G-EGENERAL
- Display "DPOT" AT 0537
- Perform Until Recommencer = 1
- Move Zeroes TO MontantSaisi
- Perform ActiverEscape
- Display Spaces AT 2405
- Accept MontantSaisi AT 1030
- On Escape
- Move 1 To Recommencer
- Not On Escape
- Move "DEP" TO TypeTrans
- Move MontantSaisi TO Montant
- Perform RetrouverCompteClient
- Compute SoldeCompteCh = SoldeCompteCh + Montant
- Perform EcrireFichierOperation
- Display "D‚pot effectu‚." AT 2205 with
- BACKGROUND-COLOR 1 FOREGROUND-COLOR 15
- Move 1 To Recommencer
- Display "Appuyez sur Enter pour terminer." At 2405 with
- BACKGROUND-COLOR 1 FOREGROUND-COLOR 15
- Accept Bidon with no-echo
- End-Accept
- Perform DesactiverTchesFonction
- End-Perform
- end-if.
- Perform TraiterChoix.
- EffectuerRetraitRapide.
- Perform ChoisirCompte.
- Move 0 TO Fin.
- Perform Until Fin = 1
- Perform ActiverTchesEscAF10
- DISPLAY G-EMONT
- Display "Retrait rapide" AT 2113
- Accept Bidon with no-echo
- On Escape
- if F1
- Move 20 to Montant
- Perform VerifierPossibiliteRetrait
- else if F2
- Move 40 to Montant
- Perform VerifierPossibiliteRetrait
- else if F3
- Move 60 to Montant
- Perform VerifierPossibiliteRetrait
- else if F4
- Move 80 to Montant
- Perform VerifierPossibiliteRetrait
- else if F5
- Move 100 to Montant
- Perform VerifierPossibiliteRetrait
- else if F6
- Move 120 to Montant
- Perform VerifierPossibiliteRetrait
- else if F7
- Move 140 to Montant
- Perform VerifierPossibiliteRetrait
- else if F8
- Move 160 to Montant
- Perform VerifierPossibiliteRetrait
- else if F9
- Move 180 to Montant
- Perform VerifierPossibiliteRetrait
- else if F10
- Move 200 to Montant
- Perform VerifierPossibiliteRetrait
- else if ESC
- Move 1 TO Fin
- End-if
- End-Accept
- Perform DesactiverTchesFonction
- End-Perform.
Add Comment
Please, Sign In to add comment