annotate data/model.xml @ 3:437127ab6a12

non-working version separate common model templates from csharp templates, plans to support complex primary and foreign keys
author cin
date Wed, 28 Feb 2018 02:10:29 +0300
parents 035de8b7b18e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
1 <?xml version="1.0"?>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
2 <package xmlns="http://implab.org/schemas/data-model.v1.xsd"
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
3 xmlns:f="http://implab.org/schemas/data-model/geo.v1.xsd" xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd"
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
4 xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd" xmlns:esri="http://geopallada.ru/schemas/data-model/esri.v1.xsd"
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
5 name="poisk-more" version="1.0" clr:namespace="Pallada.PoiskMore.Model">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
6
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
7 <!-- Импортируем стандартные типы для строк, дат, чисел и т.п. -->
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
8 <import href="types.xml" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
9 <import href="rccs.xml" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
10
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
11 <!-- определяем внешние типы, которые объявлены вне модели, но на них есть
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
12 ссылки в самой модели -->
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
13 <type name="IncidentData">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
14 <clr:type name="IncidentData" namespace="Pallada.Exchange.Sar" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
15 </type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
16
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
17 <entity name="BaseEntity">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
18 <!-- <extends type="MaritimeRcc"/> -->
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
19 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
20
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
21 <f:simpleFeature name="SarUnit">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
22 <description>Поисково-спасательная единица, характеризует судно, принимающее участие в ПСО</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
23 <f:geometry name="Location" type="Point">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
24 <description>Местоположение СРУ на момент начала ПСО</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
25 <esri:geometry name="Shape" type="esriGeometryPoint"
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
26 mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
27 </f:geometry>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
28 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
29 <hasA name="Region" type="Region">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
30 <description>Район проведения операции, в котором будет работать данная единица.</description>
1
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
31 <thisKey name="RegionId"/>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
32 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
33 <hasA name="Operation" type="Operation" optional="true">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
34 <description>Идентификатор операции, используется для фильтрации объектов на карте.</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
35 <thisKey name="OperationId">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
36 <esri:field name="OperId" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
37 </thisKey>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
38 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
39 <property name="Departure" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
40 <description>Дата отправления из исходной точки</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
41 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
42 <property name="EstimatedArrival" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
43 <description>Ожидаемое время прибытия в конечную точку</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
44 <esri:field name="Eta" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
45 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
46 <property name="CrewFactor" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
47 <description>Коэффициент усталости экипажа</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
48 <esri:field name="Fcrew" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
49 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
50 </f:simpleFeature>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
51
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
52 <entity name="Operation">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
53 <sql:table name="Operation" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
54 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
55 <property name="Name" type="string">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
56 <clr:type ref="string" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
57 <description>Название операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
58 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
59 <hasA name="Case" type="SarCase" optional="true">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
60 <description>Дело, с которым связана операция</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
61 <thisKey name="CaseId" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
62 <clr:lazy />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
63 <clr:association />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
64 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
65 <property name="Closed" type="bool">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
66 <description>Признак того, что операция завершена, т.е. ее нельзя редактировать и она не отображается в списке операций</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
67 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
68 <property name="Date" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
69 <description>Дата начала операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
70 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
71 <hasMany name="Regions" type="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
72 <description>Список районов поиска</description>
1
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
73 <otherKey name="Operation" />
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
74 <clr:association otherKey="OperationId"> <!-- explicit otherKey for code generation -->
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
75 <clr:type ref="listOf">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
76 <clr:type ref="Region" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
77 </clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
78 </clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
79 </hasMany>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
80 <property name="IncidentData" type="IncidentData">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
81 <description>Информация о происшествии на основании которой строилась данная операция</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
82 <sql:type name="text" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
83 <xmlMember />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
84 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
85 <hasA name="Coordinator" type="MaritimeRcc" nullable="true">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
86 <thisKey name="CoordinatorId" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
87 </hasA>
2
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
88 <hasMany name="PartnerLinks" type="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
89 <otherKey name="Operation"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
90 </hasMany>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
91 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
92
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
93 <entity name="SarCase">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
94 <description>Поисково-спасательное дело, собирает в себе информацию об операциях, аварийном случае, поступающих данных.</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
95 <sql:table name="SarCase" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
96 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
97 <property name="CaseNo" type="string" sql:nullable="false">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
98 <description>Номер дела, которое объединяет несколько операций, номера дел должны быть уникальными и не пустыми.</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
99 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
100 <hasMany name="Operations" type="Operation">
3
437127ab6a12 non-working version
cin
parents: 2
diff changeset
101 <description>Операции выполненные в рамках текущего дела</description>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
102 <otherKey name="Case" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
103 <clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
104 <clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
105 <arrayOf type="Operation"/>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
106 </clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
107 </clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
108 </hasMany>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
109 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
110
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
111 <entity name="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
112 <description>Район проведение поисково-спасательной операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
113 </entity>
2
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
114
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
115 <entity name="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
116 <!-- composite primary key -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
117 <primaryKey name="Id">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
118 <!-- use existing members -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
119 <member name="Operation"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
120 <member name="Rcc"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
121 </primaryKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
122 <hasA name="Operation" type="Operation">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
123 <thisKey name="OperationId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
124 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
125 <hasA name="Rcc">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
126 <thisKey name="RccId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
127 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
128 <hasMany name="Info" type="LinkInfo">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
129 <otherKey name="Link"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
130 <clr:association />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
131 </hasMany>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
132 </entity>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
133
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
134 <entity name="LinkInfo">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
135 <primaryKey name="Id">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
136 <member name="Link"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
137 </primaryKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
138 <hasA name="Link" type="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
139 <thisKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
140 <property name="OperationId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
141 <property name="RccId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
142 </thisKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
143 <clr:association />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
144 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
145 <property name="description" type="string"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
146 </entity>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
147
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
148 </package>