SET ESCAPE OFF SET CENTURY ON SET MARK TO '.

' SET DATE TO DMY SET TALK OFF SET EXACT OFF PUSH KEY CLEAR CLEAR CLOSE ALL DATABASES DEFI WIND W1 FROM 0,0 TO 22,78 DOUB TITL ' Program pentru Evidenta Consultatiilor unui Cabinet Medical - 2005 ' acti wind w1 defi menu st @ 15,5 say 'Program realizat de - Bunea Florin-Cristian ' @ 16,5 say 'Elev al clasei XII C mi ' @ 17,5 say 'Profesor Indrumator - Canzangiu Florea ' @ 18,5 say 'Colegiul National Anastasescu ' @ 10,62 SAY 'C:\vox2\poze\pass.BMP' bitmap DEFINE MENU aa DEFINE PAD op1 OF aa PROMPT "Adaugari" COLOR SCHEME 3 DEFINE PAD op2 OF aa PROMPT "Modificari" COLOR SCHEME 3 DEFINE PAD op3 OF aa PROMPT "Stergeri" COLOR SCHEME 3 DEFINE PAD op4 OF aa PROMPT "Cautare" COLOR SCHEME 3 DEFINE PAD op5 OF aa PROMPT "Iesire" COLOR SCHEME 3 ON PAD op1 OF aa ACTIVATE POPUP adaugari ON PAD op2 OF aa ACTIVATE POPUP modificari ON PAD op3 OF aa ACTIVATE POPUP stergeri ON PAD op4 OF aa ACTIVATE POPUP cautare ON PAD op5 OF aa ACTIVATE POPUP IESIRE DEFINE POPUP IESIRE MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF IESIRE PROMPT "IESIRE DIN PROGRAM" DEFINE BAR 2 OF IESIRE PROMPT "IESIRE IN SISTEM" ON SELE BAR 1 OF IESIRE DO EXIT ON SELE BAR 2 OF IESIRE QUIT DEFINE POPUP adaugari MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF adaugari PROMPT "\<Pacienti noi" ; MESSAGE 'Adaugare de pacienti noi' DEFINE BAR 2 OF adaugari PROMPT "\<Doctori noi" ; MESSAGE 'Adaugare de doctori noi' DEFINE BAR 3 OF adaugari PROMPT "\<Adaugare consultatii" ; MESSAGE 'Adaugare de consultatii' DEFINE BAR 4 OF adaugari PROMPT "Ada\<ugare cabinet" ; MESSAGE 'Adaugarea unui nou cabinet' ON SELE BAR 1 OF adaugari ON SELE BAR 2 OF adaugari ON SELE BAR 3 OF adaugari ON SELE BAR 4 OF adaugari DO pac_noi DO doc_noi DO consultatii DO ad_cabinet

DEFINE POPUP modificari MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF modificari PROMPT "\<Modificare fisa" ; MESSAGE 'Modificarea unei fise' DEFINE BAR 2 OF modificari PROMPT "M\<odificare consultatie" ; MESSAGE 'Modificarea consultatiilor' DEFINE BAR 3 OF modificari PROMPT "Mo\<dificare cabinet" ;

MESSAGE 'Cautarea unui doctor' DEFINE BAR 4 OF cautare PROMPT "C\<onsultatii" . MESSAGE 'Stergerea unei fise din baza de date' DEFINE BAR 2 OF stergeri PROMPT "S\<tergeri doctori" .10 TO 23.dbf POP KEY ALL DEFINE WINDOW w1 FROM 1. MESSAGE 'Cautarea fisei dupa numarul ei' DEFINE BAR 3 OF cfisa PROMPT "dupa serie buletin" . MESSAGE 'Stergerea unui desfiintarea din baza de date ' DEFINE BAR 4 OF stergeri PROMPT "Ste\<rgeri consultatii" . MESSAGE 'Consultatiile de astazi' ON SELE BAR 1 OF CAUTARE ACTIVATE POPUP cfisa ON SELE BAR 2 OF CAUTARE DO ccab ON SELE BAR 3 OF CAUTARE DO cdoc ON SELE BAR 4 OF CAUTARE DO ccon DEFINE POPUP cfisa MARGIN RELATIVE SHADOW COLOR SCHEME 4 FROM 1. MESSAGE 'Cautarea unui cabinet' DEFINE BAR 3 OF cautare PROMPT "Ca\<utare doctori" .70 SHADOW . MESSAGE 'Modificarea datelor unui doctor' ON SELE BAR 1 OF modificari ON SELE BAR 2 OF modificari ON SELE BAR 3 OF modificari ON SELE BAR 4 OF modificari DO m_fisa DO m_cons DO m_cab DO m_doc DEFINE POPUP stergeri MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF stergeri PROMPT "\<Stergeri fise" . MESSAGE 'Cautarea unei fise' DEFINE BAR 2 OF cautare PROMPT "C\<autare cabinet" .55 DEFINE BAR 1 OF cfisa PROMPT "dupa nume" . MESSAGE 'Cautarea fisei dupa seria de buletin' ON SELE BAR 1 OF cfisa DO dnum ON SELE BAR 2 OF cfisa DO dnr ON SELE BAR 3 OF cfisa DO dser ACTIVATE MENU aa PROCEDURE EXIT POP KEY ALL DEACTIVATE MENU aa RETURN ************************************************************************ PROCEDURE pac_noi USE c:\alex\fisa. MESSAGE 'Cautarea fisei dupa nume' DEFINE BAR 2 OF cfisa PROMPT "dupa numar fisa" . MESSAGE 'Anularea unei consultatii' ON SELE BAR 1 OF stergeri ON SELE BAR 2 OF stergeri ON SELE BAR 3 OF stergeri ON SELE BAR 4 OF stergeri DO s_fisa DO s_doct DO s_cab DO s_cons DEFINE POPUP cautare MARGIN RELATIVE SHADOW COLOR SCHEME 4 DEFINE BAR 1 OF cautare PROMPT "\<Cautare fisa" . .MESSAGE 'Modificarea unui cabinet' DEFINE BAR 4 OF modificari PROMPT "Mo\<dificare doctor" . MESSAGE 'Stergerea unui doctor din baza de date ' DEFINE BAR 3 OF stergeri PROMPT "St\<ergeri cabinet" .

q1 DEACTIVATE MENU q .40) @18.40) @19.20) @5.53 TITLE 'Salvati adaugarile?'.20 SAY '-----Consultatii-----' @11.10) @3.1 SAY 'Diagnostic :' GET trat PICTURE REPLICATE ('x'.1 SAY 'Data nasterii:' GET da_n @7.10) @5.4 SAY 'Nume :' GET num PICTURE REPLICATE ('x'.40) @15. DOUBLE SHADOW ACTIVATE WINDOW q1 ON KEY LABEL ESC DO nosave DEFI MENU q DEFINE PAD opt1 OF q PROMPT " DA " DEFINE PAD opt2 OF q PROMPT " NU " ON SELE PAD opt1 OF q DO save ON SELE PAD opt2 OF q DO nosave ACTIVATE MENU q PROCEDURE save APPEND BLANK REPLACE marca WITH marc REPLACE nume WITH PROPER(num) REPLACE prenume WITH PROPER(pren) REPLACE adresa WITH upper(adr) REPLACE telefon WITH tel REPLACE data_n WITH da_n REPLACE S_BULETIN WITH upper(BUL) REPLACE tratament WITH upper(trat) REPLACE internari WITH upper(inter) REPLACE diagnostic WITH upper(diag) REPLACE anteceden1 WITH upper(ant1) REPLACE anteceden2 WITH upper(ant2) REPLACE anteceden3 WITH upper(ant3) DEACTIVATE WINDOW q1.36 SAY 'Telefon :' GET tel PICTURE '9999999999' @7.25 TO 22.31 SAY 'Seria buletin:' GET bul PICTURE 'xx999999' @9. FOOTER 'ESC=IESIRE' ACTIVATE WINDOW w1 marc=0 num=SPACE(10) pren=SPACE(10) adr=SPACE(20) tel=0 da_n={} bul=SPACE(10) trat=SPACE(40) inter=SPACE(40) diag=SPACE(40) ant1=SPACE(40) ant2=SPACE(40) ant3=SPACE(40) @1.40) READ CYCLE ON KEY LABEL ESC DO nosave DEFINE WINDOW q1 FROM 20.36 SAY 'Prenume :' GET pren PICTURE REPLICATE ('x'.TITLE '------Fisa pacient------' FLOAT double.40) @13.w1 DEACTIVATE MENU q PROCEDURE nosave DEACTIVATE WINDOW w1.40) @17.1 SAY 'Nr.14 GET ant2 PICTURE REPLICATE ('x'.2 SAY 'Tratament :' GET diag PICTURE REPLICATE ('x'.14 GET ant3 PICTURE REPLICATE ('x'. fisa:' GET marc PICTURE '9999' @3.2 SAY 'Adresa :' GET adr PICTURE REPLICATE ('x'.2 SAY 'Internari :' GET inter PICTURE REPLICATE ('x'.1 SAY 'Antecedente:' GET ant1 PICTURE REPLICATE ('x'.

4 SAY 'CNP :' GET cnp PICTURE '999999999999' @5.40) @13.10 GET s2 PICTURE REPLICATE ('x'.15 TO 18.10) @1.1 SAY 'Adresa :' GET adr PICTURE REPLICATE ('x'.40) READ CYCLE DEFINE WINDOW q2 FROM 20.40) @12.21 SAY 'Prenumele :' GET pren PICTURE REPLICATE ('x'.20) @3.1 SAY 'Numele :' GET num PICTURE REPLICATE ('x'.10 GET s3 PICTURE REPLICATE ('x'.RETURN POP KEY ALL RETURN **************************************************************************** PROC doc_noi USE c:\alex\doctori.20) @3. FOOTER 'ESC=IESIRE' ACTIVATE WIND w2 num=SPACE(10) pren=SPACE(20) adr=SPACE(20) tel=0 cnp=0 spec=SPACE(20) vec=0 s1=SPACE(40) s2=SPACE(40) s3=SPACE(40) @1.25 TO 22.20) @11.1 SAY 'Studii :' GET s1 PICTURE REPLICATE ('x'.53 TITLE 'Salvati adaugarile ?' ACTIVATE WIND q2 ON KEY LABEL ESC DO nosavedoc DEFINE MENU qw DEFINE PAD opt1 OF qw PROMPT " DA " DEFINE PAD opt2 OF qw PROMPT " NU " ON SELE PAD opt1 OF qw DO savedoc ON SELE PAD opt2 OF qw DO nosavedoc ACTIVATE MENU qw PROCEDURE savedoc APPEND BLANK REPLACE nume WITH proPER(num) REPLACE prenume WITH proPER(pren) REPLACE adresa WITH UPPER(adr) REPLACE telefon WITH tel REPLACE codnum WITH cnp REPLACE specializa WITH upper(spec) REPLACE vechime WITH vec REPLACE studii1 WITH upper(s1) REPLACE studii2 WITH upper(s2) REPLACE studii3 WITH upper(s3) DEACTIVATE WINDOW q2 DEACTIVATE WINDOW w2 DEACTIVATE MENU qw RETURN PROCEDURE nosavedoc DEACTIVATE WINDOW q2.1 SAY 'Specializarea :' GET spec PICTURE REPLICATE ('x'.w2 DEACTIVATE MENU qw RETURN .dbf POP KEY ALL DEFINE WINDOW w2 FROM 2. TITLE '----Introduceti datele doctorului----' .23 SAY 'Vechime :' GET vec PICTURE '99' @5.33 SAY 'Telefon :' GET tel PICTURE '9999999999' @5.70 SHADOW FLOAT DOUBLE.37 SAY 'ani' @9.

TITLE 'Salvati adaugarile ?' SHADOW ACTIVATE WIND q3 ON KEY LABEL ESC DO nosavecon DEFINE MENU qe DEFINE PAD opt1 OF qe PROMPT " DA " DEFINE PAD opt2 OF qe PROMPT " NU " ON SELE PAD opt1 OF qe DO savecon ON SELE PAD opt2 OF qe DO nosavecon ACTIVATE MENU qe PROCEDURE savecon APPEND BLANK REPLACE marca WITH marc REPLACE nume WITH UPPER(num) REPLACE prenume WITH UPPER(pren) REPLACE data WITH dat REPLACE cabinet WITH UPPER(cab) REPLACE plata WITH plat DEACTIVATE WINDOW q3. TITLE '-------ADAUGAREA UNUI NOU CABINET-------'.DBF IN 1 POP KEY ALL DEFINE WINDOW W4 FROM 6.1 SAY 'Cabinet:' GET cab PICTURE REPLICATE ('x'.13 TO 12.10) @3.31 SAY 'Plata:'GET plat PICTURE '9999999' @7.4 SAY 'Nume :' GET num PICTURE REPLICATE ('x'.POP KEY ALL RETURN ***************************************************************************** PROCEDURE consultatii USE C:\alex\CONSULTA.DBF POP KEY ALL DEFINE WINDOW w3 FROM 1.11 TO 16.28 SAY 'Prenume :' GET pren PICTURE REPLICATE ('x'.W3 DEACTIVATE MENU qe RETURN POP KEY ALL RETURN ************************************************************************************* PROCEDURE ad_cabinet USE C:\alex\cabinet.56 SHADOW DOUBLE FLOAT.66 SHAD TITLE '------Consultatii------'.1 SAY 'Nr.25 TO 22. FLOAT DOUBLE FOOTER 'ESC=IESIRE' ACTIVATE WINDOW w3 marc=0 num=SPACE(10) pren=SPACE(10) dat={} cab=SPACE(20) plat=0 @1. FOOTER 'ESC=IESIRE' ACTIVATE WINDOW W4 mar=0 numA=0 SPEC=SPACE(20) OR1=SPACE(5) OR2=SPACE(5) .53 DOUBLE. fisa:' GET marc PICTURE '9999' @3.1 SAY 'Data consultatiei:' GET dat @5.20) READ CYCLE DEFINE WINDOW q3 FROM 20.10) @5.w3 DEACTIVATE MENU qe RETURN PROCEDURE nosavecon DEACTIVATE WINDOW q3.

W4 DEACTIVATE MENU qR RETURN POP KEY ALL RETURN ********************************************************************** procedure s_fisa USE c:\alex\fisa. cabinet:' GET NUMA PICTURE '9999' @3.F.0 GET choice FUNCTION '*C Sters' DEFAULT .0 GET choice FUNCTION '*C Sters' DEFAULT .SUS.PRECEDENTA.10) @5.@1.70 SHAD TITLE '------Stergere fisa------' .SUS.dbf DEFI WIND w1 FROM 1. CHOICE=.IESIRE'.IESIRE'.1 GET mchoice FUNCTION '*H URMATOAREA. ENDIF ENDIF @ 0. FLOAT double ACTI WIND w1 @21.10 TO 24.12 GET OR1 PICTURE '99:99' @7.10) @3. SIZE 1.31 SAY 'Seria buletin:' GET s_buletin PICTURE 'xx999999' @9. 1 DEFAULT 'URMATOAREA' @ 0.36 SAY 'Prenume :' GET prenUME PICTURE REPLICATE ('x'.T.1 SAY 'Nr. ELSE IF DELETED()=.4 SAY 'Nume :' GET numE PICTURE REPLICATE ('x'. 10.2 SAY 'Adresa :' GET adresa PICTURE REPLICATE ('x'.w4 DEACTIVATE MENU qR RETURN PROCEDURE nosavecab DEACTIVATE WINDOW q4. 10.F.36 SAY 'Telefon :' GET telefon PICTURE '9999999999' @7.DEL. 1 DEFAULT 'URMATOAREA' IF DELETED()=.25 TO 22.1 SAY 'Nr. TITLE 'Salvati adaugarile ?' SHADOW ACTIVATE WINDOW q4 ON KEY LABEL ESC DO nosavecab DEFINE MENU qr DEFINE PAD opt1 OF qr PROMPT " DA " DEFINE PAD opt2 OF qr PROMPT " NU " ON SELE PAD opt1 OF qr DO savecab ON SELE PAD opt2 OF qr DO nosavecab ACTIVATE MENU qr PROCEDURE savecab APPEND BLANK REPLACE marca WITH mar REPLACE numar WITH NUMA REPLACE specializa WITH SPEC REPLACE orar1 WITH OR1 REPLACE orar2 WITH OR2 DEACTIVATE WINDOW q4.53 DOUBLE. CHOICE=. SIZE 1. @1.1 SAY 'Specializare :' GET SPEC PICTURE REPLICATE ('x'.F.20 SAY '-----Consultatii-----' . fisa:' GET marcA PICTURE '9999' @3.DEL. DO WHILE MCHOICE <> 'IESIRE' @21.4 SAY 'De la' @7.PRECEDENTA.14 SAY '------ORAR------' @7.F.18 SAY 'pana la' @7.27 GET OR2 PICTURE '99:99' READ CYCLE DEFINE WINDOW q4 FROM 20.T.1 GET mchoice FUNCTION '*H URMATOAREA.20) @5.20) @5.1 SAY 'Data nasterii:' GET data_n @7.

10.1 SAY 'Numele :' GET nume PICTURE REPLICATE ('x'. @1.IESIRE'.PRECEDENTUL.PRECEDENTUL.40) READ CYCLE IF mchoice = 'URMATOAREA' SKIP 1 IF EOF()=. DO WHILE MCHOICE <> 'IESIRE' @15.T.SUS.10 TO 20. ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W1 ENDIF ENDDO RETURN ********************************************************************* PROCEDURE s_doct USE c:\alex\doctori. SIZE 1.F.DEL.40) @15. CHOICE=.14 GET anteceden3 PICTURE REPLICATE ('x'. ELSE IF DELETED()=. TITLE '----Stergerea unui doctor----' ACTIVATE WIND w2 @15.F. SIZE 1.40) @13.DEL.1 GET mchoice FUNCTION '*H URMATORUL. CHOICE=. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'DEL' DELETE ENDIF IF DELETED()=.70 SHADOW FLOAT DOUBLE.40) @18.1 GET choice FUNCTION '*C Sters' DEFAULT . 10.F.F.F.1 GET mchoice FUNCTION '*H URMATORUL.1 SAY 'Diagnostic :' GET tratament PICTURE REPLICATE ('x'.2 SAY 'Tratament :' GET diagnostic PICTURE REPLICATE ('x'.T.T.F.T.@11. 1 DEFAULT 'URMATORUL' IF DELETED()=.14 GET anteceden2 PICTURE REPLICATE ('x'.IESIRE'.T.40) @17.2 SAY 'Internari :' GET internari PICTURE REPLICATE ('x'.40) @19.10) . CHOICE=.1 SAY 'Antecedente:' GET anteceden1 PICTURE REPLICATE ('x'.SUS.1 GET choice FUNCTION '*C Sters' DEFAULT . 1 DEFAULT 'URMATORUL' @ 0.T.dbf DEFINE WINDOW w2 FROM 2. ELSE IF DELETED()=. go top ENDIF ENDIF IF mchoice = 'PRECEDENTA' SKIP -1 IF BOF()=. ENDIF ENDIF @ 0. CHOICE=.

10 TO 18. ENDIF ENDIF @ 0. go top ENDIF ENDIF IF mchoice = 'PRECEDENTUL' SKIP -1 IF BOF()=.1 SAY 'Specializarea :' GET specializa PICTURE REPLICATE ('x'.T.1 GET choice FUNCTION '*C Sters' DEFAULT .1 GET choice FUNCTION '*C Sters' DEFAULT .4 SAY 'CNP :' GET codnum PICTURE '999999999999' @5.40) READ IF mchoice = 'URMATORUL' SKIP 1 IF EOF()=.T.DEL.23 SAY 'Vechime :' GET vechime PICTURE '99' @5. ELSE IF DELETED()=.20) @3. CHOICE=. SIZE 1.10 GET studii3 PICTURE REPLICATE ('x'.IESIRE'. ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W2 ENDIF ENDDO RETURN ********************************************************************* PROCEDURE s_cab USE c:\alex\cabinet. @1.1 GET mchoice FUNCTION '*H URMATORUL.F.70 SHADOW DOUBLE FLOAT. cabinet:' GET numar PICTURE '9999' .37 SAY 'ani' @9.dbf DEFINE WINDOW W4 FROM 6.PRECEDENTUL.F. 1 DEFAULT 'URMATORUL' IF DELETED()=. CHOICE=.DEL.SUS.40) @12.20) @3.F. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'DEL' DELETE ENDIF IF DELETED()=. 10.10 GET studii2 PICTURE REPLICATE ('x'.1 SAY 'Studii :' GET studii1 PICTURE REPLICATE ('x'.T.IESIRE'.20) @11.F.F.F.@1.1 GET mchoice FUNCTION '*H URMATORUL.1 SAY 'Adresa :' GET adresa PICTURE REPLICATE ('x'. 10. CHOICE=. ELSE IF DELETED()=. 1 DEFAULT 'URMATORUL' @ 0. CHOICE=.T.33 SAY 'Telefon :' GET telefon PICTURE '9999999999' @5. DO WHILE MCHOICE <> 'IESIRE' @9.40) @13.PRECEDENTUL.T.T.1 SAY 'Nr.21 SAY 'Prenumele :' GET prenume PICTURE REPLICATE ('x'.SUS. TITLE '-------STERGEREA UNUI CABINET-------' ACTIVATE WINDOW W4 @9. SIZE 1.

4 SAY 'De la' @7.10) @5. CHOICE=. @1. SIZE 1.1 GET mchoice FUNCTION '*H URMATOAREA.DBF DEFINE WINDOW w3 FROM 1. 1 DEFAULT 'URMATOAREA' @ 0.10) @3.T.1 SAY 'Nr. DO WHILE MCHOICE <> 'IESIRE' @9.PRECEDENTA.DEL.20) @5. CHOICE=. CHOICE=. fisa:' GET marca PICTURE '9999' @3. Go top ENDIF ENDIF IF mchoice = 'PRECEDENTUL' SKIP -1 IF BOF()=.T.70 SHAD TITLE '------Consultatii------'.T.SUS. Go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'DEL' DELETE ENDIF IF DELETED()=.1 GET choice FUNCTION '*C Sters' DEFAULT .27 GET orar2 PICTURE '99:99' READ IF mchoice = 'URMATORUL' SKIP 1 IF EOF()=.F. 10.DEL.31 SAY 'Plata:'GET plata PICTURE '9999999' . SIZE 1.T.F. ELSE IF DELETED()=. CHOICE=.1 GET choice FUNCTION '*C Sters' DEFAULT .F.T. ENDIF ENDIF @ 0. FLOAT DOUBLE ACTIVATE WINDOW w3 @9.1 SAY 'Specializare :' GET specializa PICTURE REPLICATE ('x'. 10.IESIRE'.T.28 SAY 'Prenume :' GET prenume PICTURE REPLICATE ('x'.@3.F.14 SAY '------ORAR------' @7.F.4 SAY 'Nume :' GET nume PICTURE REPLICATE ('x'.12 GET orar1 PICTURE '99:99' @7. ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W4 ENDIF ENDDO RETURN ********************************************************************* PROCEDURE S_CONS USE C:\alex\CONSULTA.SUS.F.18 SAY 'pana la' @7.1 GET mchoice FUNCTION '*H URMATOAREA.IESIRE'. ELSE IF DELETED()=.10 TO 13. 1 DEFAULT 'URMATOAREA' IF DELETED()=.PRECEDENTA.1 SAY 'Data consultatiei:' GET data @5.

data_n:H='D_nasterii'.F. go top ENDIF ENDIF IF mchoice = 'PRECEDENTA' SKIP -1 IF BOF()=. ELSE IF DELETED()=.T.20 TO 10. TITLE 'Fisele cautate' ACTIVATE WINDOW qq BROWSE FOR (WNUME=NUME AND PRENUME=WPREN) IN WINDOW qq .10 TO 10.T.1 SAY 'Nume' GET wnume PICTURE REPLICATE ('X'.10) READ *wnume=PROPER(ALLTRIM(WNUME)) *wpren=PROPER(ALLTRIM(WPREN)) DEFINE WINDOW qq FROM 14. ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W3 ENDIF ENDDO RETURN ***************************************************************************** PROCEDURE dnum USE c:\alex\fisa.60 SHADOW DOUBLE ACTIVATE WINDOW qqq wnume=space(10) wpren=space(10) @1.dbf PUSH KEY CLEAR DEFINE WINDOW qqq FROM 6. adresa. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'DEL' DELETE ENDIF IF DELETED()=.prenume.10) @1.23 SAY 'Prenume' GET wpren PICTURE REPLICATE ('X'.s_buletin NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN ******************************************************************************** PROCEDURE dnr USE c:\alex\fisa.nume.1 SAY 'Cabinet:' GET cabinet PICTURE REPLICATE ('x'.20) READ IF mchoice = 'URMATOAREA' SKIP 1 IF EOF()=.T.79 SHADOW DOUBLE .T.F.0 TO 22. CHOICE=.telefon. FIELDS MARCA:H='NR'.@7.. CHOICE=.45 SHADOW DOUBLE .dbf PUSH KEY CLEAR DEFINE WINDOW qqq FROM 6.

prenume.7 SAY 'Seria de buletin:' GET wsr PICT REPL ('X'.79 SHADOW DOUBLE .orar1. NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN ************************************************************************** PROCEDURE CDOC USE c:\alex\doctori.'.20 TO 10.telefon.20) READ *wspe=PROPER(ALLTRIM(wspe)) DEFINE WINDOW qq FROM 14.1 SAY 'SPECIALIZAREA' GET wspe PICT REPL ('X'. TITLE 'Fisele cautate' ACTIVATE WINDOW qq BROWSE FOR MARCA=wnr IN WINDOW qq .79 SHADOW DOUBLE . FIELDS MARCA:H='NR. NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN *********************************************************************************** PROCEDURE CCAB USE c:\alex\cabinet. TITLE 'Fisele cautate' ACTIVATE WINDOW qq BROWSE FOR wspe=specializa IN WINDOW qq .1 TO 22.dbf PUSH KEY CLEAR DEFINE WINDOW qqq FROM 6. FIELDS MARCA:H='NR.orar2. TITLE 'Fisele cautate' ACTIVATE WINDOW qq BROWSE FOR S_BULETIN=wsr IN WINDOW qq .telefon.10) READ DEFINE WINDOW qq FROM 14.79 SHADOW DOUBLE .data_n:H='D_nasterii'.adresa.60 SHADOW DOUBLE ACTIVATE WINDOW qqq wspe=SPACE(20) @1.prenume.10 TO 10.adresa.s_buletin.nume.data_n:H='D_nasterii'.1 TO 22.Specializa:H='Specializarea'.1 SAY 'Numarul fisei:' GET wnr PICTURE '9999' READ DEFINE WINDOW qq FROM 14.ACTIVATE WINDOW qqq wnr=0 @1.60 SHADOW DOUBLE ACTIVATE WINDOW qqq WSR=SPACE(10) @1.s_buletin.dbf PUSH KEY CLEAR DEFINE WINDOW qqq FROM 6.'.nume.0 TO 22.dbf . NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN ********************************************************************************* PROCEDURE dSER USE c:\alex\fisa. FIELDS MARCA:H='NR'.

nume.31 SAY 'Seria buletin:' GET s_buletin PICTURE 'xx999999' @9.40 SHADOW DOUBLE ACTIVATE WINDOW qqq wspe=space(20) @1.nume.0 TO 22.IESIRE'. NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN *************************************************************************** procedure m_fisa USE c:\alex\fisa.prenume.40) READ IF mchoice = 'URMATOAREA' .JOS. FLOAT double ACTI WIND w1 @21. FIELDS MARCA:H='NR'. 1 DEFAULT 'URMATOAREA' DO WHILE MCHOICE <> 'IESIRE' @21. 10.1 SAY 'Antecedente:' GET anteceden1 PICTURE REPLICATE ('x'.40) @17.2 SAY 'Tratament :' GET diagnostic PICTURE REPLICATE ('x'.IESIRE'.70 SHAD TITLE '------Fisa pacient------' .SUS.1 SAY 'Data nasterii:' GET data_n @7.dbf DEFI WIND w1 FROM 1.2 SAY 'Internari :' GET internari PICTURE REPLICATE ('x'.14 GET anteceden3 PICTURE REPLICATE ('x'.1 SAY 'Diagnostic :' GET tratament PICTURE REPLICATE ('x'.JOS. SIZE 1.dbf PUSH KEY CLEAR DEFINE WINDOW qq FROM 14.36 SAY 'Telefon :' GET telefon PICTURE '9999999999' @7.36 SAY 'Prenume :' GET prenUME PICTURE REPLICATE ('x'.1 GET mchoice FUNCTION '*H URMATOAREA.10 TO 10. adresa. TITLE 'Consultatiile de astazi' ACTIVATE WINDOW qq BROWSE FOR date()=data IN WINDOW qq .1 GET mchoice FUNCTION '*H URMATOAREA.data.79 SHADOW DOUBLE .specializa:H='Specializare'. TITLE 'Doctorii cautati' ACTIVATE WINDOW qq BROWSE FOR wspe=NUME IN WINDOW qq .cabinet. fisa:' GET marcA PICTURE '9999' @3.20) @5. SIZE 1.1 SAY 'Numele' GET wspe PICTURE REPLICATE ('X'.10 TO 24. 10.0 TO 22.SUS.14 GET anteceden2 PICTURE REPLICATE ('x'.1 SAY 'Nr.2 SAY 'Adresa :' GET adresa PICTURE REPLICATE ('x'.40) @13. 1 DEFAULT 'URMATOAREA' @1.40) @15.10) READ *wspe=PROPER(ALLTRIM(wspe)) DEFINE WINDOW qq FROM 14.prenume.PRECEDENTA.4 SAY 'Nume :' GET numE PICTURE REPLICATE ('x'.10) @3.telefon NOAPPEND NOEDIT NODELETE PACK ON KEY LABEL ESC DO KILL PROCEDURE KILL clear windows RETURN RETURN ************************************************************************* PROCEDURE CCON USE c:\alex\consulta.PRECEDENTA.40) @18..PUSH KEY CLEAR DEFINE WINDOW qqq FROM 6. FIELDS MARCA:H='NR'.79 SHADOW DOUBLE .20 SAY '-----Consultatii-----' @11.40) @19.10) @5.

10) @3. SIZE 1.1 GET mchoice FUNCTION '*H URMATOAREA. go top ENDIF ENDIF IF mchoice = 'PRECEDENTA' SKIP -1 IF BOF()=. SIZE 1.4 SAY 'Nume :' GET nume PICTURE REPLICATE ('x'.1 GET mchoice FUNCTION '*H URMATOAREA. fisa:' GET marca PICTURE '9999' @3. FLOAT DOUBLE ACTIVATE WINDOW w3 @9. 10.PRECEDENTA.JOS. 10. 1 DEFAULT 'URMATOAREA' DO WHILE MCHOICE <> 'IESIRE' @9.10) @5. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'JOS' GOTO BOTTOM ENDIF IF mchoice = 'IESIRE' DEAC WIND W1 ENDIF ENDDO RETURN ************************************************************************** procedure m_cons USE C:\alex\CONSULTA.PRECEDENTA.66 SHAD TITLE '------Consultatii------'.JOS.6 TO 13.T.SUS.1 SAY 'Data consultatiei:' GET data @5. 1 DEFAULT 'URMATOAREA' @1.T.1 SAY 'Cabinet:' GET cabinet PICTURE REPLICATE ('x'.SUS.T.DBF DEFINE WINDOW w3 FROM 1.30 SAY 'Prenume :' GET prenume PICTURE REPLICATE ('x'.33 SAY 'Plata:'GET plata PICTURE '9999999' @7.IESIRE'.IESIRE'.T.1 SAY 'Nr.20) READ IF mchoice = 'URMATOAREA' SKIP 1 IF EOF()=. go top ENDIF ENDIF IF mchoice = 'PRECEDENTA' SKIP -1 IF BOF()=.SKIP 1 IF EOF()=. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'JOS' GOTO BOTTOM ENDIF IF mchoice = 'IESIRE' DEAC WIND W3 ENDIF ENDDO .

IESIRE'. SIZE 1. go top ENDIF ENDIF IF mchoice = 'PRECEDENTUL' SKIP -1 IF BOF()=. 1 DEFAULT 'URMATORUL' DO WHILE MCHOICE <> 'IESIRE' @15.IESIRE'.DEL.1 GET mchoice FUNCTION '*H URMATORUL.21 SAY 'Prenumele :' GET prenume PICTURE REPLICATE ('x'.1 SAY 'Nr. go bottom ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W4 ENDIF ENDDO RETURN ******************************************************************************* PROCEDURE m_doc USE c:\alex\doctori.IESIRE'.4 SAY 'De la' @7.PRECEDENTUL.70 SHADOW FLOAT DOUBLE.37 SAY 'ani' @9.SUS.20) @11.4 GET mchoice FUNCTION '*H URMATORUL.1 GET mchoice FUNCTION '*H URMATORUL.PRECEDENTUL.10 GET studii2 PICTURE REPLICATE ('x'.T.1 SAY 'Numele :' GET nume PICTURE REPLICATE ('x'. 1 DEFAULT 'URMATORUL' @1.DEL.1 SAY 'Studii :' GET studii1 PICTURE REPLICATE ('x'. 10.20) @3.dbf DEFINE WINDOW w2 FROM 2. 10. 10. SIZE 1. cabinet:' GET numar PICTURE '9999' @3.10 TO 20.1 SAY 'Adresa :' GET adresa PICTURE REPLICATE ('x'.12 GET orar1 PICTURE '99:99' @7.4 GET mchoice FUNCTION '*H URMATORUL. TITLE '----Modificarea datelor doctorului----' ACTIVATE WIND w2 @15. TITLE '-------MODIFICAREA UNUI CABINET-------' ACTIVATE WINDOW W4 @9.1 SAY 'Specializarea :' GET specializa PICTURE REPLICATE ('x'.PRECEDENTUL.27 GET orar2 PICTURE '99:99' READ IF mchoice = 'URMATORUL' SKIP 1 IF EOF()=.10) @1.10 GET studii3 PICTURE REPLICATE ('x'. 1 DEFAULT 'URMATORUL' @1.PRECEDENTUL.14 SAY '------ORAR------' @7.40) @13. SIZE 1. SIZE 1.20) @3.RETURN ********************************************************************************* procedure m_cab USE C:\alex\cabinet.20) @5.T.18 SAY 'pana la' @7.40) @12.40) READ IF mchoice = 'URMATORUL' SKIP 1 . 10.SUS. 1 DEFAULT 'URMATORUL' DO WHILE MCHOICE <> 'IESIRE' @9.56 SHADOW DOUBLE FLOAT.23 SAY 'Vechime :' GET vechime PICTURE '99' @5.DBF IN 1 DEFINE WINDOW W4 FROM 6.33 SAY 'Telefon :' GET telefon PICTURE '9999999999' @5.4 SAY 'CNP :' GET codnum PICTURE '999999999999' @5.IESIRE'.11 TO 18.1 SAY 'Specializare :' GET specializa PICTURE REPLICATE ('x'.

ENDIF ENDIF IF mchoice = 'IESIRE' DEAC WIND W2 ENDIF ENDDO RETURN .T.T.IF EOF()=.F. ELSE IF DELETED()=.T. CHOICE=.F. go top ENDIF ENDIF IF mchoice = 'PRECEDENTUL' SKIP -1 IF BOF()=. CHOICE=.T. go bottom ENDIF ENDIF IF mchoice = 'SUS' GOTO TOP ENDIF IF mchoice = 'DEL' DELETE ENDIF IF DELETED()=.

Sign up to vote on this title
UsefulNot useful