/*
               File: filiales
        Description: Presentacion Futbol Base
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 9/25/2011 20:55:41.61
       Program type: Callable routine
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this._SetStandaloneVars=function()
{
}
this._Valid_Resultadofilialid=function()
{
   try {
      if(  GXCurrentRow[21] ===0) return true;
      gxballoon = getGXGridBallon("RESULTADOFILIALID", GXCurrentRow[21]);
      AnyError = 0;
      _StandaloneModal( ) ;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._StandaloneModal=function()
{
   if ( AnyError == 0 && ( A676Equipo != gxOldGridKey("A676EquipoA694Equipo",24) ) )
   {
      gxajaxloadCrl('gxLoad_7',new Array("A676Equipo"),new Array("A694Equipo"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Mantenimiento de equipos"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A676EquipoA694Equipo",24);
      }
      else
      {
         gxSetGridKey("A676EquipoA694Equipo",24,"A676Equipo");
      }
   }
   if ( AnyError == 0 && ( A907Result != gxOldGridKey("A907ResultA909Result",21) ) )
   {
      gxajaxloadCrl('gxLoad_6',new Array("A907Result"),new Array("A909Result","A908Result","A925Result","A912Result","A910Result"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Resultados Filiales"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A907ResultA909Result",21);
      }
      else
      {
         gxSetGridKey("A907ResultA909Result",21,"A907Result");
      }
   }
}
this._Valid_Equipocodigo=function()
{
   try {
      if(  GXCurrentRow[24] ===0) return true;
      gxballoon = getGXGridBallon("EQUIPOCODIGO", GXCurrentRow[24]);
      AnyError = 0;
      _standaloneModalAB3( ) ;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._standaloneModalAB3=function()
{
   if ( AnyError == 0 && ( A907Result != gxOldGridKey("A907ResultA925Result",21) ) )
   {
      gxajaxloadCrl('gxLoad_3',new Array("A907Result"),new Array("A925Result","A908Result"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Resultados Filiales"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A907ResultA925Result",21);
      }
      else
      {
         gxSetGridKey("A907ResultA925Result",21,"A907Result");
      }
   }
   if ( AnyError == 0 && ( A676Equipo != gxOldGridKey("A676EquipoA694Equipo",24) ) )
   {
      gxajaxloadCrl('gxLoad_4',new Array("A676Equipo"),new Array("A694Equipo"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Mantenimiento de equipos"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A676EquipoA694Equipo",24);
      }
      else
      {
         gxSetGridKey("A676EquipoA694Equipo",24,"A676Equipo");
      }
   }
}
this._filiales=function()
{
}
this._init=function()
{
}
_GXValidFnc = new Array();
this._GXLastCtrlId =23;
_GXValidFnc [ 19 ]={lvl: 2 ,grid: 21 ,pgrid: 0 ,fnc: _Valid_Resultadofilialid ,fld: "RESULTADOFILIALID" ,gxvar: "A907Result" ,op:[ 20 ],ip:[ 23,19,20 ],v2v:function(Value){ A907Result=gxint(Value) },v2c:function(){ GXsetGridControlValue("RESULTADOFILIALID",GXCurrentRow[21],A907Result,0) }, c2v:function(){ A907Result=GXgetGridIntegerValue("RESULTADOFILIALID",GXCurrentRow[21]) }, nac:function(){return  null }};
_GXValidFnc [ 20 ]={lvl: 2 ,grid: 21 ,pgrid: 0 ,fnc: null ,fld: "RESULTADOFILIALMODO" ,gxvar: "A910Result" ,op:[  ],ip:[  ],v2v:function(Value){ A910Result=gxint(Value) },v2c:function(){ GXsetGridControlValue("RESULTADOFILIALMODO",GXCurrentRow[21],A910Result,0) }, c2v:function(){ A910Result=GXgetGridIntegerValue("RESULTADOFILIALMODO",GXCurrentRow[21]) }, nac:function(){return  null }};
_GXValidFnc [ 23 ]={lvl: 3 ,grid: 24 ,pgrid: 0 ,fnc: _Valid_Equipocodigo ,fld: "EQUIPOCODIGO" ,gxvar: "A676Equipo" ,op:[  ],ip:[ 19,23 ],v2v:function(Value){ A676Equipo=gxint(Value) },v2c:function(){ GXsetGridControlValue("EQUIPOCODIGO",GXCurrentRow[24],A676Equipo,0) }, c2v:function(){ A676Equipo=GXgetGridIntegerValue("EQUIPOCODIGO",GXCurrentRow[24]) }, nac:function(){return  null }};
_SetStandaloneVars( ) ;

