annotate data/model.xml @ 2:035de8b7b18e

Temporary commit, refactoring, added readme
author cin
date Sun, 25 Feb 2018 17:12:33 +0300
parents 7f803979305f
children 437127ab6a12
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">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
22 <description>Поисково-спасательная единица, характеризует
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
23 судно,
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
24 принимающее участие в ПСО
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
25 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
26 <f:geometry name="Location" type="Point">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
27 <description>Местоположение СРУ на момент начала ПСО</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
28 <esri:geometry name="Shape" type="esriGeometryPoint"
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
29 mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
30 </f:geometry>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
31 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
32 <hasA name="Region" type="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
33 <description>Район проведения операции, в котором будет работать
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
34 данная единица.
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
35 </description>
1
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
36 <thisKey name="RegionId"/>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
37 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
38 <hasA name="Operation" type="Operation" optional="true">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
39 <description>Идентификатор операции, используется для фильтрации
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
40 объектов на карте.
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
41 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
42 <thisKey name="OperationId">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
43 <esri:field name="OperId" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
44 </thisKey>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
45 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
46 <property name="Departure" 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 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
49 <property name="EstimatedArrival" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
50 <description>Ожидаемое время прибытия в конечную точку</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
51 <esri:field name="Eta" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
52 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
53 <property name="CrewFactor" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
54 <description>Коэффициент усталости экипажа</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
55 <esri:field name="Fcrew" mode="shape" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
56 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
57 </f:simpleFeature>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
58
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
59 <entity name="Operation">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
60 <sql:table name="Operation" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
61 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
62 <property name="Name" type="string">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
63 <clr:type ref="string" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
64 <description>Название операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
65 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
66 <hasA name="Case" type="SarCase" optional="true">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
67 <description>Дело, с которым связана операция</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
68 <thisKey name="CaseId" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
69 <clr:lazy />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
70 <clr:association />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
71 </hasA>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
72 <property name="Closed" type="bool">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
73 <description>Признак того, что операция завершена, т.е. ее нельзя
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
74 редактировать и она не отображается в списке операций
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
75 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
76 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
77 <property name="Date" type="datetime">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
78 <description>Дата начала операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
79 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
80 <hasMany name="Regions" type="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
81 <description>Список районов поиска</description>
1
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
82 <otherKey name="Operation" />
7f803979305f improved cs-dom generation, added getMember, getKeyMember templates
cin
parents: 0
diff changeset
83 <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
84 <clr:type ref="listOf">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
85 <clr:type ref="Region" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
86 </clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
87 </clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
88 </hasMany>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
89 <property name="IncidentData" type="IncidentData">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
90 <description>Информация о происшествии на основании которой
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
91 строилась
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 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
94 <sql:type name="text" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
95 <xmlMember />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
96 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
97 <hasA name="Coordinator" type="MaritimeRcc" nullable="true">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
98 <thisKey name="CoordinatorId" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
99 </hasA>
2
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
100 <hasMany name="PartnerLinks" type="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
101 <otherKey name="Operation"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
102 </hasMany>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
103 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
104
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
105 <entity name="SarCase">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
106 <description>Поисково-спасательное дело, собирает в себе информацию об
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
107 операциях, аварийном случае, поступающих данных.</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
108 <sql:table name="SarCase" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
109 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
110 <property name="CaseNo" type="string" sql:nullable="false">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
111 <description>Номер дела, которое объединяет несколько операций,
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
112 номера дел должны быть уникальными и не пустыми.
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
113 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
114 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
115 <hasMany name="Operations" type="Operation">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
116 <description>Операции выполненные в рамках текущего дела
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
117 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
118 <otherKey name="Case" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
119 <clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
120 <clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
121 <arrayOf type="Operation"/>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
122 </clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
123 </clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
124 </hasMany>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
125 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
126
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
127 <entity name="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
128 <description>Район проведение поисково-спасательной операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
129 </entity>
2
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
130
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
131 <entity name="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
132 <!-- composite primary key -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
133 <primaryKey name="Id">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
134 <!-- use existing members -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
135 <member name="Operation"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
136 <member name="Rcc"/>
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="Operation" type="Operation">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
139 <thisKey name="OperationId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
140 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
141 <hasA name="Rcc">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
142 <thisKey name="RccId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
143 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
144 <hasMany name="Info" type="LinkInfo">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
145 <otherKey name="Link"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
146 <clr:association />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
147 </hasMany>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
148 </entity>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
149
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
150 <entity name="LinkInfo">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
151 <primaryKey name="Id">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
152 <member name="Link"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
153 </primaryKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
154 <hasA name="Link" type="OperationRccLink">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
155 <thisKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
156 <property name="OperationId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
157 <property name="RccId"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
158 </thisKey>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
159 <clr:association />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
160 </hasA>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
161 <property name="description" type="string"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents: 1
diff changeset
162 </entity>
0
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
163
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
164 </package>