/*
               File: NewsPaggedGrid
        Description: News Pagged Grid
             Author: GeneXus C# Generator version 10_1_2-29801
       Generated on: 5/11/2010 22:48:12.75
       Program type: Callable routine
          Main DBMS: sqlserver
*/
gx.evt.autoSkip = false;
function newspaggedgrid(CmpContext) {
   this.ServerClass =  "NewsPaggedGrid" ;
   this.PackageName =  "GeneXus.Programs" ;
   this.setObjectType("web");
   this.setCmpContext(CmpContext);
   this.ReadonlyForm = true;
   this.hasEnterEvent = false;
   this.addKeyListener("5", '"RFR"');
   this.autoRefresh = true;
   this.SetStandaloneVars=function()
   {
      this.AV5artnbr=gx.fn.getIntegerValue("_ARTNBR",gx.thousandSeparator) ;
      this.AV19FirstNews=gx.fn.getIntegerValue("_FIRSTNEWS",gx.thousandSeparator) ;
   }
   this.Valid_Newsid=function()
   {
      try {
         if(  gx.fn.currentGridRowImpl(9) ===0) return true;
         var gxballoon = gx.util.balloon.getNew("NEWSID", gx.fn.currentGridRowImpl(9));
         this.AnyError  = 0;
         this.StandaloneModal( );
         this.StandaloneNotModal( );

      }
      catch(e){}
      try {
         if (gxballoon == null) return true; return gxballoon.show();
      }
      catch(e){}
      return true ;
   }
   this.e117e2_client=function()
   {
      this.executeServerEvent("PREVIOUS.CLICK", true);
   }
   this.e127e2_client=function()
   {
      this.executeServerEvent("NEXT.CLICK", true);
   }
   this.e157e2_client=function()
   {
      this.executeServerEvent("ENTER", true, arguments[0]);
   }
   this.e167e2_client=function()
   {
      this.executeServerEvent("CANCEL", true, arguments[0]);
   }
   this.GXValidFnc = [];
   this.GXCtrlIds=[41,63];
   this.GXLastCtrlId =63;
   this.StringContainer = new gx.grid.grid(this, 2,"WbpLvl2",9,"String","String","StringContainer",this.CmpContext,this.IsMasterPage,"newspaggedgrid",[],true,1,true,true,5,false,false,true,"",0,"px",gx.getMessage( "GXM_NewRow"),true,false,false,null,null,false);
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","top","","","","","","","");
   this.StringContainer.startTable("Tablenews",12,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","1px","","","");
   this.StringContainer.addTextBlock('IMAGE',null);
   this.StringContainer.endCell();
   this.StringContainer.startCell("","","","","","","8px","","","");
   this.StringContainer.endCell();
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.startTable("Tablendetails",18,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.startTable("Tabledate",21,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.addTextBlock('DATE',null);
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.startTable("Tableabstract",27,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.addTextBlock('TITLE',null);
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.startTable("Tablebody",33,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.addTextBlock('BODY',null);
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.startTable("Morenews2",37,"0px");
   this.StringContainer.addHtmlCode("<TBODY>");
   this.StringContainer.startRow("","","","","","");
   this.StringContainer.startCell("","","","","","","","","","");
   this.StringContainer.addTextBlock('MORE',null);
   this.StringContainer.addSingleLineEdit(30,41,"NEWSID","","","NewsId","int",6,"chr",6,6,"right",null,[],30,"NewsId",true,0,false,false);
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.StringContainer.addHtmlCode("</TBODY>");
   this.StringContainer.endTable();
   this.StringContainer.endCell();
   this.StringContainer.endRow();
   this.setGrid(this.StringContainer);
   this.GXValidFnc[41]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:9,gxgrid:this.StringContainer,fnc:this.Valid_Newsid,isvalid:null,rgrid:[],fld:"NEWSID",gxz:"Z30NewsId",gxold:"O30NewsId",gxvar:"A30NewsId",ucs:[],op:[],ip:[41],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.A30NewsId=gx.num.intval(Value)},v2z:function(Value){gx.O.Z30NewsId=gx.num.intval(Value)},v2c:function(){gx.fn.setGridControlValue("NEWSID",gx.fn.currentGridRowImpl(9),gx.O.A30NewsId,0)},c2v:function(){gx.O.A30NewsId=this.val()},val:function(){return gx.fn.getGridIntegerValue("NEWSID",gx.fn.currentGridRowImpl(9),gx.thousandSeparator)},nac:function(){return  false }};
   this.GXValidFnc[63]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"_PAGENUMBER",gxz:"ZV20pagenumber",gxold:"OV20pagenumber",gxvar:"AV20pagenumber",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){gx.O.AV20pagenumber=gx.num.intval(Value)},v2z:function(Value){gx.O.ZV20pagenumber=gx.num.intval(Value)},v2c:function(){gx.fn.setControlValue("_PAGENUMBER",gx.O.AV20pagenumber,0)},c2v:function(){gx.O.AV20pagenumber=this.val()},val:function(){return gx.fn.getIntegerValue("_PAGENUMBER",gx.thousandSeparator)}};
   this.Z30NewsId = 0;
   this.O30NewsId = 0;
   this.AV20pagenumber = 0;
   this.ZV20pagenumber = 0;
   this.OV20pagenumber = 0;
   this.AV5artnbr = 0;
   this.AV19FirstNews = 0;
   this.A10ArtNbr = 0;
   this.A35NewsDateTo = gx.date.nullDate();
   this.A159LangCode = "";
   this.A31NewsTitle = "";
   this.A32NewsAbstract = "";
   this.A288NewsURLSeo = "";
   this.A34NewsDateFrom = gx.date.nullDate();
   this.A30NewsId = 0;
   this.A39ImageUrl = "";
   this.A37ImageId = 0;
   this.ServerEvents = ["e117e2_client" ,"e127e2_client" ,"e157e2_client" ,"e167e2_client"];
   this.VarControlMap["AV5artnbr"] = {id:"_ARTNBR",grid:0,type:"int"};
   this.VarControlMap["AV19FirstNews"] = {id:"_FIRSTNEWS",grid:0,type:"int"};
   this.VarControlMap["AV10LangCode"] = {id:"_LANGCODE",grid:0,type:"char"};
   this.VarControlMap["AV5artnbr"] = {id:"_ARTNBR",grid:0,type:"int"};
   this.VarControlMap["AV19FirstNews"] = {id:"_FIRSTNEWS",grid:0,type:"int"};
   this.StringContainer.addRefreshingVar({rfrVar:"AV10LangCode"});
   this.StringContainer.addRefreshingVar({rfrVar:"AV5artnbr"});
   this.StringContainer.addRefreshingVar({rfrVar:"AV19FirstNews"});
   this.StringContainer.addRefreshingVar({rfrVar:"A30NewsId", rfrProp:"Visible"});
   this.StringContainer.addRefreshingVar({rfrVar:"A288NewsURLSeo"});
   this.StringContainer.addRefreshingVar({rfrVar:"AV21newsurlinit"});
   this.StringContainer.addRefreshingVar({rfrVar:"AV8countrows"});
   this.StringContainer.addRefreshingVar({rfrVar:"A39ImageUrl"});
   this.StringContainer.addRefreshingVar({rfrVar:"A32NewsAbstract"});
   this.StringContainer.addRefreshingVar({rfrVar:"A34NewsDateFrom"});
   this.StringContainer.addRefreshingVar({rfrVar:"A31NewsTitle"});
   this.SetStandaloneVars( );
}
gx.setExecutableComponent("newspaggedgrid");
