1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <oadrReportDescription xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06">
- <ei:rID>{{ r_id }}</ei:rID>
- {% if report_description.report_subjects %}
- <ei:reportSubject>
- {% for target in report_description.report_subjects %}
- {% if target.emix_interfaces %}
- {% for emix_interface in target.emix_interface %}
- {% include 'parts/emixInterface.xml' %}
- {% endfor %}
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_subjects %}
- {% if target.group_id %}
- <ei:groupID>{{ target.group_id }}</ei:groupID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_subjects %}
- {% if target.group_name %}
- <ei:groupName>{{ target.group_name }}</ei:groupName>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_subjects %}
- {% if target.resource_id %}
- <ei:resourceID>{{ target.resource_id }}</ei:resourceID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_subjects %}
- {% if target.ven_id %}
- <ei:venID>{{ target.ven_id }}</ei:venID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_subjects %}
- {% if target.party_id %}
- <ei:partyID>{{ target.party_id }}</ei:partyID>
- {% endif %}
- {% endfor %}
- </ei:reportSubject>
- {% endif %}
- {% if report_description.report_data_sources %}
- <ei:reportDataSource>
- {% for target in report_description.report_data_sources %}
- {% if target.emix_interfaces %}
- {% for emix_interface in target.emix_interface %}
- {% include 'parts/emixInterface.xml' %}
- {% endfor %}
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_data_sources %}
- {% if target.group_id %}
- <ei:groupID>{{ target.group_id }}</ei:groupID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_data_sources %}
- {% if target.group_name %}
- <ei:groupName>{{ target.group_name }}</ei:groupName>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_data_sources %}
- {% if target.resource_id %}
- <ei:resourceID>{{ target.resource_id }}</ei:resourceID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_data_sources %}
- {% if target.ven_id %}
- <ei:venID>{{ target.ven_id }}</ei:venID>
- {% endif %}
- {% endfor %}
- {% for target in report_description.report_data_sources %}
- {% if target.party_id %}
- <ei:partyID>{{ target.party_id }}</ei:partyID>
- {% endif %}
- {% endfor %}
- </ei:reportDataSource>
- {% endif %}
- <ei:reportType>{{ report_description.report_type }}</ei:reportType>
- {% include 'parts/reportDescriptionEmix.xml' %}
- <ei:readingType>{{ report_description.reading_type }}</ei:readingType>
- {% if report_description.market_context %}
- <emix:marketContext>{{ report_description.market_context }}</emix:marketContext>
- {% endif %}
- {% if report_description.sampling_rate %}
- <oadrSamplingRate>
- <oadrMinPeriod>{{ report_description.sampling_rate.min_period|timedeltaformat }}</oadrMinPeriod>
- <oadrMaxPeriod>{{ report_description.sampling_rate.max_period|timedeltaformat }}</oadrMaxPeriod>
- <oadrOnChange>{{ report_description.sampling_rate.on_change|booleanformat }}</oadrOnChange>
- </oadrSamplingRate>
- {% endif %}
- </oadrReportDescription>
|