/*
               File: Hivg_classificados
        Description: Classificados
             Author: GeneXus C# Generator version 10_0_4-23569
       Generated on: 11/14/2009 19:38:41.25
       Program type: Callable routine
          Main DBMS: mysql
*/
gx.evt.autoSkip = false;
function hivg_classificados(CmpContext) {
   this.setObjectType("web");
   this.setCmpContext(CmpContext);
   this.hasEnterEvent = false;
   this.addKeyListener("5", '"RFR"');
   this.SetStandaloneVars=function()
   {
      this.A40poolcod=GXgetIntegerValue("POOLCOD",'.') ;
   }
   this.e120a2_client=function()
   {
      this.executeServerEvent("ENTER", true, arguments[0]);
      this.refreshServerOutputs([]);
   }
   this.e130a2_client=function()
   {
      this.executeServerEvent("CANCEL", true, arguments[0]);
      this.refreshServerOutputs([]);
   }
   this.GXValidFnc = [];
   this.GXCtrlIds=[14,17,21];
   this.GXLastCtrlId =21;
   this.Grid1Container = new gxgrid(this, 2,"WbpLvl2",8,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hivg_classificados",[],true,1,true,true,15,true,false,false,"",100,"%","Novo registro",true,false,false);
   this.Grid1Container.startRow("","","","","","");
   this.Grid1Container.startCell("","","","","","","","","","");
   this.Grid1Container.startTable("Table2",11,"100%");
   this.Grid1Container.addHtmlCode("<TBODY>");
   this.Grid1Container.startRow("","","","","","");
   this.Grid1Container.startCell("","center","","","","","","","","");
   this.Grid1Container.addSingleLineEdit(73,14,"POOLBAIRRO","","","poolbairro","char",40,"chr",40,40,"right",null,[],73,"poolbairro",true,0,false,false,0);
   this.Grid1Container.endCell();
   this.Grid1Container.endRow();
   this.Grid1Container.startRow("","","","","","");
   this.Grid1Container.startCell("","center","","","","","","","","");
   this.Grid1Container.addSingleLineEdit(119,17,"TIPPDESC","","","tippdesc","char",18,"chr",18,18,"right",null,[],119,"tippdesc",true,0,false,false,0);
   this.Grid1Container.endCell();
   this.Grid1Container.endRow();
   this.Grid1Container.startRow("","","","","","");
   this.Grid1Container.startCell("","center","","","","","","","","");
   this.Grid1Container.addTextBlock('TEXTBLOCK1',null);
   this.Grid1Container.addHtmlCode("&nbsp;");
   this.Grid1Container.addSingleLineEdit(76,21,"POOLVALOR","","","poolvalor","decimal",14,"chr",14,12,"right",null,[],76,"poolvalor",true,2,false,false,0);
   this.Grid1Container.endCell();
   this.Grid1Container.endRow();
   this.Grid1Container.addHtmlCode("</TBODY>");
   this.Grid1Container.endTable();
   this.Grid1Container.endCell();
   this.Grid1Container.endRow();
   this.setGrid(this.Grid1Container);
   this.GXValidFnc[14]={lvl:2,type:"char",len:40,dec:0,sign:false,pic:"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",ro:1,grid:8,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"POOLBAIRRO",gxz:"Z73poolbai",gxold:"O73poolbai",gxvar:"A73poolbai",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){_gxO.A73poolbai=Value},v2z:function(Value){_gxO.Z73poolbai=Value},v2c:function(){GXsetGridControlValue("POOLBAIRRO",gxCurrentGridRow(8),_gxO.A73poolbai,0)},c2v:function(){_gxO.A73poolbai=this.val()},val:function(){return GXgetGridControlValue("POOLBAIRRO",gxCurrentGridRow(8))},nac:function(){return  false }};
   this.GXValidFnc[17]={lvl:2,type:"char",len:18,dec:0,sign:false,pic:"XXXXXXXXXXXXXXXXXX",ro:1,grid:8,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIPPDESC",gxz:"Z119tippde",gxold:"O119tippde",gxvar:"A119tippde",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){_gxO.A119tippde=Value},v2z:function(Value){_gxO.Z119tippde=Value},v2c:function(){GXsetGridControlValue("TIPPDESC",gxCurrentGridRow(8),_gxO.A119tippde,0)},c2v:function(){_gxO.A119tippde=this.val()},val:function(){return GXgetGridControlValue("TIPPDESC",gxCurrentGridRow(8))},nac:function(){return  false }};
   this.GXValidFnc[21]={lvl:2,type:"decimal",len:12,dec:2,sign:true,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:8,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"POOLVALOR",gxz:"Z76poolval",gxold:"O76poolval",gxvar:"A76poolval",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(Value){_gxO.A76poolval=GXtoDecimalValue(Value,',','.')},v2z:function(Value){_gxO.Z76poolval=GXtoDecimalValue(Value,'.',',')},v2c:function(){GXsetGridDecimalValue("POOLVALOR",gxCurrentGridRow(8),_gxO.A76poolval,2,',')},c2v:function(){_gxO.A76poolval=this.val()},val:function(){return GXgetGridDecimalValue("POOLVALOR",gxCurrentGridRow(8),'.',',')},nac:function(){return  false }};
   this.Z73poolbai = "";
   this.O73poolbai = "";
   this.Z119tippde = "";
   this.O119tippde = "";
   this.Z76poolval = 0;
   this.O76poolval = 0;
   this.A83poolcat = "";
   this.A85poolsta = "";
   this.A40poolcod = 0;
   this.A76poolval = 0;
   this.A119tippde = "";
   this.A73poolbai = "";
   this.A1imobcod = 0;
   this.A56tipcod = 0;
   this.VarControlMap["A40poolcod"] = {id:"POOLCOD",type:"int"};
   this.SetStandaloneVars( );
   this.ServerClass =  "Hivg_classificados" ;
}
