gx.evt.autoSkip=false;function hzlocal(){this.ServerClass="HZLocal";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV15LocCod=gx.fn.getIntegerValue("vLOCCOD",".")};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(24));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Locnom=function(){try{if(gx.fn.currentGridRowImpl(24)===0){return true}var a=gx.util.balloon.getNew("LOCNOM",gx.fn.currentGridRowImpl(24));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e12222_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15221_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,13,16,19,21,25,26,27];this.GXLastCtrlId=27;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",24,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzlocal",[],false,1,true,true,13,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit(922,25,"UNDCOD","Un.depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(509,26,"LOCCOD","Localização","","LocCod","int",0,"px",3,3,"right",null,[],509,"LocCod",true,0,false,false);this.Subfile1Container.addSingleLineEdit(512,27,"LOCNOM","Nome da localização","","LocNom","char",0,"px",45,45,"left",null,[],512,"LocNom",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};
this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[21]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vNOMECONTENDO",gxz:"ZV20NomeContendo",gxold:"OV20NomeContendo",gxvar:"AV20NomeContendo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20NomeContendo=a},v2z:function(a){gx.O.ZV20NomeContendo=a
},v2c:function(){gx.fn.setControlValue("vNOMECONTENDO",gx.O.AV20NomeContendo,0)},c2v:function(){gx.O.AV20NomeContendo=this.val()},val:function(){return gx.fn.getControlValue("vNOMECONTENDO")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[this.Subfile1Container],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[27],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(24),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"LOCCOD",gxz:"Z509LocCod",gxold:"O509LocCod",gxvar:"A509LocCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A509LocCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z509LocCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LOCCOD",gx.fn.currentGridRowImpl(24),gx.O.A509LocCod,0)},c2v:function(){gx.O.A509LocCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LOCCOD",gx.fn.currentGridRowImpl(24),".")},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:24,gxgrid:this.Subfile1Container,fnc:this.Valid_Locnom,isvalid:null,fld:"LOCNOM",gxz:"Z512LocNom",gxold:"O512LocNom",gxvar:"A512LocNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A512LocNom=a
},v2z:function(a){gx.O.Z512LocNom=a},v2c:function(){gx.fn.setGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(24),gx.O.A512LocNom,0)},c2v:function(){gx.O.A512LocNom=this.val()},val:function(){return gx.fn.getGridControlValue("LOCNOM",gx.fn.currentGridRowImpl(24))},nac:function(){return false}};this.AV20NomeContendo="";this.ZV20NomeContendo="";this.OV20NomeContendo="";this.Z922UndCod=0;this.O922UndCod=0;this.Z509LocCod=0;this.O509LocCod=0;this.Z512LocNom="";this.O512LocNom="";this.AV15LocCod=0;this.A922UndCod=0;
this.A509LocCod=0;this.A512LocNom="";this.ServerEvents=["e12222_client","e15221_client"];this.VarControlMap.AV15LocCod={id:"vLOCCOD",grid:0,type:"int"};this.VarControlMap.AV21CharDB={id:"vCHARDB",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV21CharDB"});this.Subfile1Container.addRefreshingVar({rfrVar:"A922UndCod",rfrProp:"Value"});this.SetStandaloneVars()}hzlocal.prototype=new gx.GxObject;gx.setParentObj(new hzlocal());