gx.evt.autoSkip=false;function gx0400(){this.ServerClass="Gx0400";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV12pLeiCod=gx.fn.getIntegerValue("vPLEICOD",".")};this.e13av2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14av1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,43,47,48,49,50,51,52,53,56];
this.GXLastCtrlId=56;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",46,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0400",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",47,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(497,48,"LEICOD","Leitor","","LeiCod","int",0,"px",4,4,"right",null,[],497,"LeiCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(499,49,"LEINOMLEIT","Nome do leitor","Selecionar","LeiNomLeit","char",0,"px",35,35,"left",null,[],499,"LeiNomLeit",true,0,false,false);
this.Grid1Container.addSingleLineEdit(498,50,"LEIDESSETO","Setor","","LeiDesSeto","char",0,"px",20,20,"left",null,[],498,"LeiDesSeto",true,0,false,false);this.Grid1Container.addSingleLineEdit(500,51,"LEINRORAMA","Ramal","","LeiNroRama","char",0,"px",10,10,"left",null,[],500,"LeiNroRama",true,0,false,false);this.Grid1Container.addSingleLineEdit(495,52,"LEICAMPO1L","Campo livre 1","","LeiCampo1L","char",0,"px",1,1,"left",null,[],495,"LeiCampo1L",true,0,false,false);this.Grid1Container.addSingleLineEdit(496,53,"LEICAMPO2L","Campo livre 2","","LeiCampo2L","char",0,"px",15,15,"left",null,[],496,"LeiCampo2L",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:"TEXTBLOCKLEICOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCLEICOD",gxz:"ZV6cLeiCod",gxold:"OV6cLeiCod",gxvar:"AV6cLeiCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cLeiCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cLeiCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCLEICOD",gx.O.AV6cLeiCod,0)},c2v:function(){gx.O.AV6cLeiCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCLEICOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKLEINOMLEITOR",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLEINOMLEITOR",gxz:"ZV7cLeiNomLeitor",gxold:"OV7cLeiNomLeitor",gxvar:"AV7cLeiNomLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cLeiNomLeitor=a
},v2z:function(a){gx.O.ZV7cLeiNomLeitor=a},v2c:function(){gx.fn.setControlValue("vCLEINOMLEITOR",gx.O.AV7cLeiNomLeitor,0)},c2v:function(){gx.O.AV7cLeiNomLeitor=this.val()},val:function(){return gx.fn.getControlValue("vCLEINOMLEITOR")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKLEIDESSETOR",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLEIDESSETOR",gxz:"ZV8cLeiDesSetor",gxold:"OV8cLeiDesSetor",gxvar:"AV8cLeiDesSetor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cLeiDesSetor=a
},v2z:function(a){gx.O.ZV8cLeiDesSetor=a},v2c:function(){gx.fn.setControlValue("vCLEIDESSETOR",gx.O.AV8cLeiDesSetor,0)},c2v:function(){gx.O.AV8cLeiDesSetor=this.val()},val:function(){return gx.fn.getControlValue("vCLEIDESSETOR")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKLEINRORAMAL",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLEINRORAMAL",gxz:"ZV9cLeiNroRamal",gxold:"OV9cLeiNroRamal",gxvar:"AV9cLeiNroRamal",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cLeiNroRamal=a
},v2z:function(a){gx.O.ZV9cLeiNroRamal=a},v2c:function(){gx.fn.setControlValue("vCLEINRORAMAL",gx.O.AV9cLeiNroRamal,0)},c2v:function(){gx.O.AV9cLeiNroRamal=this.val()},val:function(){return gx.fn.getControlValue("vCLEINRORAMAL")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKLEICAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLEICAMPO1LIVRE",gxz:"ZV10cLeiCampo1Livre",gxold:"OV10cLeiCampo1Livre",gxvar:"AV10cLeiCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cLeiCampo1Livre=a
},v2z:function(a){gx.O.ZV10cLeiCampo1Livre=a},v2c:function(){gx.fn.setControlValue("vCLEICAMPO1LIVRE",gx.O.AV10cLeiCampo1Livre,0)},c2v:function(){gx.O.AV10cLeiCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCLEICAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKLEICAMPO2LIVRE",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCLEICAMPO2LIVRE",gxz:"ZV11cLeiCampo2Livre",gxold:"OV11cLeiCampo2Livre",gxvar:"AV11cLeiCampo2Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cLeiCampo2Livre=a
},v2z:function(a){gx.O.ZV11cLeiCampo2Livre=a},v2c:function(){gx.fn.setControlValue("vCLEICAMPO2LIVRE",gx.O.AV11cLeiCampo2Livre,0)},c2v:function(){gx.O.AV11cLeiCampo2Livre=this.val()},val:function(){return gx.fn.getControlValue("vCLEICAMPO2LIVRE")},nac:function(){return false}};this.GXValidFnc[42]={fld:"GROUP2",grid:0};this.GXValidFnc[43]={fld:"TABLE3",grid:0};this.GXValidFnc[47]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:46,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(46))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"LEICOD",gxz:"Z497LeiCod",gxold:"O497LeiCod",gxvar:"A497LeiCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A497LeiCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z497LeiCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LEICOD",gx.fn.currentGridRowImpl(46),gx.O.A497LeiCod,0)},c2v:function(){gx.O.A497LeiCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LEICOD",gx.fn.currentGridRowImpl(46),".")},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LEINOMLEIT",gxz:"Z499LeiNomLeit",gxold:"O499LeiNomLeit",gxvar:"A499LeiNomLeit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A499LeiNomLeit=a
},v2z:function(a){gx.O.Z499LeiNomLeit=a},v2c:function(){gx.fn.setGridControlValue("LEINOMLEIT",gx.fn.currentGridRowImpl(46),gx.O.A499LeiNomLeit,0)},c2v:function(){gx.O.A499LeiNomLeit=this.val()},val:function(){return gx.fn.getGridControlValue("LEINOMLEIT",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LEIDESSETO",gxz:"Z498LeiDesSeto",gxold:"O498LeiDesSeto",gxvar:"A498LeiDesSeto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A498LeiDesSeto=a
},v2z:function(a){gx.O.Z498LeiDesSeto=a},v2c:function(){gx.fn.setGridControlValue("LEIDESSETO",gx.fn.currentGridRowImpl(46),gx.O.A498LeiDesSeto,0)},c2v:function(){gx.O.A498LeiDesSeto=this.val()},val:function(){return gx.fn.getGridControlValue("LEIDESSETO",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LEINRORAMA",gxz:"Z500LeiNroRama",gxold:"O500LeiNroRama",gxvar:"A500LeiNroRama",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A500LeiNroRama=a
},v2z:function(a){gx.O.Z500LeiNroRama=a},v2c:function(){gx.fn.setGridControlValue("LEINRORAMA",gx.fn.currentGridRowImpl(46),gx.O.A500LeiNroRama,0)},c2v:function(){gx.O.A500LeiNroRama=this.val()},val:function(){return gx.fn.getGridControlValue("LEINRORAMA",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LEICAMPO1L",gxz:"Z495LeiCampo1L",gxold:"O495LeiCampo1L",gxvar:"A495LeiCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A495LeiCampo1L=a
},v2z:function(a){gx.O.Z495LeiCampo1L=a},v2c:function(){gx.fn.setGridControlValue("LEICAMPO1L",gx.fn.currentGridRowImpl(46),gx.O.A495LeiCampo1L,0)},c2v:function(){gx.O.A495LeiCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("LEICAMPO1L",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:46,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"LEICAMPO2L",gxz:"Z496LeiCampo2L",gxold:"O496LeiCampo2L",gxvar:"A496LeiCampo2L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A496LeiCampo2L=a
},v2z:function(a){gx.O.Z496LeiCampo2L=a},v2c:function(){gx.fn.setGridControlValue("LEICAMPO2L",gx.fn.currentGridRowImpl(46),gx.O.A496LeiCampo2L,0)},c2v:function(){gx.O.A496LeiCampo2L=this.val()},val:function(){return gx.fn.getGridControlValue("LEICAMPO2L",gx.fn.currentGridRowImpl(46))},nac:function(){return false}};this.GXValidFnc[56]={fld:"TABLE4",grid:0};this.AV6cLeiCod=0;this.ZV6cLeiCod=0;this.OV6cLeiCod=0;this.AV7cLeiNomLeitor="";this.ZV7cLeiNomLeitor="";this.OV7cLeiNomLeitor="";this.AV8cLeiDesSetor="";
this.ZV8cLeiDesSetor="";this.OV8cLeiDesSetor="";this.AV9cLeiNroRamal="";this.ZV9cLeiNroRamal="";this.OV9cLeiNroRamal="";this.AV10cLeiCampo1Livre="";this.ZV10cLeiCampo1Livre="";this.OV10cLeiCampo1Livre="";this.AV11cLeiCampo2Livre="";this.ZV11cLeiCampo2Livre="";this.OV11cLeiCampo2Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z497LeiCod=0;this.O497LeiCod=0;this.Z499LeiNomLeit="";this.O499LeiNomLeit="";this.Z498LeiDesSeto="";this.O498LeiDesSeto="";this.Z500LeiNroRama="";this.O500LeiNroRama="";
this.Z495LeiCampo1L="";this.O495LeiCampo1L="";this.Z496LeiCampo2L="";this.O496LeiCampo2L="";this.AV12pLeiCod=0;this.AV5LinkSelection="";this.A497LeiCod=0;this.A499LeiNomLeit="";this.A498LeiDesSeto="";this.A500LeiNroRama="";this.A495LeiCampo1L="";this.A496LeiCampo2L="";this.ServerEvents=["e13av2_client","e14av1_client"];this.VarControlMap.AV12pLeiCod={id:"vPLEICOD",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.SetStandaloneVars()}gx0400.prototype=new gx.GxObject;gx.setParentObj(new gx0400());