gx.evt.autoSkip=false;function hmih068(){this.ServerClass="HMih068";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV20UsuCod=gx.fn.getControlValue("vUSUCOD");this.Gx_msg=gx.fn.getControlValue("vMSG");this.AV8TemErro=gx.fn.getControlValue("vTEMERRO");this.AV63IndOrigem=gx.fn.getControlValue("vINDORIGEM");this.AV76UsbCodEntrada=gx.fn.getControlValue("vUSBCODENTRADA")};this.Valid_Eptnrosequ=function(){try{if(gx.fn.currentGridRowImpl(50)===0){return true
}var a=gx.util.balloon.getNew("EPTNROSEQU",gx.fn.currentGridRowImpl(50));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e15341_client=function(){this.clearMessages();this.AV8TemErro="N";if(this.AV8TemErro=="N"){if((0==this.AV60EptNroSequencia)){this.AV8TemErro="S";this.Gx_msg="Não houve renovação de itens"}}if(this.AV8TemErro=="N"){this.AV101Window.Url=gx.http.formatLink("arimr012",[this.AV60EptNroSequencia,this.AV20UsuCod]);this.AV101Window.ReturnParms=["AV60EptNroSequencia","AV20UsuCod"];
this.AV101Window.Height=700;this.AV101Window.Width=800;gx.popup.open(this.AV101Window)}else{this.addMessage(this.Gx_msg)}this.refreshOutputs([{ctrl:"vWINDOW",prop:"Width"},{ctrl:"vWINDOW",prop:"Height"},{ctrl:"vWINDOW",prop:"Object"},{av:"Gx_msg",fld:"vMSG"},{av:"AV8TemErro",fld:"vTEMERRO"}])};this.e11342_client=function(){this.executeServerEvent("ENTER",true)};this.e12342_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e16342_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[4,13,18,21,24,27,30,32,35,38,40,42,44,46,51,52,53,54,55,56,57,58,59];this.GXLastCtrlId=59;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",50,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmih068",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Selecionar",51,"vSELECIONAR","","","Selecionar","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit(922,52,"UNDCOD","Unid","","UndCod","int",29,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Grid1Container.addSingleLineEdit(359,53,"EPINROTOMB","Tombo","","EpiNroTomb","int",0,"px",9,9,"right",null,[],359,"EpiNroTomb",true,0,false,false);this.Grid1Container.addSingleLineEdit("Linha",54,"vLINHA","Título / Autor","","Linha","vchar",410,"px",200,200,"left",null,[],"Linha","Linha",true,200,false,false);this.Grid1Container.addSingleLineEdit(356,55,"EPIDATRETI","Retirada","","EpiDatReti","dtime",106,"px",16,10,"right",null,[],356,"EpiDatReti",true,5,false,false);this.Grid1Container.addSingleLineEdit(355,56,"EPIDATDEVP","Devolver até","","EpiDatDevP","dtime",106,"px",16,10,"right",null,[],355,"EpiDatDevP",true,5,false,false);
this.Grid1Container.addSingleLineEdit(364,57,"EPTNROSEQU","Controle","","EptNroSequ","int",70,"px",10,10,"right",null,[],364,"EptNroSequ",true,0,false,false);this.Grid1Container.addSingleLineEdit(890,58,"TIUQTDRENO","Qtd. renovações permitidas","","TiuQtdReno","int",0,"px",2,2,"right",null,[],890,"TiuQtdReno",false,0,false,false);this.Grid1Container.addComboBox(888,59,"TIUINDPAGA","Paga multa","TiuIndPaga","char",null,0,false,false,0,"px");this.setGrid(this.Grid1Container);this.GXValidFnc[4]={fld:"TABLE1",grid:0};
this.GXValidFnc[13]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"MENSAGEM",format:1,grid:0};this.GXValidFnc[24]={fld:"MENSAGEM2",format:1,grid:0};this.GXValidFnc[27]={fld:"TABLE3",grid:0};this.GXValidFnc[30]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vEPTNROSEQUENCIA",gxz:"ZV60EptNroSequencia",gxold:"OV60EptNroSequencia",gxvar:"AV60EptNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV60EptNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV60EptNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vEPTNROSEQUENCIA",gx.O.AV60EptNroSequencia,0)},c2v:function(){gx.O.AV60EptNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vEPTNROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[35]={fld:"TABELASENHAS",grid:0};this.GXValidFnc[38]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[40]={lvl:0,type:"char",len:30,dec:0,sign:false,isPwd:true,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALSENHALEITOR",gxz:"ZV104ScrValSenhaLeitor",gxold:"OV104ScrValSenhaLeitor",gxvar:"AV104ScrValSenhaLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV104ScrValSenhaLeitor=a
},v2z:function(a){gx.O.ZV104ScrValSenhaLeitor=a},v2c:function(){gx.fn.setControlValue("vSCRVALSENHALEITOR",gx.O.AV104ScrValSenhaLeitor,0)},c2v:function(){gx.O.AV104ScrValSenhaLeitor=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALSENHALEITOR")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[44]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[46]={lvl:0,type:"char",len:30,dec:0,sign:false,isPwd:true,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRVALSENHAOPERADOR",gxz:"ZV105ScrValSenhaOperador",gxold:"OV105ScrValSenhaOperador",gxvar:"AV105ScrValSenhaOperador",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV105ScrValSenhaOperador=a
},v2z:function(a){gx.O.ZV105ScrValSenhaOperador=a},v2c:function(){gx.fn.setControlValue("vSCRVALSENHAOPERADOR",gx.O.AV105ScrValSenhaOperador,0)},c2v:function(){gx.O.AV105ScrValSenhaOperador=this.val()},val:function(){return gx.fn.getControlValue("vSCRVALSENHAOPERADOR")},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vSELECIONAR",gxz:"ZV27Selecionar",gxold:"OV27Selecionar",gxvar:"AV27Selecionar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV27Selecionar=a
},v2z:function(a){gx.O.ZV27Selecionar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vSELECIONAR",gx.fn.currentGridRowImpl(50),gx.O.AV27Selecionar,"S")},c2v:function(){gx.O.AV27Selecionar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vSELECIONAR",gx.fn.currentGridRowImpl(50),"S","N")},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(50),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:9,dec:0,sign:false,pic:"ZZZZZZZZ9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"EPINROTOMB",gxz:"Z359EpiNroTomb",gxold:"O359EpiNroTomb",gxvar:"A359EpiNroTomb",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A359EpiNroTomb=gx.num.intval(a)
},v2z:function(a){gx.O.Z359EpiNroTomb=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EPINROTOMB",gx.fn.currentGridRowImpl(50),gx.O.A359EpiNroTomb,0)},c2v:function(){gx.O.A359EpiNroTomb=this.val()},val:function(){return gx.fn.getGridIntegerValue("EPINROTOMB",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"vchar",len:200,dec:200,sign:false,ro:0,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINHA",gxz:"ZV62Linha",gxold:"OV62Linha",gxvar:"AV62Linha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV62Linha=a
},v2z:function(a){gx.O.ZV62Linha=a},v2c:function(){gx.fn.setGridControlValue("vLINHA",gx.fn.currentGridRowImpl(50),gx.O.AV62Linha,0)},c2v:function(){gx.O.AV62Linha=this.val()},val:function(){return gx.fn.getGridControlValue("vLINHA",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPIDATRETI",gxz:"Z356EpiDatReti",gxold:"O356EpiDatReti",gxvar:"A356EpiDatReti",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A356EpiDatReti=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z356EpiDatReti=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPIDATRETI",gx.fn.currentGridRowImpl(50),gx.O.A356EpiDatReti,0)},c2v:function(){gx.O.A356EpiDatReti=this.val()},val:function(){return gx.fn.getGridControlValue("EPIDATRETI",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"EPIDATDEVP",gxz:"Z355EpiDatDevP",gxold:"O355EpiDatDevP",gxvar:"A355EpiDatDevP",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A355EpiDatDevP=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z355EpiDatDevP=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("EPIDATDEVP",gx.fn.currentGridRowImpl(50),gx.O.A355EpiDatDevP,0)},c2v:function(){gx.O.A355EpiDatDevP=this.val()},val:function(){return gx.fn.getGridControlValue("EPIDATDEVP",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"int",len:10,dec:0,sign:false,pic:"ZZZZZZZZZ9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:this.Valid_Eptnrosequ,isvalid:null,rgrid:[],fld:"EPTNROSEQU",gxz:"Z364EptNroSequ",gxold:"O364EptNroSequ",gxvar:"A364EptNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A364EptNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z364EptNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("EPTNROSEQU",gx.fn.currentGridRowImpl(50),gx.O.A364EptNroSequ,0)},c2v:function(){gx.O.A364EptNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("EPTNROSEQU",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"TIUQTDRENO",gxz:"Z890TiuQtdReno",gxold:"O890TiuQtdReno",gxvar:"A890TiuQtdReno",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A890TiuQtdReno=gx.num.intval(a)
},v2z:function(a){gx.O.Z890TiuQtdReno=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TIUQTDRENO",gx.fn.currentGridRowImpl(50),gx.O.A890TiuQtdReno,0)},c2v:function(){gx.O.A890TiuQtdReno=this.val()},val:function(){return gx.fn.getGridIntegerValue("TIUQTDRENO",gx.fn.currentGridRowImpl(50),".")},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:50,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIUINDPAGA",gxz:"Z888TiuIndPaga",gxold:"O888TiuIndPaga",gxvar:"A888TiuIndPaga",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A888TiuIndPaga=a
},v2z:function(a){gx.O.Z888TiuIndPaga=a},v2c:function(){gx.fn.setGridComboBoxValue("TIUINDPAGA",gx.fn.currentGridRowImpl(50),gx.O.A888TiuIndPaga)},c2v:function(){gx.O.A888TiuIndPaga=this.val()},val:function(){return gx.fn.getGridControlValue("TIUINDPAGA",gx.fn.currentGridRowImpl(50))},nac:function(){return false}};this.AV60EptNroSequencia=0;this.ZV60EptNroSequencia=0;this.OV60EptNroSequencia=0;this.AV104ScrValSenhaLeitor="";this.ZV104ScrValSenhaLeitor="";this.OV104ScrValSenhaLeitor="";this.AV105ScrValSenhaOperador="";
this.ZV105ScrValSenhaOperador="";this.OV105ScrValSenhaOperador="";this.ZV27Selecionar="";this.OV27Selecionar="";this.Z922UndCod=0;this.O922UndCod=0;this.Z359EpiNroTomb=0;this.O359EpiNroTomb=0;this.ZV62Linha="";this.OV62Linha="";this.Z356EpiDatReti=gx.date.nullDate();this.O356EpiDatReti=gx.date.nullDate();this.Z355EpiDatDevP=gx.date.nullDate();this.O355EpiDatDevP=gx.date.nullDate();this.Z364EptNroSequ=0;this.O364EptNroSequ=0;this.Z890TiuQtdReno=0;this.O890TiuQtdReno=0;this.Z888TiuIndPaga="";this.O888TiuIndPaga="";
this.AV63IndOrigem="";this.AV76UsbCodEntrada="";this.A258DocNro=0;this.A242DocDesL1Ti="";this.A358EpiIndDevo="";this.A353EpiCodBibU="";this.A787UsbCod="";this.A883TiuCod="";this.AV27Selecionar="";this.A922UndCod=0;this.A359EpiNroTomb=0;this.AV62Linha="";this.A356EpiDatReti=gx.date.nullDate();this.A355EpiDatDevP=gx.date.nullDate();this.A364EptNroSequ=0;this.A890TiuQtdReno=0;this.A888TiuIndPaga="";this.A786UsbNom="";this.A934UsbDatVali=gx.date.nullDate();this.A122CfgCod="";this.A127CfgValCont="";this.A968UsuCod="";
this.A972UsuDesSenh="";this.AV20UsuCod="";this.Gx_msg="";this.AV8TemErro="";this.AV101Window={};this.ServerEvents=["e11342_client","e12342_client","e16342_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV20UsuCod={id:"vUSUCOD",grid:0,type:"char"};this.VarControlMap.Gx_msg={id:"vMSG",grid:0,type:"char"};this.VarControlMap.AV8TemErro={id:"vTEMERRO",grid:0,type:"char"};this.VarControlMap.AV63IndOrigem={id:"vINDORIGEM",grid:0,type:"char"};this.VarControlMap.AV76UsbCodEntrada={id:"vUSBCODENTRADA",grid:0,type:"char"};
this.VarControlMap.AV6UsbCod={id:"vUSBCOD",grid:0,type:"char"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.A258DocNro={id:"DOCNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"AV6UsbCod"});this.Grid1Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Grid1Container.addRefreshingVar({rfrVar:"A258DocNro"});this.SetStandaloneVars()}hmih068.prototype=new gx.GxObject;gx.setParentObj(new hmih068());