gx.evt.autoSkip=false;function gx02p1(){this.ServerClass="Gx02P1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV8pHstNroSequencia=gx.fn.getIntegerValue("vPHSTNROSEQUENCIA",".");this.AV9pHdeNroLinha=gx.fn.getIntegerValue("vPHDENROLINHA",".")};this.e13bu2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bu1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,23,27,28,29,30,33];
this.GXLastCtrlId=33;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",26,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx02p1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",27,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(469,28,"HDENROLINH","Nr. linha","","HdeNroLinh","int",0,"px",2,2,"right",null,[],469,"HdeNroLinh",true,0,false,false);
this.Grid1Container.addSingleLineEdit(468,29,"HDEDESATUA","Descrição","Selecionar","HdeDesAtua","char",0,"px",45,45,"left",null,[],468,"HdeDesAtua",true,0,false,false);this.Grid1Container.addSingleLineEdit(476,30,"HSTNROSEQU","Nro histórico","","HstNroSequ","int",0,"px",10,10,"right",null,[],476,"HstNroSequ",false,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKHDENROLINHA",format:0,grid:0};
this.GXValidFnc[14]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCHDENROLINHA",gxz:"ZV6cHdeNroLinha",gxold:"OV6cHdeNroLinha",gxvar:"AV6cHdeNroLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cHdeNroLinha=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cHdeNroLinha=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCHDENROLINHA",gx.O.AV6cHdeNroLinha,0)},c2v:function(){gx.O.AV6cHdeNroLinha=this.val()
},val:function(){return gx.fn.getIntegerValue("vCHDENROLINHA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKHDEDESATUALIZACAO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:45,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCHDEDESATUALIZACAO",gxz:"ZV7cHdeDesAtualizacao",gxold:"OV7cHdeDesAtualizacao",gxvar:"AV7cHdeDesAtualizacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cHdeDesAtualizacao=a},v2z:function(a){gx.O.ZV7cHdeDesAtualizacao=a
},v2c:function(){gx.fn.setControlValue("vCHDEDESATUALIZACAO",gx.O.AV7cHdeDesAtualizacao,0)},c2v:function(){gx.O.AV7cHdeDesAtualizacao=this.val()},val:function(){return gx.fn.getControlValue("vCHDEDESATUALIZACAO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"GROUP2",grid:0};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[27]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"HDENROLINH",gxz:"Z469HdeNroLinh",gxold:"O469HdeNroLinh",gxvar:"A469HdeNroLinh",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A469HdeNroLinh=gx.num.intval(a)
},v2z:function(a){gx.O.Z469HdeNroLinh=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("HDENROLINH",gx.fn.currentGridRowImpl(26),gx.O.A469HdeNroLinh,0)},c2v:function(){gx.O.A469HdeNroLinh=this.val()},val:function(){return gx.fn.getGridIntegerValue("HDENROLINH",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"char",len:45,dec:0,sign:false,ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"HDEDESATUA",gxz:"Z468HdeDesAtua",gxold:"O468HdeDesAtua",gxvar:"A468HdeDesAtua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A468HdeDesAtua=a
},v2z:function(a){gx.O.Z468HdeDesAtua=a},v2c:function(){gx.fn.setGridControlValue("HDEDESATUA",gx.fn.currentGridRowImpl(26),gx.O.A468HdeDesAtua,0)},c2v:function(){gx.O.A468HdeDesAtua=this.val()},val:function(){return gx.fn.getGridControlValue("HDEDESATUA",gx.fn.currentGridRowImpl(26))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:26,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"HSTNROSEQU",gxz:"Z476HstNroSequ",gxold:"O476HstNroSequ",gxvar:"A476HstNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A476HstNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z476HstNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("HSTNROSEQU",gx.fn.currentGridRowImpl(26),gx.O.A476HstNroSequ,0)},c2v:function(){gx.O.A476HstNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("HSTNROSEQU",gx.fn.currentGridRowImpl(26),".")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TABLE4",grid:0};this.AV6cHdeNroLinha=0;this.ZV6cHdeNroLinha=0;this.OV6cHdeNroLinha=0;this.AV7cHdeDesAtualizacao="";this.ZV7cHdeDesAtualizacao="";
this.OV7cHdeDesAtualizacao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z469HdeNroLinh=0;this.O469HdeNroLinh=0;this.Z468HdeDesAtua="";this.O468HdeDesAtua="";this.Z476HstNroSequ=0;this.O476HstNroSequ=0;this.AV8pHstNroSequencia=0;this.AV9pHdeNroLinha=0;this.AV5LinkSelection="";this.A469HdeNroLinh=0;this.A468HdeDesAtua="";this.A476HstNroSequ=0;this.ServerEvents=["e13bu2_client","e14bu1_client"];this.VarControlMap.AV8pHstNroSequencia={id:"vPHSTNROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV9pHdeNroLinha={id:"vPHDENROLINHA",grid:0,type:"int"};
this.VarControlMap.AV8pHstNroSequencia={id:"vPHSTNROSEQUENCIA",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar({rfrVar:"AV8pHstNroSequencia"});this.SetStandaloneVars()}gx02p1.prototype=new gx.GxObject;gx.setParentObj(new gx02p1());