Пример #1
0
def inbound(indls):
    driver = get_driver()
    login(driver, user, password)

    navigate_in(driver, indls)
    cursor = create_hana_connection()
    item_list = get_indls_data_from_lips(cursor, indls)
    pallets = []
    for item in item_list:

        matnr, quantity, charge = item
        matnr = matnr.lstrip("0")
        quantity = str(quantity)

        pallets.append(input_pallet(driver, create_pallet(cursor)))
        input_material(driver, matnr)
        input_quantity(driver, quantity)
        if charge == "X":
            input_charge_date(driver, cursor, matnr)

        close_pallet(driver)
    navigate_out(driver)
    print(f"PALLETS = {pallets}")
    return pallets
Пример #2
0
def main_confirm_to(pallets):
    driver = get_driver()
    login(driver)
    open_wm_cnf(driver)
    confirm_to(driver, pallets)
    close_browser(driver)
Пример #3
0
def web_driver_and_login(data):
    data["web_driver"] = get_driver(data["system"])
    login(data["web_driver"])

    return data
Пример #4
0
                driver.find_element(By.CSS_SELECTOR, "input[name*='answer_no']").click()


def exit_control(driver):
    back_menu = driver.find_element_by_id("butback")
    back_menu.click()

    back_menu = driver.find_element_by_id("butback")
    back_menu.click()


def control(driver, cursor, deliveries):
    position_and_boxes_dict, type_consolidation_dict = get_data_for_control(cursor, deliveries)
    empty_hu_list = get_empty_hu(cursor)
    storage_types = "02", "03", "04"
    for storage_type in storage_types:
        control_over_type(driver, position_and_boxes_dict, type_consolidation_dict, empty_hu_list, storage_type)

    change_workstation(driver, "all")

    return driver


if __name__ == '__main__':
    wd = get_driver()
    login(wd)
    cursora = create_hana_connection()
    deliveris = ['2000003236', ]
    control(wd, cursora, deliveris)
    # print(get_data_for_control(cursora, deliveris))
Пример #5
0
    item_list = get_indls_data_from_lips(cursor, indls)
    pallets = []
    for item in item_list:

        matnr, quantity, charge = item
        matnr = matnr.lstrip("0")
        quantity = str(quantity)

        pallets.append(input_pallet(driver, create_pallet(cursor)))
        input_material(driver, matnr)
        input_quantity(driver, quantity)
        if charge == "X":
            input_charge_date(driver, cursor, matnr)

        close_pallet(driver)
    navigate_out(driver)
    print(f"PALLETS = {pallets}")
    return pallets


if __name__ == '__main__':
    wd = get_driver()
    login(wd, user, password)

    delivery = "180000189"
    palts = inbound(delivery)
    print(palts)

    # matnr = 1000357
    # input_charge_date(matnr)
Пример #6
0
def login_fix(driver):
    login(driver, user, password)

    yield

    close_browser(driver)