/*
               File: Contactos1
        Description: Contactos1
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 8/8/2011 1:43:18.81
       Program type: Main program
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this._SetStandaloneVars=function()
{
   AV7ConEmai = GXgetControlValue("_CONEMAIL")
   AV19Correo = GXgetControlValue("_CORREOVALIDO")
   Gx_BScreen = GXgetIntegerValue("_GXBSCREEN")
   A963ConSts = GXgetControlValue("CONSTS")
   AV15ErrorA = GXgetControlValue("_ERRORAPE")
   AV18ErrorC = GXgetControlValue("_ERRORCHECK")
   AV17ErrorE = GXgetControlValue("_ERROREMAIL")
   AV14ErrorN = GXgetControlValue("_ERRORNOM")
   A172PaiNom = GXgetControlValue("PAINOM")
   A418PaiCod = GXgetControlValue("PAICOD")
   Gx_mode=GXgetControlValue("MODE");
}
this._Valid_Conemail=function()
{
   try {
      gxballoon = getGXBallon("CONEMAIL");
      AnyError = 0;
      try {
         AV19Correo = gxAggSel("_CORREOVALIDO","3",["A419ConEma"]) ;
      }
      catch(e){}
      try {
         if ( AV19Correo == 'N' )
         {
            gxballoon.setError(AV17ErrorE);
            AnyError = 1 ;
         }
      }
      catch(e){}

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Connom=function()
{
   try {
      gxballoon = getGXBallon("CONNOM");
      AnyError = 0;
      try {
         if ( (""==A420ConNom) )
         {
            gxballoon.setError(AV14ErrorN);
            AnyError = 1 ;
         }
      }
      catch(e){}

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Conape=function()
{
   try {
      gxballoon = getGXBallon("CONAPE");
      AnyError = 0;
      try {
         if ( (""==A421ConApe) )
         {
            gxballoon.setError(AV15ErrorA);
            AnyError = 1 ;
         }
      }
      catch(e){}

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Paiid=function()
{
   try {
      gxballoon = getGXBallon("PAIID");
      AnyError = 0;
      if ( AnyError == 0 && ( A171PaiId != gxOldKey("A171PaiIdA172PaiNom") ) )
      {
         gxajaxloadCrl('gxLoad_14',new Array("A171PaiId"),new Array("A172PaiNom","A418PaiCod"));
         if ( GXLastAjaxSt == 101 )
         {
            gxballoon.setError("Debe Seleccionar Nacionalidad");
            AnyError = 1 ;
            gxUnsetSetKey("A171PaiIdA172PaiNom");
         }
         else
         {
            gxSetKey("A171PaiIdA172PaiNom","A171PaiId");
         }
      }

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Validv_Acheck=function()
{
   try {
      gxballoon = getGXBallon("_ACHECK");
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._contactos1=function()
{
}
this._init=function()
{
}
_GXValidFnc = new Array();
this._GXLastCtrlId =16;
_GXValidFnc[7]={lvl:0,grid:0,fnc:_Valid_Connom,fld:"CONNOM",gxvar:"A420ConNom",op:[],ip:[7],nacdep:[],v2v:function(Value){A420ConNom=Value},v2c:function(){GXsetControlValue("CONNOM",A420ConNom,0)},c2v:function(){A420ConNom=GXgetControlValue("CONNOM")}};
_GXValidFnc[8]={lvl:0,grid:0,fnc:_Valid_Conape,fld:"CONAPE",gxvar:"A421ConApe",op:[],ip:[8],nacdep:[],v2v:function(Value){A421ConApe=Value},v2c:function(){GXsetControlValue("CONAPE",A421ConApe,0)},c2v:function(){A421ConApe=GXgetControlValue("CONAPE")}};
_GXValidFnc[11]={lvl:0,grid:0,fnc:_Valid_Paiid,fld:"PAIID",gxvar:"A171PaiId",op:[],ip:[11],nacdep:[],v2v:function(Value){A171PaiId=gxint(Value)},v2c:function(){GXsetComboBoxValue("PAIID",A171PaiId)},c2v:function(){A171PaiId=GXgetIntegerValue("PAIID")}};
_GXValidFnc[12]={lvl:0,grid:0,fnc:_Valid_Conemail,fld:"CONEMAIL",gxvar:"A419ConEma",op:[],ip:[12],nacdep:[],v2v:function(Value){A419ConEma=Value},v2c:function(){GXsetControlValue("CONEMAIL",A419ConEma,0)},c2v:function(){A419ConEma=GXgetControlValue("CONEMAIL")}};
_GXValidFnc[15]={lvl:0,grid:0,fnc:null,fld:"_ACHECK",gxvar:"AV12ACheck",op:[],ip:[],nacdep:[],v2v:function(Value){AV12ACheck=Value},v2c:function(){GXsetControlValue("_ACHECK",AV12ACheck,2)},c2v:function(){AV12ACheck=GXgetControlValue("_ACHECK")}};
_GXValidFnc[16]={lvl:0,grid:0,fnc:null,fld:"_CONFIRMAR",gxvar:"AV20Confir",op:[],ip:[],nacdep:[],v2v:function(Value){AV20Confir=Value},v2c:function(){},c2v:function(){}};
this.A420ConNom=0;
this.A421ConApe=0;
this.A171PaiId=0;
this.A419ConEma=0;
this.AV12ACheck=0;
_SetStandaloneVars( ) ;

