コード例 #1
0
ファイル: Main.py プロジェクト: nancyivy/ist303_python
def todo_list():
    print 'Welcome to MiYE service system!'
    print 'Please choose the service you want:'
    print '1. Make a reservation or check the availability'
    print '2. Cancel a reservation'
    print '3. Print the bill for the customer'
    print '4. Use Maintenance Interface'
    input = raw_input('What do you want to do(Select an option):')

    if input == '1':
        makereservation()
    elif input == '2':
        cancelreservation()
    elif input == '3':
        printbill()
    # Next iteration
    # elif input == '4':
    #     # maintainsystem()
    else:
        print '\n' + 'You should input the number between 1 and 4\n'
コード例 #2
0
ファイル: Main.py プロジェクト: a1300300/SD_Project
    print 'Please choose the service you want:'
    print '1. Make a reservation'
    print '2. Check availability of services by date and time'
    print '3. Check availability of services by service in 5 days'
    print '4. Cancel a reservation'
    print '5. Print the bill for the customer'
    print '6. Use Maintenance Interface <New Customer ID>'
    print '7. Exit'
    print
    input = raw_input('What do you want to do (Select an option):')

    if input == '1':
        makereservation(Customers, Services)
        save_object_state(Customers, Services)
    elif input == '2':
        check_avail_dtime(Services)
    elif input == '3':
        check_by_service(Services)
    elif input == '4':
        cancel_reservation(Customers, Services)
        save_object_state(Customers, Services)
    elif input == '5':
        printbill(Customers)
    elif input == '6':
        maintenance_interface(Customers, Services)
    elif input == '7':
        print 'Thank you for using the system!'
        break
    else:
        print '\n' + 'You should input the number between 1 and 7\n'