gx.evt.autoSkip=false;function hzmodref(){this.ServerClass="HZModRef";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV18TidIndForm=gx.fn.getControlValue("vTIDINDFORM")};this.e112y2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e142y1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,15,19,20,21];this.GXLastCtrlId=21;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",18,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hzmodref",[],false,1,true,true,12,true,false,false,"",300,"px","Novo registro",true,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit("Grdnrosequencia",19,"vGRDNROSEQUENCIA","Nro","","GrdNroSequencia","int",0,"px",3,3,"right",null,[],"Grdnrosequencia","GrdNroSequencia",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Codmodelo",20,"vCODMODELO","Modelo","","CodModelo","char",47,"px",3,3,"left",null,[],"Codmodelo","CodModelo",true,0,false,false);this.Subfile1Container.addSingleLineEdit("Dscmodelo",21,"vDSCMODELO","Descrição","","DscModelo","char",260,"px",50,50,"left",null,[],"Dscmodelo","DscModelo",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:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"vGRDNROSEQUENCIA",gxz:"ZV22GrdNroSequencia",gxold:"OV22GrdNroSequencia",gxvar:"AV22GrdNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22GrdNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV22GrdNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vGRDNROSEQUENCIA",gx.fn.currentGridRowImpl(18),gx.O.AV22GrdNroSequencia,0)},c2v:function(){gx.O.AV22GrdNroSequencia=this.val()},val:function(){return gx.fn.getGridIntegerValue("vGRDNROSEQUENCIA",gx.fn.currentGridRowImpl(18),".")},nac:function(){return false}};this.GXValidFnc[20]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vCODMODELO",gxz:"ZV20CodModelo",gxold:"OV20CodModelo",gxvar:"AV20CodModelo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV20CodModelo=a
},v2z:function(a){gx.O.ZV20CodModelo=a},v2c:function(){gx.fn.setGridControlValue("vCODMODELO",gx.fn.currentGridRowImpl(18),gx.O.AV20CodModelo,0)},c2v:function(){gx.O.AV20CodModelo=this.val()},val:function(){return gx.fn.getGridControlValue("vCODMODELO",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:18,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDSCMODELO",gxz:"ZV19DscModelo",gxold:"OV19DscModelo",gxvar:"AV19DscModelo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19DscModelo=a
},v2z:function(a){gx.O.ZV19DscModelo=a},v2c:function(){gx.fn.setGridControlValue("vDSCMODELO",gx.fn.currentGridRowImpl(18),gx.O.AV19DscModelo,0)},c2v:function(){gx.O.AV19DscModelo=this.val()},val:function(){return gx.fn.getGridControlValue("vDSCMODELO",gx.fn.currentGridRowImpl(18))},nac:function(){return false}};this.ZV22GrdNroSequencia=0;this.OV22GrdNroSequencia=0;this.ZV20CodModelo="";this.OV20CodModelo="";this.ZV19DscModelo="";this.OV19DscModelo="";this.AV18TidIndForm="";this.AV22GrdNroSequencia=0;
this.AV20CodModelo="";this.AV19DscModelo="";this.ServerEvents=["e112y2_client","e142y1_client"];this.VarControlMap.AV18TidIndForm={id:"vTIDINDFORM",grid:0,type:"char"};this.SetStandaloneVars()}hzmodref.prototype=new gx.GxObject;gx.setParentObj(new hzmodref());