################################################################################
# LIB: frm_lib1_lib
################################################################################
# $Revision: 1.3 $
# $Author: drajovic $
# $Date: 2002/12/03 18:48:27 $
# $Source: d:/Archive/CVS_QS/EMOS/EMOS_FRM/WR/FRM/TPL/Scripts/LIB/FRM/frm_lib1_lib/script,v $
# $NoKeywords: $
################################################################################

#/**
#* @see <a href="../../../images/FindFlight.jpg">GUI</a>
#* @see <a href="../../../images/FindFlight_block.jpg">Excel</a>
#*/

public function FRM_find_flights ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Find Flights", 5 );
	rc+=FRM_list_select_item( table, test, "depart" );
	rc+=FRM_edit_set( table, test, "departDate" );
	rc+=FRM_list_select_item( table, test, "arrive" );
	rc+=FRM_edit_set( table, test, "returnDate" );
	rc+=FRM_edit_set( table, test, "numPassengers" );
	rc+=FRM_button_set( table, test, "roundtrip" );
	rc+=FRM_button_set( table, test, "Aisle" );
	rc+=FRM_button_set( table, test, "Window" );
	rc+=FRM_button_set( table, test, "None" );
	rc+=FRM_button_set( table, test, "First" );
	rc+=FRM_button_set( table, test, "Business" );
	rc+=FRM_button_set( table, test, "Coach" );
	rc+=FRM_web_image_click( table, test, "findFlights" );
	return rc;
}

#/**
#* @see <a href="../../../images/SearchResults.jpg">GUI</a>
#* @see <a href="../../../images/SearchResults_block.jpg">Excel</a>
#*/

public function FRM_search_results ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Search Results", 5 );
	rc+=FRM_web_image_click( table, test, "reserveFlights" );
	return rc;
}

#/**
#* @see <a href="../../../images/SearchResults_table.jpg">GUI</a>
#* @see <a href="../../../images/SearchResults_table_block.jpg">Excel</a>
#*/

public function FRM_search_results_tbl ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Search Results", 5 );
	rc+=FRM_TBL_set_data ( table, test, "table" );
	return rc;
}

#/**
#* @see <a href="../../../images/SearchResults_table.jpg">GUI</a>
#* @see <a href="../../../images/SearchResults_table2_block.jpg">Excel</a>
#* @see <a href="../../../images/SearchResults_table3_block.jpg">Excel2</a>
#*/

public function FRM_search_results_tbl2 ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Search Results", 5 );
	rc+=FRM_TBL_set_data_block ( table, test, "table" );
	return rc;
}

#/**
#* @see <a href="../../../images/MethodOfPayment.jpg">GUI</a>
#* @see <a href="../../../images/MethodOfPayment_block.jpg">Excel</a>
#*/

public function FRM_method_of_payment ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Method Of Payment", 5 );
	rc+=FRM_edit_set( table, test, "firstName" );
	rc+=FRM_edit_set( table, test, "lastName" );
	rc+=FRM_edit_set( table, test, "address1" );
	rc+=FRM_edit_set( table, test, "address2" );
	rc+=FRM_edit_set( table, test, "pass1" );
	rc+=FRM_edit_set( table, test, "pass2" );
	rc+=FRM_edit_set( table, test, "creditCard" );
	rc+=FRM_edit_set( table, test, "expDate" );
	rc+=FRM_button_set( table, test, "saveCC" );
	rc+=FRM_web_image_click( table, test, "buyFlights" );
	return rc;
}

#/**
#* @see <a href="../../../images/FlightConfirmation.jpg">GUI</a>
#* @see <a href="../../../images/FlightConfirmation_block.jpg">Excel</a>
#*/

public function FRM_flight_confirmation ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Flight Confirmation", 5 );
	rc+=FRM_web_image_click( table, test, "Book Another" );
	return rc;
}

#/**
#* @see <a href="../../../images/FlightConfirmation_title.jpg">GUI</a>
#* @see <a href="../../../images/FlightConfirmation_title_block.jpg">Excel</a>
#*/

public function FRM_flight_confirmation_tbl_title ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Flight Confirmation", 5 );
	rc+=FRM_TBL_set_data ( table, test, "table_title" );
	return rc;
}

#/**
#* @see <a href="../../../images/FlightConfirmation_invoice.jpg">GUI</a>
#* @see <a href="../../../images/FlightConfirmation_invoice_block.jpg">Excel</a>
#*/

public function FRM_flight_confirmation_tbl_invoice ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Flight Confirmation", 5 );
	rc+=FRM_TBL_set_data ( table, test, "table_invoice" );
	return rc;
}

#/**
#* @see <a href="../../../images/FlightConfirmation_passengers.jpg">GUI</a>
#* @see <a href="../../../images/FlightConfirmation_passengers_block.jpg">Excel</a>
#*/

public function FRM_flight_confirmation_tbl_passengers ( in table, in test, in idx, inout mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Flight Confirmation", 5 );
	rc+=FRM_TBL_set_data ( table, test, "table_passengers" );
	return rc;
}

