22
NEAR EAST UNIVERSITY ENGINEERING FACULTY COM400 GRADUATION PROJECT NAME-SURNAME: FEYZA SEKBAN NUMBER : 960581 DEPT: -COMPETER ENGINEERING SUBJECT: LIBRARY IN FOXP RO TEACHER:BESiME ERiN

ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

NEAR EAST UNIVERSITY

ENGINEERING FACULTY

COM400 GRADUATION PROJECT

NAME-SURNAME: FEYZA SEKBAN NUMBER : 960581 DEPT: -COMPETER ENGINEERING SUBJECT: LIBRARY IN FOXP RO

TEACHER:BESiME ERiN

Page 2: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

FOXPRO

First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program and also a data base program refinement intermediary. it is possible to utilize from DEASE and from Foxpro for not coposing program codes. The Foxpro has also instruments which simplifies the program registers. It's not necessary to compose codes for screens,menus,reports and interrogations, it can be prepared byfoxpro.

THE SYSTEM OF LIBRARY

I did a research of the N.E. 0.Library. There is used to the D. W system, it works with the Dewey Decimal Classification. That means, it's going to be contraled by the 100 system. It starts from 000 up to 099.

000 is the generalities. It contains the main data books, it has ansiklopedies and referans books.

100 Philosopy and Psycology 200 Religion 300 Social science 400 Language :.:;-._ 500 Natural sciences and.mathematics 600 Technology/Engineering) 700 Arts 800 Literature and rhetoric 900 Cography and History · It ends with_ 999. They are classified f e. numbers between

;J 00 _199.are nu~ber.e_d,with the relevant parts of books. ,. , The books, coming _-to - the library are first going to be :,,figistered. The openedregister bookincludes; the name of the book, the class number, how it comes, date in, the 'author, the press and the cade number: The books are registered with the

Page 3: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

these informations. After that, the class number can be sticked. In the front page the register number is written. These books are going to be placed to the shelfs with the numbers. By registering the books, it processed how it comes. The meaning of this is, was the book bought, free or did it came as a donation?. We are writing how it comes to the library. To people who wants to rent a book. Can a Ansiklopedi and a Referance book not be given. These books can not be given outwards. At most for the lesson books it can be given 3 days outwards. If the book was not given back, the people has to extend the books term or they have to give the penalty. Romans and Story books like this can be rent for 15 days. By the books, going outwards, the taking and the delivery date is fixed. The person who rent the book back they have to pay the penalty and this is 250.000Tlfor one day.If the book was not brought back, the book is going to be erased from the register. After the erased, the book's number must be change.

PROJECT DOCUMENTATION: First of all, This project consist of main menu to start the

program. ]-Delete 2-Record 3-Change 4-List 5-To rent 6-Quit in this part, entering your choose; I-delete: we use this option to erase not coming the books. 2-record: we use the option to add new books

Page 4: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

3-change: we use this option to change the information ./

about books.

4-list: all information about the books , can see on the screen.

, S-quu: this procedure is used to exit from the program completely.

ALL ENTiTiES WiTH TYPE OF AND SiZE IN DEASE

ENTiTY TYPE SiZE

Title Character 25 Author Character 15 Press Character 25 Content Character 25 Date Date 8 Code Numeric 9

CONCLUSION

This project was very hard to accomplish. The project would be usefull program that would help improve my own abilities in the field of Foxpro. So by finishing this language it is easy now to do such a project. And this is after helping of books and explanation of teachers that help me to practical my work. All that is due to determination and my work.

Choosing the project my aims are: • Library sistem is not using the own university. • I want to learn to the f oxpro.

Page 5: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 6: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 7: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 8: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 9: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

L KOFF

IHDOW KAYIT SECME FROM 3,71 TO 200,290; SHADOW SYSTEM Title"SECIM"CLOSE OR TO B/W,W/B SAY "HEAR EAST UNIUERSITY"FONJ"Times Hew Roman",24 STYLE"I"

SAY ( LOCF I LE ( •• A: \HeuLogo. bmp"", "BMP I I CO I PCT I I CH", ere is HeuLogo?" )) BITMAP;

ZE 21.100,55.000; LE ""T"" I, 32 SAY ( LOCF ILE (""A :\Library .bmp", ""BMP I I CO I PCT I I CH", ere is Library?"")} BITMAP;

IZE 20.000,55.000; TYLE 11T11

ET COLOR TO B/W,W/8 SE A:\LIBRARY

@3,8 GET SECIM1 PICTURE; "9*UN RECORD; CHANGE; DELETE; LIST; TO RENT;\?QUIT"; SIZE 3,15,2 DEFAULT O UALID DEHETIM() READ CYCLE RELEASE WINDOWS SECIM

********************************** FUNCTION DEHETIM DO CASE

CASE SECIM1=1 DO A:\KAYIT.prg

CASE SECIM1=2 DO A:\DEGIS

CASE SEC1M1=3 DO A:\DELETE.PRG

CASE SECIM1=4 DO A:\LISTE.PRG

CASE SECIM1=5 QUIT

EHDCASE 8 14 34 SAY ""HEAR EAST UNI UERS I TY""FONT""Times New Roman"" 24 STYLE"" I •• ' . '

9 1 , 5 0 SAY ( LOCF I LE (""A: \HeuLogo. bmp"", ""BHP I I co, I PCT I I CH •. , "Where is Heulogo?"" )) BITMAP; SIZE 20.000,55.UOO; STYLE ""T"" @ 18,32 SAY (LOCFILE(""A:\Library.bmp"","BMPfICOfPCTflCH"", "Where is Library?"" ) ) BITMAP;

SIZE 20.000,55.000; STYLE ""T"" SHOW GETS

\

Page 10: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

ETURN 0 •.•.• ******************* ROCEDURE KAYIT IIP-1

IF BOF() CO A:\KAYIT

IF TURN

-********************** OCEDURE DEGIS2 IP 2

F EOF() GO A:\DEGIS2

Etl>IF TURN

~******************** OCEDURE SILME IP 3

F BOF() CO A:\SILME

Etl>IF TURN

~******************** ROCEDURE TO RENT

SKIP 4 IF BOF()

GO A:\TO RENT Etl>IF RETURN ************************** PROCEDURE EXIT QUIT RETURN

Page 11: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

DELETE.PRC

SYSMEHU OFF TALK OFF R A:\LIBRARY

EX OH TITLE TO TITLEX

WINDOW DELETE1 FROM 1,5 TO 11,75; TITLE "'RECORD DELETE""SYSTEM

FltE WINDOW DELETE2 FROM 6,5 TO 20,75 DOUBLE FINE WINDOW DELETE3 FROM 21,10 TO 26,70;

SYSTEM TITLE "'Onay"' AH="'E"'

I LE DEUAM=UPPER ( ""E""') EAR TLE1=SPACE(25) EAR

ACTIUATE WINDOW DELETE1 82,6 SAY "'ENTER THE BOOK'S TITLE(EHTER CIKIS)"';

GET TITLE1 PICTURE"'@25!"' READ IF TITLE1=SPACE(25)

CLOSE DATABA~ES DEACTIUATE WJNDOW DELETE1

EHDIF SEEK TITLE1 IF.HOT.EDF()

ACTIUATE WINDOW DELETE2 CEUAP=""H"" @1,6 SAY ""TITLE :""GET TITLE PICTURE"'@25!"" @3,6 SAY ""AUTHOR ••... :'"GET AUTHOR PICTURE'"@15!"" @~,6 SAY ""PRESS :""GET PRESS PICTURE""@25!'" @7,6 SAY ""COHTEHT :"'GET CONTENT PICTURE"'@25!"" @9,6 SAY ""DATE ..•.. :'"GET DATE PICTURE""99/99/99"" @11,6 SAY "'CODE .•.• :'"GET CODE PICTURE '"99911

CLEAR GETS ACTIUATE WINDOW DELETE3 @1,1 Clear TO 3,50 @2,1 SAY "'BU KAYIT DOSYADAH SILIHSIH MI(E/H)"';

GET CEUAP PICTURE'"@!1'" READ

IF CEUAP=UPPER("'E"") IF.HOT.DELETED()

DELETE EHDIF

EHDIF ELSE

@1,1 CLE~R TO 3,50 @1 , 1 SAY ·~pu KAY IT DOSYADA YOK DEUAM EDECEK MIS I HI 2 ( E/H)'";

GET DEUAM PICTURE"'@!1"' READ

Page 12: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

HIDE WINDOW DELETE2 HIDE WINDOW DELETE3

LOOP ELSE

CLEAR END IF

EHDIF 81,1 CLEAR TO 3,50 82,1 SAY ""SILINECEK BASKA KAYIT UARMl[E/H]"";

GET DEUAM PI CTURE""e1 ! 11 READ

HIDE WINDOW DELETE2 HIDE WINDOW DELETE3

IUATE WINDOW DELETE3 111 CLEAR TO 3,50 1 SAY ""ISARETLENEN DOSYADAN CIKARILSINMI[E/H]";

GET CEUAP PICTURE""e1!"" D

HIDE WINDOW DELETE2 HIDE WINDOW DEL£TE3

CEUAP=UPPER(""E") PACK

IF DO

ACTIUATE WINDOW ALL TURN

Page 13: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 14: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

KAYIT.PRG

T TALK OFF T STATUS OFF T SCOREBOARD OFF FINE WINDOW PEHCERE FROM 16,5 TO 25,75 SYSTEM;

GROW MINIMIZE FLOAT CLOSE ZOOM IT WINDOW 'AKTIF PEHCERE •.•• :"+WOUTPUT() E A:\LIBRARY UAM=""E"" WHILE DEUAM=UPPER(""E"") CLEAR 82,5 CLEAR TO 23,77 APPEND BLANK 83,11 SAY ""TITLE •..•....... :""GET TITLE PICTURE""@25!""

@5, 11 SAY ""AUTHOR .•.••.....•... :""GET AUTHOR PICTURE""@15!11

@7, 11 SAY ""PRESS •....••..... : ""GET PRESS PI CTURE11@25 ! 11 @9, 11 SAY '"CONTENT •..••........ :""GET CONTENT PICTURE""@2511

@11, 11 SAY ""DATE •.•........ :""GET DATE PICTURE""99/99/9911

@13,11 SAY 11CODE .....•. :""GET CODE PICTURE""999 .. 9999"" READ REPLACE TITLE WITH TITLE REPLACE AUTHOR WITH AUTHOR REPLACE PRESS WITH PRESS REPLACE CONTENT WITH CONTENT REPLACE DATE WITH DATE REPLACE CODE WITH CODE @24,20 SAY ""GIRILECEK BASKA KAYIT UARMI(E/H)"";

GET DEUAM PI CTURE""@1 ! 11 READ

EHDDO USE CLEAR RETURN

Page 15: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 16: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

LIST.PRC

TALK OFF SYSMENU OFF

IHE WINDOW List FROM 1,1 TO 23,76; TI TLE11Listing1'SYSTEM

IHE WINDOW L1st1 FROM 25,5 TO 28,73; TITLE'"Listing'"SYSTEM

IUATE WINDOW List A:\LIBRARY

AR 111,3 SAY '"TITLE 111,25 SAY "AUTHOR 111 , 40 SAY '"PRESS @1 , 5 0 SAY °CONTEHT 111 , 6 0 SAY '"DATE 111 , 7 0 SAY '"CODE Yl=O TIR=3 WHILE.HOT.EOF() 8SAT IR, O SAY TITLE PI CT URE '"825'" FONT'"At"ial 11, 8 STYLE'"B'" @SATIR,25 SAY AUTHOR PICTURE '"@15 11FOHT11At"ial11,8 STYLE 11811

@SATIR,40 SAY PRESS PICTURE 1192511 FONT11At"ial11,8 STYLE 11811

@SATIR,50 SAY CONTENT PICTURE '"@25'" FONT11At"ial11,8 STYLE 11811

@SATIR,60 SAY DATE PICTURE 1199/99/9911 FONT11At"ial11,8 STYLE 11811

@SATIR,70 SAY CODE PICTURE 1199911 FONT11At"ial11,8 STYLE 11811

SATIR=SATIR+1 SAYI=SAYI+1 IF SATIR=20

ACTIUATE WINDOW List1 @1,1 SAY '"END OF THE FILE_ENTER THE LETTER'" @1,35 SAY '"LISTING HUMBER OF RECORDS11

@1,60 SAY SAYI PICTURE 1199911

BEKLE=INKEY(O) IF LASTKEY()=27

RETURN ELSE

@1,1 CLEAR TO 4,70 SATIR=4

END IF ENDIF SKIP IF EOF()

ACTIUATE WINDOW Liste1 @1, 1 SAY 11EHD OF THE FILE_ENTER. THE LETTER'" @1,35 SAY '"LISTING NUMBER OF RECORDS .••. : •• @1,60 SAY SAYI PICTURE 11999° BEKLE=IHKEY(O)

CLEAR EHOIF

END DO DEACTIUATE WINDOW ALL RETURN C_l_EAR

'"FOHT'"Arial'",9 STYLE '"BU'" '"FONT'"Arial •. , 9 STYLE "BU I 11 11FONT11Arial •. , 9 STYLE "BU I 11

•• FONT11At"ial11,9 STYLE 11BUl11

11FONT11At"ial11,9 STYLE '"BUI'" "FOHT'"Arial •. , 9 STYLE '"BU I 11

Page 17: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 18: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

DEG IS.PRC

SET TALK OFF SET SCOREBOARD OFF SET STATUS OFF SE A:\LIBRARY

ltl>EX OH TITLE TO TITLEX DEUAM="'E"' DO WHILE DEUAM=UPPER( •• E"') CLEAR TITLE1=SPACE(15) @1,5 TO 5,75 DOUBLE Wl,25 SAY "'RECORDS CHANGE"' @3,6 SAY "'ENTER THE BOOK'S TITLE(EHTER CIKIS)"';

GET TITLE1 PICTURE"'@15T"' READ IF TITLE1=SPACE(15)

CLOSE DATABASES CLEAR RETURN

END IF SEEK (TITLE1) IF FOUND() THEN

CEUAP=11H11

@9,5 TO 22,70 @10,6 SAY "'TITLE :"'GET TITLE PICTURE"'@25T"' @12,6 SAY "'AUTHOR ..•....•.••. :"GET AUTHOR PICTURE"'@15T" 914,6 SAY "PRESS ••....•. :"GET PRESS PICTURE"@25T" @16,6 SAY "COHTENT •....•.•• :"GET CONTENT PICTURE"'@25T"' @18,6 SAY "DATE •.....•.• :"'GET DATE PICTURE"'99/99/99" @20,6 SAY "'CODE ••.•. :"'GET CODE PICTURE"999"' READ

@24,20 SAY "DO YOU WANT TO RECORD THE CHAHGES(Y/H)"; GET DEUAM PICTURE"@T1"' READ

IF DEUAM="'E" REPLACE TITLE WITH TITLE REPLACE AUTHOR WITH AUTHOR REPLACE PRESS WITH PRESS REPLACE DATE WITH DATE REPLACE CODE WITH CODE

END IF ELSE

@20,5 CLEAR TO 23,77 @20,5 TO 23,77 DOUBLE @21,20 SAY "THIS RECORD CAN HOT BE FOUND" @22,20 SAY "'ARE ANY RECORDS TO CHAHGE(Y/H)";

GET DEUAM PICTURE"@T1" READ IF DEUAM="'E"'

LOOP ELSE

EXIT

Page 19: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

END IF @24,20 SAY ""ENTERING OTHER RECORDS(Y/N)11;

GET DEUAM PICTURE11~1 !"" READ END DO CLOSE DATABASES CLEAR RETURN

Page 20: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program
Page 21: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

•0 ~dJ,T.

Page 22: ENGINEERING FACULTY - Near East Universitydocs.neu.edu.tr/library/4854080839.pdf · First of all I want to mention you about the Foxpro. The Foxpro for windows is a data base program

I ,///···· ~--,--,,,"'··--.,,. __ •<~ ·,,, .. __

',. ..:>• "z /,, I ~ .. , .••..•.. .,, .•. ····'····