/*
               File: XpoWCNoticiasResenhaDestaque
        Description: Notícias - Resenha Centro
             Author: GeneXus C# Generator version 9_0_7-910
       Generated on: 11/12/2010 17:11:48.31
       Program type: Callable routine
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this.hxpowcnoticiasresenhadestaqueSetStandaloneVars=function()
{
   A64XpoNoti = GXgetIntegerValue("XPONOTICIAXPOEMPRESACODIGO")
   A65XpoNoti = GXgetControlValue("XPONOTICIAXPOPAGINACODIGO")
   A68XpoNoti = GXgetIntegerValue("XPONOTICIACODIGO")
   A996XpoNot = GXgetIntegerValue("XPONOTICIAQUANTIDADE")
   A189XpoNot = GXgetIntegerValue("XPONOTICIAXPOCATEGORIACODIGO")
   A737XpoCat = GXgetIntegerValue("XPOCATEGORIAXPOUSUARIONIVEL")
}
this.hxpowcnoticiasresenhadestaqueStandaloneModal=function()
{
   if ( AnyError == 0 && ( A64XpoNoti != gxOldKey("A64XpoNotiA1273XpoTo") || A65XpoNoti != gxOldKey("A65XpoNotiA1273XpoTo") || A187XpoNot != gxOldKey("A187XpoNotA1273XpoTo") ) )
   {
      gxajaxloadCrl('gxLoad_7',new Array("A64XpoNoti","A65XpoNoti","A187XpoNot"),new Array("A1273XpoTo","A385XpoTop"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("Não existe %1", "Tópico"));
         AnyError = 1 ;
         gxUnsetSetKey("A64XpoNotiA1273XpoTo");
         gxUnsetSetKey("A65XpoNotiA1273XpoTo");
         gxUnsetSetKey("A187XpoNotA1273XpoTo");
      }
      else
      {
         gxSetKey("A64XpoNotiA1273XpoTo","A64XpoNoti");
         gxSetKey("A65XpoNotiA1273XpoTo","A65XpoNoti");
         gxSetKey("A187XpoNotA1273XpoTo","A187XpoNot");
      }
   }
   if ( AnyError == 0 && ( A64XpoNoti != gxOldKey("A64XpoNotiA737XpoCat") || A65XpoNoti != gxOldKey("A65XpoNotiA737XpoCat") || A187XpoNot != gxOldKey("A187XpoNotA737XpoCat") || A189XpoNot != gxOldKey("A189XpoNotA737XpoCat") ) )
   {
      gxajaxloadCrl('gxLoad_8',new Array("A64XpoNoti","A65XpoNoti","A187XpoNot","A189XpoNot"),new Array("A737XpoCat"));
      if ( GXLastAjaxSt == 101 )
      {
         gxballoon.setError(gxFormat("Não existe %1", "Categoria"));
         AnyError = 1 ;
         gxUnsetSetKey("A64XpoNotiA737XpoCat");
         gxUnsetSetKey("A65XpoNotiA737XpoCat");
         gxUnsetSetKey("A187XpoNotA737XpoCat");
         gxUnsetSetKey("A189XpoNotA737XpoCat");
      }
      else
      {
         gxSetKey("A64XpoNotiA737XpoCat","A64XpoNoti");
         gxSetKey("A65XpoNotiA737XpoCat","A65XpoNoti");
         gxSetKey("A187XpoNotA737XpoCat","A187XpoNot");
         gxSetKey("A189XpoNotA737XpoCat","A189XpoNot");
      }
   }
   try {
      A996XpoNot = gxAggSelInteger("XPONOTICIAQUANTIDADE","5",["A64XpoNoti","A65XpoNoti","A68XpoNoti"]) ;
   }
   catch(e){}
}
this.hxpowcnoticiasresenhadestaquexpowcnoticiasresenhadestaque=function()
{
}
this.hxpowcnoticiasresenhadestaqueinit=function()
{
}
hxpowcnoticiasresenhadestaqueGXValidFnc = new Array();
this.hxpowcnoticiasresenhadestaqueGXLastCtrlId =8;
hxpowcnoticiasresenhadestaqueGXValidFnc [ 7 ]={lvl: 2 ,grid: 2 ,pgrid: 0 ,fnc: null ,fld: "_COMPRAR" ,gxvar: "AV32Compra" ,op:[  ],ip:[  ],v2v:function(Value){ AV32Compra=Value },v2c:function(){ GXsetGridControlValue("_COMPRAR",GXCurrentRow[2],AV32Compra,1) }, c2v:function(){ AV32Compra=GXgetGridControlValue("_COMPRAR",GXCurrentRow[2]) }, nac:function(){return  null }};
hxpowcnoticiasresenhadestaqueGXValidFnc [ 8 ]={lvl: 2 ,grid: 2 ,pgrid: 0 ,fnc: null ,fld: "_LEIAMAIS" ,gxvar: "AV17leiama" ,op:[  ],ip:[  ],v2v:function(Value){ AV17leiama=Value },v2c:function(){ GXsetGridControlValue("_LEIAMAIS",GXCurrentRow[2],AV17leiama,1) }, c2v:function(){ AV17leiama=GXgetGridControlValue("_LEIAMAIS",GXCurrentRow[2]) }, nac:function(){return  null }};
hxpowcnoticiasresenhadestaqueSetStandaloneVars( ) ;

