/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. <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. <activity activityId="81"
  109. databaseId="1"
  110. name="Distributions NFI"
  111. reportingFrequency="0"
  112. allowEdit="1"
  113. isAssessment="0"
  114. sortOrder="1"
  115. locationTypeId="1"/>
  116. <activity activityId="82"
  117. databaseId="1"
  118. name="Distributions Scolaires"
  119. reportingFrequency="0"
  120. allowEdit="1"
  121. isAssessment="0"
  122. sortOrder="1"
  123. locationTypeId="1"/>
  124. <!-- NFI Indicator 1: Beneficiaries -->
  125. <indicator indicatorId="1"
  126. databaseId="1"
  127. name="Nombre de menages ayant recu une kit nfi"
  128. units="menages"
  129. aggregation="0"
  130. activityId="81"
  131. listHeader="Kits"
  132. collectIntervention="1"
  133. collectMonitoring="1"
  134. sortOrder="2"/>
  135. <!-- NFI Indicator 2: Bache -->
  136. <indicator indicatorId="2"
  137. databaseId="1"
  138. name="Nombre de menages ayant recu une bache"
  139. units="menages"
  140. aggregation="0"
  141. collectIntervention="1"
  142. collectMonitoring="1"
  143. activityId="81"
  144. listHeader="Baches"
  145. description="desc"
  146. sortOrder="1"/>
  147. <indicator indicatorId="3"
  148. databaseId="1"
  149. name="Nombre des kits scolaires distribuees"
  150. units="kits"
  151. aggregation="0"
  152. collectIntervention="1"
  153. collectMonitoring="1"
  154. activityId="82"
  155. listHeader="Kits Total"
  156. description="desc"
  157. sortOrder="1"/>
  158. <indicator indicatorId="4"
  159. databaseId="1"
  160. name="Nombre des kits recreatifs distribuees"
  161. units="kits"
  162. aggregation="0"
  163. collectIntervention="1"
  164. collectMonitoring="1"
  165. activityId="82"
  166. listHeader="Kits Total"
  167. description="desc"
  168. sortOrder="1"/>
  169. <!-- Database 2 -->
  170. <indicator indicatorId="5"
  171. databaseId="2"
  172. collectIntervention="1"
  173. collectMonitoring="1"
  174. name="Quality of Construction"
  175. aggregation="3"
  176. sortOrder="1"/>
  177. <indicator_labels indicator_IndicatorId="5" code="1" element="Good"/>
  178. <indicator_labels indicator_IndicatorId="5" code="2" element="Bad"/>
  179. <indicator_labels indicator_IndicatorId="5" code="3" element="Ugly"/>
  180. <indicator indicatorId="6"
  181. databaseId="2"
  182. collectIntervention="1"
  183. collectMonitoring="1"
  184. name="Quality of Service"
  185. aggregation="3"
  186. sortOrder="2"/>
  187. <indicator_labels indicator_IndicatorId="6" code="1" element="Mediocre"/>
  188. <indicator_labels indicator_IndicatorId="6" code="2" element="Pretty bad"/>
  189. <indicator_labels indicator_IndicatorId="6" code="3" element="Terrible"/>
  190. <!-- id=1 NFI Distribution at Penekusu, Sud Kivu 2 jan 2009-->
  191. <location locationId="1" name="Penekusu" locationTypeId="1" X="1.532" Y="27.323" DateCreated="2009-02-01" DateEdited="2009-02-01" />
  192. <locationAdminLink locationId="1" adminEntityId="2"/>
  193. <locationAdminLink locationId="1" adminEntityId="12"/>
  194. <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"/>
  195. <reportingPeriod reportingPeriodId="1" siteId="1" monitoring="0" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  196. <indicatorValue reportingPeriodId="1" indicatorId="1" value="1500"/>
  197. <indicatorValue reportingPeriodId="1" indicatorId="2" value="500"/>
  198. <!-- id=2 NFI Distribution at Ngwshe, Sud Kivu 16 jan 2009 -->
  199. <location locationId="2" name="Ngshwe" locationTypeId="1" X="1.323" Y="28.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  200. <locationAdminLink locationId="2" adminEntityId="2"/>
  201. <locationAdminLink locationId="2" adminEntityId="11"/>
  202. <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"/>
  203. <reportingPeriod reportingPeriodId="2" siteId="2" monitoring="0" date1="2010-01-15" date2="2010-01-16" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  204. <indicatorValue reportingPeriodId="2" indicatorId="1" value="3600"/>
  205. <indicatorValue reportingPeriodId="2" indicatorId="2" value="1200"/>
  206. <!-- id=3 NFI Distribution at Boga, Ituri 2008 -->
  207. <location locationId="3" name="Boga" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  208. <locationAdminLink locationId="3" adminEntityId="4"/>
  209. <locationAdminLink locationId="3" adminEntityId="21"/>
  210. <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"/>
  211. <reportingPeriod reportingPeriodId="3" siteId="3" monitoring="0" date1="2008-10-05" date2="2008-10-06" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  212. <indicatorValue reportingPeriodId="3" indicatorId="1" value="10000"/>
  213. <indicatorValue reportingPeriodId="3" indicatorId="2" value="500"/>
  214. <location locationId="4" name="Goma" locationTypeId="1" X="3.323" Y="27.232" DateCreated="2009-02-01" DateEdited="2009-02-01"/>
  215. <locationAdminLink locationId="4" adminEntityId="3"/>
  216. <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"/>
  217. <reportingPeriod siteId="4" reportingPeriodId="4" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  218. <indicatorValue reportingPeriodId="4" indicatorId="1" value="940"/>
  219. <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"/>
  220. <reportingPeriod siteId="5" reportingPeriodId="5" date1="2010-01-01" date2="2010-01-31" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  221. <indicatorValue reportingPeriodId="5" indicatorId="5" value="1"/>
  222. <reportingPeriod siteId="5" reportingPeriodId="6" date1="2010-02-01" date2="2010-02-28" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  223. <indicatorValue reportingPeriodId="6" indicatorId="5" value="2"/>
  224. <reportingPeriod siteId="5" reportingPeriodId="7" date1="2010-02-01" date2="2010-02-28" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  225. <indicatorValue reportingPeriodId="7" indicatorId="5" value="2"/>
  226. <reportingPeriod siteId="5" reportingPeriodId="8" date1="2010-03-01" date2="2010-03-30" DateCreated="2009-02-01" DateEdited="2009-02-01" monitoring="0"/>
  227. <indicatorValue reportingPeriodId="8" indicatorId="5" value="3"/>
  228. </dataset>