/* File: PRINCIPAL Description: PRINCIPAL Author: GeneXus C# Generator version 9_0_4-851 Generated on: 1/23/2009 8:47:28.75 Program type: Main program Main DBMS: sqlserver */ using System; using System.Collections; using GeneXus.Utils; using GeneXus.Resources; using GeneXus.Application; using GeneXus.Metadata; using System.Data; using System.Data.SqlClient; using GeneXus.Data; using GeneXus.Data.FAT; using GeneXus.WebControls; using GeneXus.Http; using GeneXus.XML; using GeneXus.Encryption; using GeneXus.Http.Client; using System.Xml.Serialization; using System.Data.SqlTypes; namespace GeneXus.Programs { public class hprincipal : GXHttpHandler { public hprincipal( ) { context = new GxContext( ); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"SIFEE", context)); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"FACPROD", context)); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"SYNCKARPD75", context)); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"SYNCCLI", context)); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"SYNC", context)); context.DataStores.Add(new GxDataStore( new GxSqlServer(),"Default", context)); dsSIFEE = context.GetDataStore("SIFEE") ; dsFACPROD = context.GetDataStore("FACPROD") ; dsSYNCKARPD75 = context.GetDataStore("SYNCKARPD75") ; dsSYNCCLI = context.GetDataStore("SYNCCLI") ; dsSYNC = context.GetDataStore("SYNC") ; dsDefault = context.GetDataStore("Default") ; IsMain = true; } public hprincipal( IGxContext context ) { this.context = context; IsMain = false; dsSIFEE = context.GetDataStore("SIFEE") ; dsFACPROD = context.GetDataStore("FACPROD") ; dsSYNCKARPD75 = context.GetDataStore("SYNCKARPD75") ; dsSYNCCLI = context.GetDataStore("SYNCCLI") ; dsSYNC = context.GetDataStore("SYNC") ; dsDefault = context.GetDataStore("Default") ; } public void execute( ) { executePrivate(); } void executePrivate( ) { isStatic = false; webExecute(); } protected override void createObjects( ) { } protected void INITWEB( ) { initpars( ) ; gxajaxcallmode = 0 ; if ( ( nGotPars == 0 ) ) { gxfirstwebparm = GetNextPar( ) ; } } public override void webExecute( ) { createObjects(); initialize(); INITWEB( ) ; if ( ( gxajaxcallmode == 0 ) && ( GxWebError == 0 ) ) { PA2S2( ) ; if ( ( gxajaxcallmode == 0 ) && ( GxWebError == 0 ) ) { /* GeneXus formulas. */ context.Gx_err = 0 ; WS2S2( ) ; if ( ( gxajaxcallmode == 0 ) ) { WE2S2( ) ; } } } this.cleanup(); } protected void RenderHtmlHeaders( ) { wbTemp = context.ResponseContentType( "text/html") ; wbTemp = context.SetHeader( "pragma", "no-cache") ; WriteHtmlTextNl( "") ; WriteHtmlTextNl( "
") ; idxLst = 1 ; while ( ( idxLst <= Form.Meta.ItemCount ) ) { WriteHtmlText( "") ; idxLst = (int)(idxLst+1) ; } idxLst = 1 ; addContentType = true ; while ( ( idxLst <= Form.Metaequiv.ItemCount ) ) { if ( ( String.CompareOrdinal(StringUtil.Lower( Form.Metaequiv.getItemValue((short)(idxLst))).TrimEnd(' '), "content-type".TrimEnd(' ') ) == 0 ) ) { addContentType = false ; wbTemp = context.ResponseContentType( Form.Metaequiv.getItemText((short)(idxLst))) ; } idxLst = (int)(idxLst+1) ; } if ( addContentType ) { WriteHtmlTextNl( "") ; } idxLst = 1 ; while ( ( idxLst <= Form.Metaequiv.ItemCount ) ) { WriteHtmlText( "") ; idxLst = (int)(idxLst+1) ; } } protected void RenderHtmlOpenForm( ) { WriteHtmlText( "") ; wb_table1_3_2S2( true) ; } else { wb_table1_3_2S2( false) ; } return ; } protected void wb_table1_3_2S2e( bool wbgen ) { if ( ( wbgen == true ) ) { WriteHtmlTextNl( " ") ; WriteHtmlTextNl( " ") ; WriteHtmlTextNl( " ") ; WriteHtmlText( "") ; } wbLoad = true ; } protected void START2S2( ) { wbLoad = false ; wbEnd = 0 ; wbStart = 0 ; wbTemp = 0 ; Form.Meta.addItem("Generator", "GeneXus C#", 0) ; Form.Meta.addItem("Version", "9_0_4-851", 0) ; Form.Meta.addItem("Description", "PRINCIPAL", 0) ; context.wjLoc = "" ; context.nUserReturn = 0 ; context.wbHandled = 0 ; if ( ( String.CompareOrdinal(context.GetRequestMethod( ).TrimEnd(' '), "POST".TrimEnd(' ') ) == 0 ) ) { context.sCallerURL = cgiGet( "sCallerURL") ; } else { context.sCallerURL = context.GetReferer( ) ; } wbErr = false ; STRUP2S0( ) ; } protected void WS2S2( ) { START2S2( ) ; EVT2S2( ) ; } protected void EVT2S2( ) { if ( ( String.CompareOrdinal(context.GetRequestMethod( ).TrimEnd(' '), "POST".TrimEnd(' ') ) == 0 ) ) { if ( ((String.CompareOrdinal("".TrimEnd(' '), StringUtil.RTrim( context.wjLoc).TrimEnd(' ') )==0)) && ( context.nUserReturn != 1 ) && ( wbErr == false ) ) { /* Read Web Panel buttons. */ sEvt = cgiGet( "_EventName") ; EvtGridId = cgiGet( "_EventGridId") ; EvtRowId = cgiGet( "_EventRowId") ; if ( ( StringUtil.Len( sEvt) > 0 ) ) { sEvtType = StringUtil.Left( sEvt, 1) ; sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1)) ; if ( ( String.CompareOrdinal(sEvtType.TrimEnd(' '), "E".TrimEnd(' ') ) == 0 ) ) { sEvtType = StringUtil.Right( sEvt, 1) ; if ( ( String.CompareOrdinal(sEvtType.TrimEnd(' '), ".".TrimEnd(' ') ) == 0 ) ) { sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ; if ( ( String.CompareOrdinal(sEvt.TrimEnd(' '), "RFR".TrimEnd(' ') ) == 0 ) ) { context.wbHandled = 1 ; dynload_actions( ) ; } else if ( ( String.CompareOrdinal(sEvt.TrimEnd(' '), "ACEPTAR.CLICK".TrimEnd(' ') ) == 0 ) ) { context.wbHandled = 1 ; dynload_actions( ) ; /* Execute user event: E112S2 */ E112S2 (); } } else { } } context.wbHandled = 1 ; } } } } protected void WE2S2( ) { if ( ( context.nUserReturn == 1 ) ) { if ( ((String.CompareOrdinal("".TrimEnd(' '), StringUtil.RTrim( context.sCallerURL).TrimEnd(' ') )==0)) ) { WriteHtmlText( "
") ; /* Static images/pictures */ ClassString = "Image" ; StyleString = "" + "" ; gx_bitmap( imgImage1_Internalname, "", "imagenes\\banner.jpg", 1, 0, "", "", 0, 0, 0, 0, 0, 0, "", "", 0, "", "", StyleString, ClassString, "", "", "", "", "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " |
") ; wb_table2_5_2S2( true) ; } else { wb_table2_5_2S2( false) ; } return ; } protected void wb_table2_5_2S2e( bool wbgen ) { if ( ( wbgen == true ) ) { WriteHtmlText( " |
") ; /* Text block */ ClassString = "TextBlock" ; StyleString = "" + "" ; gx_label_ctrl( lblTberror_Internalname, 1, 1, 1, lblTberror_Caption, "", "", 0, lblTberror_Jsonclick, "", StyleString, ClassString, "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " ") ; /* Text block */ ClassString = "TextBlock" ; StyleString = "" + "" ; gx_label_ctrl( lblTburl_Internalname, 1, 1, 1, lblTburl_Caption, "", "", 0, lblTburl_Jsonclick, "", StyleString, ClassString, "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " ") ; /* Text block */ ClassString = "TextBlock" ; StyleString = "" + "" ; gx_label_ctrl( lblTbfocus_Internalname, 1, 1, 1, lblTbfocus_Caption, "", "", 0, lblTbfocus_Jsonclick, "", StyleString, ClassString, "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " |
Usuario | ") ; /* Single line edit */ TempTags = " " + "gxctx=\"" + "_" + "" + "\"" + " onFocus=\"gxonfocus2(this, " + "6" + "," + "''" + "," + "0" + ")\"" ; ClassString = "Attribute" ; StyleString = "font-family:'Verdana'; font-size:12pt; font-weight:normal; font-style:normal" + "" ; gx_single_line_edit2( edtavUsuario_Internalname, StringUtil.RTrim( AV9usuario), 15, 15, 1, 0, 1, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( StringUtil.Format( AV9usuario, "XXXXXXXXXXXXXXX")), TempTags+" onchange=\"gxonchange(this)\" "+" onBlur=\";GXOnBlur(6);\"", 0, edtavUsuario_Jsonclick, "", 0, 1, 1, "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " |
Password | ") ; /* Single line edit */ TempTags = " " + "gxctx=\"" + "_" + "" + "\"" + " onFocus=\"gxonfocus2(this, " + "7" + "," + "''" + "," + "0" + ")\"" ; ClassString = "Attribute" ; StyleString = "font-family:'Verdana'; font-size:12pt; font-weight:normal; font-style:normal" + "" ; gx_single_line_edit2( edtavPassword_Internalname, StringUtil.RTrim( AV10passwo), 15, 15, 1, 0, 1, 0, 1, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( StringUtil.Format( AV10passwo, "XXXXXXXXXXXXXXX")), TempTags+" onchange=\"gxonchange(this)\" "+" onBlur=\";GXOnBlur(7);\"", 0, edtavPassword_Jsonclick, "", 0, 1, 1, "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " |
| ") ; /* Active images/pictures */ ClassString = "Image" ; StyleString = "" + "" ; gx_bitmap( imgAceptar_Internalname, "", "imagenes/entrar.jpg", 1, 1, "", "", 0, 0, 0, 0, 0, 0, "", "", 5, imgAceptar_Jsonclick, "EACEPTAR.CLICK.", StyleString, ClassString, "", "", "", "", "'HLP_HPRINCIPAL.htm'"); WriteHtmlText( " |