gx.evt.autoSkip=false;function hzsetor(){this.ServerClass="HZSetor";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV20StrCod=gx.fn.getIntegerValue("vSTRCOD",".")};this.e11f82_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14f81_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,19,20];this.GXLastCtrlId=20;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",18,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzsetor",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit(1070,19,"STRCOD","Setor","","StrCod","int",0,"px",5,5,"right",null,[],1070,"StrCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(1071,20,"STRNOM","Nome setor","","StrNom","char",0,"px",50,50,"left",null,[],1071,"StrNom",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[19]={lvl:2,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"STRCOD",gxz:"Z1070StrCod",gxold:"O1070StrCod",gxvar:"A1070StrCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1070StrCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z1070StrCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("STRCOD",gx.fn.currentGridRowImpl(18),gx.O.A1070StrCod,0)},c2v:function(){gx.O.A1070StrCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("STRCOD",gx.fn.currentGridRowImpl(18),".")},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"STRNOM",gxz:"Z1071StrNom",gxold:"O1071StrNom",gxvar:"A1071StrNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A1071StrNom=a
},v2z:function(a){gx.O.Z1071StrNom=a},v2c:function(){gx.fn.setGridControlValue("STRNOM",gx.fn.currentGridRowImpl(18),gx.O.A1071StrNom,0)},c2v:function(){gx.O.A1071StrNom=this.val()},val:function(){return gx.fn.getGridControlValue("STRNOM",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.Z1070StrCod=0;this.O1070StrCod=0;this.Z1071StrNom="";this.O1071StrNom="";this.AV20StrCod=0;this.A1070StrCod=0;this.A1071StrNom="";this.ServerEvents=["e11f82_client","e14f81_client"];this.VarControlMap.AV20StrCod={id:"vSTRCOD",grid:0,type:"int"};
this.SetStandaloneVars()}hzsetor.prototype=new gx.GxObject;gx.setParentObj(new hzsetor());