###########################################################################
# TSL-BIBLIOTHEK:	FRM_Projektanfrage_Lib
###########################################################################
# $Revision: 1.6 $
# $Author: 
# $Date: 2001/07/25 08:52:54 $
# $Source: 
# $NoKeywords: $
###########################################################################
#**# 
#*	Diese Library enthlt Funktionen die zur Ausfhrung der
#*	Benutzerverwaltung bentigt werden. 
#*	
#*	FRM_menu ( in table, in test, in idx, in mode )
#*	
#*	
#*@Author: 
#*/

#**
#*	 FRM_menu whlt im 
#*	Menu und aus der Toolbar aus
#*	
#*
#* @param table	(in)	Index der Tabelle mit den Testdaten
#* @param test	(in)	Name der Spalte mit den Testdaten
#* @param idx	(in)	Name des Testblocks
#* @param mode	(in)	SET/CHK/GEN
#* @return
#*	E_OK:	erfolgreich
#*	else:	fehlerhaft
#*/

public function FRM_Main_window_Projektanfrage ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Main_window", 5 );
	rc+=FRM_edit_set( table, test, "Firma" );
	rc+=FRM_button_set( table, test, "Frau" );
	rc+=FRM_button_set( table, test, "Herr" );
	rc+=FRM_edit_set( table, test, "Vorname" );
	rc+=FRM_edit_set( table, test, "Nachname" );
	rc+=FRM_edit_set( table, test, "Abteilung" );
	rc+=FRM_edit_set( table, test, "Strasse" );
	rc+=FRM_edit_set( table, test, "Postfach" );
	rc+=FRM_edit_set( table, test, "PLZ" );
	rc+=FRM_edit_set( table, test, "Ort" );
	rc+=FRM_edit_set( table, test, "Land" );
	rc+=FRM_edit_set( table, test, "EMail" );
	rc+=FRM_edit_set( table, test, "Telefon" );
	rc+=FRM_edit_set( table, test, "Fax" );
	rc+=FRM_button_set( table, test, "Groupware / Workflowmanagemen" );
	rc+=FRM_button_set( table, test, "Netzwerke / Systemtechnik" );
	rc+=FRM_button_set( table, test, "Software / System Development" );
	rc+=FRM_button_set( table, test, "QS / Softwaretest" );
	rc+=FRM_button_set( table, test, "Content Management" );
	rc+=FRM_button_set( table, test, "Allgemein" );
	rc+=FRM_edit_set( table, test, "Beschreibung" );
	rc+=FRM_web_link_click( table, test, "Lschen" );
	rc+=FRM_web_link_click( table, test, "Weiter" );
	rc+=close_browser_message();	
	rc+=FRM_web_link_click( table, test, "Abbrechen" );
	return rc;
}


public function FRM_Main_window_Projektanfrage_vorschau ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "Main_window", 5 );
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=set_window( "Main_window", 5 );
	rc+=FRM_web_link_click( table, test, "Korrigieren" );
	rc+=FRM_web_link_click( table, test, "Absenden" );
	rc+=FRM_web_link_click( table, test, "Druckansicht" );
		return rc;
}


public function FRM_Projektanfrage_Druckansicht ( in table, in test, in idx, in mode )
{
	auto rc;
	rc = FRM_init_block( table, test, idx, mode );
	if ( rc != E_OK )
		return rc;
	rc+=set_window( "EMOS_Druckfenster", 5 );
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=FRM_Projektanfrage_vorschau_get_text (table, test);
	rc+=set_window( "EMOS_Druckfenster", 5 );
	rc+=FRM_web_link_click( table, test, "Diese Seite drucken" );
	rc+=FRM_web_link_click( table, test, "Fenster schlieen" );
		return rc;
}
	
public function FRM_Projektanfrage_vorschau_get_text (table, test)
{
	auto rc,val;
	rc+= FRM_get_next( table, test, val );
	if ( rc == E_OK )
	{
		rc+= web_frame_text_exists("{ class: window, active: 1 }",val);
		return rc;
	}
}
