PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/sigmah/src/test/resources/dbunit/project-indicator.db.xml

http://sigma-h.googlecode.com/
XML | 298 lines | 216 code | 70 blank | 12 comment | 0 complexity | e80e490ad3e064fa502f20def49864eb MD5 | raw file
  1<?xml version="1.0"?>
  2<!--
  3  ~ All Sigmah code is released under the GNU General Public License v3
  4  ~ See COPYRIGHT.txt and LICENSE.txt.
  5  -->
  6
  7<dataset>
  8
  9    <!--  This is test data used for the SchemaBuilderTest cases -->
 10
 11    <country countryId="1" name="Rdc" x1="0" y1="0" x2="0" y2="0"/>
 12    <country countryId="2" name="France" x1="0" y1="0" x2="0" y2="0"/>
 13
 14    
 15    <organization id_organization="1" name="Ideia"/>
 16    <partner partnerId="1" name="Head Office" organization_id_organization="1" office_country_id="1" />
 17    <partner partnerId="2" name="Sub Office I" organization_id_organization="1" office_country_id="1" parent_partnerid="1" />
 18    <partner partnerId="3" name="Sub sub Office 1" organization_id_organization="1" office_country_id="1" parent_partnerid="2" />
 19	<partner partnerId="4" name="Sub sub Office 2" organization_id_organization="1" office_country_id="1" parent_partnerid="2" />
 20
 21    <userLogin userId="1" name="Alex" email="user1@user.com" locale="fr" newUser="1" id_organization="1" />
 22    <userLogin userId="2" name="Raphael" email="user2@user.com" locale="fr" newUser="1" id_organization="1" />
 23    <userLogin userId="3" name="Tom" email="tom@user.com" locale="fr" newUser="1" id_organization="1" />
 24    
 25    <profile id_profile="1" name="prof1" />
 26	
 27	<user_unit id_user_unit="1" id_org_unit="1" id_user="1" />
 28	<user_unit id_user_unit="2" id_org_unit="1" id_user="2" />
 29	<user_unit id_user_unit="3" id_org_unit="2" id_user="3" />
 30	
 31	<user_unit_profiles id_user_unit="1" id_profile="1" />
 32	<user_unit_profiles id_user_unit="2" id_profile="1" />
 33	<user_unit_profiles id_user_unit="3" id_profile="1" />
 34	
 35    <orgUnitPermission id="1" unit_Id="4" user_UserId="3" viewAll="1" editAll="0"/>
 36    
 37    <project_model id_project_model="1" name="Mock model 1" status="READY" />
 38
 39    <layout id_layout="1" rows_count="2" columns_count="1" />
 40        <layout_group id_layout_group="1" id_layout="1" row_index="0" column_index="0" title="Header" />
 41                <flexible_element id_flexible_element="1" label="Success" validates="false" amendable="false" />
 42                <message_element id_flexible_element="1" />
 43            <layout_constraint id_layout_constraint="1" id_layout_group="1" id_flexible_element="1" sort_order="1" />
 44                <flexible_element id_flexible_element="2" label="Check this" validates="true" amendable="false" />
 45                <checkbox_element id_flexible_element="2" />
 46            <layout_constraint id_layout_constraint="2" id_layout_group="1" id_flexible_element="2" sort_order="2" />
 47        <layout_group id_layout_group="2" id_layout="1" row_index="1" column_index="0" title="Questions" />
 48                <flexible_element id_flexible_element="3" label="Question 1" validates="false" amendable="false" />
 49                <question_element id_flexible_element="3" />
 50                    <question_choice_element id_choice="1" id_question="3" label="Answer 1" sort_order="1" />
 51                    <question_choice_element id_choice="2" id_question="3" label="Answer 2" sort_order="2" />
 52            <layout_constraint id_layout_constraint="3" id_layout_group="2" id_flexible_element="3" sort_order="1" />
 53                <flexible_element id_flexible_element="4" label="Comments" validates="false" amendable="false" />
 54                <textarea_element id_flexible_element="4" />
 55            <layout_constraint id_layout_constraint="4" id_layout_group="2" id_flexible_element="4" sort_order="3" />
 56                <flexible_element id_flexible_element="5" label="Question 2" validates="true" amendable="false" />
 57                <question_element id_flexible_element="5" />
 58                    <question_choice_element id_choice="3" id_question="5" label="Answer 1" sort_order="1" />
 59                    <question_choice_element id_choice="4" id_question="5" label="Answer 3" sort_order="3" />
 60                    <question_choice_element id_choice="5" id_question="5" label="Answer 2" sort_order="2" />
 61            <layout_constraint id_layout_constraint="5" id_layout_group="2" id_flexible_element="5" sort_order="2" />
 62    <layout id_layout="2" rows_count="0" columns_count="0" />
 63    <layout id_layout="3" rows_count="0" columns_count="0" />
 64    <layout id_layout="4" rows_count="0" columns_count="0" />
 65    <layout id_layout="5" rows_count="0" columns_count="0" />
 66
 67	<phase_model_definition id_phase_model_definition="1" />
 68	<phase_model_definition id_phase_model_definition="2" />
 69	<phase_model_definition id_phase_model_definition="3" />
 70	<phase_model_definition id_phase_model_definition="4" />
 71
 72    <phase_model id_phase_model="1" name="Step 1" id_project_model="1" id_layout="1" display_order="1" definition_id="1" />
 73    <phase_model id_phase_model="2" name="Step 2 bis" id_project_model="1" id_layout="2" display_order="3" definition_id="2" />
 74    <phase_model id_phase_model="3" name="Step 2" id_project_model="1" id_layout="3" display_order="2" definition_id="3" />
 75    <phase_model id_phase_model="4" name="Step 3" id_project_model="1" id_layout="4" display_order="4" definition_id="4" />
 76    <phase_model_sucessors id_phase_model="1" id_phase_model_successor="2" />
 77    <phase_model_sucessors id_phase_model="1" id_phase_model_successor="3" />
 78    <phase_model_sucessors id_phase_model="2" id_phase_model_successor="4" />
 79
 80    <userDatabase databaseId="1" name="PEAR"  startDate="2010-01-15" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
 81    <project databaseId="1" id_project_model="1"/>
 82
 83    <userDatabase databaseId="2" name="RRM" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
 84    <project databaseId="2" id_project_model="1"/>
 85
 86    <userDatabase databaseId="3" name="RRM" countryId="1" ownerUserId="2" lastSchemaUpdate="2009-01-01"/>
 87    <project databaseId="3" id_project_model="1"/>
 88    
 89    <userDatabase databaseId="4" name="PEAR France"  startDate="2010-01-15" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
 90    <project databaseId="4" id_project_model="1"/>
 91
 92	<partnerInDatabase databaseId="1" partnerId="2"/>
 93	<partnerInDatabase databaseId="2" partnerId="3"/>
 94	<partnerInDatabase databaseId="3" partnerId="4"/>
 95	<partnerInDatabase databaseId="4" partnerId="4"/>
 96
 97    <project_details id="1" id_layout="5" id_project_model="1" />
 98    <project_banner id="1" id_layout="5" id_project_model="1" />
 99
100    <value id_value="1" id_flexible_element="2" id_project="1" value="true" action_last_modif="C" date_last_modif="2010-09-01" id_user_last_modif="1" />
101    <value id_value="2" id_flexible_element="4" id_project="1" value="Something" action_last_modif="C" date_last_modif="2010-09-01" id_user_last_modif="1" />
102
103    <phase id_phase="1" id_project="1" id_phase_model="1" />
104    <phase id_phase="2" id_project="2" id_phase_model="1" />
105    <phase id_phase="3" id_project="3" id_phase_model="1" />
106
107    <phase id_phase="4" id_project="1" id_phase_model="2" />
108    <phase id_phase="5" id_project="2" id_phase_model="2" />
109    <phase id_phase="6" id_project="3" id_phase_model="2" />
110
111    <phase id_phase="7" id_project="1" id_phase_model="3" />
112    <phase id_phase="8" id_project="2" id_phase_model="3" />
113    <phase id_phase="9" id_project="3" id_phase_model="3" />
114
115    <phase id_phase="10" id_project="1" id_phase_model="4" />
116    <phase id_phase="11" id_project="2" id_phase_model="4" />
117    <phase id_phase="12" id_project="3" id_phase_model="4" />
118    
119    
120    <!--  Base geography -->
121    
122    
123    <adminLevel countryId="1" adminLevelId="1" name="Province" AllowAdd="0"	/>
124    <adminLevel countryId="1" adminLevelId="2" name="Territoire" AllowAdd="0" ParentId="1"/>    
125
126	<locationType locationTypeId="1" countryId="1" name="localite" reuse="1"/>
127	<locationType locationTypeId="2" countryId="1" name="Health Center" reuse="1"/>
128    <locationType locationTypeId="3" countryId="1" name="Territorie" reuse="1" BoundAdminLevelId="2"/>
129	
130	<adminEntity adminLevelId="1" adminEntityId="1" name="Kinshasa" code="10" x1="0" y1="0" x2="0" y2="0"/>
131	<adminEntity adminLevelId="1" adminEntityId="2" name="Sud Kivu" code="20" x1="0" y1="0" x2="0" y2="0"/>
132	<adminEntity adminLevelId="1" adminEntityId="3" name="Nord Kivu" code="30" x1="0" y1="0" x2="0" y2="0"/>
133	<adminEntity adminLevelId="1" adminEntityId="4" name="Ituri" code="40" x1="0" y1="0" x2="0" y2="0"/>
134
135	<adminEntity adminLevelId="2" adminEntityId="10" adminEntityParentId="4" name="Bukavu" code="203" x1="0" y1="0" x2="0" y2="0"/>
136	<adminEntity adminLevelId="2" adminEntityId="11" adminEntityParentId="2" name="Walungu" code="201" x1="0" y1="0" x2="0" y2="0"/>
137	<adminEntity adminLevelId="2" adminEntityId="12" adminEntityParentId="2" name="Shabunda" code="202" x1="0" y1="0" x2="0" y2="0"/>
138	<adminEntity adminLevelId="2" adminEntityId="13" adminEntityParentId="2" name="Kalehe" code="203" x1="0" y1="0" x2="0" y2="0"/>
139	<adminEntity adminLevelId="2" adminEntityId="21" adminEntityParentId="4" name="Irumu" code="203" x1="0" y1="0" x2="0" y2="0"/>
140    
141   	<activity activityId="81"
142			databaseId="1"
143			name="Distributions NFI"
144			reportingFrequency="0"
145			allowEdit="1"
146			isAssessment="0"
147			sortOrder="1"
148			locationTypeId="1"/>
149    
150   	<activity activityId="82"
151			databaseId="1"
152			name="Distributions Scolaires"
153			reportingFrequency="0"
154			allowEdit="1"
155			isAssessment="0"
156			sortOrder="1"
157			locationTypeId="1"/>
158    
159    <!-- NFI Indicator 1: Beneficiaries -->
160				
161	<indicator indicatorId="1"
162		databaseId="1"
163		name="Nombre de menages ayant recu une kit nfi"
164		units="menages"
165		aggregation="0"
166		activityId="81"
167		listHeader="Kits"
168		collectIntervention="1"
169		collectMonitoring="1"
170		sortOrder="2"/>
171	
172	<!-- NFI Indicator 2: Bache  -->
173		
174	<indicator indicatorId="2"
175		databaseId="1"
176		name="Nombre de menages ayant recu une bache" 
177		units="menages"   
178		aggregation="0"
179		collectIntervention="1"  
180		collectMonitoring="1"  
181		activityId="81" 
182		listHeader="Baches"  
183		description="desc"  
184		sortOrder="1"/>
185		
186	<indicator indicatorId="3"
187		databaseId="1"
188		name="Nombre des kits scolaires distribuees" 
189		units="kits"   
190		aggregation="0"
191		collectIntervention="1"  
192		collectMonitoring="1"  
193		activityId="82"
194		listHeader="Kits Total"  
195		description="desc"  
196		sortOrder="1"/>
197		
198	<indicator indicatorId="4"
199		databaseId="1"
200		name="Nombre des kits recreatifs distribuees" 
201		units="kits"   
202		aggregation="0"
203		collectIntervention="1"  
204		collectMonitoring="1"  
205		activityId="82"
206		listHeader="Kits Total"  
207		description="desc"  
208		sortOrder="1"/>
209		
210	<!-- Database 2 -->
211
212	<indicator indicatorId="5"
213		databaseId="2"
214		collectIntervention="1"  
215		collectMonitoring="1"  
216		name="Quality of Construction"
217		aggregation="3"
218		sortOrder="1"/>
219		
220	<indicator_labels indicator_IndicatorId="5" code="1" element="Good"/>
221	<indicator_labels indicator_IndicatorId="5" code="2" element="Bad"/>
222	<indicator_labels indicator_IndicatorId="5" code="3" element="Ugly"/>
223		
224	<indicator indicatorId="6"
225		databaseId="2"
226		collectIntervention="1"  
227		collectMonitoring="1"  
228		name="Quality of Service"
229		aggregation="3"
230		sortOrder="2"/>
231		
232	<indicator_labels indicator_IndicatorId="6" code="1" element="Mediocre"/>
233	<indicator_labels indicator_IndicatorId="6" code="2" element="Pretty bad"/>
234	<indicator_labels indicator_IndicatorId="6" code="3" element="Terrible"/>
235
236	<!-- id=1  NFI Distribution at Penekusu, Sud Kivu   2 jan 2009-->
237
238	<location locationId="1" name="Penekusu" locationTypeId="1" X="1.532" Y="27.323" DateCreated="2009-02-01" DateEdited="2009-02-01" />
239	<locationAdminLink locationId="1" adminEntityId="2"/>
240	<locationAdminLink locationId="1" adminEntityId="12"/>
241	
242	<site siteId="1" databaseId="1"  locationId="1" partnerId="1" Status="1" target="0" Date1="2010-01-01" Date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
243	
244	<reportingPeriod reportingPeriodId="1" siteId="1" monitoring="0" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
245	<indicatorValue reportingPeriodId="1" indicatorId="1" value="1500"/>
246	<indicatorValue reportingPeriodId="1" indicatorId="2" value="500"/>
247		
248	
249	<!-- id=2 NFI Distribution at Ngwshe, Sud Kivu 16 jan 2009 -->
250	
251	<location locationId="2" name="Ngshwe" locationTypeId="1" X="1.323" Y="28.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
252	<locationAdminLink locationId="2" adminEntityId="2"/>
253	<locationAdminLink locationId="2" adminEntityId="11"/>
254	
255	<site siteId="2" databaseId="1"   locationId="2" partnerId="1" Status="1" target="1" Date1="2009-01-15" Date2="2009-01-16" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
256	
257	<reportingPeriod reportingPeriodId="2" siteId="2" monitoring="0" date1="2010-01-15" date2="2010-01-16" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
258	<indicatorValue reportingPeriodId="2" indicatorId="1" value="3600"/>
259	<indicatorValue reportingPeriodId="2" indicatorId="2" value="1200"/>
260
261	<!-- id=3 NFI Distribution at Boga, Ituri 2008 -->
262	
263	<location locationId="3" name="Boga" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
264	<locationAdminLink locationId="3" adminEntityId="4"/>
265	<locationAdminLink locationId="3" adminEntityId="21"/>
266	
267	<site siteId="3" databaseId="1" locationId="3" partnerId="2" Status="1" target="0" Date1="2008-10-05" Date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
268	
269	<reportingPeriod reportingPeriodId="3" siteId="3" monitoring="0" date1="2008-10-05" date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
270	<indicatorValue reportingPeriodId="3" indicatorId="1" value="10000"/>
271	<indicatorValue reportingPeriodId="3" indicatorId="2" value="500"/>
272
273	<location locationId="4" name="Goma" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
274	<locationAdminLink locationId="4" adminEntityId="3"/>
275
276	<site siteId="4" databaseId="1" locationId="4" partnerId="2" Status="1" target="0" Date1="2008-10-05" Date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
277	<reportingPeriod siteId="4" reportingPeriodId="4" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
278	
279	<indicatorValue reportingPeriodId="4" indicatorId="1" value="940"/>
280		
281    <site siteId="5" databaseId="2" locationId="4" partnerId="2" Status="1" target="0" Date1="2008-10-05" Date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
282
283    <reportingPeriod siteId="5" reportingPeriodId="5" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
284    <indicatorValue reportingPeriodId="5" indicatorId="5" value="1"/>
285
286    <reportingPeriod siteId="5" reportingPeriodId="6" date1="2010-02-01" date2="2010-02-28" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
287    <indicatorValue reportingPeriodId="6" indicatorId="5" value="2"/>
288
289    <reportingPeriod siteId="5" reportingPeriodId="7" date1="2010-02-01" date2="2010-02-28" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
290    <indicatorValue reportingPeriodId="7" indicatorId="5" value="2"/>
291
292
293    <reportingPeriod siteId="5" reportingPeriodId="8" date1="2010-03-01" date2="2010-03-30" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
294    <indicatorValue reportingPeriodId="8" indicatorId="5" value="3"/>
295
296
297    
298</dataset>