コード例 #1
0
def run():

    title = 'Main menu'
    options = [
        "Store manager", "Human resources manager", "Inventory manager",
        "Accounting manager", "Sales manager",
        "Customer Relationship Management (CRM)"
    ]
    exit_message = "Exit program"

    choice = None
    while choice != "0":
        common.clear()
        choice = terminal_view.get_choice(title, options, exit_message)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice != 0:
            terminal_view.print_error_message("There is no such choice.")
コード例 #2
0
def run():
    options = [
        "Store manager", "Human resources manager", "Inventory manager",
        "Accounting manager", "Sales manager",
        "Customer Relationship Management (CRM)", "Data Analyzer"
    ]

    os.system("clear")
    choice = None
    while choice != "0":
        os.system("clear")
        terminal_view.print_predator()
        terminal_view.print_menu("What controller would you like to open:",
                                 options, "Exit")
        choice = terminal_view.get_choice(options)
        os.system("clear")
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "7":
            data_analysis_controller.run()
        else:
            if choice != "0":
                terminal_view.print_error_message("There is no such choice.\n")
コード例 #3
0
def run():
    title = "Main Menu"
    options = [
        "Store manager", "Human resources manager", "Inventory manager",
        "Accounting manager", "Sales manager",
        "Customer Relationship Management (CRM)"
    ]
    exit_message = "Turn off program"

    choice = None
    while choice != "0":
        choice = terminal_view.get_choice(title, options, exit_message)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        else:
            terminal_view.print_error_message(
                "You have chosen to turn off the program.")
コード例 #4
0
def run():
    
    options = ["1. Store manager",
               "2. Human resources manager",
               "3. Inventory manager",
               "4. Accounting manager",
               "5. Sales manager",
               "6. Customer Relationship Management (CRM)"]

    choice = None
    while choice != "0":
        choice = terminal_view.get_choice(options)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "0":
            return
        else:
            terminal_view.print_error_message("There is no such choice. Choose from 1 to 6")
def run():
    options = ["Store manager",
               "Human resources manager",
               "Inventory manager",
               "Accounting manager",
               "Sales manager",
               "Customer Relationship Management (CRM)"]

    choice = None
    while choice != "0":
        terminal_view.print_menu("Main menu:",options, "Exit program")
        choice = terminal_view.get_choice(options)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        else:
            terminal_view.print_error_message("There is no such choice.")
def run():

    os.system('cls||clear')

    title = "Main menu\n"

    options = [
        "(1) Store manager", "(2) Human resources manager",
        "(3) Inventory manager", "(4) Accounting manager", "(5) Sales manager",
        "(6) Customer Relationship Management (CRM)"
    ]

    exit_message = "(0) Exit program\n"

    argument = None
    choice = None
    while argument != "0":
        choice = terminal_view.get_choice(title, options, exit_message)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "0":
            argument = terminal_view.kutas_kurwa()
        else:
            terminal_view.print_error_message("There is no such choice.")
コード例 #7
0
def run():
    options = [
        "Store manager", "Human resources manager", "Inventory manager",
        "Accounting manager", "Sales manager",
        "Customer Relationship Management (CRM)", "Data analyser"
    ]

    choice = None
    while choice != "0":
        common.clear_function()
        terminal_view.print_primitive_logo()
        terminal_view.print_menu("Main menu: ", options, "Exit program")
        choice = terminal_view.get_choice()
        common.clear_function()
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "7":
            data_analyser_controller.run()
        else:
            pass
コード例 #8
0
def run():
    os.system('clear')
    options = [
        "Store manager", "Human resources manager", "Inventory manager",
        "Accounting manager", "Sales manager",
        "Customer Relationship Management (CRM)", "Data Analyser"
    ]
    choice = None
    while choice != "0":
        os.system('clear')
        choice = terminal_view.get_choice(options)
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "7":
            data_analyser_controller.run()
        elif choice == "0":
            os.system('clear')
        else:
            terminal_view.print_error_message("There is no such choice.")
コード例 #9
0
def run():
    options = ["Store manager",
               "Human resources manager",
               "Inventory manager",
               "Accounting manager",
               "Sales manager",
               "Customer Relationship Management (CRM)"]
    
    common.print_art(0)
    choice = None
    while choice != "0":
        common.clear_terminal()
        common.print_art(0)
        choice = terminal_view.get_choice(options)
        if choice == "1":
            common.clear_terminal()
            store_controller.run()
        elif choice == "2":
            common.clear_terminal()
            hr_controller.run()
        elif choice == "3":
            common.clear_terminal()
            inventory_controller.run()
        elif choice == "4":
            common.clear_terminal()
            accounting_controller.run()
        elif choice == "5":
            common.clear_terminal()
            sales_controller.run()
        elif choice == "6":
            common.clear_terminal()
            crm_controller.run()
コード例 #10
0
def choose():
    choice = None
    while choice != "0":
        choice = handle_menu()
        if choice == "1":
            store_controller.run()
        elif choice == "2":
            hr_controller.run()
        elif choice == "3":
            inventory_controller.run()
        elif choice == "4":
            accounting_controller.run()
        elif choice == "5":
            sales_controller.run()
        elif choice == "6":
            crm_controller.run()
        elif choice == "7":
            analyser_controller.run()
        elif choice == "0":
            terminal_view.print_result("Goodbye")
        else:
            terminal_view.print_error_message("There is no such choice.")