Разработка реального приложения с использованием Microsoft Visual FoxPro 9. Профессиональный подход 5-262-00297-8

На примере сравнительно небольшой, но реальной базы данных «Real Estate» показан процесс создания профессионального Visu

306 99 5MB

Russian Pages 200 Year 2007

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
Title.pdf......Page 1
Гурвиц Г.А. Visual FoxPro 9.pdf......Page 2
Footer.pdf......Page 200
Recommend Papers

Разработка реального приложения с использованием Microsoft Visual FoxPro 9. Профессиональный подход
 5-262-00297-8

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

« »

. .

Microsoft Visual FoxPro 9

2007 1

004.655(075.8) 973.2-018.2 73 950 : «

»

(

Ч

Е

, ) ,

. . . . 950 . Visual FoxPro 9 : 2007. – 198 .: . ISBN 5-262-00297-8

.–

:

Microsoft ,

-

230200 «

230201

»

«

». Microsoft Visual

. FoxPro 9.0. , », «

», «

« »

-

«

». 004.655(075.8) 973.2-018.2 73 . -

,

,

, .

,

,

. ,

. ,

-

. ISBN 5-262-00297-8 © ©

. . « »(

2

), 2007

, . .

,

, ,

-

. Microsoft Visual FoxPro. . – UML, ,

-

-

.

-

, ,

(CASE-

)

. Microsoft Visual FoxPro c C:\Program Files\Microsoft Visual FoxPro 9\Samples\ Microsoft Visual FoxPro.

: ,

-

Tastrade. ,

,

,

.

,

:

, . , . ,

Microsoft Visual FoxPro, , Microsoft Visual FoxPro, , -

, 90-

. Microsoft Visual FoxPro 3.0 Microsoft

-

.

(17 ), Visual FoxPro . Visual FoxPro

, -

90-

.

, xBase. 3

2005 . Microsoft Visual FoxPro 9.0, Windows (

,

– DOS

,

VFP 2.6

3.0). Visual FoxPro, .

, Microsoft, Visual FoxPro 9.0 .

Visual Studio Data -

-

,

, ,

-

Web. –

, -

Visual FoxPro dBase II.

20

, , Visual FoxPro 9.0 Web) Visual FoxPro 9.0

Misrosoft -

, (

,

(

2

. Microsoft -

,

). Visual FoxPro

.NET,

Windows ,

COM-

. FoxPro

-



. .NETVFP.

COM.NETVisual FoxPro

– VFP 9.0

,

Web-

. .

Windows XP Tablet PC. .

Misrosoft Visual FoxPro SQL9.0

4

MS SQL Server. ,

SQL-

,

,

. . XML Adapter XSD.

XMLVisual FoxPro

. ,

Foundation Classes, . . , Microsoft

-

. Visual FoxPro 9.0 , , Visual FoxPro,

,

FoxPro -

, Visual FoxPro (SQL Server + Visual studio .NET). Microsoft Microsoft Visual FoxPro 9.0: http://msdn.microsoft.com/vfoxpro/default.aspx • . .NETXMLWebMS SQL Server , 9.0;

-

-

,

SQL



. ,

,

-

,



; .

-

Windows Tablet PC, COM-

Web. VFP 9.0



; -

, ,

XML, HTML

-

. Microsoft Visual FoxPro .

-

Visual FoxPro

30

.

.

Microsoft :«

.

FoxPro

».

,

, Microsoft

FoxPro. Microsoft 5

DevCon’94.

, . –

, .

,

-

FoxPro 2.6 for DOS.

Microsoft, , Visual FoxPro –

.

,

, .

FoxPro-

-

: 200 . 2001 . (

.

: ,

Visual Basic 6.0

2

, VB-



Microsoft » , -

, VB.NET. Microsoft Visual FoxPro 9.0 2014 . http://msdn.microsoft.com/vfoxpro/productinfo/faq/default.aspx Visual FoxPro 9.0 Sedna: http://msdn.com/vfoxpro/roadmap 2007 . Visual FoxPro 9.0. Sedna , c Visual Studio 2005, .NET Framework 2.0 SQL Server 2005. Sedna Windows Vista. , Microsoft Visual FoxPro Visual Studio Net. Visual FoxPro Net. 64. Sedna Visual FoxPro, COM .NET . , « » . – « Microsoft Visual FoxPro 9».

6

1. ,

.

.



,

-

. ,

.

-

, .

, ,

. -

, ,

90

100

,

,

99

100

, .

,

-

, ,

-

, , .

.

-

, , .

,

-

, , .

-

,

,

, ,

,

. .

,

.

!

, ,

. , , –

,

, , (

. 1.1).

7

1.1 «

»

№ 1

Address

50

2

District

15

3

Land

10

4

Year

4

5

Material

15

6

Comment

7

Wear

2

8

Cost

15

9

Line

5

10

Square

10

11

Picture

12

Kind

1

13

Elevator

1

14

Flat

4

15

Storey

2

16

Rooms

1

,

Memo

OLE

17 SquareFlat 18

Dwell

19

Branch

20

Balcony

21

Height

22

Account

5

23

FioHost

60

24

Pasport

25

Fio

60

26

Born

4

27

Status

20

.

. . .

Memo . . .

. ,

,

.

8

,

2. : Microsoft Visual FoxPro –

. ,

. -

,

. 70.

-

.

(E. F. Codd) -

, . ,

,

: ,

,

,

. .

,

-

. -

. ,



-

. , ,

– . ,

, , .

, . . .

,

,

-

, .

-

. .

,

,

.

, .

-

, ,

, .

,

. .

, «

»,

, ,

, –

, -

, . 9

.

-

. . , .

-

.

:

,

,

.

,

.

,

! ,

. -

?

: • .



!



-

. ,

-

,

, . ,

, .

, .

, ,



,

-

. . . -

Visual FoxPro .



.

. .

, .

,

-

.

, ?

,

-

? •

,

? . . , . . « «Real Estate».

10

»

-

. 2.1 ,

,

-

. .

. 2.1.

«Real Estate»

. ,

-

, .

«

»

,

. , .

,

-

, ,

-

, . ,

. . . .

,

.

.

, , .

-

, FioHost,

: Family, Name, Second. Address 11

: .

,

(

. 2.1). 2.1 (Street)

№ 1

Street

4

2

Name

30

3

Sign

10

4

First

1

Street

Name

Sign

First

173 174 175 176

First

,

:

,



:

. Sign.

First

,

. , . 175 -

, Street,

, ,

. , .

12

, Street. First c

, .

( 175,

-

-

) .

-

2.2 (Building) № 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Street House District Land Year Material Comment Wear Cost Line Square Picture Kind Elevator

4 4 15 10 4 15 Memo 2 15 5 10 OLE 1 1

2.3 (Flat) № 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Street House Flat Storey Rooms SquareFlat Dwell Branch Balcony Height Account Family Name Second Pasport

4 4 4 2 1

5 20 20 20 Memo 13

2.4 (Owners) № 1 2 3 4 5 6 7 8 9

Street House Flat Number Family Name Second Born Status

4 4 4 2 20 20 20 4 20

.

. 2.2.

( :

,

. 2.1, 2.2, 2.3, 2.4)

, –

(

. 2.2).

.

-

.

. . –

14

,

-

.

,

.

, Material

District

, : .

,

Building. . , ,

. –

(Wall

Building (

.

District), .

-

. 2.3).

. 2.3.

: Wall

District (

. 2.5,

. 2.6). 2.5

(District) № 1 2

District Area

1 15

2.6 (Wall) № 1 2

Material Wall

1 15 15

Building

. . 2.7. 2.7 Building

№ 1

Street

4

2

House

4

3

District

1

4

Land

10

5

Year

4

6

Material

1

7

Comment

8

Wear

2

9

Cost

15

10

Line

5

11

Square

10

12

Picture

13

Kind

1

14

Elevator

1

Memo

OLE

.

-

, , . . ,

Microsoft Visual FoxPro,

,

. , ,

. Microsoft Visual FoxPro Null

Visual FoxPro

: (Integer AutoInc). , :

, 16

.

. Microsoft , . ,

, ,

,



.

Street (

Street District

-

District ( Wall.

)

. Material (

) .

)

-

Building,

, .

.



– . Flat (

)

, .

: . . «Integer (AutoInc)». Visual FoxPro

,

.

(

). .

-

, . Flat ( Account ( ( Pasport) count count ( . 2.8).

.

).

), : Family, Name, Second AcAc2.8 (Account)

№ 1 2 3 4 5

Account Family Name Second Pasport

5 20 20 20 Memo

17

,

-

. Microsoft Visual FoxPro

:

,

. «

»

, . Flat

Account (

. 2.4).

. 2.4.

– ! (Account)

. Account. ,

(

-

, 5

). . ,

,

, «

». Street

.

Building.

Street

Building.

Street.

Street. Building Flat, Flat , -

Owners. 18



.

-

. «

»

«

». .

, ,

.

-

. «

»

, , . ,

. Microsoft Visual FoxPro .

-

-

«

, ». «

»

. . 3.8,

.

Ч

? –

, . Oracle

DB2, -

,

.

3. 3.1.

Microsoft Visual FoxPro Microsoft Visual FoxPro « ».

» . (

« «Microsoft Visual FoxPro 9» – FoxPro -

. 3.1). 19

. 3.1.

Microsoft Visual Fox Pro 9.0

Visual FoxPro,

-

(Task Pane Manager), , ,

(Command)

-

. Visual FoxPro Enter.

,

Command

Enter

.

Command , ,

, Visual FoxPro. ,

,

Command. Command

.

-

. ,

Command

, . Visual FoxPro.

20

-

, . Microsoft , . « », , ,

Visual FoxPro 9, –

Real Estate. ,

,

: . .

,

. c

(

. 3.2.

BOOK – CLASS – DBF –

-

. 3.2).

Real Estate

,

. ,

. (

,

,

,

. .). DECKTOP –

, .

FORM – HELP –

,

. -

,

-

F1. ICO –

.

21

INSTALL –

, .

PICTURE – REPORT – USER –

(

). Visual FoxPro.

, ,

.

. Visual FoxPro

,

.

-

. Config.fpw –

,

Visual FoxPro. ».

« : EXCLUSIVE=On DELETED=ON MULTILOCKS=ON DATE=GERMAN PATH=FORM,DBF,REPORT,CLASS,ICO CENTURY=ON RESOURCE=ON

3.2.

Visual FoxPro

Visual FoxPro . Visual FoxPro ,

: SQL (Structured Query Language) – .

-

,

Visual FoxPro. , . ,

,

: -

. , Visual FoxPro. Visual FoxPro : ,

.

-

, .

,

.

-

-

. , 22

,

.

«

», «

»

«

».

,

,

.

,

. COBOL

, . . -

,

.

-

SQL. « «

», «

» -

». .

,

,

.

-

, . Visual FoxPro .

, -

, . Visual FoxPro . ,

. ,

-

,

, .

. , . ,

UNIX, . ,

, , ,

.

,

, . , :

,

,

,

. ,

. .

23

,

,

,

,

. , . ,

,

.

, IMS/VS,

,

.



, -

IBM – . 1970-

.

CODASYL

.

,

. ,

,

,

.

, - -

«

-

». . ,

1970-

.

. ,

.

,

.

.

, .



. .

. .

,

,

-

, . , .

,

1980-

. .

,

,

. 1990-

-

.

,

-

,

. Visual FoxPro

. ,

,

,

-

dBASE II. . 24

, dBASE II ,

,

-

DBF –

DataBase File ( dBASE II

).

. – . -

,

, .

dBASE II ,

. Nantucket dBASE III+, a Fox Software «

dBASE», dBASE II

,

Clipper, FoxBase+. –

«

xBase». -

,

IBM

SQL,

-

. -

. Fox 1990., FoxPro 2.O.

lect

Fox Software

Se-

SQLFoxPro

.

SQL FoxPro. Visual FoxPro

.

DBF. ,

-

. . .

«

«

»

».

-

, , .

,

:

,

,

, , . ,

-

. 25

1990-

.



.

-

-

,



,

-

.

,

, -

. ,

-

, Visual FoxPro , , Visual FoxPro . Visual FoxPro

. , .

-

, .

Visual FoxPro

.

Visual FoxPro , , Visual FoxPro, ,

-

-

-

. . ?

, – .

,

, .

. .

12

, Visual FoxPro 6,5

. ,

12.

Oracle – 8,5 , . ,

,

. -

.

,

-

. , . .

.

,

,

, ,

.

26

. Microsoft Visual FoxPro . • Start Create. , •

-

(Task Pane Manager) New Database. DBF, – Real Estate.

. .

Visual FoxPro

File

New. New file. DBF, – Real Estate.



-

Database Create. , . (Command) Create.

Create Database. DBF, – Real Estate.

, . DBF .

– : Real Estate.dbc Real Estate.dct Real Estate.dcx Microsoft Visual FoxPro

).

,

( Visual FoxPro, .

,

-

3.3. Visual FoxPro 9.0 , , Visual FoxPro 3.0.

, .



. . .

User (

. 3.2),

(

)

,

Real

Estate,

. Microsoft Visual FoxPro:

1) 2) 3) 4)

; ; ; ,

-

. –

,

. 27

. . !

,

. ,

-

,

.



– ,

-

! Visual Fox Pro Real Estate,

. 3.1. (

. 3.3). .

-

.

К

Microsoft. . .

. . 3.3. Real Estate

-

-

New Table. New table, New table.

. (

К

. 3.6).

. . New table.

. 3.4 28

-

( . 3.4). New table, .

New table. (

. 3.6).

К base. New table.

.

Visual FoxPro ( . 3.5).

Data-

New table, .

New table. (

. 3.5.

. 3.6).

Visual FoxPro 9.0

. • Fields (

: Fiels, Indexes )–

• Indexes ( • Table ( ,

Table. ;

)– )–

; ,

(

.

. 3.6)

-

.

, . .

-

, . Field comment. .

! . 255 , .

-

10 FoxPro

(

. Microsoft Visual , Microsoft SQL Server). , 29

. . 3.1 Microsoft Visual FoxPro 9.0.

3.1

Microsoft Visual FoxPro 9.0

, Character

.

– 255

-

.

10 Character.

Character (binary)

,

Character.

Varchar Varbinary Datetime

01.01.0001 31.12.9999 00.00.00 a.m. 11.59.59 p.m.

Date

01.01.0001

Currency

15

4 True (.T.)

False (.F.)

–2147483647

2147483648

Logical Integer Integer (AutoInc)

.

31.12.9999

,

-

,

Numeric Float Double , General

,

, , . . .

64 Blob

30

.

,

-

Fields

(

, , Format (

)–

. 3.6) . Browse,

. Input mask ( Caption ( Rule ( )–

)–

. .

)– .

Message (

)–

, .

Default value ( . Display library ( . Display class (

)–

,

)–

-

)– .

Next Value ( . Step (

)– . 2.7.

)– IntegerInc. . Building. ,

IntegerInc. .

,

(

. 3.6.

Building

(

. 3.6).

)

31

1. . Character 2. Numeric 3.

: Street Type. . .

10

. Width (

)

-

Decimal (

-

). . 1248

9999 . ,

,

,

,

, ,

,

,

. . 4.

Field comment.

,

! 5.

1–4

. . . «

»,

-

(

. 3.7.

. 3.7). «Yes». DBF –

, : Building.dbf (

)

,

Building.fpt (

Memo).

!

. 3.2.

, Real Estate.



.

,

-

. 3.2 , Street

House

Flat

Storey

Rooms

Square

Dwell

Branch

Account

14 14 14 14 14 14 14 179 179

102 102 102 102 102 102 102 104 104

1 2 3 4 5 6 7 1 2

1 1 1 2 2 10 10 1 1

3 4 4 4 3 1 7 1 2

60,8 100 78 90 100 200 170 30 42

40 70 60 80 95 190 150 20 30

20 28 16 5 30 8 10 9 11

3450 1000 4321 666 778 9787 879 23210 3267

32

179 179

104 104

3 4

1 2

1 4

27 100

20 90

6 5

6666 4587

, . 2: Flat, Owners, Account, Street, District

Wall.

3.4. ,

, . .

.

,

Visual FoxPro

Microsoft . « -

,

».

, .

, . ,

-

. , ,

, –

-

.

,

. . , .

Pro

,

,

Visual Fox-

. ( . 3.8). : Flat Id (Primary), Account (Candidate)

Flat.

Ad-

dress (Regular).

. 3.8.

Flat

(

Indexes) 33

-

– . ,

-

-

,



-

, . (

– Visual FoxPro – Primary). – ( Visual FoxPro

,

, – Primary).

,

,

. 2 («

»). .

-

. (

Visual FoxPro – Regular).

,

. -

(

Visual FoxPro – Candidate). Flat ( . 2.4)

. Account ( ). .

-

. . Street (

-

,

). ,

Street ( 1.

. 2.1). Street Real Estate ( . 2.1) . . Modify.

2.

.

-

.

: Or-

Street .

Indexes ( . 3.9). der, Name, Type, Expression, Filter

. 3.9. 34

.

Street

Collate.

(

Indexes)

3. 4. Tab 5. : Primary, Candidate, Binary 6. ( . 7. .

– street. Type. .

-

Regular.

– Primary.

, ) – street.

-

OK. Visual FoxPro Yes. .

Owners (

,

).

, : Street+House+Flat+Number. 1. Owners Real Estate ( . 2.1) . . Modify. 2. . Indexes ( . 3.10). der, Name, Type, Expression, Filter Collate.

. 3.10.

Owners

3. 4. Tab 5. : Primary, Candidate, Binary – Primary. 6. .

. Owners .

-

.

: Or-

(

Indexes)

– Ownersid. Type. . ,

Regular.

-

Expression

.

. 35

.

(

STR

Numeric

. 3.11).

, Character –

.

. 3.11.

7.

OK. Visual FoxPro Yes.

.

. (Regular),

(

-

Can-

didate) – . Visual FoxPro

(Regular Candidate). CDX.

3.5. ,

, .

36

-

.

,

-

, , , . .

,

, ,

,

,

. -

. , Microsoft Visual FoxPro 9.0.

, . .

, 1 (

. 3.12.

1.

District Real Estate ( . 2.1) . . Modify.

-

9,

. 3.12).

district (

District ( . District .

)

):

37

2. 3.

(

. 3.13)

(

Fields).

Rule, : District>0 .And. DistrictM.Date_Up+100 =MESSAGEBOX(' ! '+; ' ! ',48,' !') DO FORM ChangPas && ENDIF ELSE SuperVisor=.F. && =MESSAGEBOX(' .',; 48,' ') ENDIF ENDIF THISFORM.Release && LOGIN CLEAR EVENTS && Visual FoxPro **SuperVisor=.F. && THISFORM.Release && CLEAR EVENTS && *-

4.2.2.

LOGIN Visual FoxPro

Access – (Employee)

(Access) Visual FoxPro, -

,

-

)

-

. ( -

.

). ,

.

, – ,

.

( . .

. « :

,

». ,

. .

-

. 61

.



,

. «

»

«

»

.

«

»

,

,

. (

(

,

-

),

) .

.

-

. ,

-

. –

Worker. -

, . .

File

Save As Class Save Class, . . .

Visual FoxPro.

, -

Save Class

, ,

, (

vcx)

-

. . Visual FoxPro File File. ( . 4.7.) Worker, Worker.vcx , . .

New,

Class New Class Container

.

OK.

. ,

Open. Class Designer, ( . 4.8).

62

New

-

, -

. 4.7.

-

, .

. 4.8.

Worker

. -

, .

.

-

, . Access. (Data Environment)

User. 63

. Form Controls ( . 4.9. Visual FoxPro View, Toolbars. Form Controls

. ). – Toolbars. – OK. View Classes.

Add. Worker.vcx Form Controls . .

, Open

Worker.

OK , (Standard). Worker.

. 4.9.

Access . 4.10.

. 4.10. 64

Form Controls (

ee

Access

)

4.2.3.

Employee – Employee. –

,

– (Data Environment) . Page Frame Controls ( ). – View, Toolbars. OK. Page Frame, .

, . User. .

Form . 4.9. Visual FoxPro

Toolbars. – Form Controls

Employee . 4.11.

. 4.11.

Employee

, Load * * PUBLIC IND IND=0

: IND (

)

&& 65

* SELECT USER SET ORDER TO TAG LastName

Activate

Employee:

* * , (IND=1 IND=2) * IF IND>=1 IND=1 ENDIF * LIST1 THISFORM.PAGEFRAME1.PAGE1.LIST1.SETFOCUS * THISFORM.PAGEFRAME1.PAGE1.LIST1.REFRESH

Interactive Change

List1:

IND=1 && *

DblClick

List1:

IND=1 && List1 * THISFORM.PAGEFRAME1.ACTIVEPAGE=2

Click

:

IND=2 && * THISFORM.PAGEFRAME1.ACTIVEPAGE=2

Page Frame1

OK

-

Worker. . Form Controls ( ) View Classes ( . 4.9). , Add. Open Worker.vcx Worker. Open Form Controls Worker, . (Standard). . 4.12. .

. 4.12. Form Controls 66

Employee

Worker.

,

(

, . 4.13)

.

.

. 4.13.

Activate

Employee

Employee:

DO CASE CASE IND=0 && =MESSAGEBOX(' ! ',; 48,' !') * THISFORM.PAGEFRAME1.ACTIVEPAGE=1 CASE IND=1 && * THISFORM.PAGEFRAME1.PAGE2.COMMAND2.ENABLED=.T. * 3 THISFORM.PAGEFRAME1.PAGE2.COMMAND3.CAPTION=[ * THISFORM.PAGEFRAME1.PAGE2.COMMAND4.ENABLED=.T. * SCATTER MEMVAR CASE IND=2 && * THISFORM.PAGEFRAME1.PAGE2.COMMAND2.ENABLED=.F. * 3 THISFORM.PAGEFRAME1.PAGE2.COMMAND3.CAPTION=[ *

]

]

67

THISFORM.PAGEFRAME1.PAGE2.COMMAND4.ENABLED=.F. * SCATTER MEMVAR BLANK THISFORM.PAGEFRAME1.PAGE2.Worker1.TxtLastName.SETFOCUS ENDCASE * This.Refresh

Worker.

Interactive Change Access ,

Optiongroup1 Employee . Employee.

* ThisForm.PageFrame1.Page2.Worker1.chkAccess01.Value= .T. ThisForm.PageFrame1.Page2.Worker1.chkAccess02.Value= .T. ThisForm.PageFrame1.Page2.Worker1.chkAccess03.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess04.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess05.Value= .T. ThisForm.PageFrame1.Page2.Worker1.chkAccess06.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess07.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess08.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess09.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess10.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess11.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess12.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess13.Value= .F. ThisForm.PageFrame1.Page2.Worker1.chkAccess14.Value= .F. * DO CASE CASE THIS.Value=1 && * ThisForm.PageFrame1.Page2.Worker1.chkAccess06.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess07.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess08.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess10.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess11.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess13.Value=.T. CASE THIS.Value=2 && * ThisForm.PageFrame1.Page2.Worker1.chkAccess06.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess08.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess09.Value=.T. 68

CASE THIS.Value=3 && * ThisForm.PageFrame1.Page2.Worker1.chkAccess06.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess08.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess10.Value=.T. CASE THIS.Value=4 && * ThisForm.PageFrame1.Page2.Worker1.chkAccess03.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess04.Value=.T. * ThisForm.PageFrame1.Page2.Worker1.chkAccess14.Value=.T. ENDCASE

, . , (5

. )

.

,

, , -

ODBC, Visual FoxPro,

, User. , Login

(

. 4.14.

. 4.14).

,

User

.

. Click lnMsgResult=MESSAGEBOX(' 36,' IF lnMsgResult=6 && * M.PassWord=[00000] M.PassWord=CrKod(M.PassWord) M.Inspector=FAMILY

',; ')

&& && 69

M.Date_Up=DATE() && M.Time_Up=TIME() && * GATHER MEMVAR * THISFORM.PAGEFRAME1.ACTIVEPAGE=1 ENDIF

Click lnMsgResult=MESSAGEBOX(' 36,' ') IF lnMsgResult=6 && * DELETE * User GOTO TOP * THISFORM.PAGEFRAME1.ACTIVEPAGE=1 ENDIF

',;

(

Activate

).

, –

00000 «

. ».

Click * * M.LastName=ThisForm.PageFrame1.Page2.Worker1.TxtLastName.Value IF LEN(ALLTRIM(M.LastName))=0 =MESSAGEBOX(' !',; 48,' ') ThisForm.PageFrame1.Page2.Worker1.TxtLastName.SetFocus RETURN ENDIF * M.FirstName=ThisForm.PageFrame1.Page2.Worker1.TxtFirstName.Value IF LEN(ALLTRIM(M.FirstName))=0 =MESSAGEBOX(' !',; 48,' ') ThisForm.PageFrame1.Page2.Worker1.TxtFirstName.SetFocus RETURN ENDIF * M.SecondName=; ThisForm.PageFrame1.Page2.Worker1.TxtSecondName.Value IF LEN(ALLTRIM(M.SecondName))=0 70

=MESSAGEBOX(' !',; 48,' ') ThisForm.PageFrame1.Page2.Worker1.TxtSecondName.SetFocus RETURN ENDIF * M.Post=ThisForm.PageFrame1.Page2.Worker1.TxtPost.Value IF LEN(ALLTRIM(M.Post))=0 =MESSAGEBOX(' !',; 48,' ') ThisForm.PageFrame1.Page2.Worker1.TxtPost.SetFocus RETURN ENDIF * M.Range=ThisForm.PageFrame1.Page2.Worker1.OptionGroup1.Value IF M.Range=0 =MESSAGEBOX(' !',; 48,' ') RETURN ENDIF lnMsgResult=MESSAGEBOX(' ',; 36,' ') IF lnMsgResult=6 && M.Inspector=FAMILY && M.Date_Up=DATE() && M.Time_Up=TIME() && * M.Access01=ThisForm.PageFrame1.Page2.Worker1.chkAccess01.Value M.Access02=ThisForm.PageFrame1.Page2.Worker1.chkAccess02.Value M.Access03=ThisForm.PageFrame1.Page2.Worker1.chkAccess03.Value M.Access04=ThisForm.PageFrame1.Page2.Worker1.chkAccess04.Value M.Access05=ThisForm.PageFrame1.Page2.Worker1.chkAccess05.Value M.Access06=ThisForm.PageFrame1.Page2.Worker1.chkAccess06.Value M.Access07=ThisForm.PageFrame1.Page2.Worker1.chkAccess07.Value M.Access08=ThisForm.PageFrame1.Page2.Worker1.chkAccess08.Value M.Access09=ThisForm.PageFrame1.Page2.Worker1.chkAccess09.Value M.Access10=ThisForm.PageFrame1.Page2.Worker1.chkAccess10.Value M.Access11=ThisForm.PageFrame1.Page2.Worker1.chkAccess11.Value M.Access12=ThisForm.PageFrame1.Page2.Worker1.chkAccess12.Value M.Access13=ThisForm.PageFrame1.Page2.Worker1.chkAccess13.Value M.Access14=ThisForm.PageFrame1.Page2.Worker1.chkAccess14.Value IF THIS.CAPTION=[ ] * M.PassWord=[00000] M.PassWord=CrKod(M.PassWord) APPEND BLANK ENDIF GATHER MEMVAR * THISFORM.PAGEFRAME1.ACTIVEPAGE=1 ENDIF 71

4.2.4.

Password – (

),

-

. (

Click Password.

Login).

(

– Password

). . 4.15.

.

. 4.15.

Password

, Load

Password:

* SELECT USER SET ORDER TO TAG LastName * User SEEK FAMILY

Init * PRIVATE Old,New1,New2 72

Password

.

* * STORE [ ] TO Old,New1,New2

Click * SCATTER MEMVAR * SET EXACT ON IF UnKod(M.PassWord)#ALLTRIM(Old) =MESSAGEBOX(' 48,' !') SET EXACT OFF * THISFORM.TEXT1.SetFocus RETURN ENDIF SET EXACT OFF * New1=ALLTRIM(New1) New2=ALLTRIM(New2) SET EXACT ON IF New1#New2 =MESSAGEBOX(' 48,' !') SET EXACT OFF THISFORM.TEXT2.SetFocus RETURN ENDIF SET EXACT OFF IF LEN(New1)