/sigmah/src/test/resources/dbunit/project-indicator-linked.db.xml
XML | 289 lines | 204 code | 73 blank | 12 comment | 0 complexity | e0cb9a10129ead89ebe28018c45f69aa 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 142 <!-- NFI Indicator 1: Beneficiaries --> 143 144 <indicator indicatorId="1" 145 databaseId="1" 146 name="Nombre de menages ayant recu une kit nfi" 147 units="menages" 148 aggregation="0" 149 category="Distributions NFI" 150 listHeader="Kits" 151 collectIntervention="1" 152 collectMonitoring="1" 153 sortOrder="2"/> 154 155 <!-- NFI Indicator 2: Bache --> 156 157 <indicator indicatorId="2" 158 databaseId="1" 159 name="Nombre de menages ayant recu une bache" 160 units="menages" 161 aggregation="0" 162 collectIntervention="1" 163 collectMonitoring="1" 164 category="Distributions NFI" 165 listHeader="Baches" 166 description="desc" 167 sortOrder="1"/> 168 169 170 171 <indicator indicatorId="3" 172 databaseId="1" 173 name="Nombre des kits scolaires distribuees" 174 units="kits" 175 aggregation="0" 176 collectIntervention="1" 177 collectMonitoring="1" 178 category="Distributions Scolaires" 179 listHeader="Kits Total" 180 description="desc" 181 sortOrder="1"/> 182 183 <indicator indicatorId="4" 184 databaseId="1" 185 name="Nombre des kits recreatifs distribuees" 186 units="kits" 187 aggregation="0" 188 collectIntervention="1" 189 collectMonitoring="1" 190 category="Distributions Scolaires" 191 listHeader="Kits Total" 192 description="desc" 193 sortOrder="1"/> 194 195 196 <indicator indicatorId="90" 197 databaseId="2" 198 name="Quality of Work" 199 units="kits" 200 aggregation="3" 201 collectIntervention="1" 202 collectMonitoring="1" 203 sortOrder="1"/> 204 205 206 <indicator indicatorId="91" 207 databaseId="1" 208 name="Quality of Work" 209 units="kits" 210 aggregation="3" 211 collectIntervention="1" 212 collectMonitoring="1" 213 sortOrder="1"/> 214 215 <indicator_labels indicator_IndicatorId="91" code="1" element="Good"/> 216 <indicator_labels indicator_IndicatorId="91" code="2" element="Bad"/> 217 <indicator_labels indicator_IndicatorId="91" code="3" element="Ugly"/> 218 <indicator_datasource indicatorId="91" indicatorSourceId="90"/> 219 220 221 <!-- Database 2 --> 222 223 <indicator indicatorId="5" 224 databaseId="2" 225 collectIntervention="1" 226 collectMonitoring="1" 227 name="Number of Households who received plastic sheeting" 228 aggregation="1" 229 sortOrder="1"/> 230 231 232 233 <indicator_datasource indicatorId="2" indicatorSourceId="5"/> 234 235 <!-- id=1 NFI Distribution at Penekusu, Sud Kivu 2 jan 2009--> 236 237 <location locationId="1" name="Penekusu" locationTypeId="1" X="1.532" Y="27.323" DateCreated="2009-02-01" DateEdited="2009-02-01" /> 238 <locationAdminLink locationId="1" adminEntityId="2"/> 239 <locationAdminLink locationId="1" adminEntityId="12"/> 240 241 <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"/> 242 243 <reportingPeriod reportingPeriodId="1" siteId="1" monitoring="0" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 244 <indicatorValue reportingPeriodId="1" indicatorId="1" value="1500"/> 245 <indicatorValue reportingPeriodId="1" indicatorId="2" value="500"/> 246 247 248 <!-- id=2 NFI Distribution at Ngwshe, Sud Kivu 16 jan 2009 --> 249 250 <location locationId="2" name="Ngshwe" locationTypeId="1" X="1.323" Y="28.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 251 <locationAdminLink locationId="2" adminEntityId="2"/> 252 <locationAdminLink locationId="2" adminEntityId="11"/> 253 254 <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"/> 255 256 <reportingPeriod reportingPeriodId="2" siteId="2" monitoring="0" date1="2010-01-15" date2="2010-01-16" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 257 <indicatorValue reportingPeriodId="2" indicatorId="1" value="3600"/> 258 <indicatorValue reportingPeriodId="2" indicatorId="2" value="1200"/> 259 260 <!-- id=3 NFI Distribution at Boga, Ituri 2008 --> 261 262 <location locationId="3" name="Boga" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 263 <locationAdminLink locationId="3" adminEntityId="4"/> 264 <locationAdminLink locationId="3" adminEntityId="21"/> 265 266 <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"/> 267 268 <reportingPeriod reportingPeriodId="3" siteId="3" monitoring="0" date1="2008-10-05" date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 269 <indicatorValue reportingPeriodId="3" indicatorId="1" value="10000"/> 270 <indicatorValue reportingPeriodId="3" indicatorId="2" value="500"/> 271 272 <location locationId="4" name="Goma" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/> 273 <locationAdminLink locationId="4" adminEntityId="3"/> 274 275 <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"/> 276 <reportingPeriod siteId="4" reportingPeriodId="4" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/> 277 278 <indicatorValue reportingPeriodId="4" indicatorId="1" value="940"/> 279 <indicatorValue reportingPeriodId="4" indicatorId="91" value="2"/> 280 281 282 <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"/> 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 285 <indicatorValue reportingPeriodId="5" indicatorId="5" value="444"/> 286 <indicatorValue reportingPeriodId="5" indicatorId="90" value="1"/> 287 288 289</dataset>