/*
               File: ZEncue
        Description: Entrada de encuesta de clientes
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 8/23/2010 13:27:59.17
       Program type: Main program
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 80 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this._SetStandaloneVars=function()
{
}
this._Validv_Reezoncod=function()
{
   try {
      gxballoon = getGXBallon("_REEZONCOD");
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Validv_Reesuzcod=function()
{
   try {
      gxballoon = getGXBallon("_REESUZCOD");
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Valid_Encprgcod=function()
{
   try {
      if(  GXCurrentRow[28] ===0) return true;
      gxballoon = getGXGridBallon("ENCPRGCOD", GXCurrentRow[28]);
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._StandaloneModal=function()
{
   if ( AnyError == 0 && ( A2978EncPr != gxOldGridKey("A2978EncPrA2979EncPr",28) || A9EmpCod != gxOldKey("A9EmpCodA2979EncPr") ) )
   {
      gxajaxloadCrl('gxLoad_6',new Array("A9EmpCod","A2978EncPr"),new Array("A2979EncPr"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("No existe %1", "PreEncu"));
         AnyError = 1 ;
         gxUnsetSetKey("A9EmpCodA2979EncPr");
         gxUnsetSetGridKey("A2978EncPrA2979EncPr",28);
      }
      else
      {
         gxSetKey("A9EmpCodA2979EncPr","A9EmpCod");
         gxSetGridKey("A2978EncPrA2979EncPr",28,"A2978EncPr");
      }
   }
}
this._zencue=function()
{
}
this._init=function()
{
}
_GXValidFnc = new Array();
this._GXLastCtrlId =27;
_GXValidFnc[8]={lvl:0,grid:0,fnc:null,fld:"_REECLICOD",gxvar:"AV63REECli",op:[],ip:[],nacdep:[],v2v:function(Value){AV63REECli=gxint(Value)},v2c:function(){GXsetControlValue("_REECLICOD",AV63REECli,0)},c2v:function(){AV63REECli=GXgetIntegerValue("_REECLICOD")}};
_GXValidFnc[9]={lvl:0,grid:0,fnc:null,fld:"_REECLINOMCOMF",gxvar:"AV64REECli",op:[],ip:[],nacdep:[],v2v:function(Value){AV64REECli=Value},v2c:function(){GXsetControlValue("_REECLINOMCOMF",AV64REECli,0)},c2v:function(){AV64REECli=GXgetControlValue("_REECLINOMCOMF")}};
_GXValidFnc[16]={lvl:0,grid:0,fnc:null,fld:"_REEZONCOD",gxvar:"AV78REEZon",op:[],ip:[],nacdep:[],v2v:function(Value){AV78REEZon=Value},v2c:function(){GXsetComboBoxValue("_REEZONCOD",AV78REEZon)},c2v:function(){AV78REEZon=GXgetControlValue("_REEZONCOD")}};
_GXValidFnc[18]={lvl:0,grid:0,fnc:null,fld:"_REESUZCOD",gxvar:"AV76REESuz",op:[],ip:[],nacdep:[],v2v:function(Value){AV76REESuz=Value},v2c:function(){GXsetComboBoxValue("_REESUZCOD",AV76REESuz)},c2v:function(){AV76REESuz=GXgetControlValue("_REESUZCOD")}};
_GXValidFnc[20]={lvl:0,grid:0,fnc:null,fld:"_REEOBS1",gxvar:"AV70REEObs",op:[],ip:[],nacdep:[],v2v:function(Value){AV70REEObs=Value},v2c:function(){GXsetControlValue("_REEOBS1",AV70REEObs,0)},c2v:function(){AV70REEObs=GXgetControlValue("_REEOBS1")}};
_GXValidFnc[21]={lvl:0,grid:0,fnc:null,fld:"_REEOBS2",gxvar:"AV71REEObs",op:[],ip:[],nacdep:[],v2v:function(Value){AV71REEObs=Value},v2c:function(){GXsetControlValue("_REEOBS2",AV71REEObs,0)},c2v:function(){AV71REEObs=GXgetControlValue("_REEOBS2")}};
_GXValidFnc [ 24 ]={lvl: 2 ,grid: 28 ,pgrid: 0 ,fnc: null ,fld: "ENCPRGDESF" ,gxvar: "A2979EncPr" ,op:[  ],ip:[  ],v2v:function(Value){ A2979EncPr=Value },v2c:function(){ GXsetGridControlValue("ENCPRGDESF",GXCurrentRow[28],A2979EncPr,0) }, c2v:function(){ A2979EncPr=GXgetGridControlValue("ENCPRGDESF",GXCurrentRow[28]) }, nac:function(){return  null }};
_GXValidFnc [ 25 ]={lvl: 2 ,grid: 28 ,pgrid: 0 ,fnc: null ,fld: "_REEPUNT" ,gxvar: "AV62REEPun" ,op:[  ],ip:[  ],v2v:function(Value){ AV62REEPun=gxint(Value) },v2c:function(){ GXsetGridControlValue("_REEPUNT",GXCurrentRow[28],AV62REEPun,0) }, c2v:function(){ AV62REEPun=GXgetGridIntegerValue("_REEPUNT",GXCurrentRow[28]) }, nac:function(){return  null }};
_GXValidFnc [ 26 ]={lvl: 2 ,grid: 28 ,pgrid: 0 ,fnc: null ,fld: "ENCLIN" ,gxvar: "A3006EncLi" ,op:[  ],ip:[  ],v2v:function(Value){ A3006EncLi=gxint(Value) },v2c:function(){ GXsetGridControlValue("ENCLIN",GXCurrentRow[28],A3006EncLi,0) }, c2v:function(){ A3006EncLi=GXgetGridIntegerValue("ENCLIN",GXCurrentRow[28]) }, nac:function(){return  null }};
_GXValidFnc [ 27 ]={lvl: 2 ,grid: 28 ,pgrid: 0 ,fnc: null ,fld: "ENCPRGCOD" ,gxvar: "A2978EncPr" ,op:[  ],ip:[  ],v2v:function(Value){ A2978EncPr=Value },v2c:function(){ GXsetGridControlValue("ENCPRGCOD",GXCurrentRow[28],A2978EncPr,0) }, c2v:function(){ A2978EncPr=GXgetGridControlValue("ENCPRGCOD",GXCurrentRow[28]) }, nac:function(){return  null }};
this.AV63REECli=0;
this.AV64REECli=0;
this.AV78REEZon=0;
this.AV76REESuz=0;
this.AV70REEObs=0;
this.AV71REEObs=0;
_SetStandaloneVars( ) ;
