gx.evt.autoSkip=false;function tpet011(){this.ServerClass="Tpet011";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.addKeyListener("2",'"LISTA"');this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Assnro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Assnro",["gx.O.A57AssNro","gx.O.A652PerNro"],["A652PerNro","A642PerDesAbre","A643PerDesLong","A654PerNroIssn","A655PerQtdDias","A683PrdCod","A684PrdDes","Gx_mode","Z57AssNro","Z652PerNro","Z642PerDesAbre","Z643PerDesLong","Z654PerNroIssn","Z655PerQtdDias","Z683PrdCod","Z684PrdDes","Grid1",["BTN_GET","Enabled"],["BTN_ENTER","Enabled"],["BTN_CHECK","Enabled"]]);
return true};this.Valid_Pernro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Pernro",["gx.O.A652PerNro","gx.O.A683PrdCod","gx.O.A642PerDesAbre","gx.O.A643PerDesLong","gx.O.A654PerNroIssn","gx.O.A655PerQtdDias","gx.O.A684PrdDes"],["A642PerDesAbre","A643PerDesLong","A654PerNroIssn","A655PerQtdDias","A683PrdCod","A684PrdDes"]);return true};this.Valid_Prdcod=function(){try{var a=gx.util.balloon.getNew("PRDCOD");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true
};this.Valid_Leicod=function(){this.sMode145=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(145,60);this.standaloneModal5B145();this.standaloneNotModal5B145();if(gx.fn.currentGridRowImpl(60)===0){return true}var a=gx.util.balloon.getNew("LEICOD",gx.fn.currentGridRowImpl(60));if(gx.fn.gridDuplicateKey(62)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1;return a.show()}gx.ajax.validSrvEvt("dyncall","Valid_Leicod",["gx.O.A497LeiCod","gx.O.A498LeiDesSeto","gx.O.A499LeiNomLeit","gx.O.A500LeiNroRama"],["A498LeiDesSeto","A499LeiNomLeit","A500LeiNroRama"]);
this.Gx_mode=this.sMode145;return true};this.standaloneModal5B145=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("LEICOD","Enabled",0)}else{gx.fn.setCtrlProperty("LEICOD","Enabled",1)}}catch(a){}return true};this.standaloneNotModal5B145=function(){return true};this.e125b116_client=function(){this.clearMessages();this.refreshOutputs([])};this.e135b116_client=function(){this.executeServerEvent("ENTER",true)};this.e145b116_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[2,15,18,20,24,26,29,31,34,36,39,41,44,46,49,51,54,56,61,62,63,64,65,66,67,75];this.GXLastCtrlId=75;this.Grid1Container=new gx.grid.grid(this,145,"Level1",60,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"tpet011",[497],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("nRcdDeleted_145",61,"vNRCDDELETED_145","","","nRcdDeleted_145","int",0,"px",4,4,"right",null,[],"nRcdDeleted_145","nRcdDeleted_145",true,0,false,false);
this.Grid1Container.addSingleLineEdit(497,62,"LEICOD","Leitor","","LeiCod","int",0,"px",4,4,"right",null,[],497,"LeiCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_497","PROMPT_497",76,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(498,63,"LEIDESSETO","Setor","","LeiDesSeto","char",0,"px",20,20,"left",null,[],498,"LeiDesSeto",true,0,false,false);this.Grid1Container.addSingleLineEdit(499,64,"LEINOMLEIT","Nome do leitor","","LeiNomLeit","char",0,"px",35,35,"left",null,[],499,"LeiNomLeit",true,0,false,false);
this.Grid1Container.addSingleLineEdit(500,65,"LEINRORAMA","Ramal","","LeiNroRama","char",0,"px",10,10,"left",null,[],500,"LeiNroRama",true,0,false,false);this.Grid1Container.addSingleLineEdit(520,66,"LRCNROSEQ","Sequência do leitor","","LrcNroSeq","int",0,"px",4,4,"right",null,[],520,"LrcNroSeq",true,0,false,false);this.Grid1Container.addSingleLineEdit(521,67,"LRCQTDDIAS","Dias prazo","","LrcQtdDias","int",0,"px",2,2,"right",null,[],521,"LrcQtdDias",true,0,false,false);this.setGrid(this.Grid1Container);
this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Assnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[26],ip:[26,20],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A57AssNro=gx.num.intval(a)},v2z:function(a){gx.O.Z57AssNro=gx.num.intval(a)
},v2c:function(){gx.fn.setControlValue("ASSNRO",gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getIntegerValue("ASSNRO",".")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:0,grid:0,gxgrid:null,fnc:this.Valid_Pernro,isvalid:null,rgrid:[],fld:"PERNRO",gxz:"Z652PerNro",gxold:"O652PerNro",gxvar:"A652PerNro",ucs:[],op:[36,31,56,51,46,41],ip:[36,56,51,46,41,31,26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A652PerNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z652PerNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PERNRO",gx.O.A652PerNro,0)},c2v:function(){gx.O.A652PerNro=this.val()},val:function(){return gx.fn.getIntegerValue("PERNRO",".")},nac:function(){return false}};this.GXValidFnc[29]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[31]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Prdcod,isvalid:null,fld:"PRDCOD",gxz:"Z683PrdCod",gxold:"O683PrdCod",gxvar:"A683PrdCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A683PrdCod=a
},v2z:function(a){gx.O.Z683PrdCod=a},v2c:function(){gx.fn.setControlValue("PRDCOD",gx.O.A683PrdCod,0)},c2v:function(){gx.O.A683PrdCod=this.val()},val:function(){return gx.fn.getControlValue("PRDCOD")},nac:function(){return false}};this.GXValidFnc[34]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[36]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PRDDES",gxz:"Z684PrdDes",gxold:"O684PrdDes",gxvar:"A684PrdDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A684PrdDes=a
},v2z:function(a){gx.O.Z684PrdDes=a},v2c:function(){gx.fn.setControlValue("PRDDES",gx.O.A684PrdDes,0)},c2v:function(){gx.O.A684PrdDes=this.val()},val:function(){return gx.fn.getControlValue("PRDDES")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[41]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDESABRE",gxz:"Z642PerDesAbre",gxold:"O642PerDesAbre",gxvar:"A642PerDesAbre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A642PerDesAbre=a
},v2z:function(a){gx.O.Z642PerDesAbre=a},v2c:function(){gx.fn.setControlValue("PERDESABRE",gx.O.A642PerDesAbre,0)},c2v:function(){gx.O.A642PerDesAbre=this.val()},val:function(){return gx.fn.getControlValue("PERDESABRE")},nac:function(){return false}};this.GXValidFnc[44]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERDESLONG",gxz:"Z643PerDesLong",gxold:"O643PerDesLong",gxvar:"A643PerDesLong",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A643PerDesLong=a
},v2z:function(a){gx.O.Z643PerDesLong=a},v2c:function(){gx.fn.setControlValue("PERDESLONG",gx.O.A643PerDesLong,0)},c2v:function(){gx.O.A643PerDesLong=this.val()},val:function(){return gx.fn.getControlValue("PERDESLONG")},nac:function(){return false}};this.GXValidFnc[49]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[51]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"PERNROISSN",gxz:"Z654PerNroIssn",gxold:"O654PerNroIssn",gxvar:"A654PerNroIssn",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A654PerNroIssn=a
},v2z:function(a){gx.O.Z654PerNroIssn=a},v2c:function(){gx.fn.setControlValue("PERNROISSN",gx.O.A654PerNroIssn,0)},c2v:function(){gx.O.A654PerNroIssn=this.val()},val:function(){return gx.fn.getControlValue("PERNROISSN")},nac:function(){return false}};this.GXValidFnc[54]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[56]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"PERQTDDIAS",gxz:"Z655PerQtdDias",gxold:"O655PerQtdDias",gxvar:"A655PerQtdDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A655PerQtdDias=gx.num.intval(a)
},v2z:function(a){gx.O.Z655PerQtdDias=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("PERQTDDIAS",gx.O.A655PerQtdDias,0)},c2v:function(){gx.O.A655PerQtdDias=this.val()},val:function(){return gx.fn.getIntegerValue("PERQTDDIAS",".")},nac:function(){return false}};this.GXValidFnc[61]={lvl:145,type:"int",len:4,dec:0,sign:false,pic:"9999",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vNRCDDELETED_145",gxz:"ZnRcdDeleted_145",gxold:"OnRcdDeleted_145",gxvar:"nRcdDeleted_145",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.nRcdDeleted_145=gx.num.intval(a)
},v2z:function(a){gx.O.ZnRcdDeleted_145=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vNRCDDELETED_145",gx.fn.currentGridRowImpl(60),gx.O.nRcdDeleted_145,0)},c2v:function(){gx.O.nRcdDeleted_145=this.val()},val:function(){return gx.fn.getGridIntegerValue("vNRCDDELETED_145",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[62]={lvl:145,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:this.Valid_Leicod,isvalid:null,rgrid:[],fld:"LEICOD",gxz:"Z497LeiCod",gxold:"O497LeiCod",gxvar:"A497LeiCod",ucs:[],op:[65,64,63],ip:[65,64,63,62],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(60),gx.O.A497LeiCod,0)},c2v:function(){gx.O.A497LeiCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("LEICOD",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[63]={lvl:145,type:"char",len:20,dec:0,sign:false,ro:1,grid:60,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(60),gx.O.A498LeiDesSeto,0)},c2v:function(){gx.O.A498LeiDesSeto=this.val()},val:function(){return gx.fn.getGridControlValue("LEIDESSETO",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[64]={lvl:145,type:"char",len:35,dec:0,sign:false,ro:1,grid:60,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(60),gx.O.A499LeiNomLeit,0)},c2v:function(){gx.O.A499LeiNomLeit=this.val()},val:function(){return gx.fn.getGridControlValue("LEINOMLEIT",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[65]={lvl:145,type:"char",len:10,dec:0,sign:false,ro:1,grid:60,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(60),gx.O.A500LeiNroRama,0)},c2v:function(){gx.O.A500LeiNroRama=this.val()},val:function(){return gx.fn.getGridControlValue("LEINRORAMA",gx.fn.currentGridRowImpl(60))},nac:function(){return false}};this.GXValidFnc[66]={lvl:145,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"LRCNROSEQ",gxz:"Z520LrcNroSeq",gxold:"O520LrcNroSeq",gxvar:"A520LrcNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A520LrcNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z520LrcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LRCNROSEQ",gx.fn.currentGridRowImpl(60),gx.O.A520LrcNroSeq,0)},c2v:function(){gx.O.A520LrcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("LRCNROSEQ",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[67]={lvl:145,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:0,grid:60,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"LRCQTDDIAS",gxz:"Z521LrcQtdDias",gxold:"O521LrcQtdDias",gxvar:"A521LrcQtdDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A521LrcQtdDias=gx.num.intval(a)
},v2z:function(a){gx.O.Z521LrcQtdDias=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("LRCQTDDIAS",gx.fn.currentGridRowImpl(60),gx.O.A521LrcQtdDias,0)},c2v:function(){gx.O.A521LrcQtdDias=this.val()},val:function(){return gx.fn.getGridIntegerValue("LRCQTDDIAS",gx.fn.currentGridRowImpl(60),".")},nac:function(){return false}};this.GXValidFnc[75]={fld:"PROMPT_652",grid:116};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.A652PerNro=0;this.Z652PerNro=0;this.O652PerNro=0;this.A683PrdCod="";
this.Z683PrdCod="";this.O683PrdCod="";this.A684PrdDes="";this.Z684PrdDes="";this.O684PrdDes="";this.A642PerDesAbre="";this.Z642PerDesAbre="";this.O642PerDesAbre="";this.A643PerDesLong="";this.Z643PerDesLong="";this.O643PerDesLong="";this.A654PerNroIssn="";this.Z654PerNroIssn="";this.O654PerNroIssn="";this.A655PerQtdDias=0;this.Z655PerQtdDias=0;this.O655PerQtdDias=0;this.ZnRcdDeleted_145=0;this.OnRcdDeleted_145=0;this.Z497LeiCod=0;this.O497LeiCod=0;this.Z498LeiDesSeto="";this.O498LeiDesSeto="";this.Z499LeiNomLeit="";
this.O499LeiNomLeit="";this.Z500LeiNroRama="";this.O500LeiNroRama="";this.Z520LrcNroSeq=0;this.O520LrcNroSeq=0;this.Z521LrcQtdDias=0;this.O521LrcQtdDias=0;this.A497LeiCod=0;this.A498LeiDesSeto="";this.A499LeiNomLeit="";this.A500LeiNroRama="";this.A520LrcNroSeq=0;this.A521LrcQtdDias=0;this.ServerEvents=["e135b116_client","e145b116_client"];this.setPrompt("PROMPT_652",[26]);this.setPrompt("PROMPT_497",[62]);this.EnterCtrl=["BTN_ENTER"];this.CheckCtrl=["BTN_CHECK"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};
this.SetStandaloneVars()}tpet011.prototype=new gx.GxObject;gx.setParentObj(new tpet011());