1) ExpressionHandle. Enterprise Core Objects. () .
. . ( ) .
( rhRoot). , .NET.
. ExpressionHandle. , , . ehChair, Name Design.
2) RootHandle RHRoot , . .
3) DataSource dgChair ehChair .
4) , , . CurrencyManagerHandle ( Enterprise Core Objects) cmhChair, . cmhChair dgChair BindingContext. .
5) ehChair RootHanler, ECO.
6) ExpressionHandle. ehLecturer. ehLecturer .
7) cmhChair RootHanler.
8) , ehLecturer, . DataSource ehLecturer.
9) . Delphi . Button1. EcoListAction ( ) Add ( ).
10) Button1 Add. . EcoListActions ( ), CaptionAdd .
11) , ( ), RootHandle. , ehChair.
|
|
12) ( ) , , dgChair. BindingContext ( ) dgChair (. 8.13).
8.13
13) . . Button2. EcoListAction Delete. ehChair RootHandle. dgChair. BindingContext Delete dgChair. EcoListActions Caption Delete .
14) Button3 ( ). : EcoListAction Add; RootHandle ehLecturer; BindingContext dgLecturer. EcoListActions Caption Add .
15) Button4 ( ). : EcoListAction Delete; RootHandle ehLecturer; BindingContext dgLecturer. EcoListActions Caption Delete .
16) Button5 . . EcoAction ( ECO|GUI) UpdateDatabase. , ECO . . , UpdateDatabase.
(. 8.14).
8.14
OCL
1) , , Expression. OCL, .
ehChair . Expression ehChair clChair.allinstances. OCL . . , , (ChairHeadSNP, ChairSecrSNP ChairName) ( , ). ehChair .
2) OCL ehLecturer self.roleLecturers Expression. roleLecturers (clLecturer) (clChair). , , . ehLecturer (. 8.15).
|
|
8.15 OCL-
3) . dgChair. TableStyles DataGridTableStyle Collection Editor. , Add (. 8.16).
8.16 gdChair
GridColumnStyles. . Add 3 , ( ). HeaderText . Width 150. MapingName ChairName. ChairName (. 8.17).
. . , .
4) . : LecturerSNP LectAcadDegree. .
5) , , . . (. 8.18).
8.17
8.18
1) UML. , . .
2) .
3) .
4) UML.
5) OCL (, ECO ).
1) MDA.
2) ECO?
3) ECO?
4) OCL?
5) ECO?
6) ECO?
7) PersistenceMapper ?
8) ECO?
9) ECO?
10) OCL?