annotate data/model.xml @ 1:7f803979305f

improved cs-dom generation, added getMember, getKeyMember templates
author cin
date Thu, 22 Feb 2018 19:14:00 +0300
parents cbdada054b4a
children 035de8b7b18e
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>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
100 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
101
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
102 <entity name="SarCase">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
103 <description>Поисково-спасательное дело, собирает в себе информацию об
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
104 операциях, аварийном случае, поступающих данных.</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
105 <sql:table name="SarCase" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
106 <primaryKey name="Id" type="uuid" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
107 <property name="CaseNo" type="string" sql:nullable="false">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
108 <description>Номер дела, которое объединяет несколько операций,
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
109 номера дел должны быть уникальными и не пустыми.
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
110 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
111 </property>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
112 <hasMany name="Operations" type="Operation">
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 </description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
115 <otherKey name="Case" />
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
116 <clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
117 <clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
118 <arrayOf type="Operation"/>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
119 </clr:type>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
120 </clr:association>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
121 </hasMany>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
122 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
123
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
124 <entity name="Region">
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
125 <description>Район проведение поисково-спасательной операции</description>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
126 </entity>
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
127
cbdada054b4a Basic schemas for generating csharp internal dom from model definition
cin
parents:
diff changeset
128 </package>