gx.evt.autoSkip=false;function hztpleg(){this.ServerClass="HZTpLeg";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV15TipCod=gx.fn.getControlValue("vTIPCOD")};this.Valid_Tipdes=function(){try{if(gx.fn.currentGridRowImpl(14)===0){return true}var a=gx.util.balloon.getNew("TIPDES",gx.fn.currentGridRowImpl(14));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e12362_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15362_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,9,11,13,15,16];this.GXLastCtrlId=16;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",14,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hztpleg",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(881,15,"TIPCOD","Tipo","","TipCod","char",0,"px",3,3,"left",null,[],881,"TipCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(882,16,"TIPDES","Descrição","","TipDes","char",0,"px",30,30,"left",null,[],882,"TipDes",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[6]={fld:"TABLE2",grid:0};this.GXValidFnc[9]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[11]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV18NomeContendo",gxold:"OV18NomeContendo",gxvar:"AV18NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18NomeContendo=a
},v2z:function(a){gx.O.ZV18NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV18NomeContendo,0)},c2v:function(){gx.O.AV18NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[13]={fld:"IMAGE1",grid:0};this.GXValidFnc[15]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:14,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"TIPCOD",gxz:"Z881TipCod",gxold:"O881TipCod",gxvar:"A881TipCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A881TipCod=a
},v2z:function(a){gx.O.Z881TipCod=a},v2c:function(){gx.fn.setGridControlValue("TIPCOD",gx.fn.currentGridRowImpl(14),gx.O.A881TipCod,0)},c2v:function(){gx.O.A881TipCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIPCOD",gx.fn.currentGridRowImpl(14))},nac:function(){return false}};this.GXValidFnc[16]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:14,gxgrid:this.Subfile1Container,fnc:this.Valid_Tipdes,isvalid:null,fld:"TIPDES",gxz:"Z882TipDes",gxold:"O882TipDes",gxvar:"A882TipDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A882TipDes=a
},v2z:function(a){gx.O.Z882TipDes=a},v2c:function(){gx.fn.setGridControlValue("TIPDES",gx.fn.currentGridRowImpl(14),gx.O.A882TipDes,0)},c2v:function(){gx.O.A882TipDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIPDES",gx.fn.currentGridRowImpl(14))},nac:function(){return false}};this.AV18NomeContendo="";this.ZV18NomeContendo="";this.OV18NomeContendo="";this.Z881TipCod="";this.O881TipCod="";this.Z882TipDes="";this.O882TipDes="";this.AV15TipCod="";this.A881TipCod="";this.A882TipDes="";
this.ServerEvents=["e12362_client","e15362_client"];this.VarControlMap.AV15TipCod={id:"vTIPCOD",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[11]);this.SetStandaloneVars()}hztpleg.prototype=new gx.GxObject;gx.setParentObj(new hztpleg());