gx.evt.autoSkip=false;function hzfunc(){this.ServerClass="HZFunc";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV9FunCod=gx.fn.getIntegerValue("vFUNCOD",".")};this.Valid_Funnom=function(){try{if(gx.fn.currentGridRowImpl(20)===0){return true}var a=gx.util.balloon.getNew("FUNNOM",gx.fn.currentGridRowImpl(20));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e122w2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e142w1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,16,18,21,22,23];this.GXLastCtrlId=23;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",20,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzfunc",[],false,1,true,true,13,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(450,21,"FUNCOD","Função","","FunCod","int",0,"px",4,4,"right",null,[],450,"FunCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(452,22,"FUNNOM","Descrição","","FunNom","char",0,"px",30,30,"left",null,[],452,"FunNom",true,0,false,false);this.Subfile1Container.addSingleLineEdit(451,23,"FUNDESABRE","Abreviatura","","FunDesAbre","char",0,"px",12,12,"left",null,[],451,"FunDesAbre",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[18]={lvl:0,type:"char",len:30,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALEXPRESSAO",gxz:"ZV10ScrValExpressao",gxold:"OV10ScrValExpressao",gxvar:"AV10ScrValExpressao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10ScrValExpressao=a},v2z:function(a){gx.O.ZV10ScrValExpressao=a},v2c:function(){gx.fn.setControlValue("vSCRVALEXPRESSAO",gx.O.AV10ScrValExpressao,0)},c2v:function(){gx.O.AV10ScrValExpressao=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALEXPRESSAO")
},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:20,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"FUNCOD",gxz:"Z450FunCod",gxold:"O450FunCod",gxvar:"A450FunCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A450FunCod=gx.num.intval(a)},v2z:function(a){gx.O.Z450FunCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("FUNCOD",gx.fn.currentGridRowImpl(20),gx.O.A450FunCod,0)},c2v:function(){gx.O.A450FunCod=this.val()
},val:function(){return gx.fn.getGridIntegerValue("FUNCOD",gx.fn.currentGridRowImpl(20),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Subfile1Container,fnc:this.Valid_Funnom,isvalid:null,fld:"FUNNOM",gxz:"Z452FunNom",gxold:"O452FunNom",gxvar:"A452FunNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A452FunNom=a},v2z:function(a){gx.O.Z452FunNom=a},v2c:function(){gx.fn.setGridControlValue("FUNNOM",gx.fn.currentGridRowImpl(20),gx.O.A452FunNom,0)
},c2v:function(){gx.O.A452FunNom=this.val()},val:function(){return gx.fn.getGridControlValue("FUNNOM",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"FUNDESABRE",gxz:"Z451FunDesAbre",gxold:"O451FunDesAbre",gxvar:"A451FunDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A451FunDesAbre=a},v2z:function(a){gx.O.Z451FunDesAbre=a},v2c:function(){gx.fn.setGridControlValue("FUNDESABRE",gx.fn.currentGridRowImpl(20),gx.O.A451FunDesAbre,0)
},c2v:function(){gx.O.A451FunDesAbre=this.val()},val:function(){return gx.fn.getGridControlValue("FUNDESABRE",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.AV10ScrValExpressao="";this.ZV10ScrValExpressao="";this.OV10ScrValExpressao="";this.Z450FunCod=0;this.O450FunCod=0;this.Z452FunNom="";this.O452FunNom="";this.Z451FunDesAbre="";this.O451FunDesAbre="";this.AV9FunCod=0;this.A450FunCod=0;this.A452FunNom="";this.A451FunDesAbre="";this.ServerEvents=["e122w2_client","e142w1_client"];
this.VarControlMap.AV9FunCod={id:"vFUNCOD",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[18]);this.SetStandaloneVars()}hzfunc.prototype=new gx.GxObject;gx.setParentObj(new hzfunc());