gx.evt.autoSkip=false;function hlareas(){this.ServerClass="HLAreas";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV8AreCod=gx.fn.getControlValue("vARECOD")};this.Valid_Aredes=function(){try{if(gx.fn.currentGridRowImpl(20)===0){return true}var a=gx.util.balloon.getNew("AREDES",gx.fn.currentGridRowImpl(20));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.e130s2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e150s1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,12,14,17,19,21,22];this.GXLastCtrlId=22;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",20,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hlareas",[],false,1,true,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(16,21,"AREDES","Área","","AreDes","char",0,"px",30,30,"left",null,[],16,"AreDes",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(15,22,"ARECOD","Descrição","","AreCod","char",0,"px",8,8,"left",null,[],15,"AreCod",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[14]={fld:"TABLE1",grid:0};this.GXValidFnc[17]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV9NomeContendo",gxold:"OV9NomeContendo",gxvar:"AV9NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9NomeContendo=a
},v2z:function(a){gx.O.ZV9NomeContendo=a},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV9NomeContendo,0)},c2v:function(){gx.O.AV9NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Subfile1Container,fnc:this.Valid_Aredes,isvalid:null,fld:"AREDES",gxz:"Z16AreDes",gxold:"O16AreDes",gxvar:"A16AreDes",ucs:[],op:[],ip:[21],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A16AreDes=a
},v2z:function(a){gx.O.Z16AreDes=a},v2c:function(){gx.fn.setGridControlValue("AREDES",gx.fn.currentGridRowImpl(20),gx.O.A16AreDes,0)},c2v:function(){gx.O.A16AreDes=this.val()},val:function(){return gx.fn.getGridControlValue("AREDES",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:20,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"ARECOD",gxz:"Z15AreCod",gxold:"O15AreCod",gxvar:"A15AreCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A15AreCod=a
},v2z:function(a){gx.O.Z15AreCod=a},v2c:function(){gx.fn.setGridControlValue("ARECOD",gx.fn.currentGridRowImpl(20),gx.O.A15AreCod,0)},c2v:function(){gx.O.A15AreCod=this.val()},val:function(){return gx.fn.getGridControlValue("ARECOD",gx.fn.currentGridRowImpl(20))},nac:function(){return false}};this.AV9NomeContendo="";this.ZV9NomeContendo="";this.OV9NomeContendo="";this.Z16AreDes="";this.O16AreDes="";this.Z15AreCod="";this.O15AreCod="";this.AV8AreCod="";this.A16AreDes="";this.A15AreCod="";this.ServerEvents=["e130s2_client","e150s1_client"];
this.VarControlMap.AV8AreCod={id:"vARECOD",grid:0,type:"char"};this.VarControlMap.AV10CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[19]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV10CharDB"});this.SetStandaloneVars()}hlareas.prototype=new gx.GxObject;gx.setParentObj(new hlareas());