def __init__(self, elem, quota_definition_sid):
     Master.__init__(self, elem)
     self.quota_definition_sid = quota_definition_sid
     self.quota_suspension_period_sid = Master.process_null(elem.find("sid"))
     self.suspension_start_date = Master.process_null(elem.find("suspensionStartDate"))
     self.suspension_end_date = Master.process_null(elem.find("suspensionEndDate"))
     self.description = Master.process_null(elem.find("description"))
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.footnote_id = Master.process_null(elem.find("footnoteId"))
        self.footnote_type_id = Master.process_null(elem.find("footnoteType/footnoteTypeId"))

        for elem in elem.findall('.//footnoteDescriptionPeriod'):
            self.footnote_description_periods.append(FootnoteDescriptionPeriod(elem, self.footnote_type_id, self.footnote_id))
예제 #3
0
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.goods_nomenclature_sid = Master.process_null(elem.find("sid"))
        self.goods_nomenclature_item_id = Master.process_null(
            elem.find("goodsNomenclatureItemId"))
        self.producline_suffix = Master.process_null(
            elem.find("produclineSuffix"))
        self.statistical_indicator = Master.process_null(
            elem.find("statisticalIndicator"))
        self.validity_end_date = Master.process_null(
            elem.find("validityEndDate"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))

        # Get description periods
        for el in elem.findall('.//goodsNomenclatureDescriptionPeriod'):
            self.goods_nomenclature_description_periods.append(
                GoodsNomenclatureDescriptionPeriod(
                    el, self.goods_nomenclature_item_id,
                    self.goods_nomenclature_sid, self.producline_suffix))

        # Get indents
        for el in elem.findall('.//goodsNomenclatureIndents'):
            self.goods_nomenclature_indents.append(
                GoodsNomenclatureIndent(el, self.goods_nomenclature_item_id,
                                        self.goods_nomenclature_sid,
                                        self.producline_suffix))

        # Get footnote associations
        for el in elem.findall('.//footnoteAssociationGoodsNomenclature'):
            self.footnote_association_goods_nomenclatures.append(
                FootnoteAssociationGoodsNomenclature(
                    el, self.goods_nomenclature_item_id,
                    self.goods_nomenclature_sid, self.producline_suffix))
예제 #4
0
 def __init__(self, elem, sid):
     Master.__init__(self, elem)
     self.measure_sid = sid
     self.footnote_type_id = Master.process_null(
         elem.find("footnote/footnoteType/footnoteTypeId"))
     self.footnote_id = Master.process_null(
         elem.find("footnote/footnoteId"))
 def __init__(self, elem, sid):
     Master.__init__(self, elem)
     self.measure_sid = sid
     self.excluded_geographical_area = Master.process_null(
         elem.find("geographicalArea/geographicalAreaId"))
     self.geographical_area_sid = Master.process_null(
         elem.find("geographicalArea/sid"))
 def __init__(self, elem, worksheet, row_count):
     Master.__init__(self, elem)
     self.elem = elem
     self.worksheet = worksheet
     self.row_count = row_count
     self.get_data()
     self.write_data()
    def __init__(self, elem, sid):
        Master.__init__(self, elem)
        self.measure_condition_sid = Master.process_null(elem.find("sid"))
        self.measure_sid = sid
        self.condition_code = Master.process_null(
            elem.find("measureConditionCode/conditionCode"))
        self.component_sequence_number = Master.process_null(
            elem.find("conditionSequenceNumber"))
        self.condition_duty_amount = Master.process_null(
            elem.find("conditionDutyAmount"))
        self.condition_monetary_unit_code = Master.process_null(
            elem.find("monetaryUnit/monetaryUnitCode"))
        self.condition_measurement_unit_code = Master.process_null(
            elem.find("measurementUnit/measurementUnitCode"))
        self.condition_measurement_unit_qualifier_code = Master.process_null(
            elem.find("measurementUnitQualifier/measurementUnitQualifierCode"))
        self.action_code = Master.process_null(
            elem.find("measureAction/actionCode"))
        self.certificate_type_code = Master.process_null(
            elem.find("certificate/certificateType/certificateTypeCode"))
        self.certificate_code = Master.process_null(
            elem.find("certificate/certificateCode"))

        for elem in elem.findall('.//measureConditionComponent'):
            self.measure_condition_components.append(
                MeasureConditionComponent(elem, self.measure_condition_sid))
예제 #8
0
 def __init__(self, elem, quota_definition_sid):
     Master.__init__(self, elem)
     self.quota_definition_sid = quota_definition_sid
     self.quota_blocking_period_sid = Master.process_null(elem.find("sid"))
     self.blocking_start_date = Master.process_null(elem.find("blockingStartDate"))
     self.blocking_end_date = Master.process_null(elem.find("blockingEndDate"))
     self.blocking_period_type = Master.process_null(elem.find("blockingPeriodType"))
     self.description = Master.process_null(elem.find("description"))
 def __init__(self, elem, worksheet, row_count):
     Master.__init__(self, elem)
     self.elem = elem
     self.worksheet = worksheet
     self.row_count = row_count
     self.descriptions = []
     self.description_string = ""
     self.get_data()
예제 #10
0
 def __init__(self, elem, worksheet, row_count):
     Master.__init__(self, elem)
     self.elem = elem
     self.worksheet = worksheet
     self.row_count = row_count
     self.quota_balance_events = []
     self.quota_balance_event_string = ""
     self.comm_code_string = ""
     self.get_data()
예제 #11
0
 def __init__(self, elem, footnote_type_id, footnote_id,
              footnote_description_period_sid):
     Master.__init__(self, elem)
     self.footnote_description_period_sid = footnote_description_period_sid
     self.footnote_type_id = footnote_type_id
     self.footnote_id = footnote_id
     self.description = Master.process_null(elem.find("description"))
     self.language_id = Master.process_null(
         elem.find("language/languageId"))
 def __init__(self, elem, certificate_type_code, certificate_code,
              certificate_description_period_sid):
     Master.__init__(self, elem)
     self.certificate_description_period_sid = certificate_description_period_sid
     self.certificate_type_code = certificate_type_code
     self.certificate_code = certificate_code
     self.description = Master.process_null(elem.find("description"))
     self.language_id = Master.process_null(
         elem.find("language/languageId"))
 def __init__(self, elem, quota_definition_sid):
     Master.__init__(self, elem)
     self.quota_definition_sid = quota_definition_sid
     self.imported_amount = Master.process_null(elem.find("importedAmount"))
     self.last_import_date_in_allocation = Master.process_null(
         elem.find("lastImportDateInAllocation"))
     self.new_balance = Master.process_null(elem.find("newBalance"))
     self.occurrence_timestamp = Master.process_null(
         elem.find("occurrenceTimestamp"))
     self.old_balance = Master.process_null(elem.find("oldBalance"))
예제 #14
0
 def __init__(self, elem, additional_code_type_id, additional_code,
              additional_code_sid, additional_code_description_period_sid):
     Master.__init__(self, elem)
     self.additional_code_description_period_sid = additional_code_description_period_sid
     self.additional_code_type_id = additional_code_type_id
     self.additional_code = additional_code
     self.additional_code_sid = additional_code_sid
     self.description = Master.process_null(elem.find("description"))
     self.language_id = Master.process_null(
         elem.find("language/languageId"))
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.quota_order_number_sid = Master.process_null(elem.find("sid"))
        self.quota_order_number_id = Master.process_null(elem.find("quotaOrderNumberId"))
        self.validity_start_date = Master.process_null(elem.find("validityStartDate"))
        self.validity_end_date = Master.process_null(elem.find("validityEndDate"))

        # Get origins
        for el in elem.findall('.//quotaOrderNumberOrigin'):
            self.quota_order_number_origins.append(QuotaOrderNumberOrigin(el, self.quota_order_number_sid))
예제 #16
0
    def __init__(self, elem=None):
        if elem is not None:
            Master.__init__(self, elem)
            self.measure_sid = Master.process_null(elem.find("sid"))
            self.measure_type_id = Master.process_null(
                elem.find("measureType/measureTypeId"))
            self.geographical_area_id = Master.process_null(
                elem.find("geographicalArea/geographicalAreaId"))
            self.goods_nomenclature_item_id = Master.process_null(
                elem.find("goodsNomenclature/goodsNomenclatureItemId"))
            self.validity_start_date = Master.process_null(
                elem.find("validityStartDate"))
            self.validity_end_date = Master.process_null(
                elem.find("validityEndDate"))
            self.measure_generating_regulation_role = Master.process_null(
                elem.find(
                    "measureGeneratingRegulationRole/regulationRoleTypeId"))
            self.measure_generating_regulation_id = Master.process_null(
                elem.find("measureGeneratingRegulationId"))
            self.justification_regulation_role = Master.process_null(
                elem.find("justificationRegulationRole/regulationRoleTypeId"))
            self.justification_regulation_id = Master.process_null(
                elem.find("justificationRegulationId"))
            self.stopped_flag = Master.process_null(elem.find("stoppedFlag"))
            self.geographical_area_sid = Master.process_null(
                elem.find("geographicalArea/sid"))
            self.goods_nomenclature_sid = Master.process_null(
                elem.find("goodsNomenclature/sid"))
            self.ordernumber = Master.process_null(elem.find("ordernumber"))
            self.additional_code_type_id = Master.process_null(
                elem.find(
                    "additionalCode/additionalCodeType/additionalCodeTypeId"))
            self.additional_code_id = Master.process_null(
                elem.find("additionalCode/additionalCodeCode"))
            self.additional_code_sid = Master.process_null(
                elem.find("additionalCode/sid"))
            self.reduction_indicator = Master.process_null(
                elem.find("reductionIndicator"))
            self.export_refund_nomenclature_sid = None

            for el in elem.findall('.//measureComponent'):
                self.measure_components.append(
                    MeasureComponent(el, self.measure_sid))

            for el in elem.findall('.//measureCondition'):
                self.measure_conditions.append(
                    MeasureCondition(el, self.measure_sid))

            for el in elem.findall('.//footnoteAssociationMeasure'):
                self.footnote_association_measures.append(
                    FootnoteAssociationMeasure(el, self.measure_sid))

            for el in elem.findall('.//measureExcludedGeographicalArea'):
                self.measure_excluded_geographical_areas.append(
                    MeasureExcludedGeographicalArea(el, self.measure_sid))
예제 #17
0
 def __init__(self, elem, worksheet, row_count):
     Master.__init__(self, elem)
     self.elem = elem
     self.worksheet = worksheet
     self.row_count = row_count
     self.combined_duty = ""
     self.footnote_string = ""
     self.descriptions = []
     self.duty_expression_array = []
     self.measure_condition_array = []
     self.get_data()
 def __init__(self, elem, goods_nomenclature_item_id,
              goods_nomenclature_sid, productline_suffix):
     Master.__init__(self, elem)
     self.goods_nomenclature_item_id = goods_nomenclature_item_id
     self.goods_nomenclature_sid = goods_nomenclature_sid
     self.goods_nomenclature_indent_sid = Master.process_null(
         elem.find("sid"))
     self.productline_suffix = productline_suffix
     self.number_indents = Master.process_null(elem.find("numberIndents"))
     self.validity_start_date = Master.process_null(
         elem.find("validityStartDate"))
예제 #19
0
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.certificate_code = Master.process_null(
            elem.find("certificateCode"))
        self.certificate_type_code = Master.process_null(
            elem.find("certificateType/certificateTypeCode"))

        for elem in elem.findall('.//certificateDescriptionPeriod'):
            self.certificate_description_periods.append(
                CertificateDescriptionPeriod(elem, self.certificate_type_code,
                                             self.certificate_code))
 def __init__(self, elem, sid):
     Master.__init__(self, elem)
     self.measure_sid = sid
     self.duty_expression_id = Master.process_null(
         elem.find("dutyExpression/dutyExpressionId"))
     self.duty_amount = Master.process_null(elem.find("dutyAmount"))
     self.monetary_unit_code = Master.process_null(
         elem.find("monetaryUnit/monetaryUnitCode"))
     self.measurement_unit_code = Master.process_null(
         elem.find("measurementUnit/measurementUnitCode"))
     self.measurement_unit_qualifier_code = Master.process_null(
         elem.find("measurementUnitQualifier/measurementUnitQualifierCode"))
예제 #21
0
 def __init__(self, elem, goods_nomenclature_item_id,
              goods_nomenclature_sid,
              goods_nomenclature_description_period_sid,
              productline_suffix):
     Master.__init__(self, elem)
     self.goods_nomenclature_description_period_sid = goods_nomenclature_description_period_sid
     self.goods_nomenclature_item_id = goods_nomenclature_item_id
     self.goods_nomenclature_sid = goods_nomenclature_sid
     self.productline_suffix = productline_suffix
     self.description = Master.process_null(elem.find("description"))
     self.language_id = Master.process_null(
         elem.find("language/languageId"))
    def __init__(self, elem, footnote_type_id, footnote_id):
        Master.__init__(self, elem)
        self.footnote_type_id = footnote_type_id
        self.footnote_id = footnote_id
        self.footnote_description_period_sid = Master.process_null(
            elem.find("sid"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))

        for elem in elem.findall('.//footnoteDescription'):
            self.footnote_descriptions.append(
                FootnoteDescription(elem, self.footnote_type_id,
                                    self.footnote_id,
                                    self.footnote_description_period_sid))
    def __init__(self, elem, certificate_type_code, certificate_code):
        Master.__init__(self, elem)
        self.certificate_type_code = certificate_type_code
        self.certificate_code = certificate_code
        self.certificate_description_period_sid = Master.process_null(
            elem.find("sid"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))

        for elem in elem.findall('.//certificateDescription'):
            self.certificate_descriptions.append(
                CertificateDescription(
                    elem, self.certificate_type_code, self.certificate_code,
                    self.certificate_description_period_sid))
예제 #24
0
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.additional_code_sid = Master.process_null(elem.find("sid"))
        self.additional_code = Master.process_null(
            elem.find("additionalCodeCode"))
        self.additional_code_type_id = Master.process_null(
            elem.find("additionalCodeType/additionalCodeTypeId"))

        for elem in elem.findall('.//additionalCodeDescriptionPeriod'):
            self.additional_code_description_periods.append(
                AdditionalCodeDescriptionPeriod(elem,
                                                self.additional_code_type_id,
                                                self.additional_code,
                                                self.additional_code_sid))
 def __init__(self, elem, goods_nomenclature_item_id,
              goods_nomenclature_sid, productline_suffix):
     Master.__init__(self, elem)
     self.goods_nomenclature_item_id = goods_nomenclature_item_id
     self.goods_nomenclature_sid = goods_nomenclature_sid
     self.productline_suffix = productline_suffix
     self.validity_start_date = Master.process_null(
         elem.find("validityStartDate"))
     self.validity_end_date = Master.process_null(
         elem.find("validityEndDate"))
     self.footnote_type = Master.process_null(
         elem.find("footnote/footnoteType/footnoteTypeId"))
     self.footnote_id = Master.process_null(
         elem.find("footnote/footnoteId"))
    def __init__(self, elem, additional_code_type_id, additional_code,
                 additional_code_sid):
        Master.__init__(self, elem)
        self.additional_code_type_id = additional_code_type_id
        self.additional_code = additional_code
        self.additional_code_sid = additional_code_sid
        self.additional_code_description_period_sid = Master.process_null(
            elem.find("sid"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))

        for elem in elem.findall('.//additionalCodeDescription'):
            self.additional_code_descriptions.append(
                AdditionalCodeDescription(
                    elem, self.additional_code_type_id, self.additional_code,
                    self.additional_code_sid,
                    self.additional_code_description_period_sid))
예제 #27
0
    def __init__(self, elem, goods_nomenclature_item_id,
                 goods_nomenclature_sid, productline_suffix):
        Master.__init__(self, elem)
        self.goods_nomenclature_item_id = goods_nomenclature_item_id
        self.goods_nomenclature_sid = goods_nomenclature_sid
        self.productline_suffix = productline_suffix
        self.goods_nomenclature_description_period_sid = Master.process_null(
            elem.find("sid"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))

        for elem in elem.findall('.//goodsNomenclatureDescription'):
            self.goods_nomenclature_descriptions.append(
                GoodsNomenclatureDescription(
                    elem, self.goods_nomenclature_item_id,
                    self.goods_nomenclature_sid,
                    self.goods_nomenclature_description_period_sid,
                    self.productline_suffix))
    def __init__(self, elem, quota_order_number_sid):
        Master.__init__(self, elem)

        self.quota_order_number_sid = quota_order_number_sid
        self.quota_order_number_origin_sid = Master.process_null(
            elem.find("sid"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))
        self.validity_end_date = Master.process_null(
            elem.find("validityEndDate"))
        self.geographical_area_id = Master.process_null(
            elem.find("geographicalArea/geographicalAreaId"))
        self.geographical_area_sid = Master.process_null(
            elem.find("geographicalArea/sid"))

        # Get origin exlusions
        for el in elem.findall('.//quotaOrderNumberOriginExclusion'):
            self.quota_order_number_origin_exclusions.append(
                QuotaOrderNumberOriginExclusion(
                    el, self.quota_order_number_origin_sid))
    def __init__(self, elem):
        Master.__init__(self, elem)
        self.quota_definition_sid = Master.process_null(elem.find("sid"))
        self.quota_order_number_id = Master.process_null(
            elem.find("quotaOrderNumber/quotaOrderNumberId"))
        self.validity_start_date = Master.process_null(
            elem.find("validityStartDate"))
        self.validity_end_date = Master.process_null(
            elem.find("validityEndDate"))
        self.quota_order_number_sid = Master.process_null(
            elem.find("quotaOrderNumber/sid"))
        self.volume = Master.process_null(elem.find("volume"))
        self.initial_volume = Master.process_null(elem.find("initialVolume"))
        self.measurement_unit_code = Master.process_null(
            elem.find("measurementUnit/measurementUnitCode"))
        self.maximum_precision = Master.process_null(
            elem.find("maximumPrecision"))
        self.critical_state = Master.process_null(elem.find("criticalState"))
        self.critical_threshold = Master.process_null(
            elem.find("criticalThreshold"))
        self.monetary_unit_code = Master.process_null(
            elem.find("monetaryUnit/monetaryUnitCode"))
        self.measurement_unit_qualifier_code = Master.process_null(
            elem.find("measurementUnitQualifier/measurementUnitQualifierCode"))
        self.description = Master.process_null(elem.find("description"))

        # Get balance events
        for el in elem.findall('.//quotaBalanceEvent'):
            self.quota_balance_events.append(
                QuotaBalanceEvent(el, self.quota_definition_sid))

        # Get blocking periods
        for el in elem.findall('.//quotaBlockingPeriod'):
            self.quota_blocking_periods.append(
                QuotaBlockingPeriod(el, self.quota_definition_sid))

        # Get suspension periods
        for el in elem.findall('.//quotaSuspensionPeriod'):
            self.quota_suspension_periods.append(
                QuotaSuspensionPeriod(el, self.quota_definition_sid))
 def __init__(self, elem):
     Master.__init__(self, elem)
     self.modification_regulation_role = Master.process_null(elem.find("regulationRoleType/regulationRoleTypeId"))
     self.modification_regulation_id = Master.process_null(elem.find("modificationRegulationId"))
     self.validity_start_date = Master.process_null(elem.find("validityStartDate"))
     self.validity_end_date = Master.process_null(elem.find("validityEndDate"))
     self.community_code = Master.process_null(elem.find("communityCode"))
     self.regulation_group_id = Master.process_null(elem.find("regulationGroup/regulationGroupId"))
     self.replacement_indicator = Master.process_null(elem.find("replacementIndicator"))
     self.stopped_flag = Master.process_null(elem.find("stoppedFlag"))
     self.information_text = Master.process_null(elem.find("informationText"))
     self.approved_flag = Master.process_null(elem.find("approvedFlag"))
     self.published_date = Master.process_null(elem.find("publishedDate"))
     self.official_journal_number = Master.process_null(elem.find("officialjournalNumber"))
     self.official_journal_page = Master.process_null(elem.find("officialjournalPage"))
     self.effective_end_date = Master.process_null(elem.find("effectiveEndDate"))
     self.anti_dumping_regulation_role = Master.process_null(elem.find("antidumpingRegulationRole"))
     self.related_antidumping_regulation_id = Master.process_null(elem.find("relatedAntidumpingRegulationId"))
     self.complete_abrogation_regulation_role = Master.process_null(elem.find("completeAbrogationRegulationRole"))
     self.complete_abrogation_regulation_id = Master.process_null(elem.find("explicitAbrogationRegulationRole"))
     self.explicit_abrogation_regulation_role = Master.process_null(elem.find("explicitAbrogationRegulationId"))
     self.explicit_abrogation_regulation_id = Master.process_null(elem.find("explicitAbrogationRegulationId"))