gx.evt.autoSkip=false;function gx00r0(){this.ServerClass="Gx00R0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV9pDocNro=gx.fn.getIntegerValue("vPDOCNRO",".");this.AV10pPlrTip=gx.fn.getControlValue("vPPLRTIP");this.AV11pPlrNro=gx.fn.getIntegerValue("vPPLRNRO",".")};this.e13b22_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14b21_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,28,32,33,34,35,38];this.GXLastCtrlId=38;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",31,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx00r0",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",32,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(258,33,"DOCNRO","Documento","","DocNro","int",0,"px",6,6,"right",null,[],258,"DocNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(682,34,"PLRTIP","Tipo","","PlrTip","char",0,"px",2,1,"left",null,[],682,"PlrTip",true,0,false,false);this.Grid1Container.addSingleLineEdit(681,35,"PLRNRO","Número palavra roteadora","Selecionar","PlrNro","int",0,"px",7,7,"right",null,[],681,"PlrNro",true,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:"TEXTBLOCKDOCNRO",format:0,grid:0};
this.GXValidFnc[14]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCDOCNRO",gxz:"ZV6cDocNro",gxold:"OV6cDocNro",gxvar:"AV6cDocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cDocNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cDocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCDOCNRO",gx.O.AV6cDocNro,0)},c2v:function(){gx.O.AV6cDocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCDOCNRO",".")
},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKPLRTIP",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPLRTIP",gxz:"ZV7cPlrTip",gxold:"OV7cPlrTip",gxvar:"AV7cPlrTip",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cPlrTip=a},v2z:function(a){gx.O.ZV7cPlrTip=a},v2c:function(){gx.fn.setControlValue("vCPLRTIP",gx.O.AV7cPlrTip,0)},c2v:function(){gx.O.AV7cPlrTip=this.val()},val:function(){return gx.fn.getControlValue("vCPLRTIP")
},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKPLRNRO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCPLRNRO",gxz:"ZV8cPlrNro",gxold:"OV8cPlrNro",gxvar:"AV8cPlrNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cPlrNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV8cPlrNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPLRNRO",gx.O.AV8cPlrNro,0)
},c2v:function(){gx.O.AV8cPlrNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCPLRNRO",".")},nac:function(){return false}};this.GXValidFnc[27]={fld:"GROUP2",grid:0};this.GXValidFnc[28]={fld:"TABLE3",grid:0};this.GXValidFnc[32]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:31,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(31))},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"DOCNRO",gxz:"Z258DocNro",gxold:"O258DocNro",gxvar:"A258DocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A258DocNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z258DocNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("DOCNRO",gx.fn.currentGridRowImpl(31),gx.O.A258DocNro,0)},c2v:function(){gx.O.A258DocNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("DOCNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PLRTIP",gxz:"Z682PlrTip",gxold:"O682PlrTip",gxvar:"A682PlrTip",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A682PlrTip=a
},v2z:function(a){gx.O.Z682PlrTip=a},v2c:function(){gx.fn.setGridControlValue("PLRTIP",gx.fn.currentGridRowImpl(31),gx.O.A682PlrTip,0)},c2v:function(){gx.O.A682PlrTip=this.val()},val:function(){return gx.fn.getGridControlValue("PLRTIP",gx.fn.currentGridRowImpl(31))},nac:function(){return false}};this.GXValidFnc[35]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:31,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PLRNRO",gxz:"Z681PlrNro",gxold:"O681PlrNro",gxvar:"A681PlrNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A681PlrNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z681PlrNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PLRNRO",gx.fn.currentGridRowImpl(31),gx.O.A681PlrNro,0)},c2v:function(){gx.O.A681PlrNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("PLRNRO",gx.fn.currentGridRowImpl(31),".")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TABLE4",grid:0};this.AV6cDocNro=0;this.ZV6cDocNro=0;this.OV6cDocNro=0;this.AV7cPlrTip="";this.ZV7cPlrTip="";this.OV7cPlrTip="";this.AV8cPlrNro=0;this.ZV8cPlrNro=0;
this.OV8cPlrNro=0;this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z258DocNro=0;this.O258DocNro=0;this.Z682PlrTip="";this.O682PlrTip="";this.Z681PlrNro=0;this.O681PlrNro=0;this.AV9pDocNro=0;this.AV10pPlrTip="";this.AV11pPlrNro=0;this.AV5LinkSelection="";this.A258DocNro=0;this.A682PlrTip="";this.A681PlrNro=0;this.ServerEvents=["e13b22_client","e14b21_client"];this.VarControlMap.AV9pDocNro={id:"vPDOCNRO",grid:0,type:"int"};this.VarControlMap.AV10pPlrTip={id:"vPPLRTIP",grid:0,type:"char"};this.VarControlMap.AV11pPlrNro={id:"vPPLRNRO",grid:0,type:"int"};
this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.SetStandaloneVars()}gx00r0.prototype=new gx.GxObject;gx.setParentObj(new gx00r0());