/*
               File: gol020
        Description: Seções e os Produtos
             Author: GeneXus C# Generator version 9_0_5-864
       Generated on: 9/20/2008 22:49:21.65
       Program type: Callable routine
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "." ;
this.gxThSep =  "," ;}
 bGXAutoskip = false;
this.hgol020SetStandaloneVars=function()
{
}
this.hgol020StandaloneModal=function()
{
}
this.hgol020standaloneModal143=function()
{
   if ( AnyError == 0 && ( A5267clpse != gxOldKey("A5267clpseA5268clpse") ) )
   {
      gxajaxloadCrl('gxLoad_5',new Array("A5267clpse"),new Array("A5268clpse"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("Não existe %1", "Seção do Produto"));
         AnyError = 1 ;
         gxUnsetSetKey("A5267clpseA5268clpse");
      }
      else
      {
         gxSetKey("A5267clpseA5268clpse","A5267clpse");
      }
   }
}
this.hgol020standaloneModal144=function()
{
   if ( AnyError == 0 && ( A5273clpca != gxOldKey("A5273clpcaA5274clpca") ) )
   {
      gxajaxloadCrl('gxLoad_3',new Array("A5273clpca"),new Array("A5274clpca"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("Não existe %1", "Categoria do Produto"));
         AnyError = 1 ;
         gxUnsetSetKey("A5273clpcaA5274clpca");
      }
      else
      {
         gxSetKey("A5273clpcaA5274clpca","A5273clpca");
      }
   }
}
this.hgol020gol020=function()
{
}
this.hgol020init=function()
{
}
hgol020GXValidFnc = new Array();
this.hgol020GXLastCtrlId =26;
hgol020GXValidFnc [ 4 ]={lvl: 2 ,grid: 6 ,pgrid: 0 ,fnc: null ,fld: "_CLPDES" ,gxvar: "AV6clpdes" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV6clpdes=Value },v2c:function(){ GXsetGridControlValue("_CLPDES",GXCurrentRow[6],AV6clpdes,0) }, c2v:function(){ AV6clpdes=GXgetGridControlValue("_CLPDES",GXCurrentRow[6]) }, nac:function(){return  null }};
hgol020GXValidFnc [ 5 ]={lvl: 2 ,grid: 6 ,pgrid: 0 ,fnc: null ,fld: "_CLPCODCDG" ,gxvar: "AV11clpcod" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV11clpcod=gxint(Value) },v2c:function(){ GXsetGridControlValue("_CLPCODCDG",GXCurrentRow[6],AV11clpcod,0) }, c2v:function(){ AV11clpcod=GXgetGridIntegerValue("_CLPCODCDG",GXCurrentRow[6]) }, nac:function(){return  null }};
hgol020GXValidFnc [ 10 ]={lvl: 3 ,grid: 8 ,pgrid: 0 ,fnc: null ,fld: "_CLPSECDES" ,gxvar: "AV8clpsecd" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV8clpsecd=Value },v2c:function(){ GXsetGridControlValue("_CLPSECDES",GXCurrentRow[8],AV8clpsecd,0) }, c2v:function(){ AV8clpsecd=GXgetGridControlValue("_CLPSECDES",GXCurrentRow[8]) }, nac:function(){return  null }};
hgol020GXValidFnc [ 11 ]={lvl: 3 ,grid: 8 ,pgrid: 0 ,fnc: null ,fld: "_CLPSECCOD" ,gxvar: "AV7clpsecc" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV7clpsecc=gxint(Value) },v2c:function(){ GXsetGridControlValue("_CLPSECCOD",GXCurrentRow[8],AV7clpsecc,0) }, c2v:function(){ AV7clpsecc=GXgetGridIntegerValue("_CLPSECCOD",GXCurrentRow[8]) }, nac:function(){return  null }};
hgol020GXValidFnc [ 13 ]={lvl: 4 ,grid: 15 ,pgrid: 8 ,fnc: null ,fld: "_CLPCATCOD" ,gxvar: "AV9clpcatc" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV9clpcatc=gxint(Value) },v2c:function(){ GXsetGridControlValue("_CLPCATCOD",GXCurrentRow[15],AV9clpcatc,0) }, c2v:function(){ AV9clpcatc=GXgetGridIntegerValue("_CLPCATCOD",GXCurrentRow[15]) }, nac:function(){return  null }};
hgol020GXValidFnc [ 14 ]={lvl: 4 ,grid: 15 ,pgrid: 8 ,fnc: null ,fld: "_CLPCATDES" ,gxvar: "AV10clpcat" ,op:[  ],ip:[  ]  ,v2v:function(Value){ AV10clpcat=Value },v2c:function(){ GXsetGridControlValue("_CLPCATDES",GXCurrentRow[15],AV10clpcat,0) }, c2v:function(){ AV10clpcat=GXgetGridControlValue("_CLPCATDES",GXCurrentRow[15]) }, nac:function(){return  null }};
hgol020GXValidFnc[21]={lvl:0,grid:0,fnc:null,fld:"_BANESQ01",gxvar:"AV26banesq",op:[],ip:[],nacdep:[],v2v:function(Value){AV26banesq=Value},v2c:function(){GXsetControlValue("_BANESQ01",AV26banesq,1)},c2v:function(){AV26banesq=GXgetControlValue("_BANESQ01")}};
hgol020GXValidFnc[26]={lvl:0,grid:0,fnc:null,fld:"_STAOBJ",gxvar:"AV12StaObj",op:[],ip:[],nacdep:[],v2v:function(Value){AV12StaObj=gxint(Value)},v2c:function(){GXsetControlValue("_STAOBJ",AV12StaObj,0)},c2v:function(){AV12StaObj=GXgetIntegerValue("_STAOBJ")}};
this.AV26banesq=0;
this.AV12StaObj=0;
hgol020SetStandaloneVars( ) ;
