/*
               File: cuadrotecnico
        Description: cuadro tecnico
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 8/15/2010 12:31:59.18
       Program type: Callable routine
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this._SetStandaloneVars=function()
{
   A774Person = GXgetControlValue("PERSONALNOMBRE")
   A775Person = GXgetControlValue("PERSONALAPELLIDO1")
   A776Person = GXgetControlValue("PERSONALAPELLIDO2")
   A676Equipo = GXgetIntegerValue("EQUIPOCODIGO")
}
this._StandaloneModal=function()
{
   if ( AnyError == 0 && ( A508Trabaj != gxOldGridKey("A508TrabajA511Trabaj",18) ) )
   {
      gxajaxloadCrl('gxLoad_8',new Array("A508Trabaj"),new Array("A511Trabaj","A814Trabaj","A833Trabaj"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Trabajos obra"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A508TrabajA511Trabaj",18);
      }
      else
      {
         gxSetGridKey("A508TrabajA511Trabaj",18,"A508Trabaj");
      }
   }
}
this._Valid_Trabajocodigo=function()
{
   try {
      if(  GXCurrentRow[18] ===0) return true;
      gxballoon = getGXGridBallon("TRABAJOCODIGO", GXCurrentRow[18]);
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Idiomacodigo=function()
{
   try {
      if(  GXCurrentRow[18] ===0) return true;
      gxballoon = getGXGridBallon("IDIOMACODIGO", GXCurrentRow[18]);
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Personalcodigo=function()
{
   try {
      if(  GXCurrentRow[25] ===0) return true;
      gxballoon = getGXGridBallon("PERSONALCODIGO", GXCurrentRow[25]);
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Personalequipocodigo=function()
{
   try {
      if(  GXCurrentRow[25] ===0) return true;
      gxballoon = getGXGridBallon("PERSONALEQUIPOCODIGO", GXCurrentRow[25]);
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._standaloneModal8Y3=function()
{
   if ( AnyError == 0 && ( A773Person != gxOldGridKey("A773PersonA508Trabaj",25) ) )
   {
      gxajaxloadCrl('gxLoad_4',new Array("A773Person"),new Array("A508Trabaj","A788Person","A781Person","A778Person","A797Person","A776Person","A775Person","A774Person"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Gestión de Personal"));
         AnyError = 1 ;
         gxUnsetSetGridKey("A773PersonA508Trabaj",25);
      }
      else
      {
         gxSetGridKey("A773PersonA508Trabaj",25,"A773Person");
      }
   }
   if ( AnyError == 0 )
   {
      gxajaxloadCrl('gxLoad_5',new Array("A797Person","A35IdiomaC"),new Array());
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "Level1"));
         AnyError = 1 ;
      }
      else
      {
      }
   }
   try {
      A777Person = gxtrim( A774Person) + ' ' + gxtrim( A775Person) + ' ' + gxtrim( A776Person) ;
   }
   catch(e){}
}
this._cuadrotecnico=function()
{
}
this._init=function()
{
}
_GXValidFnc = new Array();
this._GXLastCtrlId =36;
_GXValidFnc [ 21 ]={lvl: 2 ,grid: 18 ,pgrid: 0 ,fnc: null ,fld: "TRABAJOCODIGO" ,gxvar: "A508Trabaj" ,op:[  ],ip:[  ],v2v:function(Value){ A508Trabaj=gxint(Value) },v2c:function(){ GXsetGridControlValue("TRABAJOCODIGO",GXCurrentRow[18],A508Trabaj,0) }, c2v:function(){ A508Trabaj=GXgetGridIntegerValue("TRABAJOCODIGO",GXCurrentRow[18]) }, nac:function(){return  null }};
_GXValidFnc [ 22 ]={lvl: 2 ,grid: 18 ,pgrid: 0 ,fnc: null ,fld: "TRABAJOORDENTECNICO" ,gxvar: "A833Trabaj" ,op:[  ],ip:[  ],v2v:function(Value){ A833Trabaj=gxint(Value) },v2c:function(){ GXsetGridControlValue("TRABAJOORDENTECNICO",GXCurrentRow[18],A833Trabaj,0) }, c2v:function(){ A833Trabaj=GXgetGridIntegerValue("TRABAJOORDENTECNICO",GXCurrentRow[18]) }, nac:function(){return  null }};
_GXValidFnc [ 23 ]={lvl: 2 ,grid: 18 ,pgrid: 0 ,fnc: null ,fld: "IDIOMACODIGO" ,gxvar: "A35IdiomaC" ,op:[  ],ip:[  ],v2v:function(Value){ A35IdiomaC=Value },v2c:function(){ GXsetGridControlValue("IDIOMACODIGO",GXCurrentRow[18],A35IdiomaC,0) }, c2v:function(){ A35IdiomaC=GXgetGridControlValue("IDIOMACODIGO",GXCurrentRow[18]) }, nac:function(){return  null }};
_GXValidFnc [ 24 ]={lvl: 2 ,grid: 18 ,pgrid: 0 ,fnc: null ,fld: "TRAIDINOMBRE" ,gxvar: "A543TraIdi" ,op:[  ],ip:[  ],v2v:function(Value){ A543TraIdi=Value },v2c:function(){ GXsetGridControlValue("TRAIDINOMBRE",GXCurrentRow[18],A543TraIdi,0) }, c2v:function(){ A543TraIdi=GXgetGridControlValue("TRAIDINOMBRE",GXCurrentRow[18]) }, nac:function(){return  null }};
_GXValidFnc [ 29 ]={lvl: 3 ,grid: 25 ,pgrid: 0 ,fnc: null ,fld: "PERSONALNOMBRECOMPLETO" ,gxvar: "A777Person" ,op:[  ],ip:[  ],v2v:function(Value){ A777Person=Value },v2c:function(){ GXsetGridControlValue("PERSONALNOMBRECOMPLETO",GXCurrentRow[25],A777Person,0) }, c2v:function(){ A777Person=GXgetGridControlValue("PERSONALNOMBRECOMPLETO",GXCurrentRow[25]) }, nac:function(){return  null }};
_GXValidFnc [ 34 ]={lvl: 3 ,grid: 25 ,pgrid: 0 ,fnc: null ,fld: "PERSONALCODIGO" ,gxvar: "A773Person" ,op:[  ],ip:[  ],v2v:function(Value){ A773Person=gxint(Value) },v2c:function(){ GXsetGridControlValue("PERSONALCODIGO",GXCurrentRow[25],A773Person,0) }, c2v:function(){ A773Person=GXgetGridIntegerValue("PERSONALCODIGO",GXCurrentRow[25]) }, nac:function(){return  null }};
_GXValidFnc [ 35 ]={lvl: 3 ,grid: 25 ,pgrid: 0 ,fnc: null ,fld: "PERSONALEQUIPOCODIGO" ,gxvar: "A797Person" ,op:[  ],ip:[  ],v2v:function(Value){ A797Person=gxint(Value) },v2c:function(){ GXsetGridControlValue("PERSONALEQUIPOCODIGO",GXCurrentRow[25],A797Person,0) }, c2v:function(){ A797Person=GXgetGridIntegerValue("PERSONALEQUIPOCODIGO",GXCurrentRow[25]) }, nac:function(){return  null }};
_GXValidFnc [ 36 ]={lvl: 3 ,grid: 25 ,pgrid: 0 ,fnc: null ,fld: "_EQUIPOCODIGO" ,gxvar: "AV23Equipo" ,op:[  ],ip:[  ],v2v:function(Value){ AV23Equipo=gxint(Value) },v2c:function(){ GXsetGridControlValue("_EQUIPOCODIGO",GXCurrentRow[25],AV23Equipo,0) }, c2v:function(){ AV23Equipo=GXgetGridIntegerValue("_EQUIPOCODIGO",GXCurrentRow[25]) }, nac:function(){return  null }};
_SetStandaloneVars( ) ;

