gx.evt.autoSkip=false;function habw011(){this.ServerClass="Habw011";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Undcod=function(){try{if(gx.fn.currentGridRowImpl(12)===0){return true}var a=gx.util.balloon.getNew("UNDCOD",gx.fn.currentGridRowImpl(12));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e14271_client=function(){this.clearMessages();
this.refreshOutputs([])};this.e12272_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15272_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,6,9,13,14,15,18,21,23,25];this.GXLastCtrlId=25;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",12,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"habw011",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(922,13,"UNDCOD","Unidade","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(925,14,"UNDNOMCOMP","Nome","","UndNomComp","char",0,"px",40,40,"left",null,[],925,"UndNomComp",true,0,false,false);this.Grid1Container.addSingleLineEdit("Nrotombo",15,"vNROTOMBO","Tombo","","NroTombo","int",0,"px",9,9,"right",null,[],"Nrotombo","NroTombo",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TEXTBLOCK1",format:0,grid:0};
this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[9]={fld:"FECHAR",format:2,grid:0};this.GXValidFnc[13]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:12,gxgrid:this.Grid1Container,fnc:this.Valid_Undcod,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],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(12),gx.O.A922UndCod,0)
},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(12),".")},nac:function(){return false}};this.GXValidFnc[14]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"UNDNOMCOMP",gxz:"Z925UndNomComp",gxold:"O925UndNomComp",gxvar:"A925UndNomComp",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A925UndNomComp=a},v2z:function(a){gx.O.Z925UndNomComp=a},v2c:function(){gx.fn.setGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(12),gx.O.A925UndNomComp,0)
},c2v:function(){gx.O.A925UndNomComp=this.val()},val:function(){return gx.fn.getGridControlValue("UNDNOMCOMP",gx.fn.currentGridRowImpl(12))},nac:function(){return false}};this.GXValidFnc[15]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:12,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNROTOMBO",gxz:"ZV9NroTombo",gxold:"OV9NroTombo",gxvar:"AV9NroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9NroTombo=gx.num.intval(a)},v2z:function(a){gx.O.ZV9NroTombo=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("vNROTOMBO",gx.fn.currentGridRowImpl(12),gx.O.AV9NroTombo,0)},c2v:function(){gx.O.AV9NroTombo=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNROTOMBO",gx.fn.currentGridRowImpl(12),".")},nac:function(){return false}};this.GXValidFnc[18]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={lvl:0,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vNROMAIORTOMBO",gxz:"ZV10NroMaiorTombo",gxold:"OV10NroMaiorTombo",gxvar:"AV10NroMaiorTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10NroMaiorTombo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10NroMaiorTombo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vNROMAIORTOMBO",gx.O.AV10NroMaiorTombo,0)},c2v:function(){gx.O.AV10NroMaiorTombo=this.val()},val:function(){return gx.fn.getIntegerValue("vNROMAIORTOMBO",".")},nac:function(){return false}};this.GXValidFnc[25]={fld:"JAVASCRIPT",format:2,grid:0};this.Z922UndCod=0;this.O922UndCod=0;this.Z925UndNomComp="";this.O925UndNomComp="";this.ZV9NroTombo=0;this.OV9NroTombo=0;this.AV10NroMaiorTombo=0;this.ZV10NroMaiorTombo=0;
this.OV10NroMaiorTombo=0;this.A922UndCod=0;this.A925UndNomComp="";this.AV9NroTombo=0;this.A315DvoNroTomb=0;this.ServerEvents=["e12272_client","e15272_client"];this.VarControlMap.A315DvoNroTomb={id:"DVONROTOMB",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[23]);this.Grid1Container.addRefreshingVar({rfrVar:"A315DvoNroTomb"});this.SetStandaloneVars()}habw011.prototype=new gx.GxObject;gx.setParentObj(new habw011());