gx.evt.autoSkip=false;function himh136(){this.ServerClass="HImh136";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.addKeyListener("6","e110t2_client");this.SetStandaloneVars=function(){};this.e110t2_client=function(){this.executeServerEvent("'INSERIR'",false)};this.e120t2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e160t2_client=function(){this.executeServerEvent("VIMGEXCLUIR.CLICK",true,arguments[0])};this.e170t2_client=function(){this.executeServerEvent("VIMGEDITAR.CLICK",true,arguments[0])
};this.e180t2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e190t2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,24,25,26,27];this.GXLastCtrlId=27;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",23,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh136",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Imgeditar","vIMGEDITAR",24,0,"px",17,"px","e170t2_client","","");
this.Grid1Container.addSingleLineEdit("Grdano",25,"vGRDANO","Ano","","GrdAno","int",0,"px",4,4,"right",null,[],"Grdano","GrdAno",true,0,false,false);this.Grid1Container.addSingleLineEdit("Grdvalorcamento",26,"vGRDVALORCAMENTO","Valor","","GrdValOrcamento","decimal",0,"px",14,12,"right",null,[],"Grdvalorcamento","GrdValOrcamento",true,2,false,false);this.Grid1Container.addBitmap("&Imgexcluir","vIMGEXCLUIR",27,0,"px",17,"px","e160t2_client","","");this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};
this.GXValidFnc[12]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"char",len:8,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCCTCOD",gxz:"ZV28CctCod",gxold:"OV28CctCod",gxvar:"AV28CctCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV28CctCod=a},v2z:function(a){gx.O.ZV28CctCod=a},v2c:function(){gx.fn.setControlValue("vCCTCOD",gx.O.AV28CctCod,0)
},c2v:function(){gx.O.AV28CctCod=this.val()},val:function(){return gx.fn.getControlValue("vCCTCOD")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEDITAR",gxz:"ZV26ImgEditar",gxold:"OV26ImgEditar",gxvar:"AV26ImgEditar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV26ImgEditar=a},v2z:function(a){gx.O.ZV26ImgEditar=a},v2c:function(){},c2v:function(){gx.O.AV26ImgEditar=this.val()
},val:function(){return gx.fn.getGridControlValue("vIMGEDITAR",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:23,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDANO",gxz:"ZV35GrdAno",gxold:"OV35GrdAno",gxvar:"AV35GrdAno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV35GrdAno=gx.num.intval(a)},v2z:function(a){gx.O.ZV35GrdAno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDANO",gx.fn.currentGridRowImpl(23),gx.O.AV35GrdAno,0)
},c2v:function(){gx.O.AV35GrdAno=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDANO",gx.fn.currentGridRowImpl(23),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:0,grid:23,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDVALORCAMENTO",gxz:"ZV36GrdValOrcamento",gxold:"OV36GrdValOrcamento",gxvar:"AV36GrdValOrcamento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV36GrdValOrcamento=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV36GrdValOrcamento=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("vGRDVALORCAMENTO",gx.fn.currentGridRowImpl(23),gx.O.AV36GrdValOrcamento,2,",")},c2v:function(){gx.O.AV36GrdValOrcamento=this.val()},val:function(){return gx.fn.getGridDecimalValue("vGRDVALORCAMENTO",gx.fn.currentGridRowImpl(23),".",",")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"bits",len:5,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vIMGEXCLUIR",gxz:"ZV27ImgExcluir",gxold:"OV27ImgExcluir",gxvar:"AV27ImgExcluir",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV27ImgExcluir=a
},v2z:function(a){gx.O.ZV27ImgExcluir=a},v2c:function(){},c2v:function(){gx.O.AV27ImgExcluir=this.val()},val:function(){return gx.fn.getGridControlValue("vIMGEXCLUIR",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.AV28CctCod="";this.ZV28CctCod="";this.OV28CctCod="";this.ZV26ImgEditar="";this.OV26ImgEditar="";this.ZV35GrdAno=0;this.OV35GrdAno=0;this.ZV36GrdValOrcamento=0;this.OV36GrdValOrcamento=0;this.ZV27ImgExcluir="";this.OV27ImgExcluir="";this.AV26ImgEditar="";this.AV35GrdAno=0;
this.AV36GrdValOrcamento=0;this.AV27ImgExcluir="";this.ServerEvents=["e110t2_client","e120t2_client","e160t2_client","e170t2_client","e180t2_client","e190t2_client"];this.VarControlMap.AV31QtdOrcamentos={id:"vQTDORCAMENTOS",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV31QtdOrcamentos"});this.SetStandaloneVars()}himh136.prototype=new gx.GxObject;gx.setParentObj(new himh136());