Разработка базы данных Кадры

Информация - Компьютеры, программирование

Другие материалы по предмету Компьютеры, программирование

p> GO BOTTOM

ENDIF

ENDIF

IF next=1

SKIP 1

IF EOF()=.t.

GO TOP

ENDIF

ENDIF

IF down=1

IF list<>1

list=list-1

ELSE

list=5

ENDIF

ENDIF

IF up=1

IF list<>5

list=list+1

ELSE

list=1

ENDIF

ENDIF

IF find=1

DO search.prg

ENDIF

org_num1=org_num

IF eduadd=1

DO educat.prg WITH org_num1,edit

ENDIF

IF forlang=1

DO language.prg WITH org_num1,edit

ENDIF

IF conv=1

DO convict.prg WITH org_num1,edit

ENDIF

IF structfam=1

DO family.prg WITH org_num1,edit

ENDIF

IF pass=1

DO passport.prg WITH org_num1,edit

ENDIF

IF bok=1

DO workcard.prg WITH org_num1,edit

ENDIF

IF purpos=1

DO move.prg WITH org_num1,edit

ENDIF

IF qualcateg=1

DO qualif.prg WITH org_num1,edit

ENDIF

IF tripsbus=1

DO bus_trip.prg WITH org_num1,edit

ENDIF

IF holid=1

DO holiday.prg WITH org_num1,edit

ENDIF

IF print=1

DO print.prg

ENDIF

ENDDO

RELEASE WINDOW win1

RELEASE WINDOW win0

RETURN

 

 

WIEV1.PRG

 

PARAMETER edit

ACTIVATE WINDOW win1

CLEAR

eduadd=5

forlang=5

conv=5

structfam=5

pass=5

bok=5

purpos=5

qualcateg=5

tripsbus=5

holid=5

org_n=org_num

@ 1,1 SAYТаб. номер:__________________

@ 2,1 SAYСтраховой номер:_____________

@ 3,1 SAYФамилия:_____________________

@ 4,1 SAYИмя:_________________________

@ 5,1 SAYОтчество:____________________

@ 6,1 SAYПол:_________________________

@ 7,1 SAYДата рождения:_______________

@ 8,1 SAYМесто рождения:______________

@ 9,1 SAYНациональность:______________

@ 10,1 SAYСоциальное происхождение:____

@ 11,1 SAYГражданство:_________________

@ 12,1 SAYОбразование:_________________

@ 13,1 SAYНазвание учебного заведения:_

@ 14,1 SAYФорма обучения:______________

@ 15,1 SAYГод окончания:_______________

@ 18,4 SAYЛИСТАТЬ

@ 18,29 SAYЗАПИСЬ

@ 16,0,16,77 BOX

@ 17,26,19,26 BOX

@ 17,52,19,52 BOX

STORE 6 TO org_num,ins_num,surname,name,up,down,next,;

previos,find,print,exit

@ 1,30 GET org_num VALID UN()=.t. ERROR ;

Такой табельный номер уже существуетSIZE 1,6 WHEN edit=.t. COLOR SCHEME 2

@ 2,30 GET ins_num PICTURE NNN-NNN-NNN SIZE 1,11 ;

WHEN edit=.t. COLOR SCHEME 2

@ 3,30 GET surname SIZE 1,15 WHEN edit=.t. COLOR SCHEME 2

@ 4,30 GET name SIZE 1,15 WHEN edit=.t. COLOR SCHEME 2

@ 5,30 GET patron SIZE 1,15 WHEN edit=.t. COLOR SCHEME 2

@ 6,30 GET sex VALID sex=МOR sex=ЖOR sex=мOR sex=ж ;

ERROR [М]ужской или [Ж]енский SIZE 1,1 ;

WHEN edit=.t. COLOR SCHEME 2

@ 7,30 GET birth_date SIZE 1,10 WHEN edit=.t. COLOR SCHEME 2

@ 8,30 GET birthplace SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

@ 9,30 GET national SIZE 1,15 WHEN edit=.t. COLOR SCHEME 2

@ 10,30 GET SOCIAL SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

@ 11,30 GET citizen SIZE 1,30 WHEN edit=.t. COLOR SCHEME 2

@ 12,30 GET educat SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

@ 13,30 GET NAME_EDU SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

@ 14,30 GET form_train SIZE 1,20 WHEN edit=.t. COLOR SCHEME 2

@ 15,30 GET year_end SIZE 1,10 WHEN edit=.t. COLOR SCHEME 2

 

STORE "* ВПЕРЕД" TO MPROMPTS

@ 17,14 GET up FUNCTION MPROMPTS SIZE 1, 8 COLOR SCHEME 11

STORE "* НАЗАД " TO MPROMPTS

@ 19,14 GET down FUNCTION MPROMPTS SIZE 1, 8 COLOR SCHEME 11

STORE "* СЛЕДУЮЩАЯ " TO MPROMPTS

@ 17,38 GET next FUNCTION MPROMPTS SIZE 1, 12 COLOR SCHEME 11

STORE "* ПРЕДЫДУЩАЯ" TO MPROMPTS

@ 18,38 GET previos FUNCTION MPROMPTS SIZE 1, 12 COLOR SCHEME 11

STORE "* НАЙТИ " TO MPROMPTS

@ 19,38 GET find FUNCTION MPROMPTS SIZE 1, 12 COLOR SCHEME 11

STORE "* ПЕЧАТЬ" TO MPROMPTS

@ 17,62 GET print FUNCTION MPROMPTS SIZE 1,5 COLOR SCHEME 11

STORE "* ВЫХОД" TO MPROMPTS

@ 19,62 GET exit FUNCTION MPROMPTS SIZE 1,5 COLOR SCHEME 11

READ CYCLE

IF org_n<>org_num

org_n1=org_num

SELECT 2

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 3

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 4

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 5

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 6

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 7

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 8

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 9

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 10

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 11

REPLACE org_num WITH org_n1 FOR org_num=org_n

SELECT 1

ENDIF

RETURN

FUNCTION un

rec_un=RECNO()

tab_un=org_num

SEEK tab_un

IF RECNO()=rec_un

SKIP

ENDIF

IF tab_un=org_num AND !EOF()

GO rec_un

RETURN .f.

ENDIF

GO rec_un

RETURN

 

WIEV2.PRG

 

PARAMETER edit

ACTIVATE WINDOW win1

CLEAR

eduadd=5

forlang=5

conv=5

structfam=5

pass=5

bok=5

purpos=5

qualcateg=5

tripsbus=5

holid=5

@ 1,1 SAYДиплом:______________________

@ 2,1 SAYКвалификация по диплому:_____

@ 3,1 SAYСпециальность по диплому:_____

@ 4,30 SAY EDU_NUM COLOR SCHEME 2

@ 5,1 SAYВид найма:___________________

@ 6,1 SAYВид работы:__________________

@ 7,1 SAYУченая степень:______________

@ 8,1 SAYУченое звание:_______________

@ 9,1 SAYУзкая специальность:_________

@ 10,30 SAY LANG_NUM COLOR SCHEME 2

@ 11,30 SAY conv_num COLOR SCHEME 2

@ 12,1 SAYСемейное положение:__________

@ 13,30 SAY famil_num COLOR SCHEME 2

@ 14,1 SAYПрофсоюз:____________________

@ 15,1 SAYГруппа инвалидности:_________

 

@ 18,4 SAYЛИСТАТЬ

@ 18,29 SAYЗАПИСЬ

@ 16,0,16,77 BOX

@ 17,26,19,26 BOX

@ 17,52,19,52 BOX

STORE 6 TO diploma,qual_dip,spec_dip,eduadd, ;

kind_hir,KIND_WRK,s_degree,s_rank,mar_spec, ;

forlang,conv,mar_status,structfam,tr_union,group, ;

up,down,next,previos,find,print,exit

@ 1,30 GET diploma PICTURE серия:XXXX номер:NNNNNNNN ;

SIZE 1,25 WHEN edit=.t. COLOR SCHEME 2

@ 2,30 GET qual_dip SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

@ 3,30 GET spec_dip SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

STORE "* Образование (дополнит.):____" TO MPROMPTS

@ 4,0 GET eduadd FUNCTION MPROMPTS SIZE 1, 30 COLOR SCHEME 11

@ 5,30 GET kind_hir SIZE 1,30 WHEN edit=.t. COLOR SCHEME 2

@ 6,30 GET KIND_WRK SIZE 1,30 WHEN edit=.t. COLOR SCHEME 2

@ 7,30 GET s_degree SIZE 1,30 WHEN edit=.t. COLOR SCHEME 2

@ 8,30 GET s_rank SIZE 1,30 WHEN edit=.t. COLOR SCHEME 2

@ 9,30 GET mar_spec SIZE 1,47 WHEN edit=.t. COLOR SCHEME 2

STORE "* Владение иностран. языками:_" TO MPROMPTS

@ 10,0 GET forlang FUNCTION MPROMPTS SIZE 1, 30 COLOR SCHEME 11

STORE "* Наличие судимости:__________" TO MPROMPTS

@ 11,0 GET conv FUNCTION MPROMPTS SIZE 1, 30 COLOR SCHEME 11

@ 12,30 GET mar_status SIZE 1,20 WHEN edit=.t. COLOR SCHEME 2

STORE "* Состав семьи:_______________" TO MPROMPTS

@ 13,0 GET structfam FUNCTION MPROMPTS SIZE 1, 30 COLOR SCHEME 11

@ 14,30 GET tr_union SIZE 1,40 WHEN edit=.t. COLOR SCHEME 2

@ 15,30 GET group SIZE 1,1 WHEN edit=.t. COLOR SCHEME 2

 

STORE "* ВПЕРЕД" TO MPROMPTS

@ 17,14 GET up FUNCTION MPROMPTS SIZE 1, 8 COLOR SCHEME 11

STORE "* НАЗАД