gx.evt.autoSkip=false;function hlcentc(){this.ServerClass="HLCentC";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV5CctCod=gx.fn.getControlValue("vCCTCOD")};this.Valid_Cctnomcent=function(){try{if(gx.fn.currentGridRowImpl(26)===0){return true}var a=gx.util.balloon.getNew("CCTNOMCENT",gx.fn.currentGridRowImpl(26));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e130r2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e150r1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,18,21,23,27,28,29];this.GXLastCtrlId=29;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hlcentc",[],false,1,false,true,12,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit(97,27,"CCTCOD","Centro de custo","","CctCod","char",0,"px",8,8,"left",null,[],97,"CctCod",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(98,28,"CCTNOMCENT","Nome","","CctNomCent","char",185,"px",35,35,"left",null,[],98,"CctNomCent",true,0,false,false);this.Subfile1Container.addSingleLineEdit(16,29,"AREDES","Área","","AreDes","char",0,"px",30,30,"left",null,[],16,"AreDes",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};
this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={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[27]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"CCTCOD",gxz:"Z97CctCod",gxold:"O97CctCod",gxvar:"A97CctCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A97CctCod=a},v2z:function(a){gx.O.Z97CctCod=a},v2c:function(){gx.fn.setGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(26),gx.O.A97CctCod,0)},c2v:function(){gx.O.A97CctCod=this.val()
},val:function(){return gx.fn.getGridControlValue("CCTCOD",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:this.Valid_Cctnomcent,isvalid:null,fld:"CCTNOMCENT",gxz:"Z98CctNomCent",gxold:"O98CctNomCent",gxvar:"A98CctNomCent",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A98CctNomCent=a},v2z:function(a){gx.O.Z98CctNomCent=a},v2c:function(){gx.fn.setGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(26),gx.O.A98CctNomCent,0)
},c2v:function(){gx.O.A98CctNomCent=this.val()},val:function(){return gx.fn.getGridControlValue("CCTNOMCENT",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"AREDES",gxz:"Z16AreDes",gxold:"O16AreDes",gxvar:"A16AreDes",ucs:[],op:[],ip:[],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(26),gx.O.A16AreDes,0)
},c2v:function(){gx.O.A16AreDes=this.val()},val:function(){return gx.fn.getGridControlValue("AREDES",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.AV9NomeContendo="";this.ZV9NomeContendo="";this.OV9NomeContendo="";this.Z97CctCod="";this.O97CctCod="";this.Z98CctNomCent="";this.O98CctNomCent="";this.Z16AreDes="";this.O16AreDes="";this.AV5CctCod="";this.A15AreCod="";this.A97CctCod="";this.A98CctNomCent="";this.A16AreDes="";this.ServerEvents=["e130r2_client","e150r1_client"];this.VarControlMap.AV5CctCod={id:"vCCTCOD",grid:0,type:"char"};
this.VarControlMap.AV10CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[23]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV10CharDB"});this.SetStandaloneVars()}hlcentc.prototype=new gx.GxObject;gx.setParentObj(new hlcentc());