/*
               File: NewsPaggedGrid
        Description: News Pagged Grid
             Author: GeneXus C# Generator version 10_0_2-16113
       Generated on: 4/30/2009 11:34:12.26
       Program type: Callable routine
          Main DBMS: sqlserver
*/
gx.evt.autoSkip = false;
function newspaggedgrid(CmpContext) {
   this.setObjectType("web");
   this.setCmpContext(CmpContext);
   this.hasEnterEvent = false;
   this.addKeyListener("5", "RFR");
   this.autoRefresh = true;
   this.SetStandaloneVars=function()
   {
      this.AV5artnbr=GXgetIntegerValue("_ARTNBR",gx.thousandSeparator) ;
      this.AV19FirstN=GXgetIntegerValue("_FIRSTNEWS",gx.thousandSeparator) ;
   }
   this.e147e2_client=function()
   {
      this.executeServerEvent("MORE.CLICK", true, arguments[0]);
      this.refreshServerOutputs([]);
   }
   this.e117e2_client=function()
   {
      this.executeServerEvent("PREVIOUS.CLICK", true);
      this.refreshServerOutputs([{av:"AV20pagenu",fld:"_PAGENUMBER"}]);
   }
   this.e127e2_client=function()
   {
      this.executeServerEvent("NEXT.CLICK", true);
      this.refreshServerOutputs([{av:"AV20pagenu",fld:"_PAGENUMBER"}]);
   }
   this.e167e2_client=function()
   {
      this.executeServerEvent("ENTER", true, arguments[0]);
      this.refreshServerOutputs([]);
   }
   this.e177e2_client=function()
   {
      this.executeServerEvent("CANCEL", true, arguments[0]);
      this.refreshServerOutputs([]);
   }
   this.GXValidFnc = [];
   this.GXCtrlIds=[41,63];
   this.GXLastCtrlId =63;
   this.StringContainer = new gxgrid(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);
   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',"e147e2_client");
   this.StringContainer.addSingleLineEdit(30,41,"NEWSID",gx.getMessage( "News"),gx.getMessage( "News"),"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,pic:"ZZZZZ9",ro:1,grid:9,gxgrid:this.StringContainer,fnc:null,isvalid:null,rgrid:[],fld:"NEWSID",gxz:"Z30NewsId",gxold:"O30NewsId",gxvar:"A30NewsId",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){_gxO.A30NewsId=gx.num.intval(Value)},v2z:function(Value){_gxO.Z30NewsId=gx.num.intval(Value)},v2c:function(){GXsetGridControlValue("NEWSID",gxCurrentGridRow(9),_gxO.A30NewsId,0)},c2v:function(){_gxO.A30NewsId=this.val()},val:function(){return GXgetGridIntegerValue("NEWSID",gxCurrentGridRow(9),gx.thousandSeparator)},nac:function(){return  false }};
   this.GXValidFnc[63]={lvl:0,type:"int",len:4,dec:0,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"_PAGENUMBER",gxz:"ZV20pagenu",gxold:"OV20pagenu",gxvar:"AV20pagenu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){_gxO.AV20pagenu=gx.num.intval(Value)},v2z:function(Value){_gxO.ZV20pagenu=gx.num.intval(Value)},v2c:function(){GXsetControlValue("_PAGENUMBER",_gxO.AV20pagenu,0)},c2v:function(){_gxO.AV20pagenu=this.val()},val:function(){return GXgetIntegerValue("_PAGENUMBER",gx.thousandSeparator)}};
   this.Z30NewsId = 0;
   this.AV20pagenu = 0;
   this.ZV20pagenu = 0;
   this.AV5artnbr = 0;
   this.AV19FirstN = 0;
   this.A10ArtNbr = 0;
   this.A35NewsDat = gx.date.nullDate();
   this.A159LangCo = "";
   this.A31NewsTit = "";
   this.A32NewsAbs = "";
   this.A34NewsDat = gx.date.nullDate();
   this.A30NewsId = 0;
   this.A39ImageUr = "";
   this.A37ImageId = 0;
   this.VarControlMap["AV5artnbr"] = "_ARTNBR";
   this.VarControlMap["AV19FirstN"] = "_FIRSTNEWS";
   this.StringContainer.addRefreshingVar({rfrVar:"AV5artnbr"});
   this.StringContainer.addRefreshingVar({rfrVar:"AV19FirstN"});
   this.SetStandaloneVars( );
   this.ServerClass =  "NewsPaggedGrid" ;
}
setExecutableComponent("newspaggedgrid");
