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

http://sigma-h.googlecode.com/ · 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. <dataset>
  7. <!-- This is test data used for the SchemaBuilderTest cases -->
  8. <country countryId="1" name="Rdc" x1="0" y1="0" x2="0" y2="0"/>
  9. <country countryId="2" name="France" x1="0" y1="0" x2="0" y2="0"/>
  10. <organization id_organization="1" name="Ideia"/>
  11. <partner partnerId="1" name="Head Office" organization_id_organization="1" office_country_id="1" />
  12. <partner partnerId="2" name="Sub Office I" organization_id_organization="1" office_country_id="1" parent_partnerid="1" />
  13. <partner partnerId="3" name="Sub sub Office 1" organization_id_organization="1" office_country_id="1" parent_partnerid="2" />
  14. <partner partnerId="4" name="Sub sub Office 2" organization_id_organization="1" office_country_id="1" parent_partnerid="2" />
  15. <userLogin userId="1" name="Alex" email="user1@user.com" locale="fr" newUser="1" id_organization="1" />
  16. <userLogin userId="2" name="Raphael" email="user2@user.com" locale="fr" newUser="1" id_organization="1" />
  17. <userLogin userId="3" name="Tom" email="tom@user.com" locale="fr" newUser="1" id_organization="1" />
  18. <profile id_profile="1" name="prof1" />
  19. <user_unit id_user_unit="1" id_org_unit="1" id_user="1" />
  20. <user_unit id_user_unit="2" id_org_unit="1" id_user="2" />
  21. <user_unit id_user_unit="3" id_org_unit="2" id_user="3" />
  22. <user_unit_profiles id_user_unit="1" id_profile="1" />
  23. <user_unit_profiles id_user_unit="2" id_profile="1" />
  24. <user_unit_profiles id_user_unit="3" id_profile="1" />
  25. <orgUnitPermission id="1" unit_Id="4" user_UserId="3" viewAll="1" editAll="0"/>
  26. <project_model id_project_model="1" name="Mock model 1" status="READY" />
  27. <layout id_layout="1" rows_count="2" columns_count="1" />
  28. <layout_group id_layout_group="1" id_layout="1" row_index="0" column_index="0" title="Header" />
  29. <flexible_element id_flexible_element="1" label="Success" validates="false" amendable="false" />
  30. <message_element id_flexible_element="1" />
  31. <layout_constraint id_layout_constraint="1" id_layout_group="1" id_flexible_element="1" sort_order="1" />
  32. <flexible_element id_flexible_element="2" label="Check this" validates="true" amendable="false" />
  33. <checkbox_element id_flexible_element="2" />
  34. <layout_constraint id_layout_constraint="2" id_layout_group="1" id_flexible_element="2" sort_order="2" />
  35. <layout_group id_layout_group="2" id_layout="1" row_index="1" column_index="0" title="Questions" />
  36. <flexible_element id_flexible_element="3" label="Question 1" validates="false" amendable="false" />
  37. <question_element id_flexible_element="3" />
  38. <question_choice_element id_choice="1" id_question="3" label="Answer 1" sort_order="1" />
  39. <question_choice_element id_choice="2" id_question="3" label="Answer 2" sort_order="2" />
  40. <layout_constraint id_layout_constraint="3" id_layout_group="2" id_flexible_element="3" sort_order="1" />
  41. <flexible_element id_flexible_element="4" label="Comments" validates="false" amendable="false" />
  42. <textarea_element id_flexible_element="4" />
  43. <layout_constraint id_layout_constraint="4" id_layout_group="2" id_flexible_element="4" sort_order="3" />
  44. <flexible_element id_flexible_element="5" label="Question 2" validates="true" amendable="false" />
  45. <question_element id_flexible_element="5" />
  46. <question_choice_element id_choice="3" id_question="5" label="Answer 1" sort_order="1" />
  47. <question_choice_element id_choice="4" id_question="5" label="Answer 3" sort_order="3" />
  48. <question_choice_element id_choice="5" id_question="5" label="Answer 2" sort_order="2" />
  49. <layout_constraint id_layout_constraint="5" id_layout_group="2" id_flexible_element="5" sort_order="2" />
  50. <layout id_layout="2" rows_count="0" columns_count="0" />
  51. <layout id_layout="3" rows_count="0" columns_count="0" />
  52. <layout id_layout="4" rows_count="0" columns_count="0" />
  53. <layout id_layout="5" rows_count="0" columns_count="0" />
  54. <phase_model_definition id_phase_model_definition="1" />
  55. <phase_model_definition id_phase_model_definition="2" />
  56. <phase_model_definition id_phase_model_definition="3" />
  57. <phase_model_definition id_phase_model_definition="4" />
  58. <phase_model id_phase_model="1" name="Step 1" id_project_model="1" id_layout="1" display_order="1" definition_id="1" />
  59. <phase_model id_phase_model="2" name="Step 2 bis" id_project_model="1" id_layout="2" display_order="3" definition_id="2" />
  60. <phase_model id_phase_model="3" name="Step 2" id_project_model="1" id_layout="3" display_order="2" definition_id="3" />
  61. <phase_model id_phase_model="4" name="Step 3" id_project_model="1" id_layout="4" display_order="4" definition_id="4" />
  62. <phase_model_sucessors id_phase_model="1" id_phase_model_successor="2" />
  63. <phase_model_sucessors id_phase_model="1" id_phase_model_successor="3" />
  64. <phase_model_sucessors id_phase_model="2" id_phase_model_successor="4" />
  65. <userDatabase databaseId="1" name="PEAR" startDate="2010-01-15" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
  66. <project databaseId="1" id_project_model="1"/>
  67. <userDatabase databaseId="2" name="RRM" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
  68. <project databaseId="2" id_project_model="1"/>
  69. <userDatabase databaseId="3" name="RRM" countryId="1" ownerUserId="2" lastSchemaUpdate="2009-01-01"/>
  70. <project databaseId="3" id_project_model="1"/>
  71. <userDatabase databaseId="4" name="PEAR France" startDate="2010-01-15" countryId="1" ownerUserId="1" lastSchemaUpdate="2009-01-01"/>
  72. <project databaseId="4" id_project_model="1"/>
  73. <partnerInDatabase databaseId="1" partnerId="2"/>
  74. <partnerInDatabase databaseId="2" partnerId="3"/>
  75. <partnerInDatabase databaseId="3" partnerId="4"/>
  76. <partnerInDatabase databaseId="4" partnerId="4"/>
  77. <project_details id="1" id_layout="5" id_project_model="1" />
  78. <project_banner id="1" id_layout="5" id_project_model="1" />
  79. <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" />
  80. <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" />
  81. <phase id_phase="1" id_project="1" id_phase_model="1" />
  82. <phase id_phase="2" id_project="2" id_phase_model="1" />
  83. <phase id_phase="3" id_project="3" id_phase_model="1" />
  84. <phase id_phase="4" id_project="1" id_phase_model="2" />
  85. <phase id_phase="5" id_project="2" id_phase_model="2" />
  86. <phase id_phase="6" id_project="3" id_phase_model="2" />
  87. <phase id_phase="7" id_project="1" id_phase_model="3" />
  88. <phase id_phase="8" id_project="2" id_phase_model="3" />
  89. <phase id_phase="9" id_project="3" id_phase_model="3" />
  90. <phase id_phase="10" id_project="1" id_phase_model="4" />
  91. <phase id_phase="11" id_project="2" id_phase_model="4" />
  92. <phase id_phase="12" id_project="3" id_phase_model="4" />
  93. <!-- Base geography -->
  94. <adminLevel countryId="1" adminLevelId="1" name="Province" AllowAdd="0" />
  95. <adminLevel countryId="1" adminLevelId="2" name="Territoire" AllowAdd="0" ParentId="1"/>
  96. <locationType locationTypeId="1" countryId="1" name="localite" reuse="1"/>
  97. <locationType locationTypeId="2" countryId="1" name="Health Center" reuse="1"/>
  98. <locationType locationTypeId="3" countryId="1" name="Territorie" reuse="1" BoundAdminLevelId="2"/>
  99. <adminEntity adminLevelId="1" adminEntityId="1" name="Kinshasa" code="10" x1="0" y1="0" x2="0" y2="0"/>
  100. <adminEntity adminLevelId="1" adminEntityId="2" name="Sud Kivu" code="20" x1="0" y1="0" x2="0" y2="0"/>
  101. <adminEntity adminLevelId="1" adminEntityId="3" name="Nord Kivu" code="30" x1="0" y1="0" x2="0" y2="0"/>
  102. <adminEntity adminLevelId="1" adminEntityId="4" name="Ituri" code="40" x1="0" y1="0" x2="0" y2="0"/>
  103. <adminEntity adminLevelId="2" adminEntityId="10" adminEntityParentId="4" name="Bukavu" code="203" x1="0" y1="0" x2="0" y2="0"/>
  104. <adminEntity adminLevelId="2" adminEntityId="11" adminEntityParentId="2" name="Walungu" code="201" x1="0" y1="0" x2="0" y2="0"/>
  105. <adminEntity adminLevelId="2" adminEntityId="12" adminEntityParentId="2" name="Shabunda" code="202" x1="0" y1="0" x2="0" y2="0"/>
  106. <adminEntity adminLevelId="2" adminEntityId="13" adminEntityParentId="2" name="Kalehe" code="203" x1="0" y1="0" x2="0" y2="0"/>
  107. <adminEntity adminLevelId="2" adminEntityId="21" adminEntityParentId="4" name="Irumu" code="203" x1="0" y1="0" x2="0" y2="0"/>
  108. <!-- NFI Indicator 1: Beneficiaries -->
  109. <indicator indicatorId="1"
  110. databaseId="1"
  111. name="Nombre de menages ayant recu une kit nfi"
  112. units="menages"
  113. aggregation="0"
  114. category="Distributions NFI"
  115. listHeader="Kits"
  116. collectIntervention="1"
  117. collectMonitoring="1"
  118. sortOrder="2"/>
  119. <!-- NFI Indicator 2: Bache -->
  120. <indicator indicatorId="2"
  121. databaseId="1"
  122. name="Nombre de menages ayant recu une bache"
  123. units="menages"
  124. aggregation="0"
  125. collectIntervention="1"
  126. collectMonitoring="1"
  127. category="Distributions NFI"
  128. listHeader="Baches"
  129. description="desc"
  130. sortOrder="1"/>
  131. <indicator indicatorId="3"
  132. databaseId="1"
  133. name="Nombre des kits scolaires distribuees"
  134. units="kits"
  135. aggregation="0"
  136. collectIntervention="1"
  137. collectMonitoring="1"
  138. category="Distributions Scolaires"
  139. listHeader="Kits Total"
  140. description="desc"
  141. sortOrder="1"/>
  142. <indicator indicatorId="4"
  143. databaseId="1"
  144. name="Nombre des kits recreatifs distribuees"
  145. units="kits"
  146. aggregation="0"
  147. collectIntervention="1"
  148. collectMonitoring="1"
  149. category="Distributions Scolaires"
  150. listHeader="Kits Total"
  151. description="desc"
  152. sortOrder="1"/>
  153. <indicator indicatorId="90"
  154. databaseId="2"
  155. name="Quality of Work"
  156. units="kits"
  157. aggregation="3"
  158. collectIntervention="1"
  159. collectMonitoring="1"
  160. sortOrder="1"/>
  161. <indicator indicatorId="91"
  162. databaseId="1"
  163. name="Quality of Work"
  164. units="kits"
  165. aggregation="3"
  166. collectIntervention="1"
  167. collectMonitoring="1"
  168. sortOrder="1"/>
  169. <indicator_labels indicator_IndicatorId="91" code="1" element="Good"/>
  170. <indicator_labels indicator_IndicatorId="91" code="2" element="Bad"/>
  171. <indicator_labels indicator_IndicatorId="91" code="3" element="Ugly"/>
  172. <indicator_datasource indicatorId="91" indicatorSourceId="90"/>
  173. <!-- Database 2 -->
  174. <indicator indicatorId="5"
  175. databaseId="2"
  176. collectIntervention="1"
  177. collectMonitoring="1"
  178. name="Number of Households who received plastic sheeting"
  179. aggregation="1"
  180. sortOrder="1"/>
  181. <indicator_datasource indicatorId="2" indicatorSourceId="5"/>
  182. <!-- id=1 NFI Distribution at Penekusu, Sud Kivu 2 jan 2009-->
  183. <location locationId="1" name="Penekusu" locationTypeId="1" X="1.532" Y="27.323" DateCreated="2009-02-01" DateEdited="2009-02-01" />
  184. <locationAdminLink locationId="1" adminEntityId="2"/>
  185. <locationAdminLink locationId="1" adminEntityId="12"/>
  186. <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"/>
  187. <reportingPeriod reportingPeriodId="1" siteId="1" monitoring="0" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  188. <indicatorValue reportingPeriodId="1" indicatorId="1" value="1500"/>
  189. <indicatorValue reportingPeriodId="1" indicatorId="2" value="500"/>
  190. <!-- id=2 NFI Distribution at Ngwshe, Sud Kivu 16 jan 2009 -->
  191. <location locationId="2" name="Ngshwe" locationTypeId="1" X="1.323" Y="28.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  192. <locationAdminLink locationId="2" adminEntityId="2"/>
  193. <locationAdminLink locationId="2" adminEntityId="11"/>
  194. <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"/>
  195. <reportingPeriod reportingPeriodId="2" siteId="2" monitoring="0" date1="2010-01-15" date2="2010-01-16" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  196. <indicatorValue reportingPeriodId="2" indicatorId="1" value="3600"/>
  197. <indicatorValue reportingPeriodId="2" indicatorId="2" value="1200"/>
  198. <!-- id=3 NFI Distribution at Boga, Ituri 2008 -->
  199. <location locationId="3" name="Boga" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  200. <locationAdminLink locationId="3" adminEntityId="4"/>
  201. <locationAdminLink locationId="3" adminEntityId="21"/>
  202. <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"/>
  203. <reportingPeriod reportingPeriodId="3" siteId="3" monitoring="0" date1="2008-10-05" date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  204. <indicatorValue reportingPeriodId="3" indicatorId="1" value="10000"/>
  205. <indicatorValue reportingPeriodId="3" indicatorId="2" value="500"/>
  206. <location locationId="4" name="Goma" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  207. <locationAdminLink locationId="4" adminEntityId="3"/>
  208. <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"/>
  209. <reportingPeriod siteId="4" reportingPeriodId="4" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  210. <indicatorValue reportingPeriodId="4" indicatorId="1" value="940"/>
  211. <indicatorValue reportingPeriodId="4" indicatorId="91" value="2"/>
  212. <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"/>
  213. <reportingPeriod siteId="5" reportingPeriodId="5" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  214. <indicatorValue reportingPeriodId="5" indicatorId="5" value="444"/>
  215. <indicatorValue reportingPeriodId="5" indicatorId="90" value="1"/>
  216. </dataset>