Skip to content

List Controller

list_controller special

check_position_numbers_part_list()

Checks the part list numbers and returns the element ids with discrepancies

Returns:

Type Description
List[int]

element ids with discrepancies (List[int])

Source code in list_controller/__init__.py
def check_position_numbers_part_list() -> List[int]:
    """Checks the part list numbers and returns the element ids with discrepancies 
    Args:

    Returns:
        element ids with discrepancies (List[int])
    """

check_position_numbers_production_list()

Checks the production list numbers and returns the element ids with discrepancies

Returns:

Type Description
List[int]

element ids with discrepancies (List[int])

Source code in list_controller/__init__.py
def check_position_numbers_production_list() -> List[int]:
    """Checks the production list numbers and returns the element ids with discrepancies 
    Args:

    Returns:
        element ids with discrepancies (List[int])
    """

clear_errors()

clear errors

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def clear_errors() -> None:
    """clear errors
    Args:

    Returns:
        None
    """

export_part_list(element_id_list, file_path)

Exports a part list

Parameters:

Name Type Description Default
element_id_list List[int]

element_id_list

required
file_path str

file_path

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def export_part_list(element_id_list: List[int], file_path: str) -> None:
    """Exports a part list 
    Args:
        element_id_list ( List[int]): element_id_list
        file_path ( str): file_path

    Returns:
        None
    """

export_part_list_with_settings(element_id_list, file_path, settings_file_path)

export part list with settings

Parameters:

Name Type Description Default
element_id_list List[int]

element_id_list

required
file_path str

file_path

required
settings_file_path str

settings_file_path

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def export_part_list_with_settings(element_id_list: List[int], file_path: str, settings_file_path: str) -> None:
    """export part list with settings
    Args:
        element_id_list ( List[int]): element_id_list
        file_path ( str): file_path
        settings_file_path ( str): settings_file_path

    Returns:
        None
    """

export_production_list(element_id_list, file_path)

Exports a production list

Parameters:

Name Type Description Default
element_id_list List[int]

element_id_list

required
file_path str

file_path

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def export_production_list(element_id_list: List[int], file_path: str) -> None:
    """Exports a production list 
    Args:
        element_id_list ( List[int]): element_id_list
        file_path ( str): file_path

    Returns:
        None
    """

export_production_list_with_settings(element_id_list, file_path, settings_file_path)

export production list with settings

Parameters:

Name Type Description Default
element_id_list List[int]

element_id_list

required
file_path str

file_path

required
settings_file_path str

settings_file_path

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def export_production_list_with_settings(element_id_list: List[int], file_path: str, settings_file_path: str) -> None:
    """export production list with settings
    Args:
        element_id_list ( List[int]): element_id_list
        file_path ( str): file_path
        settings_file_path ( str): settings_file_path

    Returns:
        None
    """

generate_new_part_list_numbers(a0)

generate new part list numbers

Parameters:

Name Type Description Default
a0 List[int]

a0

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def generate_new_part_list_numbers(a0: List[int]) -> None:
    """generate new part list numbers
    Args:
        a0 ( List[int]): a0

    Returns:
        None
    """

generate_new_part_list_silently(a0, a1, a2, a3)

generate new part list silently

Parameters:

Name Type Description Default
a0 List[int]

a0

required
a1 int

a1

required
a2 bool

a2

required
a3 bool

a3

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def generate_new_part_list_silently(a0: List[int], a1: int, a2: bool, a3: bool) -> None:
    """generate new part list silently
    Args:
        a0 ( List[int]): a0
        a1 ( int): a1
        a2 ( bool): a2
        a3 ( bool): a3

    Returns:
        None
    """

generate_new_production_list_numbers(a0)

generate new production list numbers

Parameters:

Name Type Description Default
a0 List[int]

a0

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def generate_new_production_list_numbers(a0: List[int]) -> None:
    """generate new production list numbers
    Args:
        a0 ( List[int]): a0

    Returns:
        None
    """

generate_new_production_list_silently(a0, a1, a2, a3)

generate new production list silently

Parameters:

Name Type Description Default
a0 List[int]

a0

required
a1 int

a1

required
a2 bool

a2

required
a3 bool

a3

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def generate_new_production_list_silently(a0: List[int], a1: int, a2: bool, a3: bool) -> None:
    """generate new production list silently
    Args:
        a0 ( List[int]): a0
        a1 ( int): a1
        a2 ( bool): a2
        a3 ( bool): a3

    Returns:
        None
    """

get_last_error(error_code)

Gets the last error

Parameters:

Name Type Description Default
error_code int

error_code

required

Returns:

Type Description
str

error string (str)

Source code in list_controller/__init__.py
def get_last_error(error_code: int) -> str:
    """Gets the last error 
    Args:
        error_code ( int): error_code

    Returns:
        error string (str)
    """

load_part_list_calculation_settings(a0)

load part list calculation settings

Parameters:

Name Type Description Default
a0 str

a0

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def load_part_list_calculation_settings(a0: str) -> None:
    """load part list calculation settings
    Args:
        a0 ( str): a0

    Returns:
        None
    """

load_production_list_calculation_settings(a0)

load production list calculation settings

Parameters:

Name Type Description Default
a0 str

a0

required

Returns:

Type Description
None

None

Source code in list_controller/__init__.py
def load_production_list_calculation_settings(a0: str) -> None:
    """load production list calculation settings
    Args:
        a0 ( str): a0

    Returns:
        None
    """