/*
               File: mnewshist
        Description: mnewshist
             Author: GeneXus C# Generator version 10_1_2-30722
       Generated on: 5/19/2010 17:13:30.4
       Program type: Callable routine
          Main DBMS: sqlserver
*/
gx.evt.autoSkip = false;
function mnewshist() {
   this.ServerClass =  "mnewshist" ;
   this.PackageName =  "GeneXus.Programs" ;
   this.setObjectType("web");
   this.hasEnterEvent = false;
   this.addKeyListener("5", '"RFR"');
   this.autoRefresh = true;
   this.SetStandaloneVars=function()
   {
      this.AV8NewsCategories=gx.fn.getIntegerValue("_NEWSCATEGORIES",gx.thousandSeparator) ;
   }
   this.e123q2_client=function()
   {
      this.executeServerEvent("'NEXT'", true, arguments[0]);
   }
   this.e113q2_client=function()
   {
      this.executeServerEvent("'PREVIEWS'", true, arguments[0]);
   }
   this.e153q2_client=function()
   {
      this.executeServerEvent("ENTER", true, arguments[0]);
   }
   this.e163q2_client=function()
   {
      this.executeServerEvent("CANCEL", true, arguments[0]);
   }
   this.GXValidFnc = [];
   this.GXLastCtrlId =0;
   this.Grid1Container = new gx.grid.grid(this, 2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"mnewshist",[],true,1,true,true,0,false,false,false,"",492,"px",gx.getMessage( "GXM_NewRow"),true,false,false,null,null,false);
   this.Grid1Container.startRow("","","","","","");
   this.Grid1Container.startCell("","","","","","","","","","");
   this.Grid1Container.addTextBlock('NEWSTITLE',null);
   this.Grid1Container.endCell();
   this.Grid1Container.endRow();
   this.setGrid(this.Grid1Container);
   this.AV8NewsCategories = 0;
   this.A74NewsCompany = 0;
   this.A109NewsCategories = 0;
   this.A76NewsLanguage = 0;
   this.A64NewsTitle = "";
   this.A226NewsDatePublication = gx.date.nullDate();
   this.A62NewsId = 0;
   this.A241NewsEnabled = "";
   this.A67NewsBody = "";
   this.ServerEvents = ["e123q2_client" ,"e113q2_client" ,"e153q2_client" ,"e163q2_client"];
   this.VarControlMap["A241NewsEnabled"] = {id:"NEWSENABLED",grid:0,type:"char"};
   this.VarControlMap["AV8NewsCategories"] = {id:"_NEWSCATEGORIES",grid:0,type:"int"};
   this.VarControlMap["AV14LanguageId"] = {id:"_LANGUAGEID",grid:0,type:"int"};
   this.VarControlMap["AV13CompanyId"] = {id:"_COMPANYID",grid:0,type:"int"};
   this.VarControlMap["AV9NewsId"] = {id:"_NEWSID",grid:0,type:"int"};
   this.VarControlMap["AV8NewsCategories"] = {id:"_NEWSCATEGORIES",grid:0,type:"int"};
   this.Grid1Container.addRefreshingVar({rfrVar:"AV14LanguageId"});
   this.Grid1Container.addRefreshingVar({rfrVar:"AV13CompanyId"});
   this.Grid1Container.addRefreshingVar({rfrVar:"AV9NewsId"});
   this.Grid1Container.addRefreshingVar({rfrVar:"AV8NewsCategories"});
   this.Grid1Container.addRefreshingVar({rfrVar:"A62NewsId"});
   this.Grid1Container.addRefreshingVar({rfrVar:"A64NewsTitle"});
   this.Grid1Container.addRefreshingVar({rfrVar:"A226NewsDatePublication"});
   this.SetStandaloneVars( );
}
mnewshist.prototype = new gx.GxObject;
gx.setParentObj(new mnewshist());
